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 2.0.0 to 2.0.1

4

package.json
{
"name": "it-map",
"version": "2.0.0",
"version": "2.0.1",
"description": "Maps the values yielded by an async iterator",

@@ -138,4 +138,4 @@ "author": "Alex Potsides <alex@achingbrain.net>",

"devDependencies": {
"aegir": "^37.5.0"
"aegir": "^38.1.7"
}
}

@@ -5,3 +5,3 @@ /**

*/
export default async function * map <I, O> (source: AsyncIterable<I>|Iterable<I>, func: (val: I) => O | Promise<O>): AsyncGenerator<O, void, undefined> {
export default async function * map <I, O> (source: AsyncIterable<I> | Iterable<I>, func: (val: I) => O | Promise<O>): AsyncGenerator<O, void, undefined> {
for await (const val of source) {

@@ -8,0 +8,0 @@ yield func(val)

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