@libp2p/peer-collections
Advanced tools
Comparing version 6.0.2 to 6.0.3-c258b35af
@@ -114,4 +114,7 @@ /** | ||
export { trackedPeerMap } from './tracked-map.js'; | ||
export type { TrackedPeerMapInit } from './tracked-map.js'; | ||
export { trackedPeerSet } from './tracked-set.js'; | ||
export type { TrackedPeerSetInit } from './tracked-set.js'; | ||
export { trackedPeerList } from './tracked-list.js'; | ||
export type { TrackedPeerListInit } from './tracked-list.js'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -5,12 +5,2 @@ import { PeerList } from './list.js'; | ||
name: string; | ||
metrics: Metrics; | ||
} | ||
export interface CreateTrackedPeerListInit { | ||
/** | ||
* The metric name to use | ||
*/ | ||
name: string; | ||
/** | ||
* A metrics implementation | ||
*/ | ||
metrics?: Metrics; | ||
@@ -33,3 +23,3 @@ } | ||
*/ | ||
export declare function trackedPeerList(config: CreateTrackedPeerListInit): PeerList; | ||
export declare function trackedPeerList(config: TrackedPeerListInit): PeerList; | ||
//# sourceMappingURL=tracked-list.d.ts.map |
@@ -5,12 +5,2 @@ import { PeerMap } from './map.js'; | ||
name: string; | ||
metrics: Metrics; | ||
} | ||
export interface CreateTrackedPeerMapInit { | ||
/** | ||
* The metric name to use | ||
*/ | ||
name: string; | ||
/** | ||
* A metrics implementation | ||
*/ | ||
metrics?: Metrics; | ||
@@ -33,3 +23,3 @@ } | ||
*/ | ||
export declare function trackedPeerMap<V>(config: CreateTrackedPeerMapInit): PeerMap<V>; | ||
export declare function trackedPeerMap<V>(config: TrackedPeerMapInit): PeerMap<V>; | ||
//# sourceMappingURL=tracked-map.d.ts.map |
@@ -5,12 +5,2 @@ import { PeerSet } from './set.js'; | ||
name: string; | ||
metrics: Metrics; | ||
} | ||
export interface CreateTrackedPeerSetInit { | ||
/** | ||
* The metric name to use | ||
*/ | ||
name: string; | ||
/** | ||
* A metrics implementation | ||
*/ | ||
metrics?: Metrics; | ||
@@ -33,3 +23,3 @@ } | ||
*/ | ||
export declare function trackedPeerSet(config: CreateTrackedPeerSetInit): PeerSet; | ||
export declare function trackedPeerSet(config: TrackedPeerSetInit): PeerSet; | ||
//# sourceMappingURL=tracked-set.d.ts.map |
{ | ||
"name": "@libp2p/peer-collections", | ||
"version": "6.0.2", | ||
"version": "6.0.3-c258b35af", | ||
"description": "Stores values against a peer id", | ||
@@ -57,9 +57,9 @@ "license": "Apache-2.0 OR MIT", | ||
"dependencies": { | ||
"@libp2p/interface": "^2.1.0", | ||
"@libp2p/peer-id": "^5.0.2", | ||
"@libp2p/utils": "^6.0.2", | ||
"@libp2p/interface": "2.1.1-c258b35af", | ||
"@libp2p/peer-id": "5.0.3-c258b35af", | ||
"@libp2p/utils": "6.0.3-c258b35af", | ||
"multiformats": "^13.2.2" | ||
}, | ||
"devDependencies": { | ||
"@libp2p/crypto": "^5.0.2", | ||
"@libp2p/crypto": "5.0.3-c258b35af", | ||
"@types/sinon": "^17.0.3", | ||
@@ -66,0 +66,0 @@ "aegir": "^44.0.1", |
@@ -116,3 +116,6 @@ /** | ||
export { trackedPeerMap } from './tracked-map.js' | ||
export type { TrackedPeerMapInit } from './tracked-map.js' | ||
export { trackedPeerSet } from './tracked-set.js' | ||
export type { TrackedPeerSetInit } from './tracked-set.js' | ||
export { trackedPeerList } from './tracked-list.js' | ||
export type { TrackedPeerListInit } from './tracked-list.js' |
@@ -6,3 +6,3 @@ import { PeerList } from './list.js' | ||
name: string | ||
metrics: Metrics | ||
metrics?: Metrics | ||
} | ||
@@ -13,3 +13,3 @@ | ||
constructor (init: TrackedPeerListInit) { | ||
constructor (init: Required<TrackedPeerListInit>) { | ||
super() | ||
@@ -56,14 +56,2 @@ | ||
export interface CreateTrackedPeerListInit { | ||
/** | ||
* The metric name to use | ||
*/ | ||
name: string | ||
/** | ||
* A metrics implementation | ||
*/ | ||
metrics?: Metrics | ||
} | ||
/** | ||
@@ -84,3 +72,3 @@ * Creates a PeerList that reports it's size to the libp2p Metrics service | ||
*/ | ||
export function trackedPeerList (config: CreateTrackedPeerListInit): PeerList { | ||
export function trackedPeerList (config: TrackedPeerListInit): PeerList { | ||
const { name, metrics } = config | ||
@@ -87,0 +75,0 @@ let map: PeerList |
@@ -6,3 +6,3 @@ import { PeerMap } from './map.js' | ||
name: string | ||
metrics: Metrics | ||
metrics?: Metrics | ||
} | ||
@@ -13,3 +13,3 @@ | ||
constructor (init: TrackedPeerMapInit) { | ||
constructor (init: Required<TrackedPeerMapInit>) { | ||
super() | ||
@@ -45,14 +45,2 @@ | ||
export interface CreateTrackedPeerMapInit { | ||
/** | ||
* The metric name to use | ||
*/ | ||
name: string | ||
/** | ||
* A metrics implementation | ||
*/ | ||
metrics?: Metrics | ||
} | ||
/** | ||
@@ -73,3 +61,3 @@ * Creates a PeerMap that reports it's size to the libp2p Metrics service | ||
*/ | ||
export function trackedPeerMap <V> (config: CreateTrackedPeerMapInit): PeerMap<V> { | ||
export function trackedPeerMap <V> (config: TrackedPeerMapInit): PeerMap<V> { | ||
const { name, metrics } = config | ||
@@ -76,0 +64,0 @@ let map: PeerMap<V> |
@@ -6,3 +6,3 @@ import { PeerSet } from './set.js' | ||
name: string | ||
metrics: Metrics | ||
metrics?: Metrics | ||
} | ||
@@ -13,3 +13,3 @@ | ||
constructor (init: TrackedPeerSetInit) { | ||
constructor (init: Required<TrackedPeerSetInit>) { | ||
super() | ||
@@ -43,14 +43,2 @@ | ||
export interface CreateTrackedPeerSetInit { | ||
/** | ||
* The metric name to use | ||
*/ | ||
name: string | ||
/** | ||
* A metrics implementation | ||
*/ | ||
metrics?: Metrics | ||
} | ||
/** | ||
@@ -71,3 +59,3 @@ * Creates a PeerSet that reports it's size to the libp2p Metrics service | ||
*/ | ||
export function trackedPeerSet (config: CreateTrackedPeerSetInit): PeerSet { | ||
export function trackedPeerSet (config: TrackedPeerSetInit): PeerSet { | ||
const { name, metrics } = config | ||
@@ -74,0 +62,0 @@ let map: PeerSet |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
169757
49
1999
1
+ Added@libp2p/crypto@5.0.3-c258b35af(transitive)
+ Added@libp2p/interface@2.1.1-c258b35af(transitive)
+ Added@libp2p/logger@5.0.3-c258b35af(transitive)
+ Added@libp2p/peer-id@5.0.3-c258b35af(transitive)
+ Added@libp2p/utils@6.0.3-c258b35af(transitive)
+ Added@multiformats/multiaddr-matcher@1.6.0(transitive)
- Removed@libp2p/crypto@5.0.8(transitive)
- Removed@libp2p/interface@2.3.0(transitive)
- Removed@libp2p/logger@5.1.5(transitive)
- Removed@libp2p/peer-id@5.0.9(transitive)
- Removed@libp2p/utils@6.3.0(transitive)