Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@libp2p/peer-collections

Package Overview
Dependencies
Maintainers
6
Versions
562
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@libp2p/peer-collections - npm Package Compare versions

Comparing version 6.0.2 to 6.0.3-c258b35af

3

dist/src/index.d.ts

@@ -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

12

dist/src/tracked-list.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc