cancellation-token-source
Advanced tools
Comparing version 0.0.3 to 0.1.0
@@ -32,2 +32,3 @@ "use strict"; | ||
}); | ||
this.promise.catch(() => { }); // Don't cause an unhandledrejection | ||
this._token = new cancellation_token_1.default(this, this.promise); | ||
@@ -34,0 +35,0 @@ } |
@@ -48,3 +48,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
yield Promise.race([promise, this]); | ||
yield Promise.race([this.promise, promise]); | ||
return promise; | ||
@@ -51,0 +51,0 @@ }); |
{ | ||
"name": "cancellation-token-source", | ||
"version": "0.0.3", | ||
"version": "0.1.0", | ||
"description": "CancellationTokenSource implementation for JavaScript", | ||
@@ -20,4 +20,4 @@ "keywords": [ | ||
"scripts": { | ||
"build": "del-cli ./dist && tsc", | ||
"generate-docs": "del-cli ./docs && typedoc --readme ./README.md --out ./docs --exclude **/*/index.* --excludeExternals --excludePrivate --mode modules --entryPoint cancellation-token-source", | ||
"build": "rimraf ./dist && tsc", | ||
"generate-docs": "rimraf ./docs && typedoc --readme ./README.md --out ./docs --exclude **/*/index.* --excludeExternals --excludePrivate --mode modules --entryPoint cancellation-token-source", | ||
"test": "jest" | ||
@@ -27,4 +27,4 @@ }, | ||
"@types/jest": "^23.3.9", | ||
"del-cli": "^1.1.0", | ||
"jest": "^23.6.0", | ||
"rimraf": "^2.6.2", | ||
"ts-jest": "^23.10.4", | ||
@@ -31,0 +31,0 @@ "typedoc": "^0.13.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
1423
495193