@libp2p/peer-record 5.0.4-ea8a0637 → 5.0.4-eabf6f36
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 +14 -14
- package/dist/src/envelope/index.d.ts +2 -2
- package/dist/src/envelope/index.js +1 -1
- package/dist/src/envelope/index.js.map +1 -1
- package/dist/src/errors.d.ts.map +1 -1
- package/dist/src/errors.js.map +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/peer-record/consts.d.ts.map +1 -1
- package/dist/src/peer-record/consts.js.map +1 -1
- package/dist/src/peer-record/index.d.ts +1 -1
- package/package.json +9 -15
- package/src/envelope/index.ts +3 -3
- package/src/errors.ts +0 -1
- package/src/index.ts +0 -1
- package/src/peer-record/consts.ts +0 -1
- package/src/peer-record/index.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Uint8ArrayList } from 'uint8arraylist';
|
|
2
|
-
import type { PeerId } from '@libp2p/interface
|
|
3
|
-
import type { Record, Envelope } from '@libp2p/interface
|
|
2
|
+
import type { PeerId } from '@libp2p/interface/peer-id';
|
|
3
|
+
import type { Record, Envelope } from '@libp2p/interface/record';
|
|
4
4
|
export interface RecordEnvelopeInit {
|
|
5
5
|
peerId: PeerId;
|
|
6
6
|
payloadType: Uint8Array;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { unmarshalPrivateKey, unmarshalPublicKey } from '@libp2p/crypto/keys';
|
|
2
|
-
import { CodeError } from '@libp2p/
|
|
2
|
+
import { CodeError } from '@libp2p/interface/errors';
|
|
3
3
|
import { peerIdFromKeys } from '@libp2p/peer-id';
|
|
4
4
|
import { unsigned } from 'uint8-varint';
|
|
5
5
|
import { Uint8ArrayList } from 'uint8arraylist';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/envelope/index.ts"],"names":[],"mappings":"AA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AAA;IACxD,CAAC;;AAGH;;GAEG;AACH,MAAM,sBAAsB,GAAG,CAAC,MAAc,EAAE,WAAuB,EAAE,OAAoC,EAAkB,EAAE;IAC/H,iFAAiF;IACjF,+DAA+D;IAC/D,mDAAmD;IACnD,kDAAkD;IAClD,wCAAwC;IACxC,6CAA6C;IAC7C,mCAAmC;IAEnC,MAAM,gBAAgB,GAAG,qBAAqB,CAAC,MAAM,CAAC,CAAA;IACtD,MAAM,YAAY,GAAG,QAAQ,CAAC,MAAM,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAA;IACjE,MAAM,iBAAiB,GAAG,QAAQ,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,CAAA;IAC7D,MAAM,aAAa,GAAG,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;IAErD,OAAO,IAAI,cAAc,CACvB,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,OAAO,CACR,CAAA;AACH,CAAC,CAAA"}
|
package/dist/src/errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK;;CAEjB,CAAA"}
|
package/dist/src/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,uBAAuB,EAAE,yBAAyB;CACnD,CAAA"}
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,YAAY,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACnD,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA"}
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAEpD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../../src/peer-record/consts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../../src/peer-record/consts.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,2BAA2B,uBAAuB,CAAA;AAK/D,eAAO,MAAM,iCAAiC,YAA0B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../../../src/peer-record/consts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../../../src/peer-record/consts.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,MAAM,CAAC,MAAM,2BAA2B,GAAG,oBAAoB,CAAA;AAE/D,6DAA6D;AAC7D,8EAA8E;AAC9E,iCAAiC;AACjC,MAAM,CAAC,MAAM,iCAAiC,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libp2p/peer-record",
|
|
3
|
-
"version": "5.0.4-
|
|
3
|
+
"version": "5.0.4-eabf6f36",
|
|
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/master/packages/peer-record#readme",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"scripts": {
|
|
44
44
|
"clean": "aegir clean",
|
|
45
45
|
"lint": "aegir lint",
|
|
46
|
-
"dep-check": "aegir dep-check
|
|
46
|
+
"dep-check": "aegir dep-check",
|
|
47
47
|
"generate": "protons src/envelope/envelope.proto src/peer-record/peer-record.proto",
|
|
48
48
|
"build": "aegir build",
|
|
49
49
|
"test": "aegir test",
|
|
@@ -55,26 +55,20 @@
|
|
|
55
55
|
"test:electron-main": "aegir test -t electron-main"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@libp2p/crypto": "1.0.17-
|
|
59
|
-
"@libp2p/interface
|
|
60
|
-
"@libp2p/
|
|
61
|
-
"@libp2p/
|
|
62
|
-
"@libp2p/peer-id": "2.0.3-ea8a0637",
|
|
63
|
-
"@libp2p/utils": "3.0.12-ea8a0637",
|
|
58
|
+
"@libp2p/crypto": "1.0.17-eabf6f36",
|
|
59
|
+
"@libp2p/interface": "0.0.1-eabf6f36",
|
|
60
|
+
"@libp2p/peer-id": "2.0.3-eabf6f36",
|
|
61
|
+
"@libp2p/utils": "3.0.12-eabf6f36",
|
|
64
62
|
"@multiformats/multiaddr": "^12.1.3",
|
|
65
63
|
"protons-runtime": "^5.0.0",
|
|
66
64
|
"uint8-varint": "^1.0.2",
|
|
67
65
|
"uint8arraylist": "^2.4.3",
|
|
68
|
-
"uint8arrays": "^4.0.
|
|
66
|
+
"uint8arrays": "^4.0.4"
|
|
69
67
|
},
|
|
70
68
|
"devDependencies": {
|
|
71
|
-
"@libp2p/
|
|
72
|
-
"@libp2p/peer-id-factory": "2.0.3-ea8a0637",
|
|
69
|
+
"@libp2p/peer-id-factory": "2.0.3-eabf6f36",
|
|
73
70
|
"@types/varint": "^6.0.0",
|
|
74
|
-
"aegir": "^
|
|
71
|
+
"aegir": "^40.0.1",
|
|
75
72
|
"protons": "^7.0.2"
|
|
76
|
-
},
|
|
77
|
-
"typedoc": {
|
|
78
|
-
"entryPoint": "./src/index.ts"
|
|
79
73
|
}
|
|
80
74
|
}
|
package/src/envelope/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { unmarshalPrivateKey, unmarshalPublicKey } from '@libp2p/crypto/keys'
|
|
2
|
-
import { CodeError } from '@libp2p/
|
|
2
|
+
import { CodeError } from '@libp2p/interface/errors'
|
|
3
3
|
import { peerIdFromKeys } from '@libp2p/peer-id'
|
|
4
4
|
import { unsigned } from 'uint8-varint'
|
|
5
5
|
import { Uint8ArrayList } from 'uint8arraylist'
|
|
@@ -7,8 +7,8 @@ import { equals as uint8ArrayEquals } from 'uint8arrays/equals'
|
|
|
7
7
|
import { fromString as uint8arraysFromString } from 'uint8arrays/from-string'
|
|
8
8
|
import { codes } from '../errors.js'
|
|
9
9
|
import { Envelope as Protobuf } from './envelope.js'
|
|
10
|
-
import type { PeerId } from '@libp2p/interface
|
|
11
|
-
import type { Record, Envelope } from '@libp2p/interface
|
|
10
|
+
import type { PeerId } from '@libp2p/interface/peer-id'
|
|
11
|
+
import type { Record, Envelope } from '@libp2p/interface/record'
|
|
12
12
|
|
|
13
13
|
export interface RecordEnvelopeInit {
|
|
14
14
|
peerId: PeerId
|
package/src/errors.ts
CHANGED
package/src/index.ts
CHANGED
package/src/peer-record/index.ts
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
ENVELOPE_PAYLOAD_TYPE_PEER_RECORD
|
|
7
7
|
} from './consts.js'
|
|
8
8
|
import { PeerRecord as Protobuf } from './peer-record.js'
|
|
9
|
-
import type { PeerId } from '@libp2p/interface
|
|
9
|
+
import type { PeerId } from '@libp2p/interface/peer-id'
|
|
10
10
|
import type { Multiaddr } from '@multiformats/multiaddr'
|
|
11
11
|
import type { Uint8ArrayList } from 'uint8arraylist'
|
|
12
12
|
|