Initial
This commit is contained in:
9
resources/app/node_modules/@smithy/abort-controller/dist-es/AbortController.js
generated
vendored
Normal file
9
resources/app/node_modules/@smithy/abort-controller/dist-es/AbortController.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import { AbortSignal } from "./AbortSignal";
|
||||
export class AbortController {
|
||||
constructor() {
|
||||
this.signal = new AbortSignal();
|
||||
}
|
||||
abort() {
|
||||
this.signal.abort();
|
||||
}
|
||||
}
|
||||
20
resources/app/node_modules/@smithy/abort-controller/dist-es/AbortSignal.js
generated
vendored
Normal file
20
resources/app/node_modules/@smithy/abort-controller/dist-es/AbortSignal.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
export class AbortSignal {
|
||||
constructor() {
|
||||
this.onabort = null;
|
||||
this._aborted = false;
|
||||
Object.defineProperty(this, "_aborted", {
|
||||
value: false,
|
||||
writable: true,
|
||||
});
|
||||
}
|
||||
get aborted() {
|
||||
return this._aborted;
|
||||
}
|
||||
abort() {
|
||||
this._aborted = true;
|
||||
if (this.onabort) {
|
||||
this.onabort(this);
|
||||
this.onabort = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
2
resources/app/node_modules/@smithy/abort-controller/dist-es/index.js
generated
vendored
Normal file
2
resources/app/node_modules/@smithy/abort-controller/dist-es/index.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from "./AbortController";
|
||||
export * from "./AbortSignal";
|
||||
Reference in New Issue
Block a user