Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@libp2p/peer-id

Package Overview
Dependencies
Maintainers
4
Versions
552
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@libp2p/peer-id - npm Package Compare versions

Comparing version 1.1.14 to 1.1.15

3

dist/src/index.js

@@ -99,3 +99,2 @@ import { CID } from 'multiformats/cid';

export function peerIdFromPeerId(other) {
const err = errcode(new Error('Not a PeerId'), 'ERR_INVALID_PARAMETERS');
if (other.type === 'RSA') {

@@ -110,3 +109,3 @@ return new RSAPeerIdImpl(other);

}
throw err;
throw errcode(new Error('Not a PeerId'), 'ERR_INVALID_PARAMETERS');
}

@@ -113,0 +112,0 @@ export function peerIdFromString(str, decoder) {

{
"name": "@libp2p/peer-id",
"version": "1.1.14",
"version": "1.1.15",
"description": "Implementation of @libp2p/interface-peer-d",

@@ -5,0 +5,0 @@ "license": "Apache-2.0 OR MIT",

@@ -154,4 +154,2 @@ import { CID } from 'multiformats/cid'

export function peerIdFromPeerId (other: any): PeerId {
const err = errcode(new Error('Not a PeerId'), 'ERR_INVALID_PARAMETERS')
if (other.type === 'RSA') {

@@ -169,3 +167,3 @@ return new RSAPeerIdImpl(other)

throw err
throw errcode(new Error('Not a PeerId'), 'ERR_INVALID_PARAMETERS')
}

@@ -172,0 +170,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc