Comparing version 3.5.1 to 3.5.2
@@ -5,2 +5,7 @@ # Changelog | ||
## [3.5.2][] - 2021-04-20 | ||
- Semaphore bug: remove promise from queue on timeout | ||
- Improve typings: use object as dictionary, import without require | ||
## [3.5.1][] - 2021-03-04 | ||
@@ -53,3 +58,4 @@ | ||
[unreleased]: https://github.com/metarhia/metautil/compare/v3.5.1...HEAD | ||
[unreleased]: https://github.com/metarhia/metautil/compare/v3.5.2...HEAD | ||
[3.5.2]: https://github.com/metarhia/metautil/compare/v3.5.1...v3.5.2 | ||
[3.5.1]: https://github.com/metarhia/metautil/compare/v3.5.0...v3.5.1 | ||
@@ -56,0 +62,0 @@ [3.5.0]: https://github.com/metarhia/metautil/compare/v3.4.0...v3.5.0 |
@@ -25,2 +25,3 @@ 'use strict'; | ||
waiting.resolve = null; | ||
this.queue.shift(); | ||
reject(new Error('Semaphore timeout')); | ||
@@ -27,0 +28,0 @@ }, this.timeout); |
{ | ||
"name": "metautil", | ||
"version": "3.5.1", | ||
"version": "3.5.2", | ||
"author": "Timur Shemsedinov <timur.shemsedinov@gmail.com>", | ||
@@ -41,12 +41,12 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@types/node": "^14.14.31", | ||
"eslint": "^7.21.0", | ||
"@types/node": "^14.14.41", | ||
"eslint": "^7.24.0", | ||
"eslint-config-metarhia": "^7.0.1", | ||
"eslint-config-prettier": "^8.1.0", | ||
"eslint-config-prettier": "^8.2.0", | ||
"eslint-plugin-import": "^2.22.1", | ||
"eslint-plugin-prettier": "^3.3.0", | ||
"eslint-plugin-prettier": "^3.4.0", | ||
"metatests": "^0.7.2", | ||
"prettier": "^2.2.1", | ||
"typescript": "^4.2.2" | ||
"typescript": "^4.2.4" | ||
} | ||
} |
@@ -1,7 +0,3 @@ | ||
import EventEmitter = require('events'); | ||
import { EventEmitter } from 'events'; | ||
interface Dictionary<T> { | ||
[key: string]: T; | ||
} | ||
export function cryptoRandom(): number; | ||
@@ -36,12 +32,12 @@ export function generateKey(length: number, possible: string): string; | ||
export function duration(s: string | number): number; | ||
export function makePrivate(instance: Dictionary<any>): Dictionary<any>; | ||
export function makePrivate(instance: object): object; | ||
export function protect( | ||
allowMixins: Array<string>, | ||
...namespaces: Array<Dictionary<any>> | ||
...namespaces: Array<object> | ||
): void; | ||
export function parseCookies(cookie: string): Dictionary<string>; | ||
export function parseCookies(cookie: string): object; | ||
interface AbortController { | ||
export interface AbortController { | ||
abort: Function; | ||
@@ -55,3 +51,3 @@ signal: EventEmitter; | ||
interface QueueElement { | ||
export interface QueueElement { | ||
resolve: Function; | ||
@@ -58,0 +54,0 @@ timer: NodeJS.Timer; |
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
16611
390