This repository was archived by the owner on Feb 12, 2024. It is now read-only.
File tree 2 files changed +15
-11
lines changed
2 files changed +15
-11
lines changed Original file line number Diff line number Diff line change 14
14
"stream" : " readable-stream"
15
15
},
16
16
"go-ipfs" : {
17
- "version" : " v0.4.5-pre1 "
17
+ "version" : " v0.4.7 "
18
18
},
19
19
"engines" : {
20
20
"node" : " >=4.0.0" ,
76
76
"form-data" : " ^2.1.2" ,
77
77
"gulp" : " ^3.9.1" ,
78
78
"interface-ipfs-core" : " ~0.25.0" ,
79
- "ipfsd-ctl" : " ~0.19 .0" ,
79
+ "ipfsd-ctl" : " ~0.20 .0" ,
80
80
"left-pad" : " ^1.1.3" ,
81
81
"lodash" : " ^4.17.4" ,
82
82
"mocha" : " ^3.2.0" ,
Original file line number Diff line number Diff line change @@ -45,19 +45,23 @@ class JsDaemon {
45
45
this . port = opts . port
46
46
47
47
this . path = opts . path || tmpDir ( )
48
+ let repo
48
49
if ( this . init ) {
49
- this . ipfs = new IPFS ( {
50
- repo : this . path
51
- } )
50
+ repo = this . path
52
51
} else {
53
- const repo = new IPFSRepo ( this . path , { stores : require ( 'fs-pull-blob-store' ) } )
54
- this . ipfs = new IPFS ( {
55
- repo : repo ,
56
- EXPERIMENTAL : {
57
- pubsub : true
58
- }
52
+ repo = new IPFSRepo ( this . path , {
53
+ stores : require ( 'fs-pull-blob-store' )
59
54
} )
60
55
}
56
+ this . ipfs = new IPFS ( {
57
+ repo : repo ,
58
+ init : false ,
59
+ start : false ,
60
+ EXPERIMENTAL : {
61
+ pubsub : true
62
+ }
63
+ } )
64
+
61
65
this . node = null
62
66
this . api = null
63
67
}
You can’t perform that action at this time.
0 commit comments