From d994859662cd53ef20f93b1546b71edcd41b805d Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Tue, 15 Aug 2023 18:21:05 +0100 Subject: [PATCH] deps: update uint8-varint (#1971) The new version is much faster --- packages/peer-record/package.json | 2 +- packages/peer-record/src/envelope/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/peer-record/package.json b/packages/peer-record/package.json index e06e6f5eff..4c88c7d0c3 100644 --- a/packages/peer-record/package.json +++ b/packages/peer-record/package.json @@ -61,7 +61,7 @@ "@libp2p/utils": "^4.0.2", "@multiformats/multiaddr": "^12.1.5", "protons-runtime": "^5.0.0", - "uint8-varint": "^1.0.2", + "uint8-varint": "^2.0.0", "uint8arraylist": "^2.4.3", "uint8arrays": "^4.0.6" }, diff --git a/packages/peer-record/src/envelope/index.ts b/packages/peer-record/src/envelope/index.ts index 2210be9bca..3506932b8c 100644 --- a/packages/peer-record/src/envelope/index.ts +++ b/packages/peer-record/src/envelope/index.ts @@ -1,7 +1,7 @@ import { unmarshalPrivateKey, unmarshalPublicKey } from '@libp2p/crypto/keys' import { CodeError } from '@libp2p/interface/errors' import { peerIdFromKeys } from '@libp2p/peer-id' -import { unsigned } from 'uint8-varint' +import * as unsigned from 'uint8-varint' import { Uint8ArrayList } from 'uint8arraylist' import { equals as uint8ArrayEquals } from 'uint8arrays/equals' import { fromString as uint8arraysFromString } from 'uint8arrays/from-string'