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 2.2.1 to 2.2.2

3

dist/src/util.d.ts

@@ -0,2 +1,5 @@

/**
* Calls the passed map function on every entry of the passed iterable iterator
*/
export declare function mapIterable<T, R>(iter: IterableIterator<T>, map: (val: T) => R): IterableIterator<R>;
//# sourceMappingURL=util.d.ts.map

@@ -0,1 +1,4 @@

/**
* Calls the passed map function on every entry of the passed iterable iterator
*/
export function mapIterable(iter, map) {

@@ -2,0 +5,0 @@ const iterator = {

2

package.json
{
"name": "@libp2p/peer-collections",
"version": "2.2.1",
"version": "2.2.2",
"description": "Stores values against a peer id",

@@ -5,0 +5,0 @@ "license": "Apache-2.0 OR MIT",

/**
* Calls the passed map function on every entry of the passed iterable iterator
*/
export function mapIterable <T, R> (iter: IterableIterator<T>, map: (val: T) => R): IterableIterator<R> {

@@ -3,0 +6,0 @@ const iterator: IterableIterator<R> = {

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