Skip to content

Commit 32e76cc

Browse files
committed
refactor: run echo-http-server via aegir
This simplifies code in interface-js-ipfs-core as both Node an Browser init it the same way Context: ipfs-inactive/interface-js-ipfs-core#514 (comment) License: MIT Signed-off-by: Marcin Rataj <[email protected]>
1 parent 8832ddf commit 32e76cc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.aegir.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ module.exports = {
3737
},
3838
hooks: {
3939
node: {
40-
pre: (cb) => preloadNode.start(cb),
41-
post: (cb) => preloadNode.stop(cb)
40+
pre: (cb) => batch('start', cb, preloadNode, httpEchoServer),
41+
post: (cb) => batch('stop', cb, preloadNode, httpEchoServer)
4242
},
4343
browser: {
4444
pre: (cb) => batch('start', cb, ipfsdServer, preloadNode, httpEchoServer),

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@
193193
"execa": "^2.0.4",
194194
"form-data": "^2.5.0",
195195
"hat": "0.0.3",
196-
"interface-ipfs-core": "https://github.com/ipfs/interface-js-ipfs-core/tarball/1fb34d2821a1d4edda4060f3c043297f6d6e0762/interface-js-ipfs-core.tar.gz",
196+
"interface-ipfs-core": "https://github.com/ipfs/interface-js-ipfs-core/tarball/a810adfcbb977257851a4be3aae158a350119810/interface-js-ipfs-core.tar.gz",
197197
"ipfsd-ctl": "^0.43.0",
198198
"libp2p-websocket-star": "~0.10.2",
199199
"ncp": "^2.0.0",

0 commit comments

Comments
 (0)