File tree Expand file tree Collapse file tree 7 files changed +8
-10
lines changed Expand file tree Collapse file tree 7 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 75
75
"@noble/ciphers" : " ^0.4.0" ,
76
76
"@noble/curves" : " ^1.1.0" ,
77
77
"@noble/hashes" : " ^1.3.1" ,
78
- "it-byte-stream" : " ^1.0.0" ,
79
78
"it-length-prefixed" : " ^9.0.1" ,
80
79
"it-length-prefixed-stream" : " ^1.0.0" ,
81
80
"it-pair" : " ^2.0.6" ,
97
96
"@libp2p/tcp" : " ^9.0.0" ,
98
97
"@multiformats/multiaddr" : " ^12.1.0" ,
99
98
"@types/sinon" : " ^17.0.1" ,
100
- "aegir" : " ^41.1.10 " ,
99
+ "aegir" : " ^42.2.0 " ,
101
100
"benchmark" : " ^2.1.4" ,
102
101
"execa" : " ^8.0.1" ,
103
102
"go-libp2p" : " ^1.0.3" ,
104
103
"iso-random-stream" : " ^2.0.2" ,
104
+ "it-byte-stream" : " ^1.0.0" ,
105
105
"libp2p" : " ^1.0.8" ,
106
106
"mkdirp" : " ^3.0.0" ,
107
107
"p-defer" : " ^4.0.0" ,
Original file line number Diff line number Diff line change 1
1
import { createEd25519PeerId , createFromJSON } from '@libp2p/peer-id-factory'
2
- import type { PeerId } from '@libp2p/interface/peer-id '
2
+ import type { PeerId } from '@libp2p/interface'
3
3
4
4
// ed25519 keys
5
5
const peers = [ {
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
7
7
import { noise } from '../src/index.js'
8
8
import { Noise } from '../src/noise.js'
9
9
import { createPeerIdsFromFixtures } from './fixtures/peer.js'
10
- import type { Metrics } from '@libp2p/interface/metrics '
10
+ import type { Metrics } from '@libp2p/interface'
11
11
import type { Uint8ArrayList } from 'uint8arraylist'
12
12
13
13
function createCounterSpy ( ) : ReturnType < typeof sinon . spy > {
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import { path as p2pd } from 'go-libp2p'
13
13
import { createLibp2p , type Libp2pOptions } from 'libp2p'
14
14
import pDefer from 'p-defer'
15
15
import { noise } from '../src/index.js'
16
- import type { PeerId } from '@libp2p/interface/peer-id '
16
+ import type { PeerId } from '@libp2p/interface'
17
17
import type { SpawnOptions , Daemon , DaemonFactory } from '@libp2p/interop'
18
18
19
19
async function createGoPeer ( options : SpawnOptions ) : Promise < Daemon > {
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import { toString as uint8ArrayToString } from 'uint8arrays/to-string'
11
11
import { pureJsCrypto } from '../src/crypto/js.js'
12
12
import { Noise } from '../src/noise.js'
13
13
import { createPeerIdsFromFixtures } from './fixtures/peer.js'
14
- import type { PeerId } from '@libp2p/interface/peer-id '
14
+ import type { PeerId } from '@libp2p/interface'
15
15
import type { Uint8ArrayList } from 'uint8arraylist'
16
16
17
17
describe ( 'Noise' , ( ) => {
Original file line number Diff line number Diff line change @@ -10,8 +10,7 @@ import { defaultCrypto } from '../src/crypto/index.js'
10
10
import { wrapCrypto } from '../src/crypto.js'
11
11
import { performHandshakeInitiator , performHandshakeResponder } from '../src/performHandshake.js'
12
12
import { createPeerIdsFromFixtures } from './fixtures/peer.js'
13
- import type { PrivateKey } from '@libp2p/interface'
14
- import type { PeerId } from '@libp2p/interface/peer-id'
13
+ import type { PrivateKey , PeerId } from '@libp2p/interface'
15
14
16
15
describe ( 'performHandshake' , ( ) => {
17
16
let peerA : PeerId , peerB : PeerId , fakePeer : PeerId
Original file line number Diff line number Diff line change 1
1
import { keys } from '@libp2p/crypto'
2
2
import type { KeyPair } from '../src/types.js'
3
- import type { PrivateKey } from '@libp2p/interface/keys'
4
- import type { PeerId } from '@libp2p/interface/peer-id'
3
+ import type { PrivateKey , PeerId } from '@libp2p/interface'
5
4
6
5
export async function generateEd25519Keys ( ) : Promise < PrivateKey > {
7
6
return keys . generateKeyPair ( 'Ed25519' , 32 )
You can’t perform that action at this time.
0 commit comments