@libp2p/peer-record 9.0.7 → 9.0.9-48f66c41e
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/envelope/index.js +2 -2
- package/dist/src/index.d.ts +4 -4
- package/dist/src/index.js +2 -2
- package/dist/src/peer-record/index.js +2 -2
- package/package.json +6 -5
- package/src/envelope/index.ts +2 -2
- package/src/index.ts +4 -4
- package/src/peer-record/index.ts +2 -2
- package/dist/typedoc-urls.json +0 -6
|
@@ -3,8 +3,8 @@ import * as varint from 'uint8-varint';
|
|
|
3
3
|
import { Uint8ArrayList } from 'uint8arraylist';
|
|
4
4
|
import { equals as uint8ArrayEquals } from 'uint8arrays/equals';
|
|
5
5
|
import { fromString as uint8arraysFromString } from 'uint8arrays/from-string';
|
|
6
|
-
import { Envelope as Protobuf } from
|
|
7
|
-
import { InvalidSignatureError } from
|
|
6
|
+
import { Envelope as Protobuf } from "./envelope.js";
|
|
7
|
+
import { InvalidSignatureError } from "./errors.js";
|
|
8
8
|
export class RecordEnvelope {
|
|
9
9
|
/**
|
|
10
10
|
* Unmarshal a serialized Envelope protobuf message
|
package/dist/src/index.d.ts
CHANGED
|
@@ -126,8 +126,8 @@ import { generateKeyPair } from '@libp2p/crypto/keys'
|
|
|
126
126
|
* - With the modular dialer, users should easily be able to configure precedence. With dialer v1, anything we do to prioritize dials is gonna be spaghetti and adhoc. With the modular dialer, you’d be able to specify the order of dials when instantiating the pipeline.
|
|
127
127
|
* - Multiple parallel dials. We already have the issue where new addresses aren't added to existing dials.
|
|
128
128
|
*/
|
|
129
|
-
export { RecordEnvelope } from './envelope/index.
|
|
130
|
-
export type { RecordEnvelopeInit } from './envelope/index.
|
|
131
|
-
export { PeerRecord } from './peer-record/index.
|
|
132
|
-
export type { PeerRecordInit } from './peer-record/index.
|
|
129
|
+
export { RecordEnvelope } from './envelope/index.ts';
|
|
130
|
+
export type { RecordEnvelopeInit } from './envelope/index.ts';
|
|
131
|
+
export { PeerRecord } from './peer-record/index.ts';
|
|
132
|
+
export type { PeerRecordInit } from './peer-record/index.ts';
|
|
133
133
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.js
CHANGED
|
@@ -126,6 +126,6 @@ import { generateKeyPair } from '@libp2p/crypto/keys'
|
|
|
126
126
|
* - With the modular dialer, users should easily be able to configure precedence. With dialer v1, anything we do to prioritize dials is gonna be spaghetti and adhoc. With the modular dialer, you’d be able to specify the order of dials when instantiating the pipeline.
|
|
127
127
|
* - Multiple parallel dials. We already have the issue where new addresses aren't added to existing dials.
|
|
128
128
|
*/
|
|
129
|
-
export { RecordEnvelope } from
|
|
130
|
-
export { PeerRecord } from
|
|
129
|
+
export { RecordEnvelope } from "./envelope/index.js";
|
|
130
|
+
export { PeerRecord } from "./peer-record/index.js";
|
|
131
131
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { peerIdFromMultihash } from '@libp2p/peer-id';
|
|
2
2
|
import { multiaddr } from '@multiformats/multiaddr';
|
|
3
3
|
import * as Digest from 'multiformats/hashes/digest';
|
|
4
|
-
import { ENVELOPE_DOMAIN_PEER_RECORD, ENVELOPE_PAYLOAD_TYPE_PEER_RECORD } from
|
|
5
|
-
import { PeerRecord as Protobuf } from
|
|
4
|
+
import { ENVELOPE_DOMAIN_PEER_RECORD, ENVELOPE_PAYLOAD_TYPE_PEER_RECORD } from "./consts.js";
|
|
5
|
+
import { PeerRecord as Protobuf } from "./peer-record.js";
|
|
6
6
|
import { arrayEquals } from "./utils.js";
|
|
7
7
|
/**
|
|
8
8
|
* The PeerRecord is used for distributing peer routing records across the network.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libp2p/peer-record",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.9-48f66c41e",
|
|
4
4
|
"description": "Used to transfer signed peer data across the network",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/peer-record#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": {
|
|
@@ -48,9 +49,9 @@
|
|
|
48
49
|
"test:electron-main": "aegir test -t electron-main"
|
|
49
50
|
},
|
|
50
51
|
"dependencies": {
|
|
51
|
-
"@libp2p/crypto": "
|
|
52
|
-
"@libp2p/interface": "
|
|
53
|
-
"@libp2p/peer-id": "
|
|
52
|
+
"@libp2p/crypto": "5.1.17-48f66c41e",
|
|
53
|
+
"@libp2p/interface": "3.2.2-48f66c41e",
|
|
54
|
+
"@libp2p/peer-id": "6.0.8-48f66c41e",
|
|
54
55
|
"@multiformats/multiaddr": "^13.0.1",
|
|
55
56
|
"multiformats": "^13.4.0",
|
|
56
57
|
"protons-runtime": "^6.0.1",
|
package/src/envelope/index.ts
CHANGED
|
@@ -3,8 +3,8 @@ import * as varint from 'uint8-varint'
|
|
|
3
3
|
import { Uint8ArrayList } from 'uint8arraylist'
|
|
4
4
|
import { equals as uint8ArrayEquals } from 'uint8arrays/equals'
|
|
5
5
|
import { fromString as uint8arraysFromString } from 'uint8arrays/from-string'
|
|
6
|
-
import { Envelope as Protobuf } from './envelope.
|
|
7
|
-
import { InvalidSignatureError } from './errors.
|
|
6
|
+
import { Envelope as Protobuf } from './envelope.ts'
|
|
7
|
+
import { InvalidSignatureError } from './errors.ts'
|
|
8
8
|
import type { Record, Envelope, PrivateKey, PublicKey, AbortOptions } from '@libp2p/interface'
|
|
9
9
|
|
|
10
10
|
export interface RecordEnvelopeInit {
|
package/src/index.ts
CHANGED
|
@@ -127,7 +127,7 @@ import { generateKeyPair } from '@libp2p/crypto/keys'
|
|
|
127
127
|
* - Multiple parallel dials. We already have the issue where new addresses aren't added to existing dials.
|
|
128
128
|
*/
|
|
129
129
|
|
|
130
|
-
export { RecordEnvelope } from './envelope/index.
|
|
131
|
-
export type { RecordEnvelopeInit } from './envelope/index.
|
|
132
|
-
export { PeerRecord } from './peer-record/index.
|
|
133
|
-
export type { PeerRecordInit } from './peer-record/index.
|
|
130
|
+
export { RecordEnvelope } from './envelope/index.ts'
|
|
131
|
+
export type { RecordEnvelopeInit } from './envelope/index.ts'
|
|
132
|
+
export { PeerRecord } from './peer-record/index.ts'
|
|
133
|
+
export type { PeerRecordInit } from './peer-record/index.ts'
|
package/src/peer-record/index.ts
CHANGED
|
@@ -4,8 +4,8 @@ import * as Digest from 'multiformats/hashes/digest'
|
|
|
4
4
|
import {
|
|
5
5
|
ENVELOPE_DOMAIN_PEER_RECORD,
|
|
6
6
|
ENVELOPE_PAYLOAD_TYPE_PEER_RECORD
|
|
7
|
-
} from './consts.
|
|
8
|
-
import { PeerRecord as Protobuf } from './peer-record.
|
|
7
|
+
} from './consts.ts'
|
|
8
|
+
import { PeerRecord as Protobuf } from './peer-record.ts'
|
|
9
9
|
import { arrayEquals } from './utils.ts'
|
|
10
10
|
import type { PeerId } from '@libp2p/interface'
|
|
11
11
|
import type { Multiaddr } from '@multiformats/multiaddr'
|
package/dist/typedoc-urls.json
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"PeerRecord": "https://libp2p.github.io/js-libp2p/classes/_libp2p_peer-record.PeerRecord.html",
|
|
3
|
-
"RecordEnvelope": "https://libp2p.github.io/js-libp2p/classes/_libp2p_peer-record.RecordEnvelope.html",
|
|
4
|
-
"PeerRecordInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_peer-record.PeerRecordInit.html",
|
|
5
|
-
"RecordEnvelopeInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_peer-record.RecordEnvelopeInit.html"
|
|
6
|
-
}
|