From ba3ac38c79e9449a75c0a54fefe289ee9e2c78fb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 15 Jun 2023 14:57:48 +0200 Subject: [PATCH] deps(dev): bump aegir from 38.1.8 to 39.0.10 (#64) * deps(dev): bump aegir from 38.1.8 to 39.0.10 Bumps [aegir](https://github.com/ipfs/aegir) from 38.1.8 to 39.0.10. - [Release notes](https://github.com/ipfs/aegir/releases) - [Changelog](https://github.com/ipfs/aegir/blob/master/CHANGELOG.md) - [Commits](https://github.com/ipfs/aegir/compare/v38.1.8...v39.0.10) --- updated-dependencies: - dependency-name: aegir dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * chore: fix linting --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: achingbrain --- package.json | 2 +- src/envelope/index.ts | 12 ++++++------ src/peer-record/index.ts | 10 +++++----- test/envelope.spec.ts | 6 +++--- test/peer-record.spec.ts | 6 +++--- 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/package.json b/package.json index 546738b..b335481 100644 --- a/package.json +++ b/package.json @@ -162,7 +162,7 @@ "@libp2p/interface-record-compliance-tests": "^2.0.0", "@libp2p/peer-id-factory": "^2.0.0", "@types/varint": "^6.0.0", - "aegir": "^38.1.2", + "aegir": "^39.0.10", "protons": "^7.0.2" } } diff --git a/src/envelope/index.ts b/src/envelope/index.ts index e81ad79..6ef0d79 100644 --- a/src/envelope/index.ts +++ b/src/envelope/index.ts @@ -1,14 +1,14 @@ +import { unmarshalPrivateKey, unmarshalPublicKey } from '@libp2p/crypto/keys' import { CodeError } from '@libp2p/interfaces/errors' -import { fromString as uint8arraysFromString } from 'uint8arrays/from-string' +import { peerIdFromKeys } from '@libp2p/peer-id' +import { unsigned } from 'uint8-varint' +import { Uint8ArrayList } from 'uint8arraylist' import { equals as uint8ArrayEquals } from 'uint8arrays/equals' -import { unmarshalPrivateKey, unmarshalPublicKey } from '@libp2p/crypto/keys' +import { fromString as uint8arraysFromString } from 'uint8arrays/from-string' import { codes } from '../errors.js' import { Envelope as Protobuf } from './envelope.js' -import { peerIdFromKeys } from '@libp2p/peer-id' import type { PeerId } from '@libp2p/interface-peer-id' import type { Record, Envelope } from '@libp2p/interface-record' -import { Uint8ArrayList } from 'uint8arraylist' -import { unsigned } from 'uint8-varint' export interface RecordEnvelopeInit { peerId: PeerId @@ -130,7 +130,7 @@ export class RecordEnvelope implements Envelope { const key = unmarshalPublicKey(this.peerId.publicKey) - return await key.verify(signData.subarray(), this.signature) + return key.verify(signData.subarray(), this.signature) } } diff --git a/src/peer-record/index.ts b/src/peer-record/index.ts index a9979a6..bd93db0 100644 --- a/src/peer-record/index.ts +++ b/src/peer-record/index.ts @@ -1,13 +1,13 @@ -import type { Multiaddr } from '@multiformats/multiaddr' -import type { PeerId } from '@libp2p/interface-peer-id' -import { multiaddr } from '@multiformats/multiaddr' -import { arrayEquals } from '@libp2p/utils/array-equals' import { peerIdFromBytes } from '@libp2p/peer-id' -import { PeerRecord as Protobuf } from './peer-record.js' +import { arrayEquals } from '@libp2p/utils/array-equals' +import { multiaddr } from '@multiformats/multiaddr' import { ENVELOPE_DOMAIN_PEER_RECORD, ENVELOPE_PAYLOAD_TYPE_PEER_RECORD } from './consts.js' +import { PeerRecord as Protobuf } from './peer-record.js' +import type { PeerId } from '@libp2p/interface-peer-id' +import type { Multiaddr } from '@multiformats/multiaddr' import type { Uint8ArrayList } from 'uint8arraylist' export interface PeerRecordInit { diff --git a/test/envelope.spec.ts b/test/envelope.spec.ts index 0a68dc1..1f53628 100644 --- a/test/envelope.spec.ts +++ b/test/envelope.spec.ts @@ -1,11 +1,11 @@ +import { createEd25519PeerId } from '@libp2p/peer-id-factory' import { expect } from 'aegir/chai' -import { fromString as uint8arrayFromString } from 'uint8arrays/from-string' import { equals as uint8ArrayEquals } from 'uint8arrays/equals' +import { fromString as uint8arrayFromString } from 'uint8arrays/from-string' import { RecordEnvelope } from '../src/envelope/index.js' import { codes as ErrorCodes } from '../src/errors.js' -import { createEd25519PeerId } from '@libp2p/peer-id-factory' -import type { Record } from '@libp2p/interface-record' import type { PeerId } from '@libp2p/interface-peer-id' +import type { Record } from '@libp2p/interface-record' const domain = 'libp2p-testing' const codec = uint8arrayFromString('/libp2p/testdata') diff --git a/test/peer-record.spec.ts b/test/peer-record.spec.ts index dd552d6..f2fa396 100644 --- a/test/peer-record.spec.ts +++ b/test/peer-record.spec.ts @@ -1,13 +1,13 @@ /* eslint-env mocha */ -import { expect } from 'aegir/chai' +import { unmarshalPrivateKey } from '@libp2p/crypto/keys' import tests from '@libp2p/interface-record-compliance-tests' -import { multiaddr } from '@multiformats/multiaddr' import { peerIdFromKeys } from '@libp2p/peer-id' import { createEd25519PeerId } from '@libp2p/peer-id-factory' +import { multiaddr } from '@multiformats/multiaddr' +import { expect } from 'aegir/chai' import { RecordEnvelope } from '../src/envelope/index.js' import { PeerRecord } from '../src/peer-record/index.js' -import { unmarshalPrivateKey } from '@libp2p/crypto/keys' import type { PeerId } from '@libp2p/interface-peer-id' describe('interface-record compliance', () => {