@helia/interop 3.0.1-a2229bd → 3.0.1-a966706
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/bin.js +1 -7
- package/dist/src/bin.js.map +1 -1
- package/package.json +12 -13
- package/src/bin.ts +1 -8
- package/.aegir.js +0 -46
package/dist/src/bin.js
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
#! /usr/bin/env node
|
|
2
2
|
/* eslint-disable no-console */
|
|
3
3
|
import { spawn } from 'node:child_process';
|
|
4
|
-
|
|
5
|
-
import { fileURLToPath } from 'url';
|
|
6
|
-
// aegir should be run from `node_modules/@helia/interop`
|
|
7
|
-
const cwd = resolve(dirname(fileURLToPath(import.meta.url)), '../../');
|
|
8
|
-
const test = spawn('npx', ['aegir', 'test'], {
|
|
9
|
-
cwd
|
|
10
|
-
});
|
|
4
|
+
const test = spawn('npx', ['aegir', 'test']);
|
|
11
5
|
test.stdout.on('data', (data) => {
|
|
12
6
|
process.stdout.write(data);
|
|
13
7
|
});
|
package/dist/src/bin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bin.js","sourceRoot":"","sources":["../../src/bin.ts"],"names":[],"mappings":";AACA,+BAA+B;AAE/B,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"bin.js","sourceRoot":"","sources":["../../src/bin.ts"],"names":[],"mappings":";AACA,+BAA+B;AAE/B,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAE1C,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAA;AAE5C,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;IAC9B,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;AAC5B,CAAC,CAAC,CAAA;AAEF,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;IAC9B,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;AAC5B,CAAC,CAAC,CAAA;AAEF,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE;IACxB,OAAO,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,CAAA;AACzB,CAAC,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@helia/interop",
|
|
3
|
-
"version": "3.0.1-
|
|
3
|
+
"version": "3.0.1-a966706",
|
|
4
4
|
"description": "Interop tests for Helia",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/ipfs/helia/tree/main/packages/interop#readme",
|
|
@@ -27,8 +27,7 @@
|
|
|
27
27
|
"src",
|
|
28
28
|
"dist",
|
|
29
29
|
"!dist/test",
|
|
30
|
-
"!**/*.tsbuildinfo"
|
|
31
|
-
".aegir.js"
|
|
30
|
+
"!**/*.tsbuildinfo"
|
|
32
31
|
],
|
|
33
32
|
"exports": {
|
|
34
33
|
".": {
|
|
@@ -57,15 +56,15 @@
|
|
|
57
56
|
"test:electron-main": "aegir test -t electron-main"
|
|
58
57
|
},
|
|
59
58
|
"dependencies": {
|
|
60
|
-
"@helia/block-brokers": "1.0.0-
|
|
61
|
-
"@helia/car": "2.0.1-
|
|
62
|
-
"@helia/dag-cbor": "2.0.1-
|
|
63
|
-
"@helia/dag-json": "2.0.1-
|
|
64
|
-
"@helia/ipns": "4.0.0-
|
|
65
|
-
"@helia/json": "2.0.1-
|
|
66
|
-
"@helia/mfs": "2.0.1-
|
|
67
|
-
"@helia/strings": "2.0.1-
|
|
68
|
-
"@helia/unixfs": "2.0.1-
|
|
59
|
+
"@helia/block-brokers": "1.0.0-a966706",
|
|
60
|
+
"@helia/car": "2.0.1-a966706",
|
|
61
|
+
"@helia/dag-cbor": "2.0.1-a966706",
|
|
62
|
+
"@helia/dag-json": "2.0.1-a966706",
|
|
63
|
+
"@helia/ipns": "4.0.0-a966706",
|
|
64
|
+
"@helia/json": "2.0.1-a966706",
|
|
65
|
+
"@helia/mfs": "2.0.1-a966706",
|
|
66
|
+
"@helia/strings": "2.0.1-a966706",
|
|
67
|
+
"@helia/unixfs": "2.0.1-a966706",
|
|
69
68
|
"@ipld/car": "^5.2.5",
|
|
70
69
|
"@ipld/dag-cbor": "^9.0.7",
|
|
71
70
|
"@libp2p/interface": "^1.1.1",
|
|
@@ -75,7 +74,7 @@
|
|
|
75
74
|
"@libp2p/websockets": "^8.0.10",
|
|
76
75
|
"@multiformats/sha3": "^3.0.0",
|
|
77
76
|
"aegir": "^42.1.0",
|
|
78
|
-
"helia": "3.0.1-
|
|
77
|
+
"helia": "3.0.1-a966706",
|
|
79
78
|
"ipfs-core-types": "^0.14.1",
|
|
80
79
|
"ipfs-unixfs-importer": "^15.2.3",
|
|
81
80
|
"ipfsd-ctl": "^13.0.0",
|
package/src/bin.ts
CHANGED
|
@@ -2,15 +2,8 @@
|
|
|
2
2
|
/* eslint-disable no-console */
|
|
3
3
|
|
|
4
4
|
import { spawn } from 'node:child_process'
|
|
5
|
-
import { dirname, resolve } from 'path'
|
|
6
|
-
import { fileURLToPath } from 'url'
|
|
7
5
|
|
|
8
|
-
|
|
9
|
-
const cwd = resolve(dirname(fileURLToPath(import.meta.url)), '../../')
|
|
10
|
-
|
|
11
|
-
const test = spawn('npx', ['aegir', 'test'], {
|
|
12
|
-
cwd
|
|
13
|
-
})
|
|
6
|
+
const test = spawn('npx', ['aegir', 'test'])
|
|
14
7
|
|
|
15
8
|
test.stdout.on('data', (data) => {
|
|
16
9
|
process.stdout.write(data)
|
package/.aegir.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import getPort from 'aegir/get-port'
|
|
2
|
-
import { createServer } from 'ipfsd-ctl'
|
|
3
|
-
import * as kuboRpcClient from 'kubo-rpc-client'
|
|
4
|
-
|
|
5
|
-
/** @type {import('aegir').PartialOptions} */
|
|
6
|
-
export default {
|
|
7
|
-
test: {
|
|
8
|
-
files: './dist/src/*.spec.js',
|
|
9
|
-
before: async (options) => {
|
|
10
|
-
if (options.runner !== 'node') {
|
|
11
|
-
const ipfsdPort = await getPort()
|
|
12
|
-
const ipfsdServer = await createServer({
|
|
13
|
-
host: '127.0.0.1',
|
|
14
|
-
port: ipfsdPort
|
|
15
|
-
}, {
|
|
16
|
-
ipfsBin: (await import('kubo')).default.path(),
|
|
17
|
-
kuboRpcModule: kuboRpcClient,
|
|
18
|
-
ipfsOptions: {
|
|
19
|
-
config: {
|
|
20
|
-
Addresses: {
|
|
21
|
-
Swarm: [
|
|
22
|
-
"/ip4/0.0.0.0/tcp/0",
|
|
23
|
-
"/ip4/0.0.0.0/tcp/0/ws"
|
|
24
|
-
]
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}).start()
|
|
29
|
-
|
|
30
|
-
return {
|
|
31
|
-
env: {
|
|
32
|
-
IPFSD_SERVER: `http://127.0.0.1:${ipfsdPort}`
|
|
33
|
-
},
|
|
34
|
-
ipfsdServer
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
return {}
|
|
39
|
-
},
|
|
40
|
-
after: async (options, beforeResult) => {
|
|
41
|
-
if (options.runner !== 'node') {
|
|
42
|
-
await beforeResult.ipfsdServer.stop()
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|