From e7d0eaa796794e2d5c52c1d48cd5dbc77eaacd0d Mon Sep 17 00:00:00 2001 From: Vasco Santos Date: Tue, 26 Jan 2021 09:10:46 +0100 Subject: [PATCH] chore: update deps (#137) --- package.json | 16 ++++++++-------- src/index.js | 3 +++ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 5e3bdb6..8eec52c 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "bin": "src/bin.js", "scripts": { "lint": "aegir lint", - "build": "aegir build", + "build": "aegir build --no-types", "test": "aegir test", "test:node": "aegir test -t node", "test:browser": "aegir test -t browser -t webworker", @@ -36,19 +36,19 @@ }, "homepage": "https://github.com/libp2p/js-peer-id", "devDependencies": { - "@types/chai": "^4.2.7", + "@types/chai": "^4.2.14", "@types/dirty-chai": "^2.0.2", - "@types/mocha": "^8.0.1", - "aegir": "^25.0.0" + "@types/mocha": "^8.2.0", + "aegir": "^30.3.0" }, "dependencies": { - "cids": "^1.0.0", + "cids": "^1.1.5", "class-is": "^1.1.0", - "libp2p-crypto": "^0.18.0", + "libp2p-crypto": "^0.19.0", "minimist": "^1.2.5", - "multihashes": "^3.0.1", + "multihashes": "^3.1.1", "protons": "^2.0.0", - "uint8arrays": "^1.1.0" + "uint8arrays": "^2.0.5" }, "repository": { "type": "git", diff --git a/src/index.js b/src/index.js index 311f223..3b74dc3 100644 --- a/src/index.js +++ b/src/index.js @@ -144,6 +144,7 @@ class PeerId { /** * Checks the equality of `this` peer against a given PeerId. + * * @param {Uint8Array|PeerId} id * @returns {boolean} */ @@ -159,6 +160,7 @@ class PeerId { /** * Checks the equality of `this` peer against a given PeerId. + * * @deprecated Use `.equals` * @param {Uint8Array|PeerId} id * @returns {boolean} @@ -181,6 +183,7 @@ class PeerId { /** * Check if the PeerId has an inline public key. + * * @returns {boolean} */ hasInlinePublicKey () {