@spoosh/core 0.17.0 → 0.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1982,7 +1982,7 @@ var Semaphore = class {
1982
1982
  if (this.current > 0) {
1983
1983
  this.current--;
1984
1984
  }
1985
- if (this.waiting.length > 0) {
1985
+ if (this.waiting.length > 0 && this.current < this.max) {
1986
1986
  this.current++;
1987
1987
  this.waiting.shift()(true);
1988
1988
  }
package/dist/index.mjs CHANGED
@@ -1909,7 +1909,7 @@ var Semaphore = class {
1909
1909
  if (this.current > 0) {
1910
1910
  this.current--;
1911
1911
  }
1912
- if (this.waiting.length > 0) {
1912
+ if (this.waiting.length > 0 && this.current < this.max) {
1913
1913
  this.current++;
1914
1914
  this.waiting.shift()(true);
1915
1915
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spoosh/core",
3
- "version": "0.17.0",
3
+ "version": "0.17.1",
4
4
  "license": "MIT",
5
5
  "description": "Type-safe API toolkit with plugin middleware system",
6
6
  "keywords": [