New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@libp2p/peer-id-factory

Package Overview
Dependencies
Maintainers
0
Versions
448
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@libp2p/peer-id-factory - npm Package Compare versions

Comparing version 4.1.4-6573cb8b0 to 4.1.4-b0b6cae12

8

dist/src/index.js

@@ -80,4 +80,10 @@ /**

}
return peerIdFromBytes(multihash);
const peerId = peerIdFromBytes(multihash);
if (peerId.type !== 'Ed25519' && peerId.type !== 'secp256k1' && peerId.type !== 'RSA') {
// should not be possible since `multihash` is derived from keys and these
// are the cryptographic peer id types
throw new Error('Supplied PeerID is invalid');
}
return peerId;
}
//# sourceMappingURL=index.js.map

8

package.json
{
"name": "@libp2p/peer-id-factory",
"version": "4.1.4-6573cb8b0",
"version": "4.1.4-b0b6cae12",
"description": "Create PeerId instances",

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

"dependencies": {
"@libp2p/crypto": "4.1.4-6573cb8b0",
"@libp2p/interface": "1.5.0-6573cb8b0",
"@libp2p/peer-id": "4.1.4-6573cb8b0",
"@libp2p/crypto": "4.1.4-b0b6cae12",
"@libp2p/interface": "1.5.0-b0b6cae12",
"@libp2p/peer-id": "4.1.4-b0b6cae12",
"protons-runtime": "^5.4.0",

@@ -66,0 +66,0 @@ "uint8arraylist": "^2.4.8",

@@ -112,3 +112,11 @@ /**

return peerIdFromBytes(multihash)
const peerId = peerIdFromBytes(multihash)
if (peerId.type !== 'Ed25519' && peerId.type !== 'secp256k1' && peerId.type !== 'RSA') {
// should not be possible since `multihash` is derived from keys and these
// are the cryptographic peer id types
throw new Error('Supplied PeerID is invalid')
}
return peerId
}

Sorry, the diff of this file is too big to display

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