Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
test: clean up , working tests on node v8.4.0 (#980)
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Yahya <ya7yaz@gmail.com>
  • Loading branch information
ya7ya authored and daviddias committed Sep 3, 2017
1 parent cd0fae9 commit 455f14d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@
"multihashes": "~0.4.5",
"once": "^1.4.0",
"path-exists": "^3.0.0",
"promised-for": "^1.0.0",
"peer-book": "^0.5.0",
"peer-id": "^0.9.0",
"peer-info": "^0.10.0",
Expand Down
8 changes: 0 additions & 8 deletions src/http/gateway/resources/gateway.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,16 @@
'use strict'

// const mh = require('multihashes')
// const multipart = require('ipfs-multipart')
const debug = require('debug')
// const tar = require('tar-stream')
const log = debug('jsipfs:http-gateway')
log.error = debug('jsipfs:http-gateway:error')
const pull = require('pull-stream')
const toPull = require('stream-to-pull-stream')
// const pushable = require('pull-pushable')
// const EOL = require('os').EOL
// const toStream = require('pull-stream-to-stream')
const fileType = require('file-type')
const mime = require('mime-types')
const GatewayResolver = require('../resolver')
const PathUtils = require('../utils/path')
const Stream = require('stream')

exports = module.exports

module.exports = {
checkHash: (request, reply) => {
if (!request.params.hash) {
Expand Down
4 changes: 3 additions & 1 deletion src/http/gateway/resources/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

exports.gateway = require('./gateway')
module.exports = {
gateway: require('./gateway')
}

0 comments on commit 455f14d

Please sign in to comment.