@helia/interop 10.2.2 → 10.2.3-eb1908b3

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.
Files changed (2) hide show
  1. package/.aegir.js +49 -0
  2. package/package.json +17 -16
package/.aegir.js ADDED
@@ -0,0 +1,49 @@
1
+ import getPort from 'aegir/get-port'
2
+ import { createServer } from 'ipfsd-ctl'
3
+ import { create } from 'kubo-rpc-client'
4
+ import { path } from 'kubo'
5
+
6
+ /** @type {import('aegir').PartialOptions} */
7
+ export default {
8
+ test: {
9
+ files: './dist/src/*.spec.js',
10
+ before: async (options) => {
11
+ if (options.runner !== 'node') {
12
+ const ipfsdPort = await getPort()
13
+ const ipfsdServer = await createServer({
14
+ host: '127.0.0.1',
15
+ port: ipfsdPort
16
+ }, {
17
+ type: 'kubo',
18
+ bin: path(),
19
+ rpc: create,
20
+ test: true,
21
+ init: {
22
+ config: {
23
+ Addresses: {
24
+ Swarm: [
25
+ "/ip4/0.0.0.0/tcp/0",
26
+ "/ip4/0.0.0.0/tcp/0/ws"
27
+ ]
28
+ }
29
+ }
30
+ }
31
+ }).start()
32
+
33
+ return {
34
+ env: {
35
+ IPFSD_SERVER: `http://127.0.0.1:${ipfsdPort}`
36
+ },
37
+ ipfsdServer
38
+ }
39
+ }
40
+
41
+ return {}
42
+ },
43
+ after: async (options, beforeResult) => {
44
+ if (options.runner !== 'node') {
45
+ await beforeResult.ipfsdServer.stop()
46
+ }
47
+ }
48
+ }
49
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@helia/interop",
3
- "version": "10.2.2",
3
+ "version": "10.2.3-eb1908b3",
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,7 +27,8 @@
27
27
  "src",
28
28
  "dist",
29
29
  "!dist/test",
30
- "!**/*.tsbuildinfo"
30
+ "!**/*.tsbuildinfo",
31
+ ".aegir.js"
31
32
  ],
32
33
  "exports": {
33
34
  ".": {
@@ -51,19 +52,19 @@
51
52
  "test:electron-main": "aegir test -t electron-main"
52
53
  },
53
54
  "dependencies": {
54
- "@helia/block-brokers": "^5.2.2",
55
- "@helia/car": "^5.4.1",
56
- "@helia/dag-cbor": "^5.1.1",
57
- "@helia/dag-json": "^5.1.1",
58
- "@helia/dnslink": "^1.2.1",
59
- "@helia/http": "^3.1.2",
60
- "@helia/interface": "^6.2.1",
61
- "@helia/ipns": "^9.2.1",
62
- "@helia/json": "^5.1.1",
63
- "@helia/mfs": "^7.1.1",
64
- "@helia/routers": "^5.1.1",
65
- "@helia/strings": "^5.1.1",
66
- "@helia/unixfs": "^7.2.1",
55
+ "@helia/block-brokers": "5.2.2-eb1908b3",
56
+ "@helia/car": "5.4.1-eb1908b3",
57
+ "@helia/dag-cbor": "5.1.1-eb1908b3",
58
+ "@helia/dag-json": "5.1.1-eb1908b3",
59
+ "@helia/dnslink": "1.2.1-eb1908b3",
60
+ "@helia/http": "3.1.2-eb1908b3",
61
+ "@helia/interface": "6.2.1-eb1908b3",
62
+ "@helia/ipns": "9.2.1-eb1908b3",
63
+ "@helia/json": "5.1.1-eb1908b3",
64
+ "@helia/mfs": "7.1.1-eb1908b3",
65
+ "@helia/routers": "5.1.1-eb1908b3",
66
+ "@helia/strings": "5.1.1-eb1908b3",
67
+ "@helia/unixfs": "7.2.1-eb1908b3",
67
68
  "@ipld/car": "^5.4.3",
68
69
  "@ipld/dag-cbor": "^9.2.6",
69
70
  "@ipld/dag-pb": "^4.1.5",
@@ -78,7 +79,7 @@
78
79
  "@multiformats/multiaddr": "^13.0.1",
79
80
  "@multiformats/sha3": "^3.0.2",
80
81
  "aegir": "^47.1.5",
81
- "helia": "^6.1.2",
82
+ "helia": "6.1.2-eb1908b3",
82
83
  "ipfs-unixfs-importer": "^16.1.4",
83
84
  "ipfsd-ctl": "^16.0.3",
84
85
  "ipns": "^10.1.3",