Deployed the page to Github Pages.
This commit is contained in:
parent
1d79754e93
commit
2c89899458
62797 changed files with 6551425 additions and 15279 deletions
43
node_modules/abort-controller/dist/abort-controller.d.ts
generated
vendored
Normal file
43
node_modules/abort-controller/dist/abort-controller.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,43 @@
|
|||
import { EventTarget } from "event-target-shim"
|
||||
|
||||
type Events = {
|
||||
abort: any
|
||||
}
|
||||
type EventAttributes = {
|
||||
onabort: any
|
||||
}
|
||||
/**
|
||||
* The signal class.
|
||||
* @see https://dom.spec.whatwg.org/#abortsignal
|
||||
*/
|
||||
declare class AbortSignal extends EventTarget<Events, EventAttributes> {
|
||||
/**
|
||||
* AbortSignal cannot be constructed directly.
|
||||
*/
|
||||
constructor()
|
||||
/**
|
||||
* Returns `true` if this `AbortSignal`"s `AbortController` has signaled to abort, and `false` otherwise.
|
||||
*/
|
||||
readonly aborted: boolean
|
||||
}
|
||||
/**
|
||||
* The AbortController.
|
||||
* @see https://dom.spec.whatwg.org/#abortcontroller
|
||||
*/
|
||||
declare class AbortController {
|
||||
/**
|
||||
* Initialize this controller.
|
||||
*/
|
||||
constructor()
|
||||
/**
|
||||
* Returns the `AbortSignal` object associated with this object.
|
||||
*/
|
||||
readonly signal: AbortSignal
|
||||
/**
|
||||
* Abort and signal to any observers that the associated activity is to be aborted.
|
||||
*/
|
||||
abort(): void
|
||||
}
|
||||
|
||||
export default AbortController
|
||||
export { AbortController, AbortSignal }
|
127
node_modules/abort-controller/dist/abort-controller.js
generated
vendored
Normal file
127
node_modules/abort-controller/dist/abort-controller.js
generated
vendored
Normal file
|
@ -0,0 +1,127 @@
|
|||
/**
|
||||
* @author Toru Nagashima <https://github.com/mysticatea>
|
||||
* See LICENSE file in root directory for full license.
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var eventTargetShim = require('event-target-shim');
|
||||
|
||||
/**
|
||||
* The signal class.
|
||||
* @see https://dom.spec.whatwg.org/#abortsignal
|
||||
*/
|
||||
class AbortSignal extends eventTargetShim.EventTarget {
|
||||
/**
|
||||
* AbortSignal cannot be constructed directly.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
throw new TypeError("AbortSignal cannot be constructed directly");
|
||||
}
|
||||
/**
|
||||
* Returns `true` if this `AbortSignal`'s `AbortController` has signaled to abort, and `false` otherwise.
|
||||
*/
|
||||
get aborted() {
|
||||
const aborted = abortedFlags.get(this);
|
||||
if (typeof aborted !== "boolean") {
|
||||
throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this === null ? "null" : typeof this}`);
|
||||
}
|
||||
return aborted;
|
||||
}
|
||||
}
|
||||
eventTargetShim.defineEventAttribute(AbortSignal.prototype, "abort");
|
||||
/**
|
||||
* Create an AbortSignal object.
|
||||
*/
|
||||
function createAbortSignal() {
|
||||
const signal = Object.create(AbortSignal.prototype);
|
||||
eventTargetShim.EventTarget.call(signal);
|
||||
abortedFlags.set(signal, false);
|
||||
return signal;
|
||||
}
|
||||
/**
|
||||
* Abort a given signal.
|
||||
*/
|
||||
function abortSignal(signal) {
|
||||
if (abortedFlags.get(signal) !== false) {
|
||||
return;
|
||||
}
|
||||
abortedFlags.set(signal, true);
|
||||
signal.dispatchEvent({ type: "abort" });
|
||||
}
|
||||
/**
|
||||
* Aborted flag for each instances.
|
||||
*/
|
||||
const abortedFlags = new WeakMap();
|
||||
// Properties should be enumerable.
|
||||
Object.defineProperties(AbortSignal.prototype, {
|
||||
aborted: { enumerable: true },
|
||||
});
|
||||
// `toString()` should return `"[object AbortSignal]"`
|
||||
if (typeof Symbol === "function" && typeof Symbol.toStringTag === "symbol") {
|
||||
Object.defineProperty(AbortSignal.prototype, Symbol.toStringTag, {
|
||||
configurable: true,
|
||||
value: "AbortSignal",
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* The AbortController.
|
||||
* @see https://dom.spec.whatwg.org/#abortcontroller
|
||||
*/
|
||||
class AbortController {
|
||||
/**
|
||||
* Initialize this controller.
|
||||
*/
|
||||
constructor() {
|
||||
signals.set(this, createAbortSignal());
|
||||
}
|
||||
/**
|
||||
* Returns the `AbortSignal` object associated with this object.
|
||||
*/
|
||||
get signal() {
|
||||
return getSignal(this);
|
||||
}
|
||||
/**
|
||||
* Abort and signal to any observers that the associated activity is to be aborted.
|
||||
*/
|
||||
abort() {
|
||||
abortSignal(getSignal(this));
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Associated signals.
|
||||
*/
|
||||
const signals = new WeakMap();
|
||||
/**
|
||||
* Get the associated signal of a given controller.
|
||||
*/
|
||||
function getSignal(controller) {
|
||||
const signal = signals.get(controller);
|
||||
if (signal == null) {
|
||||
throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${controller === null ? "null" : typeof controller}`);
|
||||
}
|
||||
return signal;
|
||||
}
|
||||
// Properties should be enumerable.
|
||||
Object.defineProperties(AbortController.prototype, {
|
||||
signal: { enumerable: true },
|
||||
abort: { enumerable: true },
|
||||
});
|
||||
if (typeof Symbol === "function" && typeof Symbol.toStringTag === "symbol") {
|
||||
Object.defineProperty(AbortController.prototype, Symbol.toStringTag, {
|
||||
configurable: true,
|
||||
value: "AbortController",
|
||||
});
|
||||
}
|
||||
|
||||
exports.AbortController = AbortController;
|
||||
exports.AbortSignal = AbortSignal;
|
||||
exports.default = AbortController;
|
||||
|
||||
module.exports = AbortController
|
||||
module.exports.AbortController = module.exports["default"] = AbortController
|
||||
module.exports.AbortSignal = AbortSignal
|
||||
//# sourceMappingURL=abort-controller.js.map
|
1
node_modules/abort-controller/dist/abort-controller.js.map
generated
vendored
Normal file
1
node_modules/abort-controller/dist/abort-controller.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
118
node_modules/abort-controller/dist/abort-controller.mjs
generated
vendored
Normal file
118
node_modules/abort-controller/dist/abort-controller.mjs
generated
vendored
Normal file
|
@ -0,0 +1,118 @@
|
|||
/**
|
||||
* @author Toru Nagashima <https://github.com/mysticatea>
|
||||
* See LICENSE file in root directory for full license.
|
||||
*/
|
||||
import { EventTarget, defineEventAttribute } from 'event-target-shim';
|
||||
|
||||
/**
|
||||
* The signal class.
|
||||
* @see https://dom.spec.whatwg.org/#abortsignal
|
||||
*/
|
||||
class AbortSignal extends EventTarget {
|
||||
/**
|
||||
* AbortSignal cannot be constructed directly.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
throw new TypeError("AbortSignal cannot be constructed directly");
|
||||
}
|
||||
/**
|
||||
* Returns `true` if this `AbortSignal`'s `AbortController` has signaled to abort, and `false` otherwise.
|
||||
*/
|
||||
get aborted() {
|
||||
const aborted = abortedFlags.get(this);
|
||||
if (typeof aborted !== "boolean") {
|
||||
throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this === null ? "null" : typeof this}`);
|
||||
}
|
||||
return aborted;
|
||||
}
|
||||
}
|
||||
defineEventAttribute(AbortSignal.prototype, "abort");
|
||||
/**
|
||||
* Create an AbortSignal object.
|
||||
*/
|
||||
function createAbortSignal() {
|
||||
const signal = Object.create(AbortSignal.prototype);
|
||||
EventTarget.call(signal);
|
||||
abortedFlags.set(signal, false);
|
||||
return signal;
|
||||
}
|
||||
/**
|
||||
* Abort a given signal.
|
||||
*/
|
||||
function abortSignal(signal) {
|
||||
if (abortedFlags.get(signal) !== false) {
|
||||
return;
|
||||
}
|
||||
abortedFlags.set(signal, true);
|
||||
signal.dispatchEvent({ type: "abort" });
|
||||
}
|
||||
/**
|
||||
* Aborted flag for each instances.
|
||||
*/
|
||||
const abortedFlags = new WeakMap();
|
||||
// Properties should be enumerable.
|
||||
Object.defineProperties(AbortSignal.prototype, {
|
||||
aborted: { enumerable: true },
|
||||
});
|
||||
// `toString()` should return `"[object AbortSignal]"`
|
||||
if (typeof Symbol === "function" && typeof Symbol.toStringTag === "symbol") {
|
||||
Object.defineProperty(AbortSignal.prototype, Symbol.toStringTag, {
|
||||
configurable: true,
|
||||
value: "AbortSignal",
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* The AbortController.
|
||||
* @see https://dom.spec.whatwg.org/#abortcontroller
|
||||
*/
|
||||
class AbortController {
|
||||
/**
|
||||
* Initialize this controller.
|
||||
*/
|
||||
constructor() {
|
||||
signals.set(this, createAbortSignal());
|
||||
}
|
||||
/**
|
||||
* Returns the `AbortSignal` object associated with this object.
|
||||
*/
|
||||
get signal() {
|
||||
return getSignal(this);
|
||||
}
|
||||
/**
|
||||
* Abort and signal to any observers that the associated activity is to be aborted.
|
||||
*/
|
||||
abort() {
|
||||
abortSignal(getSignal(this));
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Associated signals.
|
||||
*/
|
||||
const signals = new WeakMap();
|
||||
/**
|
||||
* Get the associated signal of a given controller.
|
||||
*/
|
||||
function getSignal(controller) {
|
||||
const signal = signals.get(controller);
|
||||
if (signal == null) {
|
||||
throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${controller === null ? "null" : typeof controller}`);
|
||||
}
|
||||
return signal;
|
||||
}
|
||||
// Properties should be enumerable.
|
||||
Object.defineProperties(AbortController.prototype, {
|
||||
signal: { enumerable: true },
|
||||
abort: { enumerable: true },
|
||||
});
|
||||
if (typeof Symbol === "function" && typeof Symbol.toStringTag === "symbol") {
|
||||
Object.defineProperty(AbortController.prototype, Symbol.toStringTag, {
|
||||
configurable: true,
|
||||
value: "AbortController",
|
||||
});
|
||||
}
|
||||
|
||||
export default AbortController;
|
||||
export { AbortController, AbortSignal };
|
||||
//# sourceMappingURL=abort-controller.mjs.map
|
1
node_modules/abort-controller/dist/abort-controller.mjs.map
generated
vendored
Normal file
1
node_modules/abort-controller/dist/abort-controller.mjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
5
node_modules/abort-controller/dist/abort-controller.umd.js
generated
vendored
Normal file
5
node_modules/abort-controller/dist/abort-controller.umd.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
node_modules/abort-controller/dist/abort-controller.umd.js.map
generated
vendored
Normal file
1
node_modules/abort-controller/dist/abort-controller.umd.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue