This repository was archived by the owner on Mar 10, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 11'use strict'
22
3- const promisify = require ( 'promisify-es6' )
43const createServer = require ( 'ipfsd-ctl' ) . createServer
54const EchoServer = require ( 'interface-ipfs-core/src/utils/echo-http-server' )
65const server = createServer ( )
76const echoServer = EchoServer . createServer ( )
87
9- const echoServerStart = promisify ( echoServer . start )
10- const echoServerStop = promisify ( echoServer . stop )
118module . exports = {
129 bundlesize : { maxSize : '246kB' } ,
1310 webpack : {
@@ -27,20 +24,20 @@ module.exports = {
2724 } ,
2825 hooks : {
2926 node : {
30- pre : ( ) => echoServerStart ( ) ,
31- post : ( ) => echoServerStop ( )
27+ pre : ( ) => echoServer . start ( ) ,
28+ post : ( ) => echoServer . stop ( )
3229 } ,
3330 browser : {
3431 pre : ( ) => {
3532 return Promise . all ( [
3633 server . start ( ) ,
37- echoServerStart ( )
34+ echoServer . start ( )
3835 ] )
3936 } ,
4037 post : ( ) => {
4138 return Promise . all ( [
4239 server . stop ( ) ,
43- echoServerStop ( )
40+ echoServer . stop ( )
4441 ] )
4542 }
4643 }
Original file line number Diff line number Diff line change 8484 "cross-env" : " ^6.0.0" ,
8585 "detect-node" : " ^2.0.4" ,
8686 "go-ipfs-dep" : " ^0.4.22" ,
87- "interface-ipfs-core" : " ^0.123 .0" ,
87+ "interface-ipfs-core" : " ^0.124 .0" ,
8888 "ipfsd-ctl" : " ^0.47.1" ,
8989 "ndjson" : " ^1.5.0" ,
9090 "nock" : " ^11.4.0" ,
91- "promisify-es6" : " ^1.0.3" ,
9291 "pull-stream" : " ^3.6.14" ,
9392 "pump" : " ^3.0.0" ,
9493 "stream-equal" : " ^1.1.1"
You can’t perform that action at this time.
0 commit comments