@helia/interop 10.1.3-2d30414a → 10.1.3-9aff8d09
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/car.spec.js +2 -2
- package/dist/src/dag-cbor.spec.js +2 -2
- package/dist/src/dag-json.spec.js +2 -2
- package/dist/src/dnslink.spec.js +1 -1
- package/dist/src/helia-blockstore-sessions.spec.js +2 -2
- package/dist/src/helia-blockstore.spec.js +2 -2
- package/dist/src/helia-hashes.spec.js +2 -2
- package/dist/src/helia-pins.spec.js +2 -2
- package/dist/src/ipns-http.spec.js +1 -1
- package/dist/src/ipns-pubsub.spec.js +5 -5
- package/dist/src/ipns.spec.js +6 -6
- package/dist/src/json.spec.js +2 -2
- package/dist/src/mfs.spec.js +2 -2
- package/dist/src/providers.spec.js +2 -2
- package/dist/src/strings.spec.js +2 -2
- package/dist/src/unixfs-bitswap.spec.js +2 -2
- package/dist/src/unixfs-files.spec.js +2 -2
- package/package.json +15 -15
- package/src/car.spec.ts +2 -2
- package/src/dag-cbor.spec.ts +2 -2
- package/src/dag-json.spec.ts +2 -2
- package/src/dnslink.spec.ts +1 -1
- package/src/helia-blockstore-sessions.spec.ts +2 -2
- package/src/helia-blockstore.spec.ts +2 -2
- package/src/helia-hashes.spec.ts +2 -2
- package/src/helia-pins.spec.ts +2 -2
- package/src/ipns-http.spec.ts +1 -1
- package/src/ipns-pubsub.spec.ts +5 -5
- package/src/ipns.spec.ts +6 -6
- package/src/json.spec.ts +2 -2
- package/src/mfs.spec.ts +2 -2
- package/src/providers.spec.ts +2 -2
- package/src/strings.spec.ts +2 -2
- package/src/unixfs-bitswap.spec.ts +2 -2
- package/src/unixfs-files.spec.ts +2 -2
package/dist/src/car.spec.js
CHANGED
|
@@ -5,8 +5,8 @@ import { expect } from 'aegir/chai';
|
|
|
5
5
|
import drain from 'it-drain';
|
|
6
6
|
import toBuffer from 'it-to-buffer';
|
|
7
7
|
import { CID } from 'multiformats/cid';
|
|
8
|
-
import { createHeliaNode } from
|
|
9
|
-
import { createKuboNode } from
|
|
8
|
+
import { createHeliaNode } from "./fixtures/create-helia.js";
|
|
9
|
+
import { createKuboNode } from "./fixtures/create-kubo.js";
|
|
10
10
|
describe('@helia/car', () => {
|
|
11
11
|
let helia;
|
|
12
12
|
let c;
|
|
@@ -2,8 +2,8 @@ import { dagCbor } from '@helia/dag-cbor';
|
|
|
2
2
|
import * as codec from '@ipld/dag-cbor';
|
|
3
3
|
import { expect } from 'aegir/chai';
|
|
4
4
|
import { CID } from 'multiformats/cid';
|
|
5
|
-
import { createHeliaNode } from
|
|
6
|
-
import { createKuboNode } from
|
|
5
|
+
import { createHeliaNode } from "./fixtures/create-helia.js";
|
|
6
|
+
import { createKuboNode } from "./fixtures/create-kubo.js";
|
|
7
7
|
describe('@helia/dag-cbor', () => {
|
|
8
8
|
let helia;
|
|
9
9
|
let d;
|
|
@@ -2,8 +2,8 @@ import { dagJson } from '@helia/dag-json';
|
|
|
2
2
|
import { expect } from 'aegir/chai';
|
|
3
3
|
import { CID } from 'multiformats/cid';
|
|
4
4
|
import * as codec from 'multiformats/codecs/json';
|
|
5
|
-
import { createHeliaNode } from
|
|
6
|
-
import { createKuboNode } from
|
|
5
|
+
import { createHeliaNode } from "./fixtures/create-helia.js";
|
|
6
|
+
import { createKuboNode } from "./fixtures/create-kubo.js";
|
|
7
7
|
describe('@helia/dag-json', () => {
|
|
8
8
|
let helia;
|
|
9
9
|
let d;
|
package/dist/src/dnslink.spec.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { dnsLink } from '@helia/dnslink';
|
|
2
2
|
import { expect } from 'aegir/chai';
|
|
3
|
-
import { createHeliaNode } from
|
|
3
|
+
import { createHeliaNode } from "./fixtures/create-helia.js";
|
|
4
4
|
const TEST_DOMAINS = [
|
|
5
5
|
'ipfs.tech',
|
|
6
6
|
'docs.ipfs.tech',
|
|
@@ -4,8 +4,8 @@ import { multiaddr } from '@multiformats/multiaddr';
|
|
|
4
4
|
import { expect } from 'aegir/chai';
|
|
5
5
|
import toBuffer from 'it-to-buffer';
|
|
6
6
|
import { CID } from 'multiformats/cid';
|
|
7
|
-
import { createHeliaNode } from
|
|
8
|
-
import { createKuboNode } from
|
|
7
|
+
import { createHeliaNode } from "./fixtures/create-helia.js";
|
|
8
|
+
import { createKuboNode } from "./fixtures/create-kubo.js";
|
|
9
9
|
describe('helia - blockstore sessions', () => {
|
|
10
10
|
let helia;
|
|
11
11
|
let kubo;
|
|
@@ -4,8 +4,8 @@ import toBuffer from 'it-to-buffer';
|
|
|
4
4
|
import { CID } from 'multiformats/cid';
|
|
5
5
|
import * as raw from 'multiformats/codecs/raw';
|
|
6
6
|
import { sha256 } from 'multiformats/hashes/sha2';
|
|
7
|
-
import { createHeliaNode } from
|
|
8
|
-
import { createKuboNode } from
|
|
7
|
+
import { createHeliaNode } from "./fixtures/create-helia.js";
|
|
8
|
+
import { createKuboNode } from "./fixtures/create-kubo.js";
|
|
9
9
|
describe('helia - blockstore', () => {
|
|
10
10
|
let helia;
|
|
11
11
|
let kubo;
|
|
@@ -4,8 +4,8 @@ import toBuffer from 'it-to-buffer';
|
|
|
4
4
|
import { CID } from 'multiformats/cid';
|
|
5
5
|
import * as raw from 'multiformats/codecs/raw';
|
|
6
6
|
import { identity } from 'multiformats/hashes/identity';
|
|
7
|
-
import { createHeliaNode } from
|
|
8
|
-
import { createKuboNode } from
|
|
7
|
+
import { createHeliaNode } from "./fixtures/create-helia.js";
|
|
8
|
+
import { createKuboNode } from "./fixtures/create-kubo.js";
|
|
9
9
|
describe('helia - hashes', () => {
|
|
10
10
|
let helia;
|
|
11
11
|
let kubo;
|
|
@@ -4,8 +4,8 @@ import drain from 'it-drain';
|
|
|
4
4
|
import { CID } from 'multiformats/cid';
|
|
5
5
|
import * as raw from 'multiformats/codecs/raw';
|
|
6
6
|
import { sha256 } from 'multiformats/hashes/sha2';
|
|
7
|
-
import { createHeliaNode } from
|
|
8
|
-
import { createKuboNode } from
|
|
7
|
+
import { createHeliaNode } from "./fixtures/create-helia.js";
|
|
8
|
+
import { createKuboNode } from "./fixtures/create-kubo.js";
|
|
9
9
|
describe('helia - pins', () => {
|
|
10
10
|
let helia;
|
|
11
11
|
let kubo;
|
|
@@ -5,7 +5,7 @@ import { peerIdFromCID } from '@libp2p/peer-id';
|
|
|
5
5
|
import { expect } from 'aegir/chai';
|
|
6
6
|
import { CID } from 'multiformats/cid';
|
|
7
7
|
import { isNode } from 'wherearewe';
|
|
8
|
-
import { createKuboNode } from
|
|
8
|
+
import { createKuboNode } from "./fixtures/create-kubo.js";
|
|
9
9
|
describe('@helia/ipns - http', () => {
|
|
10
10
|
let helia;
|
|
11
11
|
let kubo;
|
|
@@ -15,11 +15,11 @@ import { sha256 } from 'multiformats/hashes/sha2';
|
|
|
15
15
|
import { concat as uint8ArrayConcat } from 'uint8arrays/concat';
|
|
16
16
|
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string';
|
|
17
17
|
import { toString as uint8ArrayToString } from 'uint8arrays/to-string';
|
|
18
|
-
import { connect } from
|
|
19
|
-
import { createHeliaNode } from
|
|
20
|
-
import { createKuboNode } from
|
|
21
|
-
import { keyTypes } from
|
|
22
|
-
import { waitFor } from
|
|
18
|
+
import { connect } from "./fixtures/connect.js";
|
|
19
|
+
import { createHeliaNode } from "./fixtures/create-helia.js";
|
|
20
|
+
import { createKuboNode } from "./fixtures/create-kubo.js";
|
|
21
|
+
import { keyTypes } from "./fixtures/key-types.js";
|
|
22
|
+
import { waitFor } from "./fixtures/wait-for.js";
|
|
23
23
|
// skip RSA tests because we need the DHT enabled to find the public key
|
|
24
24
|
// component of the keypair, but that means we can't test pubsub
|
|
25
25
|
// resolution because Kubo will use the DHT as well
|
package/dist/src/ipns.spec.js
CHANGED
|
@@ -8,12 +8,12 @@ import { CID } from 'multiformats/cid';
|
|
|
8
8
|
import * as raw from 'multiformats/codecs/raw';
|
|
9
9
|
import { sha256 } from 'multiformats/hashes/sha2';
|
|
10
10
|
import { isElectronMain } from 'wherearewe';
|
|
11
|
-
import { connect } from
|
|
12
|
-
import { createHeliaNode } from
|
|
13
|
-
import { createKuboNode } from
|
|
14
|
-
import { sortClosestPeers } from
|
|
15
|
-
import { keyTypes } from
|
|
16
|
-
import { waitFor } from
|
|
11
|
+
import { connect } from "./fixtures/connect.js";
|
|
12
|
+
import { createHeliaNode } from "./fixtures/create-helia.js";
|
|
13
|
+
import { createKuboNode } from "./fixtures/create-kubo.js";
|
|
14
|
+
import { sortClosestPeers } from "./fixtures/create-peer-ids.js";
|
|
15
|
+
import { keyTypes } from "./fixtures/key-types.js";
|
|
16
|
+
import { waitFor } from "./fixtures/wait-for.js";
|
|
17
17
|
keyTypes.forEach(type => {
|
|
18
18
|
describe(`@helia/ipns - default routing with ${type} keys`, () => {
|
|
19
19
|
let helia;
|
package/dist/src/json.spec.js
CHANGED
|
@@ -2,8 +2,8 @@ import { json } from '@helia/json';
|
|
|
2
2
|
import { expect } from 'aegir/chai';
|
|
3
3
|
import { CID } from 'multiformats/cid';
|
|
4
4
|
import * as jsonCodec from 'multiformats/codecs/json';
|
|
5
|
-
import { createHeliaNode } from
|
|
6
|
-
import { createKuboNode } from
|
|
5
|
+
import { createHeliaNode } from "./fixtures/create-helia.js";
|
|
6
|
+
import { createKuboNode } from "./fixtures/create-kubo.js";
|
|
7
7
|
describe('@helia/json', () => {
|
|
8
8
|
let helia;
|
|
9
9
|
let j;
|
package/dist/src/mfs.spec.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { mfs } from '@helia/mfs';
|
|
2
2
|
import { expect } from 'aegir/chai';
|
|
3
|
-
import { createHeliaNode } from
|
|
4
|
-
import { createKuboNode } from
|
|
3
|
+
import { createHeliaNode } from "./fixtures/create-helia.js";
|
|
4
|
+
import { createKuboNode } from "./fixtures/create-kubo.js";
|
|
5
5
|
describe('@helia/mfs', () => {
|
|
6
6
|
let helia;
|
|
7
7
|
let fs;
|
|
@@ -11,8 +11,8 @@ import drain from 'it-drain';
|
|
|
11
11
|
import toBuffer from 'it-to-buffer';
|
|
12
12
|
import { multiaddr } from 'kubo-rpc-client';
|
|
13
13
|
import { CID } from 'multiformats/cid';
|
|
14
|
-
import { createHeliaNode } from
|
|
15
|
-
import { createKuboNode } from
|
|
14
|
+
import { createHeliaNode } from "./fixtures/create-helia.js";
|
|
15
|
+
import { createKuboNode } from "./fixtures/create-kubo.js";
|
|
16
16
|
describe('providers', () => {
|
|
17
17
|
let helia;
|
|
18
18
|
let kubo;
|
package/dist/src/strings.spec.js
CHANGED
|
@@ -3,8 +3,8 @@ import { expect } from 'aegir/chai';
|
|
|
3
3
|
import { CID } from 'multiformats/cid';
|
|
4
4
|
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string';
|
|
5
5
|
import { toString as uint8ArrayToString } from 'uint8arrays/to-string';
|
|
6
|
-
import { createHeliaNode } from
|
|
7
|
-
import { createKuboNode } from
|
|
6
|
+
import { createHeliaNode } from "./fixtures/create-helia.js";
|
|
7
|
+
import { createKuboNode } from "./fixtures/create-kubo.js";
|
|
8
8
|
describe('@helia/strings', () => {
|
|
9
9
|
let helia;
|
|
10
10
|
let str;
|
|
@@ -2,8 +2,8 @@ import { unixfs } from '@helia/unixfs';
|
|
|
2
2
|
import { expect } from 'aegir/chai';
|
|
3
3
|
import toBuffer from 'it-to-buffer';
|
|
4
4
|
import { CID } from 'multiformats/cid';
|
|
5
|
-
import { createHeliaNode } from
|
|
6
|
-
import { createKuboNode } from
|
|
5
|
+
import { createHeliaNode } from "./fixtures/create-helia.js";
|
|
6
|
+
import { createKuboNode } from "./fixtures/create-kubo.js";
|
|
7
7
|
describe('@helia/unixfs - bitswap', () => {
|
|
8
8
|
let helia;
|
|
9
9
|
let unixFs;
|
|
@@ -9,8 +9,8 @@ import last from 'it-last';
|
|
|
9
9
|
import toBuffer from 'it-to-buffer';
|
|
10
10
|
import { CID } from 'multiformats/cid';
|
|
11
11
|
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string';
|
|
12
|
-
import { createHeliaNode } from
|
|
13
|
-
import { createKuboNode } from
|
|
12
|
+
import { createHeliaNode } from "./fixtures/create-helia.js";
|
|
13
|
+
import { createKuboNode } from "./fixtures/create-kubo.js";
|
|
14
14
|
describe('@helia/unixfs - files', () => {
|
|
15
15
|
let helia;
|
|
16
16
|
let unixFs;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@helia/interop",
|
|
3
|
-
"version": "10.1.3-
|
|
3
|
+
"version": "10.1.3-9aff8d09",
|
|
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",
|
|
@@ -51,19 +51,19 @@
|
|
|
51
51
|
"test:electron-main": "aegir test -t electron-main"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@helia/block-brokers": "5.1.3-
|
|
55
|
-
"@helia/dnslink": "1.1.4-
|
|
56
|
-
"@helia/car": "5.3.9-
|
|
57
|
-
"@helia/dag-cbor": "5.0.7-
|
|
58
|
-
"@helia/dag-json": "5.0.7-
|
|
59
|
-
"@helia/http": "3.0.21-
|
|
60
|
-
"@helia/interface": "6.1.1-
|
|
61
|
-
"@helia/ipns": "9.1.9-
|
|
62
|
-
"@helia/json": "5.0.7-
|
|
63
|
-
"@helia/mfs": "7.0.4-
|
|
64
|
-
"@helia/routers": "5.0.3-
|
|
65
|
-
"@helia/strings": "5.0.7-
|
|
66
|
-
"@helia/unixfs": "7.0.4-
|
|
54
|
+
"@helia/block-brokers": "5.1.3-9aff8d09",
|
|
55
|
+
"@helia/dnslink": "1.1.4-9aff8d09",
|
|
56
|
+
"@helia/car": "5.3.9-9aff8d09",
|
|
57
|
+
"@helia/dag-cbor": "5.0.7-9aff8d09",
|
|
58
|
+
"@helia/dag-json": "5.0.7-9aff8d09",
|
|
59
|
+
"@helia/http": "3.0.21-9aff8d09",
|
|
60
|
+
"@helia/interface": "6.1.1-9aff8d09",
|
|
61
|
+
"@helia/ipns": "9.1.9-9aff8d09",
|
|
62
|
+
"@helia/json": "5.0.7-9aff8d09",
|
|
63
|
+
"@helia/mfs": "7.0.4-9aff8d09",
|
|
64
|
+
"@helia/routers": "5.0.3-9aff8d09",
|
|
65
|
+
"@helia/strings": "5.0.7-9aff8d09",
|
|
66
|
+
"@helia/unixfs": "7.0.4-9aff8d09",
|
|
67
67
|
"@ipld/car": "^5.4.2",
|
|
68
68
|
"@ipld/dag-cbor": "^9.2.5",
|
|
69
69
|
"@ipld/dag-pb": "^4.1.5",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"@multiformats/multiaddr": "^13.0.1",
|
|
79
79
|
"@multiformats/sha3": "^3.0.2",
|
|
80
80
|
"aegir": "^47.0.22",
|
|
81
|
-
"helia": "6.0.21-
|
|
81
|
+
"helia": "6.0.21-9aff8d09",
|
|
82
82
|
"ipfs-unixfs-importer": "^16.0.1",
|
|
83
83
|
"ipfsd-ctl": "^16.0.0",
|
|
84
84
|
"ipns": "^10.1.2",
|
package/src/car.spec.ts
CHANGED
|
@@ -5,8 +5,8 @@ import { expect } from 'aegir/chai'
|
|
|
5
5
|
import drain from 'it-drain'
|
|
6
6
|
import toBuffer from 'it-to-buffer'
|
|
7
7
|
import { CID } from 'multiformats/cid'
|
|
8
|
-
import { createHeliaNode } from './fixtures/create-helia.
|
|
9
|
-
import { createKuboNode } from './fixtures/create-kubo.
|
|
8
|
+
import { createHeliaNode } from './fixtures/create-helia.ts'
|
|
9
|
+
import { createKuboNode } from './fixtures/create-kubo.ts'
|
|
10
10
|
import type { Car } from '@helia/car'
|
|
11
11
|
import type { UnixFS } from '@helia/unixfs'
|
|
12
12
|
import type { Helia } from 'helia'
|
package/src/dag-cbor.spec.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { dagCbor } from '@helia/dag-cbor'
|
|
|
2
2
|
import * as codec from '@ipld/dag-cbor'
|
|
3
3
|
import { expect } from 'aegir/chai'
|
|
4
4
|
import { CID } from 'multiformats/cid'
|
|
5
|
-
import { createHeliaNode } from './fixtures/create-helia.
|
|
6
|
-
import { createKuboNode } from './fixtures/create-kubo.
|
|
5
|
+
import { createHeliaNode } from './fixtures/create-helia.ts'
|
|
6
|
+
import { createKuboNode } from './fixtures/create-kubo.ts'
|
|
7
7
|
import type { DAGCBOR, AddOptions } from '@helia/dag-cbor'
|
|
8
8
|
import type { Helia } from 'helia'
|
|
9
9
|
import type { KuboNode } from 'ipfsd-ctl'
|
package/src/dag-json.spec.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { dagJson } from '@helia/dag-json'
|
|
|
2
2
|
import { expect } from 'aegir/chai'
|
|
3
3
|
import { CID } from 'multiformats/cid'
|
|
4
4
|
import * as codec from 'multiformats/codecs/json'
|
|
5
|
-
import { createHeliaNode } from './fixtures/create-helia.
|
|
6
|
-
import { createKuboNode } from './fixtures/create-kubo.
|
|
5
|
+
import { createHeliaNode } from './fixtures/create-helia.ts'
|
|
6
|
+
import { createKuboNode } from './fixtures/create-kubo.ts'
|
|
7
7
|
import type { DAGJSON, AddOptions } from '@helia/dag-json'
|
|
8
8
|
import type { Helia } from 'helia'
|
|
9
9
|
import type { KuboNode } from 'ipfsd-ctl'
|
package/src/dnslink.spec.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { dnsLink } from '@helia/dnslink'
|
|
2
2
|
import { expect } from 'aegir/chai'
|
|
3
|
-
import { createHeliaNode } from './fixtures/create-helia.
|
|
3
|
+
import { createHeliaNode } from './fixtures/create-helia.ts'
|
|
4
4
|
import type { DNSLink } from '@helia/dnslink'
|
|
5
5
|
import type { DefaultLibp2pServices, Helia } from 'helia'
|
|
6
6
|
import type { Libp2p } from 'libp2p'
|
|
@@ -4,8 +4,8 @@ import { multiaddr } from '@multiformats/multiaddr'
|
|
|
4
4
|
import { expect } from 'aegir/chai'
|
|
5
5
|
import toBuffer from 'it-to-buffer'
|
|
6
6
|
import { CID } from 'multiformats/cid'
|
|
7
|
-
import { createHeliaNode } from './fixtures/create-helia.
|
|
8
|
-
import { createKuboNode } from './fixtures/create-kubo.
|
|
7
|
+
import { createHeliaNode } from './fixtures/create-helia.ts'
|
|
8
|
+
import { createKuboNode } from './fixtures/create-kubo.ts'
|
|
9
9
|
import type { BitswapProvider } from '@helia/block-brokers'
|
|
10
10
|
import type { Helia } from 'helia'
|
|
11
11
|
import type { KuboInfo, KuboNode } from 'ipfsd-ctl'
|
|
@@ -4,8 +4,8 @@ import toBuffer from 'it-to-buffer'
|
|
|
4
4
|
import { CID } from 'multiformats/cid'
|
|
5
5
|
import * as raw from 'multiformats/codecs/raw'
|
|
6
6
|
import { sha256 } from 'multiformats/hashes/sha2'
|
|
7
|
-
import { createHeliaNode } from './fixtures/create-helia.
|
|
8
|
-
import { createKuboNode } from './fixtures/create-kubo.
|
|
7
|
+
import { createHeliaNode } from './fixtures/create-helia.ts'
|
|
8
|
+
import { createKuboNode } from './fixtures/create-kubo.ts'
|
|
9
9
|
import type { Helia } from 'helia'
|
|
10
10
|
import type { KuboInfo, KuboNode } from 'ipfsd-ctl'
|
|
11
11
|
|
package/src/helia-hashes.spec.ts
CHANGED
|
@@ -4,8 +4,8 @@ import toBuffer from 'it-to-buffer'
|
|
|
4
4
|
import { CID } from 'multiformats/cid'
|
|
5
5
|
import * as raw from 'multiformats/codecs/raw'
|
|
6
6
|
import { identity } from 'multiformats/hashes/identity'
|
|
7
|
-
import { createHeliaNode } from './fixtures/create-helia.
|
|
8
|
-
import { createKuboNode } from './fixtures/create-kubo.
|
|
7
|
+
import { createHeliaNode } from './fixtures/create-helia.ts'
|
|
8
|
+
import { createKuboNode } from './fixtures/create-kubo.ts'
|
|
9
9
|
import type { Helia } from 'helia'
|
|
10
10
|
import type { KuboNode } from 'ipfsd-ctl'
|
|
11
11
|
|
package/src/helia-pins.spec.ts
CHANGED
|
@@ -4,8 +4,8 @@ import drain from 'it-drain'
|
|
|
4
4
|
import { CID } from 'multiformats/cid'
|
|
5
5
|
import * as raw from 'multiformats/codecs/raw'
|
|
6
6
|
import { sha256 } from 'multiformats/hashes/sha2'
|
|
7
|
-
import { createHeliaNode } from './fixtures/create-helia.
|
|
8
|
-
import { createKuboNode } from './fixtures/create-kubo.
|
|
7
|
+
import { createHeliaNode } from './fixtures/create-helia.ts'
|
|
8
|
+
import { createKuboNode } from './fixtures/create-kubo.ts'
|
|
9
9
|
import type { Helia } from 'helia'
|
|
10
10
|
import type { KuboNode } from 'ipfsd-ctl'
|
|
11
11
|
|
package/src/ipns-http.spec.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { peerIdFromCID } from '@libp2p/peer-id'
|
|
|
5
5
|
import { expect } from 'aegir/chai'
|
|
6
6
|
import { CID } from 'multiformats/cid'
|
|
7
7
|
import { isNode } from 'wherearewe'
|
|
8
|
-
import { createKuboNode } from './fixtures/create-kubo.
|
|
8
|
+
import { createKuboNode } from './fixtures/create-kubo.ts'
|
|
9
9
|
import type { Helia } from '@helia/interface'
|
|
10
10
|
import type { IPNS } from '@helia/ipns'
|
|
11
11
|
import type { KuboNode } from 'ipfsd-ctl'
|
package/src/ipns-pubsub.spec.ts
CHANGED
|
@@ -16,11 +16,11 @@ import { sha256 } from 'multiformats/hashes/sha2'
|
|
|
16
16
|
import { concat as uint8ArrayConcat } from 'uint8arrays/concat'
|
|
17
17
|
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
|
|
18
18
|
import { toString as uint8ArrayToString } from 'uint8arrays/to-string'
|
|
19
|
-
import { connect } from './fixtures/connect.
|
|
20
|
-
import { createHeliaNode } from './fixtures/create-helia.
|
|
21
|
-
import { createKuboNode } from './fixtures/create-kubo.
|
|
22
|
-
import { keyTypes } from './fixtures/key-types.
|
|
23
|
-
import { waitFor } from './fixtures/wait-for.
|
|
19
|
+
import { connect } from './fixtures/connect.ts'
|
|
20
|
+
import { createHeliaNode } from './fixtures/create-helia.ts'
|
|
21
|
+
import { createKuboNode } from './fixtures/create-kubo.ts'
|
|
22
|
+
import { keyTypes } from './fixtures/key-types.ts'
|
|
23
|
+
import { waitFor } from './fixtures/wait-for.ts'
|
|
24
24
|
import type { IPNS, ResolveResult } from '@helia/ipns'
|
|
25
25
|
import type { PubSub } from '@helia/ipns/routing'
|
|
26
26
|
import type { Libp2p } from '@libp2p/interface'
|
package/src/ipns.spec.ts
CHANGED
|
@@ -8,12 +8,12 @@ import { CID } from 'multiformats/cid'
|
|
|
8
8
|
import * as raw from 'multiformats/codecs/raw'
|
|
9
9
|
import { sha256 } from 'multiformats/hashes/sha2'
|
|
10
10
|
import { isElectronMain } from 'wherearewe'
|
|
11
|
-
import { connect } from './fixtures/connect.
|
|
12
|
-
import { createHeliaNode } from './fixtures/create-helia.
|
|
13
|
-
import { createKuboNode } from './fixtures/create-kubo.
|
|
14
|
-
import { sortClosestPeers } from './fixtures/create-peer-ids.
|
|
15
|
-
import { keyTypes } from './fixtures/key-types.
|
|
16
|
-
import { waitFor } from './fixtures/wait-for.
|
|
11
|
+
import { connect } from './fixtures/connect.ts'
|
|
12
|
+
import { createHeliaNode } from './fixtures/create-helia.ts'
|
|
13
|
+
import { createKuboNode } from './fixtures/create-kubo.ts'
|
|
14
|
+
import { sortClosestPeers } from './fixtures/create-peer-ids.ts'
|
|
15
|
+
import { keyTypes } from './fixtures/key-types.ts'
|
|
16
|
+
import { waitFor } from './fixtures/wait-for.ts'
|
|
17
17
|
import type { IPNS } from '@helia/ipns'
|
|
18
18
|
import type { Libp2p, PrivateKey } from '@libp2p/interface'
|
|
19
19
|
import type { DefaultLibp2pServices, Helia } from 'helia'
|
package/src/json.spec.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { json } from '@helia/json'
|
|
|
2
2
|
import { expect } from 'aegir/chai'
|
|
3
3
|
import { CID } from 'multiformats/cid'
|
|
4
4
|
import * as jsonCodec from 'multiformats/codecs/json'
|
|
5
|
-
import { createHeliaNode } from './fixtures/create-helia.
|
|
6
|
-
import { createKuboNode } from './fixtures/create-kubo.
|
|
5
|
+
import { createHeliaNode } from './fixtures/create-helia.ts'
|
|
6
|
+
import { createKuboNode } from './fixtures/create-kubo.ts'
|
|
7
7
|
import type { JSON, AddOptions } from '@helia/json'
|
|
8
8
|
import type { Helia } from 'helia'
|
|
9
9
|
import type { KuboNode } from 'ipfsd-ctl'
|
package/src/mfs.spec.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { mfs } from '@helia/mfs'
|
|
2
2
|
import { expect } from 'aegir/chai'
|
|
3
|
-
import { createHeliaNode } from './fixtures/create-helia.
|
|
4
|
-
import { createKuboNode } from './fixtures/create-kubo.
|
|
3
|
+
import { createHeliaNode } from './fixtures/create-helia.ts'
|
|
4
|
+
import { createKuboNode } from './fixtures/create-kubo.ts'
|
|
5
5
|
import type { MFS } from '@helia/mfs'
|
|
6
6
|
import type { Helia } from 'helia'
|
|
7
7
|
import type { KuboNode } from 'ipfsd-ctl'
|
package/src/providers.spec.ts
CHANGED
|
@@ -11,8 +11,8 @@ import drain from 'it-drain'
|
|
|
11
11
|
import toBuffer from 'it-to-buffer'
|
|
12
12
|
import { multiaddr } from 'kubo-rpc-client'
|
|
13
13
|
import { CID } from 'multiformats/cid'
|
|
14
|
-
import { createHeliaNode } from './fixtures/create-helia.
|
|
15
|
-
import { createKuboNode } from './fixtures/create-kubo.
|
|
14
|
+
import { createHeliaNode } from './fixtures/create-helia.ts'
|
|
15
|
+
import { createKuboNode } from './fixtures/create-kubo.ts'
|
|
16
16
|
import type { PeerId } from '@libp2p/interface'
|
|
17
17
|
import type { Helia } from 'helia'
|
|
18
18
|
import type { FileCandidate } from 'ipfs-unixfs-importer'
|
package/src/strings.spec.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { expect } from 'aegir/chai'
|
|
|
3
3
|
import { CID } from 'multiformats/cid'
|
|
4
4
|
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
|
|
5
5
|
import { toString as uint8ArrayToString } from 'uint8arrays/to-string'
|
|
6
|
-
import { createHeliaNode } from './fixtures/create-helia.
|
|
7
|
-
import { createKuboNode } from './fixtures/create-kubo.
|
|
6
|
+
import { createHeliaNode } from './fixtures/create-helia.ts'
|
|
7
|
+
import { createKuboNode } from './fixtures/create-kubo.ts'
|
|
8
8
|
import type { Strings, AddOptions } from '@helia/strings'
|
|
9
9
|
import type { Helia } from 'helia'
|
|
10
10
|
import type { KuboNode } from 'ipfsd-ctl'
|
|
@@ -2,8 +2,8 @@ import { unixfs } from '@helia/unixfs'
|
|
|
2
2
|
import { expect } from 'aegir/chai'
|
|
3
3
|
import toBuffer from 'it-to-buffer'
|
|
4
4
|
import { CID } from 'multiformats/cid'
|
|
5
|
-
import { createHeliaNode } from './fixtures/create-helia.
|
|
6
|
-
import { createKuboNode } from './fixtures/create-kubo.
|
|
5
|
+
import { createHeliaNode } from './fixtures/create-helia.ts'
|
|
6
|
+
import { createKuboNode } from './fixtures/create-kubo.ts'
|
|
7
7
|
import type { UnixFS } from '@helia/unixfs'
|
|
8
8
|
import type { Helia } from 'helia'
|
|
9
9
|
import type { ByteStream, FileCandidate } from 'ipfs-unixfs-importer'
|
package/src/unixfs-files.spec.ts
CHANGED
|
@@ -9,8 +9,8 @@ import last from 'it-last'
|
|
|
9
9
|
import toBuffer from 'it-to-buffer'
|
|
10
10
|
import { CID } from 'multiformats/cid'
|
|
11
11
|
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
|
|
12
|
-
import { createHeliaNode } from './fixtures/create-helia.
|
|
13
|
-
import { createKuboNode } from './fixtures/create-kubo.
|
|
12
|
+
import { createHeliaNode } from './fixtures/create-helia.ts'
|
|
13
|
+
import { createKuboNode } from './fixtures/create-kubo.ts'
|
|
14
14
|
import type { AddOptions, UnixFS } from '@helia/unixfs'
|
|
15
15
|
import type { Helia } from 'helia'
|
|
16
16
|
import type { ByteStream, ImportCandidateStream } from 'ipfs-unixfs-importer'
|