@libp2p/peer-id
Advanced tools
Comparing version 1.1.11 to 1.1.12
import { CID } from 'multiformats/cid'; | ||
import { symbol } from '@libp2p/interfaces/peer-id'; | ||
import { symbol } from '@libp2p/interface-peer-id'; | ||
import type { MultibaseDecoder } from 'multiformats/bases/interface'; | ||
import type { MultihashDigest } from 'multiformats/hashes/interface'; | ||
import type { PeerId } from '@libp2p/interfaces/peer-id'; | ||
import type { PeerId } from '@libp2p/interface-peer-id'; | ||
interface PeerIdInit { | ||
@@ -7,0 +7,0 @@ type: 'RSA' | 'Ed25519' | 'secp256k1'; |
@@ -9,3 +9,3 @@ import { CID } from 'multiformats/cid'; | ||
import errcode from 'err-code'; | ||
import { symbol } from '@libp2p/interfaces/peer-id'; | ||
import { symbol } from '@libp2p/interface-peer-id'; | ||
const baseDecoder = Object | ||
@@ -12,0 +12,0 @@ .values(bases) |
{ | ||
"name": "@libp2p/peer-id", | ||
"version": "1.1.11", | ||
"description": "IPFS Peer Id implementation in Node.js", | ||
"version": "1.1.12", | ||
"description": "Implementation of @libp2p/interface-peer-d", | ||
"license": "Apache-2.0 OR MIT", | ||
"homepage": "https://github.com/libp2p/js-libp2p-interfaces/tree/master/packages/libp2p-peer-id#readme", | ||
"homepage": "https://github.com/libp2p/js-libp2p-peer-id/tree/master/packages/libp2p-peer-id#readme", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/libp2p/js-libp2p-interfaces.git" | ||
"url": "git+https://github.com/libp2p/js-libp2p-peer-id.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/libp2p/js-libp2p-interfaces/issues" | ||
"url": "https://github.com/libp2p/js-libp2p-peer-id/issues" | ||
}, | ||
@@ -136,3 +136,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@libp2p/interfaces": "^2.0.0", | ||
"@libp2p/interface-peer-id": "^0.0.1", | ||
"err-code": "^3.0.1", | ||
@@ -139,0 +139,0 @@ "multiformats": "^9.6.3", |
@@ -1,18 +0,26 @@ | ||
# libp2p-peer-id <!-- omit in toc --> | ||
# @libp2p/peer-id <!-- omit in toc --> | ||
> peer-ids in JavaScript | ||
[![test & maybe release](https://github.com/libp2p/js-libp2p-peer-id/actions/workflows/js-test-and-release.yml/badge.svg)](https://github.com/libp2p/js-libp2p-peer-id/actions/workflows/js-test-and-release.yml) | ||
## Table of Contents <!-- omit in toc --> | ||
> Implementation of @libp2p/interface-peer-d | ||
## Table of contents <!-- omit in toc --> | ||
- [Install](#install) | ||
- [Description](#description) | ||
- [Example](#example) | ||
- [Installation](#installation) | ||
- [License](#license) | ||
- [Contribution](#contribution) | ||
- [License](#license) | ||
- [Contribution](#contribution) | ||
# Description | ||
## Install | ||
```console | ||
$ npm i @libp2p/peer-id | ||
``` | ||
## Description | ||
A basic implementation of a peer id | ||
# Example | ||
## Example | ||
@@ -27,8 +35,2 @@ ```JavaScript | ||
# Installation | ||
```console | ||
$ npm i libp2p-peer-id | ||
``` | ||
## License | ||
@@ -38,4 +40,4 @@ | ||
* Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / http://www.apache.org/licenses/LICENSE-2.0) | ||
* MIT ([LICENSE-MIT](LICENSE-MIT) / http://opensource.org/licenses/MIT) | ||
- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>) | ||
- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>) | ||
@@ -42,0 +44,0 @@ ### Contribution |
@@ -9,6 +9,6 @@ import { CID } from 'multiformats/cid' | ||
import errcode from 'err-code' | ||
import { Ed25519PeerId, RSAPeerId, Secp256k1PeerId, symbol } from '@libp2p/interfaces/peer-id' | ||
import { Ed25519PeerId, RSAPeerId, Secp256k1PeerId, symbol } from '@libp2p/interface-peer-id' | ||
import type { MultibaseDecoder } from 'multiformats/bases/interface' | ||
import type { MultihashDigest } from 'multiformats/hashes/interface' | ||
import type { PeerId } from '@libp2p/interfaces/peer-id' | ||
import type { PeerId } from '@libp2p/interface-peer-id' | ||
@@ -15,0 +15,0 @@ const baseDecoder = Object |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
27131
0
45
+ Added@libp2p/interface-peer-id@0.0.1(transitive)
- Removed@libp2p/interfaces@^2.0.0
- Removed@fastify/busboy@2.1.1(transitive)
- Removed@libp2p/interfaces@2.0.4(transitive)
- Removed@multiformats/multiaddr@10.5.0(transitive)
- Removedclone-regexp@3.0.0(transitive)
- Removedconvert-hrtime@5.0.0(transitive)
- Removeddebug@4.3.7(transitive)
- Removeddns-over-http-resolver@2.1.3(transitive)
- Removedfunction-timeout@0.1.1(transitive)
- Removedinterface-datastore@6.1.1(transitive)
- Removedinterface-store@2.0.2(transitive)
- Removedip-regex@5.0.0(transitive)
- Removedis-ip@5.0.1(transitive)
- Removedis-regexp@3.1.0(transitive)
- Removedit-pushable@2.0.2(transitive)
- Removedit-stream-types@1.0.5(transitive)
- Removedms@2.1.3(transitive)
- Removednanoid@3.3.8(transitive)
- Removednative-fetch@4.0.2(transitive)
- Removedreceptacle@1.3.2(transitive)
- Removedsuper-regex@0.2.0(transitive)
- Removedtime-span@5.1.0(transitive)
- Removedundici@5.28.4(transitive)
- Removedvarint@6.0.0(transitive)