@libp2p/peer-collections 7.0.15 → 7.0.17

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.
@@ -106,14 +106,14 @@ import { generateKeyPair } from '@libp2p/crypto/keys'
106
106
  * filter.has(peerId) // true
107
107
  * ```
108
108
  */
109
- export { PeerMap, peerMap } from './map.js';
110
- export { PeerSet, peerSet } from './set.js';
111
- export { PeerList, peerList } from './list.js';
112
- export { PeerFilter, peerFilter } from './filter.js';
113
- export { trackedPeerMap } from './tracked-map.js';
114
- export type { TrackedPeerMapInit } from './tracked-map.js';
115
- export { trackedPeerSet } from './tracked-set.js';
116
- export type { TrackedPeerSetInit } from './tracked-set.js';
117
- export { trackedPeerList } from './tracked-list.js';
118
- export type { TrackedPeerListInit } from './tracked-list.js';
109
+ export { PeerMap, peerMap } from './map.ts';
110
+ export { PeerSet, peerSet } from './set.ts';
111
+ export { PeerList, peerList } from './list.ts';
112
+ export { PeerFilter, peerFilter } from './filter.ts';
113
+ export { trackedPeerMap } from './tracked-map.ts';
114
+ export type { TrackedPeerMapInit } from './tracked-map.ts';
115
+ export { trackedPeerSet } from './tracked-set.ts';
116
+ export type { TrackedPeerSetInit } from './tracked-set.ts';
117
+ export { trackedPeerList } from './tracked-list.ts';
118
+ export type { TrackedPeerListInit } from './tracked-list.ts';
119
119
  //# sourceMappingURL=index.d.ts.map
package/dist/src/index.js CHANGED
@@ -106,11 +106,11 @@ import { generateKeyPair } from '@libp2p/crypto/keys'
106
106
  * filter.has(peerId) // true
107
107
  * ```
108
108
  */
109
- export { PeerMap, peerMap } from './map.js';
110
- export { PeerSet, peerSet } from './set.js';
111
- export { PeerList, peerList } from './list.js';
112
- export { PeerFilter, peerFilter } from './filter.js';
113
- export { trackedPeerMap } from './tracked-map.js';
114
- export { trackedPeerSet } from './tracked-set.js';
115
- export { trackedPeerList } from './tracked-list.js';
109
+ export { PeerMap, peerMap } from "./map.js";
110
+ export { PeerSet, peerSet } from "./set.js";
111
+ export { PeerList, peerList } from "./list.js";
112
+ export { PeerFilter, peerFilter } from "./filter.js";
113
+ export { trackedPeerMap } from "./tracked-map.js";
114
+ export { trackedPeerSet } from "./tracked-set.js";
115
+ export { trackedPeerList } from "./tracked-list.js";
116
116
  //# sourceMappingURL=index.js.map
package/dist/src/list.js CHANGED
@@ -1,4 +1,4 @@
1
- import { mapIterable } from './util.js';
1
+ import { mapIterable } from "./util.js";
2
2
  /**
3
3
  * We can't use PeerIds as list entries because list entries are
4
4
  * compared using same-value-zero equality, so this is just
package/dist/src/map.js CHANGED
@@ -1,4 +1,4 @@
1
- import { mapIterable } from './util.js';
1
+ import { mapIterable } from "./util.js";
2
2
  /**
3
3
  * We can't use PeerIds as map keys because map keys are
4
4
  * compared using same-value-zero equality, so this is just
package/dist/src/set.js CHANGED
@@ -1,4 +1,4 @@
1
- import { mapIterable, peerIdFromString } from './util.js';
1
+ import { mapIterable, peerIdFromString } from "./util.js";
2
2
  /**
3
3
  * We can't use PeerIds as set entries because set entries are
4
4
  * compared using same-value-zero equality, so this is just
@@ -1,4 +1,4 @@
1
- import { PeerList } from './list.js';
1
+ import { PeerList } from './list.ts';
2
2
  import type { Metrics } from '@libp2p/interface';
3
3
  export interface TrackedPeerListInit {
4
4
  name: string;
@@ -1,4 +1,4 @@
1
- import { PeerList } from './list.js';
1
+ import { PeerList } from "./list.js";
2
2
  class TrackedPeerList extends PeerList {
3
3
  metric;
4
4
  constructor(init) {
@@ -1,4 +1,4 @@
1
- import { PeerMap } from './map.js';
1
+ import { PeerMap } from './map.ts';
2
2
  import type { Metrics } from '@libp2p/interface';
3
3
  export interface TrackedPeerMapInit {
4
4
  name: string;
@@ -1,4 +1,4 @@
1
- import { PeerMap } from './map.js';
1
+ import { PeerMap } from "./map.js";
2
2
  class TrackedPeerMap extends PeerMap {
3
3
  metric;
4
4
  constructor(init) {
@@ -1,4 +1,4 @@
1
- import { PeerSet } from './set.js';
1
+ import { PeerSet } from './set.ts';
2
2
  import type { Metrics } from '@libp2p/interface';
3
3
  export interface TrackedPeerSetInit {
4
4
  name: string;
@@ -1,4 +1,4 @@
1
- import { PeerSet } from './set.js';
1
+ import { PeerSet } from "./set.js";
2
2
  class TrackedPeerSet extends PeerSet {
3
3
  metric;
4
4
  constructor(init) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libp2p/peer-collections",
3
- "version": "7.0.15",
3
+ "version": "7.0.17",
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",
@@ -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,14 +48,14 @@
47
48
  "test:electron-main": "aegir test -t electron-main"
48
49
  },
49
50
  "dependencies": {
50
- "@libp2p/interface": "^3.2.0",
51
- "@libp2p/peer-id": "^6.0.6",
52
- "@libp2p/utils": "^7.0.15",
51
+ "@libp2p/interface": "^3.2.2",
52
+ "@libp2p/peer-id": "^6.0.8",
53
+ "@libp2p/utils": "^7.0.17",
53
54
  "multiformats": "^13.4.0"
54
55
  },
55
56
  "devDependencies": {
56
- "@libp2p/crypto": "^5.1.15",
57
- "@types/sinon": "^20.0.0",
57
+ "@libp2p/crypto": "^5.1.17",
58
+ "@types/sinon": "^21.0.1",
58
59
  "aegir": "^47.0.22",
59
60
  "sinon": "^21.0.0",
60
61
  "sinon-ts": "^2.0.0"
package/src/index.ts CHANGED
@@ -107,14 +107,14 @@ import { generateKeyPair } from '@libp2p/crypto/keys'
107
107
  * ```
108
108
  */
109
109
 
110
- export { PeerMap, peerMap } from './map.js'
111
- export { PeerSet, peerSet } from './set.js'
112
- export { PeerList, peerList } from './list.js'
113
- export { PeerFilter, peerFilter } from './filter.js'
110
+ export { PeerMap, peerMap } from './map.ts'
111
+ export { PeerSet, peerSet } from './set.ts'
112
+ export { PeerList, peerList } from './list.ts'
113
+ export { PeerFilter, peerFilter } from './filter.ts'
114
114
 
115
- export { trackedPeerMap } from './tracked-map.js'
116
- export type { TrackedPeerMapInit } from './tracked-map.js'
117
- export { trackedPeerSet } from './tracked-set.js'
118
- export type { TrackedPeerSetInit } from './tracked-set.js'
119
- export { trackedPeerList } from './tracked-list.js'
120
- export type { TrackedPeerListInit } from './tracked-list.js'
115
+ export { trackedPeerMap } from './tracked-map.ts'
116
+ export type { TrackedPeerMapInit } from './tracked-map.ts'
117
+ export { trackedPeerSet } from './tracked-set.ts'
118
+ export type { TrackedPeerSetInit } from './tracked-set.ts'
119
+ export { trackedPeerList } from './tracked-list.ts'
120
+ export type { TrackedPeerListInit } from './tracked-list.ts'
package/src/list.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { mapIterable } from './util.js'
1
+ import { mapIterable } from './util.ts'
2
2
  import type { PeerId } from '@libp2p/interface'
3
3
 
4
4
  /**
package/src/map.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { mapIterable } from './util.js'
1
+ import { mapIterable } from './util.ts'
2
2
  import type { PeerId } from '@libp2p/interface'
3
3
 
4
4
  /**
package/src/set.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { mapIterable, peerIdFromString } from './util.js'
1
+ import { mapIterable, peerIdFromString } from './util.ts'
2
2
  import type { PeerId } from '@libp2p/interface'
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { PeerList } from './list.js'
1
+ import { PeerList } from './list.ts'
2
2
  import type { Metric, Metrics, PeerId } from '@libp2p/interface'
3
3
 
4
4
  export interface TrackedPeerListInit {
@@ -1,4 +1,4 @@
1
- import { PeerMap } from './map.js'
1
+ import { PeerMap } from './map.ts'
2
2
  import type { Metric, Metrics, PeerId } from '@libp2p/interface'
3
3
 
4
4
  export interface TrackedPeerMapInit {
@@ -1,4 +1,4 @@
1
- import { PeerSet } from './set.js'
1
+ import { PeerSet } from './set.ts'
2
2
  import type { Metric, Metrics, PeerId } from '@libp2p/interface'
3
3
 
4
4
  export interface TrackedPeerSetInit {