remove node_modules and .gitignore them
This commit is contained in:
-13
@@ -1,13 +0,0 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.AbortController = void 0;
|
||||
const AbortSignal_1 = require("./AbortSignal");
|
||||
class AbortController {
|
||||
constructor() {
|
||||
this.signal = new AbortSignal_1.AbortSignal();
|
||||
}
|
||||
abort() {
|
||||
this.signal.abort();
|
||||
}
|
||||
}
|
||||
exports.AbortController = AbortController;
|
||||
-24
@@ -1,24 +0,0 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.AbortSignal = void 0;
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
exports.AbortSignal = AbortSignal;
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const tslib_1 = require("tslib");
|
||||
tslib_1.__exportStar(require("./AbortController"), exports);
|
||||
tslib_1.__exportStar(require("./AbortSignal"), exports);
|
||||
Reference in New Issue
Block a user