@supercharge/promise-pool
Advanced tools
Comparing version 1.6.1 to 1.6.2
# 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 @@ |
@@ -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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27171
630