@azure/abort-controller
Advanced tools
Comparing version 1.0.1-dev.20191118.1 to 1.0.1-dev.20191204.1
@@ -97,5 +97,5 @@ var listenersMap = new WeakMap(); | ||
/** | ||
* Dispatches a synthetic event to the AbortSignal. | ||
*/ | ||
AbortSignal.prototype.dispatchEvent = function (event) { | ||
* Dispatches a synthetic event to the AbortSignal. | ||
*/ | ||
AbortSignal.prototype.dispatchEvent = function (_event) { | ||
throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes."); | ||
@@ -102,0 +102,0 @@ }; |
@@ -103,5 +103,5 @@ 'use strict'; | ||
/** | ||
* Dispatches a synthetic event to the AbortSignal. | ||
*/ | ||
AbortSignal.prototype.dispatchEvent = function (event) { | ||
* Dispatches a synthetic event to the AbortSignal. | ||
*/ | ||
AbortSignal.prototype.dispatchEvent = function (_event) { | ||
throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes."); | ||
@@ -108,0 +108,0 @@ }; |
{ | ||
"name": "@azure/abort-controller", | ||
"sdk-type": "client", | ||
"version": "1.0.1-dev.20191118.1", | ||
"version": "1.0.1-dev.20191204.1", | ||
"description": "Microsoft Azure SDK for JavaScript - Aborter", | ||
@@ -77,3 +77,3 @@ "main": "./dist/index.js", | ||
"assert": "^1.4.1", | ||
"cross-env": "^5.2.0", | ||
"cross-env": "^6.0.3", | ||
"delay": "^4.2.0", | ||
@@ -92,3 +92,3 @@ "eslint": "^6.1.0", | ||
"karma-ie-launcher": "^1.0.0", | ||
"karma-junit-reporter": "^1.2.0", | ||
"karma-junit-reporter": "^2.0.1", | ||
"karma-mocha": "^1.3.0", | ||
@@ -95,0 +95,0 @@ "karma-mocha-reporter": "^2.2.5", |
@@ -102,3 +102,3 @@ # Azure Abort Controller library for JS | ||
If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/tree/2dfd6bc1f29cd2485b696e64858467042ad2c339/CONTRIBUTING.md) to learn more about how to build and test the code. | ||
If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/tree/72bb17fa22d8426555b78e1372dc7ae658ff20a9/CONTRIBUTING.md) to learn more about how to build and test the code. | ||
@@ -105,0 +105,0 @@ This project has adopted the Microsoft Open Source Code of Conduct. |
@@ -134,6 +134,8 @@ /// <reference path="./shims-public.d.ts" /> | ||
/** | ||
* Dispatches a synthetic event to the AbortSignal. | ||
*/ | ||
dispatchEvent(event: Event): boolean { | ||
throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.") | ||
* Dispatches a synthetic event to the AbortSignal. | ||
*/ | ||
dispatchEvent(_event: Event): boolean { | ||
throw new Error( | ||
"This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes." | ||
); | ||
} | ||
@@ -140,0 +142,0 @@ } |
{ | ||
"extends": "../../../tsconfig.package", | ||
"compilerOptions": { | ||
/* Basic Options */ | ||
"target": "es5" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */, | ||
"module": "es6" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */, | ||
"lib": [] /* lib dependencies are triple-slash directives in lib/index.ts */, | ||
"declaration": true /* Generates corresponding '.d.ts' file. */, | ||
"declarationMap": true /* Generates a sourcemap for each corresponding '.d.ts' file. */, | ||
"sourceMap": true /* Generates corresponding '.map' file. */, | ||
"outDir": "./dist-esm" /* Redirect output structure to the directory. */, | ||
"stripInternal": true /* Do not emit declarations for code with @internal annotation*/, | ||
"declarationDir": "./types" /* Output directory for generated declaration files.*/, | ||
"importHelpers": true /* Import emit helpers from 'tslib'. */, | ||
/* Strict Type-Checking Options */ | ||
"strict": true /* Enable all strict type-checking options. */, | ||
"noImplicitReturns": true /* Report error when not all code paths in function return a value. */, | ||
/* Additional Checks */ | ||
"noUnusedLocals": true /* Report errors on unused locals. */, | ||
/* Module Resolution Options */ | ||
"moduleResolution": "node" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */, | ||
"allowSyntheticDefaultImports": true /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */, | ||
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */, | ||
/* Experimental Options */ | ||
"forceConsistentCasingInFileNames": true, | ||
/* Other options */ | ||
"newLine": "LF" /* Use the specified end of line sequence to be used when emitting files: "crlf" (windows) or "lf" (unix).”*/, | ||
"allowJs": false /* Don't allow JavaScript files to be compiled.*/ | ||
"target": "es5", | ||
"declarationDir": "./types", | ||
"outDir": "./dist-esm" | ||
}, | ||
@@ -29,0 +8,0 @@ "compileOnSave": true, |
@@ -77,6 +77,17 @@ /// <reference path="../../src/shims-public.d.ts" /> | ||
/** | ||
* Dispatches a synthetic event to the AbortSignal. | ||
*/ | ||
dispatchEvent(event: Event): boolean; | ||
* Dispatches a synthetic event to the AbortSignal. | ||
*/ | ||
dispatchEvent(_event: Event): boolean; | ||
} | ||
/** | ||
* Helper to trigger an abort event immediately, the onabort and all abort event listeners will be triggered. | ||
* Will try to trigger abort event for all linked AbortSignal nodes. | ||
* | ||
* - If there is a timeout, the timer will be cancelled. | ||
* - If aborted is true, nothing will happen. | ||
* | ||
* @returns | ||
* @internal | ||
*/ | ||
export declare function abortSignal(signal: AbortSignal): void; | ||
//# sourceMappingURL=AbortSignal.d.ts.map |
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
60546
1013