metautil
Advanced tools
Comparing version 3.5.17 to 3.5.18
@@ -5,2 +5,6 @@ # Changelog | ||
## [3.5.18][] - 2022-01-29 | ||
- Fix semaphore bug with counter and queue | ||
## [3.5.17][] - 2022-01-26 | ||
@@ -134,3 +138,4 @@ | ||
[unreleased]: https://github.com/metarhia/metautil/compare/v3.5.17....HEAD | ||
[unreleased]: https://github.com/metarhia/metautil/compare/v3.5.18....HEAD | ||
[3.5.18]: https://github.com/metarhia/metautil/compare/v3.5.17...v3.5.18 | ||
[3.5.17]: https://github.com/metarhia/metautil/compare/v3.5.16...v3.5.17 | ||
@@ -137,0 +142,0 @@ [3.5.16]: https://github.com/metarhia/metautil/compare/v3.5.15...v3.5.16 |
@@ -39,4 +39,4 @@ 'use strict'; | ||
leave() { | ||
this.counter++; | ||
if (this.queue.length === 0) { | ||
this.counter++; | ||
this.empty = this.counter === this.concurrency; | ||
@@ -43,0 +43,0 @@ return; |
{ | ||
"name": "metautil", | ||
"version": "3.5.17", | ||
"version": "3.5.18", | ||
"author": "Timur Shemsedinov <timur.shemsedinov@gmail.com>", | ||
@@ -41,12 +41,12 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@types/node": "^16.10.3", | ||
"@types/node": "^17.0.13", | ||
"eslint": "^7.32.0", | ||
"eslint-config-metarhia": "^7.0.1", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-import": "^2.24.2", | ||
"eslint-plugin-import": "^2.25.4", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"metatests": "^0.7.2", | ||
"prettier": "^2.4.1", | ||
"typescript": "^4.4.3" | ||
"metatests": "^0.8.0", | ||
"prettier": "^2.5.1", | ||
"typescript": "^4.5.5" | ||
} | ||
} |
32120