This repository was archived by the owner on Feb 12, 2024. It is now read-only.
File tree 3 files changed +3
-10
lines changed
src/http/gateway/resources
3 files changed +3
-10
lines changed Original file line number Diff line number Diff line change 137
137
"multihashes" : " ~0.4.5" ,
138
138
"once" : " ^1.4.0" ,
139
139
"path-exists" : " ^3.0.0" ,
140
- "promised-for" : " ^1.0.0" ,
141
140
"peer-book" : " ^0.5.0" ,
142
141
"peer-id" : " ^0.9.0" ,
143
142
"peer-info" : " ^0.10.0" ,
Original file line number Diff line number Diff line change 1
1
'use strict'
2
2
3
- // const mh = require('multihashes')
4
- // const multipart = require('ipfs-multipart')
5
3
const debug = require ( 'debug' )
6
- // const tar = require('tar-stream')
7
4
const log = debug ( 'jsipfs:http-gateway' )
8
5
log . error = debug ( 'jsipfs:http-gateway:error' )
9
6
const pull = require ( 'pull-stream' )
10
7
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')
14
8
const fileType = require ( 'file-type' )
15
9
const mime = require ( 'mime-types' )
16
10
const GatewayResolver = require ( '../resolver' )
17
11
const PathUtils = require ( '../utils/path' )
18
12
const Stream = require ( 'stream' )
19
13
20
- exports = module . exports
21
-
22
14
module . exports = {
23
15
checkHash : ( request , reply ) => {
24
16
if ( ! request . params . hash ) {
Original file line number Diff line number Diff line change 1
1
'use strict'
2
2
3
- exports . gateway = require ( './gateway' )
3
+ module . exports = {
4
+ gateway : require ( './gateway' )
5
+ }
You can’t perform that action at this time.
0 commit comments