@libp2p/peer-id 6.0.6 → 6.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.min.js +1 -4
- package/dist/index.min.js.map +4 -4
- package/dist/src/index.js +1 -1
- package/package.json +5 -4
- package/src/index.ts +1 -1
package/dist/src/index.js
CHANGED
|
@@ -21,7 +21,7 @@ import * as Digest from 'multiformats/hashes/digest';
|
|
|
21
21
|
import { identity } from 'multiformats/hashes/identity';
|
|
22
22
|
import { sha256 } from 'multiformats/hashes/sha2';
|
|
23
23
|
import { toString as uint8ArrayToString } from 'uint8arrays/to-string';
|
|
24
|
-
import { RSAPeerId as RSAPeerIdClass, Ed25519PeerId as Ed25519PeerIdClass, Secp256k1PeerId as Secp256k1PeerIdClass, URLPeerId as URLPeerIdClass } from
|
|
24
|
+
import { RSAPeerId as RSAPeerIdClass, Ed25519PeerId as Ed25519PeerIdClass, Secp256k1PeerId as Secp256k1PeerIdClass, URLPeerId as URLPeerIdClass } from "./peer-id.js";
|
|
25
25
|
// these values are from https://github.com/multiformats/multicodec/blob/master/table.csv
|
|
26
26
|
const LIBP2P_KEY_CODE = 0x72;
|
|
27
27
|
const TRANSPORT_IPFS_GATEWAY_HTTP_CODE = 0x0920;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libp2p/peer-id",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.8",
|
|
4
4
|
"description": "Implementation of @libp2p/interface-peer-id",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/peer-id#readme",
|
|
@@ -29,7 +29,8 @@
|
|
|
29
29
|
"exports": {
|
|
30
30
|
".": {
|
|
31
31
|
"types": "./dist/src/index.d.ts",
|
|
32
|
-
"import": "./dist/src/index.js"
|
|
32
|
+
"import": "./dist/src/index.js",
|
|
33
|
+
"module-sync": "./dist/src/index.js"
|
|
33
34
|
}
|
|
34
35
|
},
|
|
35
36
|
"scripts": {
|
|
@@ -47,8 +48,8 @@
|
|
|
47
48
|
"test:electron-main": "aegir test -t electron-main"
|
|
48
49
|
},
|
|
49
50
|
"dependencies": {
|
|
50
|
-
"@libp2p/crypto": "^5.1.
|
|
51
|
-
"@libp2p/interface": "^3.2.
|
|
51
|
+
"@libp2p/crypto": "^5.1.17",
|
|
52
|
+
"@libp2p/interface": "^3.2.2",
|
|
52
53
|
"multiformats": "^13.4.0",
|
|
53
54
|
"uint8arrays": "^5.1.0"
|
|
54
55
|
},
|
package/src/index.ts
CHANGED
|
@@ -22,7 +22,7 @@ import * as Digest from 'multiformats/hashes/digest'
|
|
|
22
22
|
import { identity } from 'multiformats/hashes/identity'
|
|
23
23
|
import { sha256 } from 'multiformats/hashes/sha2'
|
|
24
24
|
import { toString as uint8ArrayToString } from 'uint8arrays/to-string'
|
|
25
|
-
import { RSAPeerId as RSAPeerIdClass, Ed25519PeerId as Ed25519PeerIdClass, Secp256k1PeerId as Secp256k1PeerIdClass, URLPeerId as URLPeerIdClass } from './peer-id.
|
|
25
|
+
import { RSAPeerId as RSAPeerIdClass, Ed25519PeerId as Ed25519PeerIdClass, Secp256k1PeerId as Secp256k1PeerIdClass, URLPeerId as URLPeerIdClass } from './peer-id.ts'
|
|
26
26
|
import type { Ed25519PeerId, RSAPeerId, URLPeerId, Secp256k1PeerId, PeerId, PublicKey, Ed25519PublicKey, Secp256k1PublicKey, RSAPublicKey, Ed25519PrivateKey, Secp256k1PrivateKey, RSAPrivateKey, PrivateKey } from '@libp2p/interface'
|
|
27
27
|
import type { MultibaseDecoder } from 'multiformats/cid'
|
|
28
28
|
import type { MultihashDigest } from 'multiformats/hashes/interface'
|