This repository was archived by the owner on Feb 28, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { noise } from '@chainsafe/libp2p-noise'
2
2
import { yamux } from '@chainsafe/libp2p-yamux'
3
+ import { identify } from '@libp2p/identify'
3
4
import { webSockets } from '@libp2p/websockets'
4
5
import { all } from '@libp2p/websockets/filters'
5
6
import { MemoryBlockstore } from 'blockstore-core'
6
7
import { MemoryDatastore } from 'datastore-core'
7
8
import { createHelia } from 'helia'
8
9
import { createLibp2p , type Libp2pOptions } from 'libp2p'
9
- import { identify } from '@libp2p/identify'
10
10
import type { Helia } from '@helia/interface'
11
11
12
12
export async function createHeliaNode ( config : Libp2pOptions = { } ) : Promise < Helia > {
Original file line number Diff line number Diff line change 1
1
import { noise } from '@chainsafe/libp2p-noise'
2
2
import { yamux } from '@chainsafe/libp2p-yamux'
3
+ import { identify } from '@libp2p/identify'
3
4
import { tcp } from '@libp2p/tcp'
4
5
import { MemoryBlockstore } from 'blockstore-core'
5
6
import { MemoryDatastore } from 'datastore-core'
6
7
import { createHelia } from 'helia'
7
8
import { createLibp2p , type Libp2pOptions } from 'libp2p'
8
- import { identify } from '@libp2p/identify'
9
9
import type { Helia } from '@helia/interface'
10
10
11
11
export async function createHeliaNode ( config : Libp2pOptions = { } ) : Promise < Helia > {
Original file line number Diff line number Diff line change 2
2
3
3
import { strings , type Strings , type AddOptions } from '@helia/strings'
4
4
import { expect } from 'aegir/chai'
5
+ import { CID } from 'multiformats/cid'
5
6
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
6
7
import { toString as uint8ArrayToString } from 'uint8arrays/to-string'
7
8
import { createHeliaNode } from './fixtures/create-helia.js'
8
9
import { createKuboNode } from './fixtures/create-kubo.js'
9
10
import type { Helia } from '@helia/interface'
10
11
import type { PutOptions as KuboAddOptions } from 'ipfs-core-types/src/block/index.js'
11
12
import type { Controller } from 'ipfsd-ctl'
12
- import { CID } from 'multiformats/cid'
13
13
14
14
describe ( 'strings interop' , ( ) => {
15
15
let helia : Helia
You can’t perform that action at this time.
0 commit comments