@pbkit/runtime
Advanced tools
Comparing version 0.0.34 to 0.0.35
@@ -7,2 +7,3 @@ "use strict"; | ||
const queue = []; | ||
let _error; | ||
let deferred; | ||
@@ -23,3 +24,6 @@ let finished = false; | ||
error(error) { | ||
deferred === null || deferred === void 0 ? void 0 : deferred.reject(error); | ||
if (deferred) | ||
deferred.reject(error); | ||
else | ||
_error = error; | ||
finished = true; | ||
@@ -44,2 +48,4 @@ }, | ||
else { | ||
if (_error) | ||
return Promise.reject(_error); | ||
if (finished) { | ||
@@ -46,0 +52,0 @@ return Promise.resolve({ value: undefined, done: true }); |
{ | ||
"name": "@pbkit/runtime", | ||
"version": "0.0.34", | ||
"version": "0.0.35", | ||
"author": "JongChan Choi <jong@chan.moe>", | ||
@@ -5,0 +5,0 @@ "license": "(MIT OR Apache-2.0)", |
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
50718
1443