Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cancellation-token-source

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cancellation-token-source - npm Package Compare versions

Comparing version 0.0.3 to 0.1.0

1

dist/cancellation-token-source.js

@@ -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 @@ }

2

dist/cancellation-token.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc