Skip to content

Commit

Permalink
chore: update imports and deps
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Jan 17, 2024
1 parent f21659a commit d7b36c4
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@
"@noble/ciphers": "^0.4.0",
"@noble/curves": "^1.1.0",
"@noble/hashes": "^1.3.1",
"it-byte-stream": "^1.0.0",
"it-length-prefixed": "^9.0.1",
"it-length-prefixed-stream": "^1.0.0",
"it-pair": "^2.0.6",
Expand All @@ -102,6 +101,7 @@
"execa": "^8.0.1",
"go-libp2p": "^1.0.3",
"iso-random-stream": "^2.0.2",
"it-byte-stream": "^1.0.0",
"libp2p": "^1.0.8",
"mkdirp": "^3.0.0",
"p-defer": "^4.0.0",
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/peer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createEd25519PeerId, createFromJSON } from '@libp2p/peer-id-factory'
import type { PeerId } from '@libp2p/interface/peer-id'
import type { PeerId } from '@libp2p/interface'

// ed25519 keys
const peers = [{
Expand Down
2 changes: 1 addition & 1 deletion test/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
import { noise } from '../src/index.js'
import { Noise } from '../src/noise.js'
import { createPeerIdsFromFixtures } from './fixtures/peer.js'
import type { Metrics } from '@libp2p/interface/metrics'
import type { Metrics } from '@libp2p/interface'
import type { Uint8ArrayList } from 'uint8arraylist'

function createCounterSpy (): ReturnType<typeof sinon.spy> {
Expand Down
2 changes: 1 addition & 1 deletion test/interop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { path as p2pd } from 'go-libp2p'
import { createLibp2p, type Libp2pOptions } from 'libp2p'
import pDefer from 'p-defer'
import { noise } from '../src/index.js'
import type { PeerId } from '@libp2p/interface/peer-id'
import type { PeerId } from '@libp2p/interface'
import type { SpawnOptions, Daemon, DaemonFactory } from '@libp2p/interop'

async function createGoPeer (options: SpawnOptions): Promise<Daemon> {
Expand Down
2 changes: 1 addition & 1 deletion test/noise.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { toString as uint8ArrayToString } from 'uint8arrays/to-string'
import { pureJsCrypto } from '../src/crypto/js.js'
import { Noise } from '../src/noise.js'
import { createPeerIdsFromFixtures } from './fixtures/peer.js'
import type { PeerId } from '@libp2p/interface/peer-id'
import type { PeerId } from '@libp2p/interface'
import type { Uint8ArrayList } from 'uint8arraylist'

describe('Noise', () => {
Expand Down
3 changes: 1 addition & 2 deletions test/performHandshake.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ import { defaultCrypto } from '../src/crypto/index.js'
import { wrapCrypto } from '../src/crypto.js'
import { performHandshakeInitiator, performHandshakeResponder } from '../src/performHandshake.js'
import { createPeerIdsFromFixtures } from './fixtures/peer.js'
import type { PrivateKey } from '@libp2p/interface'
import type { PeerId } from '@libp2p/interface/peer-id'
import type { PrivateKey, PeerId } from '@libp2p/interface'

describe('performHandshake', () => {
let peerA: PeerId, peerB: PeerId, fakePeer: PeerId
Expand Down
3 changes: 1 addition & 2 deletions test/utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { keys } from '@libp2p/crypto'
import type { KeyPair } from '../src/types.js'
import type { PrivateKey } from '@libp2p/interface/keys'
import type { PeerId } from '@libp2p/interface/peer-id'
import type { PrivateKey, PeerId } from '@libp2p/interface'

export async function generateEd25519Keys (): Promise<PrivateKey> {
return keys.generateKeyPair('Ed25519', 32)
Expand Down

0 comments on commit d7b36c4

Please sign in to comment.