🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

sequential-promise-map

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sequential-promise-map - npm Package Compare versions

Comparing version

to
1.0.3

2

package.json
{
"name": "sequential-promise-map",
"version": "1.0.2",
"version": "1.0.3",
"description": "A simple sequential version of Promise.map",

@@ -5,0 +5,0 @@ "main": "src/sequential-promise-map.js",

module.exports = function sequentialPromiseMap(array, generator) {
'use strict';
if (!Array.isArray(array)) {
return Promise.reject('the first argument must be an array');
}
if (typeof generator !== 'function') {
return Promise.reject('the second argument must be a function');
}
let index = 0;

@@ -4,0 +10,0 @@ const results = [],