@fluent-org/logger
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -192,3 +192,5 @@ "use strict"; | ||
this.emitQueue.add(emitPromise); | ||
emitPromise.finally(() => this.emitQueue.delete(emitPromise)); | ||
emitPromise | ||
.finally(() => this.emitQueue.delete(emitPromise)) | ||
.catch(() => { }); | ||
} | ||
@@ -195,0 +197,0 @@ return emitPromise; |
@@ -13,3 +13,8 @@ "use strict"; | ||
]); | ||
racePromise.finally(() => (timeoutId ? clearTimeout(timeoutId) : undefined)); | ||
racePromise | ||
.finally(() => { | ||
if (timeoutId) | ||
clearTimeout(timeoutId); | ||
}) | ||
.catch(() => { }); | ||
return racePromise; | ||
@@ -16,0 +21,0 @@ }; |
{ | ||
"name": "@fluent-org/logger", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "A node fluent protocol compatible logger", | ||
@@ -5,0 +5,0 @@ "main": "./build/src/index.js", |
@@ -476,3 +476,5 @@ import { | ||
this.emitQueue.add(emitPromise); | ||
emitPromise.finally(() => this.emitQueue.delete(emitPromise)); | ||
emitPromise | ||
.finally(() => this.emitQueue.delete(emitPromise)) | ||
.catch(() => {}); | ||
} | ||
@@ -479,0 +481,0 @@ return emitPromise; |
@@ -16,3 +16,7 @@ export const awaitAtMost = <T>( | ||
]); | ||
racePromise.finally(() => (timeoutId ? clearTimeout(timeoutId) : undefined)); | ||
racePromise | ||
.finally(() => { | ||
if (timeoutId) clearTimeout(timeoutId); | ||
}) | ||
.catch(() => {}); | ||
return racePromise; | ||
@@ -19,0 +23,0 @@ }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
327762
7665