Socket
Socket
Sign inDemoInstall

@supercharge/promise-pool

Package Overview
Dependencies
Maintainers
3
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@supercharge/promise-pool - npm Package Compare versions

Comparing version 1.6.1 to 1.6.2

9

CHANGELOG.md
# Changelog
## [1.6.2](https://github.com/supercharge/promise-pool/compare/v1.6.1...v1.6.2) - 2021-04-09
### Updated
- bump dependencies
### Fixed
- missing concurrency in certain cases when not calling `.withConcurrency()`
## [1.6.1](https://github.com/supercharge/promise-pool/compare/v1.6.0...v1.6.1) - 2021-03-28

@@ -5,0 +14,0 @@

3

dist/promise-pool.d.ts

@@ -11,3 +11,2 @@ import { ReturnValue } from './return-value';

private concurrency;
private static concurrency;
/**

@@ -38,3 +37,3 @@ * The error handler callback function

*/
static withConcurrency(concurrency: number): typeof PromisePool;
static withConcurrency(concurrency: number): PromisePool<unknown>;
/**

@@ -41,0 +40,0 @@ * Set the items to be processed in the promise pool.

@@ -37,5 +37,3 @@ 'use strict';

static withConcurrency(concurrency) {
return goodies_1.tap(this, () => {
this.concurrency = concurrency;
});
return new this().withConcurrency(concurrency);
}

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

static for(items) {
return new this()
.for(items)
.withConcurrency(this.concurrency);
return new this().for(items);
}

@@ -65,0 +61,0 @@ /**

{
"name": "@supercharge/promise-pool",
"description": "Map-like, concurrent promise processing for Node.js",
"version": "1.6.1",
"version": "1.6.2",
"author": "Marcus Pöhls <marcus@superchargejs.com>",

@@ -15,3 +15,3 @@ "bugs": {

"@types/jest": "~26.0.22",
"@typescript-eslint/eslint-plugin": "~4.19.0",
"@typescript-eslint/eslint-plugin": "~4.21.0",
"eslint": "~7.23.0",

@@ -25,3 +25,3 @@ "eslint-config-standard": "~16.0.2",

"jest-extended": "~0.11.5",
"typescript": "~4.2.3"
"typescript": "~4.2.4"
},

@@ -28,0 +28,0 @@ "engines": {

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