Socket
Socket
Sign inDemoInstall

p-map

Package Overview
Dependencies
0
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 1.1.1

9

index.js

@@ -18,4 +18,5 @@ 'use strict';

let resolvingCount = 0;
let currentIdx = 0;
const next = i => {
const next = () => {
if (isRejected) {

@@ -26,2 +27,4 @@ return;

const nextItem = iterator.next();
const i = currentIdx;
currentIdx++;

@@ -46,3 +49,3 @@ if (nextItem.done) {

resolvingCount--;
next(i + concurrency);
next();
},

@@ -57,3 +60,3 @@ err => {

for (let i = 0; i < concurrency; i++) {
next(i);
next();

@@ -60,0 +63,0 @@ if (iterableDone) {

{
"name": "p-map",
"version": "1.1.0",
"version": "1.1.1",
"description": "Map over promises concurrently",

@@ -5,0 +5,0 @@ "license": "MIT",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc