metautil
Advanced tools
Comparing version 3.5.3 to 3.5.4
@@ -5,2 +5,7 @@ # Changelog | ||
## [3.5.4][] - 2021-05-24 | ||
- Semaphore default parameters | ||
- Package maintenance | ||
## [3.5.3][] - 2021-05-05 | ||
@@ -63,3 +68,4 @@ | ||
[unreleased]: https://github.com/metarhia/metautil/compare/v3.5.3...HEAD | ||
[unreleased]: https://github.com/metarhia/metautil/compare/v3.5.4...HEAD | ||
[3.5.4]: https://github.com/metarhia/metautil/compare/v3.5.3...v3.5.4 | ||
[3.5.3]: https://github.com/metarhia/metautil/compare/v3.5.2...v3.5.3 | ||
@@ -66,0 +72,0 @@ [3.5.2]: https://github.com/metarhia/metautil/compare/v3.5.1...v3.5.2 |
'use strict'; | ||
class Semaphore { | ||
constructor(concurrency, size, timeout) { | ||
constructor(concurrency, size = 0, timeout = 0) { | ||
this.counter = concurrency; | ||
@@ -6,0 +6,0 @@ this.timeout = timeout; |
{ | ||
"name": "metautil", | ||
"version": "3.5.3", | ||
"version": "3.5.4", | ||
"author": "Timur Shemsedinov <timur.shemsedinov@gmail.com>", | ||
@@ -19,3 +19,3 @@ "license": "MIT", | ||
"engines": { | ||
"node": "^12.9 || 14 || 15" | ||
"node": "^12.9 || 14 || 16" | ||
}, | ||
@@ -42,12 +42,12 @@ "repository": { | ||
"devDependencies": { | ||
"@types/node": "^15.0.2", | ||
"eslint": "^7.25.0", | ||
"@types/node": "^15.6.0", | ||
"eslint": "^7.27.0", | ||
"eslint-config-metarhia": "^7.0.1", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-import": "^2.22.1", | ||
"eslint-plugin-import": "^2.23.3", | ||
"eslint-plugin-prettier": "^3.4.0", | ||
"metatests": "^0.7.2", | ||
"prettier": "^2.2.1", | ||
"prettier": "^2.3.0", | ||
"typescript": "^4.2.4" | ||
} | ||
} |
@@ -58,3 +58,3 @@ import { EventEmitter } from 'events'; | ||
export class Semaphore { | ||
constructor(concurrency: number, size: number, timeout: number); | ||
constructor(concurrency: number, size?: number, timeout?: number); | ||
counter: number; | ||
@@ -61,0 +61,0 @@ timeout: number; |
17228