This repository was archived by the owner on Mar 10, 2020. It is now read-only.
File tree 2 files changed +5
-9
lines changed
2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 1
1
'use strict'
2
2
3
- const promisify = require ( 'promisify-es6' )
4
3
const createServer = require ( 'ipfsd-ctl' ) . createServer
5
4
const EchoServer = require ( 'interface-ipfs-core/src/utils/echo-http-server' )
6
5
const server = createServer ( )
7
6
const echoServer = EchoServer . createServer ( )
8
7
9
- const echoServerStart = promisify ( echoServer . start )
10
- const echoServerStop = promisify ( echoServer . stop )
11
8
module . exports = {
12
9
bundlesize : { maxSize : '246kB' } ,
13
10
webpack : {
@@ -27,20 +24,20 @@ module.exports = {
27
24
} ,
28
25
hooks : {
29
26
node : {
30
- pre : ( ) => echoServerStart ( ) ,
31
- post : ( ) => echoServerStop ( )
27
+ pre : ( ) => echoServer . start ( ) ,
28
+ post : ( ) => echoServer . stop ( )
32
29
} ,
33
30
browser : {
34
31
pre : ( ) => {
35
32
return Promise . all ( [
36
33
server . start ( ) ,
37
- echoServerStart ( )
34
+ echoServer . start ( )
38
35
] )
39
36
} ,
40
37
post : ( ) => {
41
38
return Promise . all ( [
42
39
server . stop ( ) ,
43
- echoServerStop ( )
40
+ echoServer . stop ( )
44
41
] )
45
42
}
46
43
}
Original file line number Diff line number Diff line change 84
84
"cross-env" : " ^6.0.0" ,
85
85
"detect-node" : " ^2.0.4" ,
86
86
"go-ipfs-dep" : " ^0.4.22" ,
87
- "interface-ipfs-core" : " ^0.123 .0" ,
87
+ "interface-ipfs-core" : " ^0.124 .0" ,
88
88
"ipfsd-ctl" : " ^0.47.1" ,
89
89
"ndjson" : " ^1.5.0" ,
90
90
"nock" : " ^11.4.0" ,
91
- "promisify-es6" : " ^1.0.3" ,
92
91
"pull-stream" : " ^3.6.14" ,
93
92
"pump" : " ^3.0.0" ,
94
93
"stream-equal" : " ^1.1.1"
You can’t perform that action at this time.
0 commit comments