@aws-sdk/abort-controller
Advanced tools
Comparing version 3.178.0 to 3.183.0
@@ -6,2 +6,10 @@ # Change Log | ||
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03) | ||
**Note:** Version bump only for package @aws-sdk/abort-controller | ||
# [3.178.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.177.0...v3.178.0) (2022-09-23) | ||
@@ -8,0 +16,0 @@ |
import { AbortSignal } from "./AbortSignal"; | ||
var AbortController = (function () { | ||
function AbortController() { | ||
export class AbortController { | ||
constructor() { | ||
this.signal = new AbortSignal(); | ||
} | ||
AbortController.prototype.abort = function () { | ||
abort() { | ||
this.signal.abort(); | ||
}; | ||
return AbortController; | ||
}()); | ||
export { AbortController }; | ||
} | ||
} |
@@ -1,3 +0,3 @@ | ||
var AbortSignal = (function () { | ||
function AbortSignal() { | ||
export class AbortSignal { | ||
constructor() { | ||
this.onabort = null; | ||
@@ -10,10 +10,6 @@ this._aborted = false; | ||
} | ||
Object.defineProperty(AbortSignal.prototype, "aborted", { | ||
get: function () { | ||
return this._aborted; | ||
}, | ||
enumerable: false, | ||
configurable: true | ||
}); | ||
AbortSignal.prototype.abort = function () { | ||
get aborted() { | ||
return this._aborted; | ||
} | ||
abort() { | ||
this._aborted = true; | ||
@@ -24,5 +20,3 @@ if (this.onabort) { | ||
} | ||
}; | ||
return AbortSignal; | ||
}()); | ||
export { AbortSignal }; | ||
} | ||
} |
{ | ||
"name": "@aws-sdk/abort-controller", | ||
"version": "3.178.0", | ||
"version": "3.183.0", | ||
"description": "A simple abort controller library", | ||
@@ -24,3 +24,3 @@ "main": "./dist-cjs/index.js", | ||
"dependencies": { | ||
"@aws-sdk/types": "3.178.0", | ||
"@aws-sdk/types": "3.183.0", | ||
"tslib": "^2.3.1" | ||
@@ -27,0 +27,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
45651
111
+ Added@aws-sdk/types@3.183.0(transitive)
- Removed@aws-sdk/types@3.178.0(transitive)
Updated@aws-sdk/types@3.183.0