@libp2p/peer-collections 6.0.35 → 7.0.0-049bfa0fa
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 -1
- package/dist/index.min.js.map +4 -4
- package/dist/src/filter.js +1 -1
- package/dist/src/filter.js.map +1 -1
- package/package.json +8 -8
- package/src/filter.ts +2 -2
- package/dist/typedoc-urls.json +0 -16
package/dist/src/filter.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createScalableCuckooFilter } from '@libp2p/utils
|
|
1
|
+
import { createScalableCuckooFilter } from '@libp2p/utils';
|
|
2
2
|
/**
|
|
3
3
|
* Uses a Cuckoo filter to implement a mechanism for deduplicating PeerIds in a
|
|
4
4
|
* way that uses a smaller amount of memory than a PeerSet.
|
package/dist/src/filter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter.js","sourceRoot":"","sources":["../../src/filter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"filter.js","sourceRoot":"","sources":["../../src/filter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAA;AAI1D;;;GAGG;AACH,MAAM,OAAO,UAAU;IACJ,MAAM,CAAQ;IAE/B,YAAa,IAAY,EAAE,SAAkB;QAC3C,IAAI,CAAC,MAAM,GAAG,0BAA0B,CAAC,IAAI,EAAE,SAAS,CAAC,CAAA;IAC3D,CAAC;IAED,GAAG,CAAE,MAAc;QACjB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,CAAA;IACpD,CAAC;IAED,GAAG,CAAE,MAAc;QACjB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,CAAA;IAC7C,CAAC;IAED,MAAM,CAAE,MAAc;QACpB,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,CAAA;IAClD,CAAC;CACF;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,UAAU,UAAU,CAAE,IAAY,EAAE,YAAoB,KAAK;IACjE,OAAO,IAAI,UAAU,CAAC,IAAI,EAAE,SAAS,CAAC,CAAA;AACxC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libp2p/peer-collections",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0-049bfa0fa",
|
|
4
4
|
"description": "Stores values against a peer id",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/peer-collections#readme",
|
|
@@ -47,16 +47,16 @@
|
|
|
47
47
|
"test:electron-main": "aegir test -t electron-main"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@libp2p/interface": "
|
|
51
|
-
"@libp2p/peer-id": "
|
|
52
|
-
"@libp2p/utils": "
|
|
53
|
-
"multiformats": "^13.
|
|
50
|
+
"@libp2p/interface": "3.0.0-049bfa0fa",
|
|
51
|
+
"@libp2p/peer-id": "6.0.0-049bfa0fa",
|
|
52
|
+
"@libp2p/utils": "7.0.0-049bfa0fa",
|
|
53
|
+
"multiformats": "^13.4.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@libp2p/crypto": "
|
|
56
|
+
"@libp2p/crypto": "5.1.9-049bfa0fa",
|
|
57
57
|
"@types/sinon": "^17.0.4",
|
|
58
|
-
"aegir": "^47.0.
|
|
59
|
-
"sinon": "^
|
|
58
|
+
"aegir": "^47.0.22",
|
|
59
|
+
"sinon": "^21.0.0",
|
|
60
60
|
"sinon-ts": "^2.0.0"
|
|
61
61
|
},
|
|
62
62
|
"sideEffects": false
|
package/src/filter.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createScalableCuckooFilter } from '@libp2p/utils
|
|
1
|
+
import { createScalableCuckooFilter } from '@libp2p/utils'
|
|
2
2
|
import type { PeerId } from '@libp2p/interface'
|
|
3
|
-
import type { Filter } from '@libp2p/utils
|
|
3
|
+
import type { Filter } from '@libp2p/utils'
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Uses a Cuckoo filter to implement a mechanism for deduplicating PeerIds in a
|
package/dist/typedoc-urls.json
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"PeerFilter": "https://libp2p.github.io/js-libp2p/classes/_libp2p_peer-collections.PeerFilter.html",
|
|
3
|
-
"PeerList": "https://libp2p.github.io/js-libp2p/classes/_libp2p_peer-collections.PeerList.html",
|
|
4
|
-
"PeerMap": "https://libp2p.github.io/js-libp2p/classes/_libp2p_peer-collections.PeerMap.html",
|
|
5
|
-
"PeerSet": "https://libp2p.github.io/js-libp2p/classes/_libp2p_peer-collections.PeerSet.html",
|
|
6
|
-
"TrackedPeerListInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_peer-collections.TrackedPeerListInit.html",
|
|
7
|
-
"TrackedPeerMapInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_peer-collections.TrackedPeerMapInit.html",
|
|
8
|
-
"TrackedPeerSetInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_peer-collections.TrackedPeerSetInit.html",
|
|
9
|
-
"peerFilter": "https://libp2p.github.io/js-libp2p/functions/_libp2p_peer-collections.peerFilter.html",
|
|
10
|
-
"peerList": "https://libp2p.github.io/js-libp2p/functions/_libp2p_peer-collections.peerList.html",
|
|
11
|
-
"peerMap": "https://libp2p.github.io/js-libp2p/functions/_libp2p_peer-collections.peerMap.html",
|
|
12
|
-
"peerSet": "https://libp2p.github.io/js-libp2p/functions/_libp2p_peer-collections.peerSet.html",
|
|
13
|
-
"trackedPeerList": "https://libp2p.github.io/js-libp2p/functions/_libp2p_peer-collections.trackedPeerList.html",
|
|
14
|
-
"trackedPeerMap": "https://libp2p.github.io/js-libp2p/functions/_libp2p_peer-collections.trackedPeerMap.html",
|
|
15
|
-
"trackedPeerSet": "https://libp2p.github.io/js-libp2p/functions/_libp2p_peer-collections.trackedPeerSet.html"
|
|
16
|
-
}
|