@libp2p/keychain
Advanced tools
Comparing version 5.0.1 to 5.0.2
@@ -166,3 +166,3 @@ /* eslint max-nested-callbacks: ["error", 5] */ | ||
async importKey(name, key) { | ||
if (!validateKeyName(name) || name === 'self') { | ||
if (!validateKeyName(name)) { | ||
await randomDelay(); | ||
@@ -169,0 +169,0 @@ throw new InvalidParametersError(`Invalid key name '${name}'`); |
{ | ||
"name": "@libp2p/keychain", | ||
"version": "5.0.1", | ||
"version": "5.0.2", | ||
"description": "Key management and cryptographically protected messages", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0 OR MIT", |
@@ -199,3 +199,3 @@ /* eslint max-nested-callbacks: ["error", 5] */ | ||
async importKey (name: string, key: PrivateKey): Promise<KeyInfo> { | ||
if (!validateKeyName(name) || name === 'self') { | ||
if (!validateKeyName(name)) { | ||
await randomDelay() | ||
@@ -202,0 +202,0 @@ throw new InvalidParametersError(`Invalid key name '${name}'`) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
259406