Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 455f14d

Browse files
ya7yadaviddias
authored andcommittedSep 3, 2017
test: clean up , working tests on node v8.4.0 (#980)
License: MIT Signed-off-by: Yahya <ya7yaz@gmail.com>
1 parent cd0fae9 commit 455f14d

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed
 

‎package.json

-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@
137137
"multihashes": "~0.4.5",
138138
"once": "^1.4.0",
139139
"path-exists": "^3.0.0",
140-
"promised-for": "^1.0.0",
141140
"peer-book": "^0.5.0",
142141
"peer-id": "^0.9.0",
143142
"peer-info": "^0.10.0",

‎src/http/gateway/resources/gateway.js

-8
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,16 @@
11
'use strict'
22

3-
// const mh = require('multihashes')
4-
// const multipart = require('ipfs-multipart')
53
const debug = require('debug')
6-
// const tar = require('tar-stream')
74
const log = debug('jsipfs:http-gateway')
85
log.error = debug('jsipfs:http-gateway:error')
96
const pull = require('pull-stream')
107
const toPull = require('stream-to-pull-stream')
11-
// const pushable = require('pull-pushable')
12-
// const EOL = require('os').EOL
13-
// const toStream = require('pull-stream-to-stream')
148
const fileType = require('file-type')
159
const mime = require('mime-types')
1610
const GatewayResolver = require('../resolver')
1711
const PathUtils = require('../utils/path')
1812
const Stream = require('stream')
1913

20-
exports = module.exports
21-
2214
module.exports = {
2315
checkHash: (request, reply) => {
2416
if (!request.params.hash) {

‎src/http/gateway/resources/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
'use strict'
22

3-
exports.gateway = require('./gateway')
3+
module.exports = {
4+
gateway: require('./gateway')
5+
}

0 commit comments

Comments
 (0)
This repository has been archived.