Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit b6ea4a7

Browse files
authored
chore: upgrade to latest ipfsd-ctl (#2772)
* chore: upgrade to latest ipfsd-ctl * fix: pin go-ipfs-dep version otherwise you get the wrong one
1 parent fa29592 commit b6ea4a7

File tree

7 files changed

+16
-53
lines changed

7 files changed

+16
-53
lines changed

.aegir.js

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ const EchoServer = require('interface-ipfs-core/src/utils/echo-http-server')
66
const webRTCStarSigServer = require('libp2p-webrtc-star/src/sig-server')
77
const path = require('path')
88
const webpack = require('webpack')
9-
const os = require('os')
109

1110
const preloadNode = MockPreloadNode.createNode()
1211
const echoServer = EchoServer.createServer()
@@ -69,14 +68,8 @@ module.exports = {
6968
port: 43134
7069
}, {
7170
type: 'js',
72-
ipfsModule: {
73-
path: __dirname,
74-
ref: require(__dirname)
75-
},
76-
ipfsHttpModule: {
77-
path: require.resolve('ipfs-http-client'),
78-
ref: require('ipfs-http-client')
79-
},
71+
ipfsModule: require(__dirname),
72+
ipfsHttpModule: require('ipfs-http-client'),
8073
ipfsBin: path.join(__dirname, 'src', 'cli', 'bin.js'),
8174
ipfsOptions: {
8275
config: {
@@ -89,7 +82,7 @@ module.exports = {
8982
}
9083
}, {
9184
go: {
92-
ipfsBin: require.resolve(`go-ipfs-dep/go-ipfs/ipfs${os.platform() === 'win32' ? '.exe' : ''}`)
85+
ipfsBin: require('go-ipfs-dep').path()
9386
}
9487
}).start()
9588
},

examples/circuit-relaying/test.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,8 @@ const execa = require('execa')
77
const delay = require('delay')
88
const { createFactory } = require('ipfsd-ctl')
99
const df = createFactory({
10-
ipfsModule: {
11-
path: require.resolve('../../src'),
12-
ref: require('../../src')
13-
},
14-
ipfsHttpModule: {
15-
path: require.resolve('ipfs-http-client'),
16-
ref: require('ipfs-http-client')
17-
}
10+
ipfsModule: require('../../src'),
11+
ipfsHttpModule: require('ipfs-http-client')
1812
})
1913
const {
2014
startServer

examples/exchange-files-in-browser/test.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,8 @@ const execa = require('execa')
77
const delay = require('delay')
88
const { createFactory } = require('ipfsd-ctl')
99
const df = createFactory({
10-
ipfsModule: {
11-
path: require.resolve('../../src'),
12-
ref: require('../../src')
13-
},
14-
ipfsHttpModule: {
15-
path: require.resolve('ipfs-http-client'),
16-
ref: require('ipfs-http-client')
17-
}
10+
ipfsModule: require('../../src'),
11+
ipfsHttpModule: require('ipfs-http-client')
1812
}, {
1913
js: {
2014
ipfsBin: path.resolve(`${__dirname}/../../src/cli/bin.js`)

examples/explore-ethereum-blockchain/test.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,8 @@ const fs = require('fs-extra')
44
const path = require('path')
55
const { createFactory } = require('ipfsd-ctl')
66
const df = createFactory({
7-
ipfsModule: {
8-
path: require.resolve('../../src'),
9-
ref: require('../../src')
10-
},
11-
ipfsHttpModule: {
12-
path: require.resolve('ipfs-http-client'),
13-
ref: require('ipfs-http-client')
14-
}
7+
ipfsModule: require('../../src'),
8+
ipfsHttpModule: require('ipfs-http-client')
159
}, {
1610
js: {
1711
ipfsBin: path.resolve(`${__dirname}/../../src/cli/bin.js`)

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,11 @@
182182
"dir-compare": "^1.7.3",
183183
"execa": "^3.0.0",
184184
"form-data": "^3.0.0",
185-
"go-ipfs-dep": "^0.4.23",
185+
"go-ipfs-dep": "0.4.23-3",
186186
"hat": "0.0.3",
187187
"interface-ipfs-core": "^0.132.0",
188-
"ipfs-interop": "github:ipfs/interop#refactor/async-await",
189-
"ipfsd-ctl": "github:ipfs/js-ipfsd-ctl#remove-option-normalisation",
188+
"ipfs-interop": "^1.0.0",
189+
"ipfsd-ctl": "^3.0.0",
190190
"ncp": "^2.0.0",
191191
"p-event": "^4.1.0",
192192
"p-map": "^3.0.0",

test/http-api/interface.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,8 @@ describe('interface-ipfs-core over ipfs-http-client tests', function () {
1414
const commonOptions = {
1515
test: true,
1616
type: 'js',
17-
ipfsModule: {
18-
path: require.resolve('../../src'),
19-
ref: IPFS
20-
},
21-
ipfsHttpModule: {
22-
path: require.resolve('ipfs-http-client'),
23-
ref: require('ipfs-http-client')
24-
},
17+
ipfsModule: IPFS,
18+
ipfsHttpModule: require('ipfs-http-client'),
2519
ipfsOptions: {
2620
pass: 'ipfs-is-awesome-software'
2721
}

test/utils/factory.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,8 @@ const { isNode, isBrowser } = require('ipfs-utils/src/env')
66
const commonOptions = {
77
test: true,
88
type: 'proc',
9-
ipfsHttpModule: {
10-
path: require.resolve('ipfs-http-client'),
11-
ref: require('ipfs-http-client')
12-
},
13-
ipfsModule: {
14-
path: require.resolve('../../src'),
15-
ref: require('../../src')
16-
},
9+
ipfsHttpModule: require('ipfs-http-client'),
10+
ipfsModule: require('../../src'),
1711
ipfsOptions: {
1812
pass: 'ipfs-is-awesome-software',
1913
libp2p: {

0 commit comments

Comments
 (0)