New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

map-async

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

map-async - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

14

index.js

@@ -13,2 +13,6 @@ module.exports = map

if (keys.length === 0) {
return callback(null, returnValue)
}
for (var i = 0, len = keys.length; i < len; i++) {

@@ -39,14 +43,14 @@ var key = keys[i]

function invokeIterator(iterator, done, context, value, key, list) {
function invokeIterator(iterator, done, self, value, key, list) {
var length = iterator.length
if (length === 1) {
iterator.call(context, done)
iterator.call(self, done)
} else if (length === 2) {
iterator.call(context, value, done)
iterator.call(self, value, done)
} else if (length === 3) {
iterator.call(context, value, key, done)
iterator.call(self, value, key, done)
} else {
iterator.call(context, value, key, list, done)
iterator.call(self, value, key, list, done)
}
}
{
"name": "map-async",
"version": "0.1.0",
"version": "0.1.1",
"description": "Asynchronously map over a list",

@@ -5,0 +5,0 @@ "keywords": [],

@@ -7,2 +7,15 @@ # map-async

``` js
var map = require("map-async")
map({
foo: "bar"
, baz: "boz"
}, function iterator(value, key, cb) {
return value + value
}, function finish(err, result) {
/* ... */
})
```
## Installation

@@ -16,2 +29,2 @@

## MIT Licenced
## MIT Licenced
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