Socket
Socket
Sign inDemoInstall

it-map

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

it-map - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

2

dist/src/index.d.ts

@@ -7,4 +7,4 @@ /**

declare function map<I, O>(source: Iterable<I>, func: (val: I) => O): Generator<O, void, undefined>;
declare function map<I, O>(source: AsyncIterable<I>, func: (val: I) => O | Promise<O>): AsyncGenerator<O, void, undefined>;
declare function map<I, O>(source: AsyncIterable<I> | Iterable<I>, func: (val: I) => O | Promise<O>): AsyncGenerator<O, void, undefined>;
export default map;
//# sourceMappingURL=index.d.ts.map
{
"name": "it-map",
"version": "3.0.0",
"version": "3.0.1",
"description": "Maps the values yielded by an async iterator",

@@ -5,0 +5,0 @@ "author": "Alex Potsides <alex@achingbrain.net>",

@@ -13,3 +13,3 @@ import peek from 'it-peekable'

function map <I, O> (source: Iterable<I>, func: (val: I) => O): Generator<O, void, undefined>
function map <I, O> (source: AsyncIterable<I>, func: (val: I) => O | Promise<O>): AsyncGenerator<O, void, undefined>
function map <I, O> (source: AsyncIterable<I> | Iterable<I>, func: (val: I) => O | Promise<O>): AsyncGenerator<O, void, undefined>
function map <I, O> (source: AsyncIterable<I> | Iterable<I>, func: (val: I) => O | Promise<O>): AsyncGenerator<O, void, undefined> | Generator<O, void, undefined> {

@@ -16,0 +16,0 @@ if (isAsyncIterable(source)) {

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