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

clean up , working builds on node v8.4.0 #980

Merged
merged 1 commit into from
Sep 3, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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')
}