This repository was archived by the owner on Mar 10, 2020. It is now read-only.
File tree 4 files changed +13
-4
lines changed
4 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 86
86
"eslint-plugin-react" : " ^7.11.1" ,
87
87
"go-ipfs-dep" : " ~0.4.18" ,
88
88
"gulp" : " ^3.9.1" ,
89
- "interface-ipfs-core" : " ~0.92 .0" ,
89
+ "interface-ipfs-core" : " ~0.93 .0" ,
90
90
"ipfsd-ctl" : " ~0.40.0" ,
91
91
"nock" : " ^10.0.2" ,
92
92
"pull-stream" : " ^3.6.9" ,
Original file line number Diff line number Diff line change 3
3
const moduleConfig = require ( '../utils/module-config' )
4
4
const pull = require ( 'pull-stream' )
5
5
const deferred = require ( 'pull-defer' )
6
+ const IsIpfs = require ( 'is-ipfs' )
6
7
const cleanCID = require ( '../utils/clean-cid' )
7
8
8
9
module . exports = ( arg ) => {
@@ -17,7 +18,9 @@ module.exports = (arg) => {
17
18
try {
18
19
args = cleanCID ( args )
19
20
} catch ( err ) {
20
- return callback ( err )
21
+ if ( ! IsIpfs . ipfsPath ( args ) ) {
22
+ return callback ( err )
23
+ }
21
24
}
22
25
23
26
const p = deferred . source ( )
Original file line number Diff line number Diff line change 2
2
3
3
const moduleConfig = require ( '../utils/module-config' )
4
4
const Stream = require ( 'readable-stream' )
5
+ const IsIpfs = require ( 'is-ipfs' )
5
6
const cleanCID = require ( '../utils/clean-cid' )
6
7
7
8
module . exports = ( arg ) => {
@@ -16,7 +17,9 @@ module.exports = (arg) => {
16
17
try {
17
18
args = cleanCID ( args )
18
19
} catch ( err ) {
19
- return callback ( err )
20
+ if ( ! IsIpfs . ipfsPath ( args ) ) {
21
+ return callback ( err )
22
+ }
20
23
}
21
24
22
25
const pt = new Stream . PassThrough ( { objectMode : true } )
Original file line number Diff line number Diff line change 1
1
'use strict'
2
2
3
3
const promisify = require ( 'promisify-es6' )
4
+ const IsIpfs = require ( 'is-ipfs' )
4
5
const moduleConfig = require ( '../utils/module-config' )
5
6
const cleanCID = require ( '../utils/clean-cid' )
6
7
@@ -16,7 +17,9 @@ module.exports = (arg) => {
16
17
try {
17
18
args = cleanCID ( args )
18
19
} catch ( err ) {
19
- return callback ( err )
20
+ if ( ! IsIpfs . ipfsPath ( args ) ) {
21
+ return callback ( err )
22
+ }
20
23
}
21
24
22
25
send ( {
You can’t perform that action at this time.
0 commit comments