mirror of
				https://github.com/musix-org/musix-oss
				synced 2025-11-04 00:29:32 +00:00 
			
		
		
		
	Updated
This commit is contained in:
		
							
								
								
									
										21
									
								
								node_modules/abort-controller/LICENSE
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								node_modules/abort-controller/LICENSE
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,21 @@
 | 
			
		||||
MIT License
 | 
			
		||||
 | 
			
		||||
Copyright (c) 2017 Toru Nagashima
 | 
			
		||||
 | 
			
		||||
Permission is hereby granted, free of charge, to any person obtaining a copy
 | 
			
		||||
of this software and associated documentation files (the "Software"), to deal
 | 
			
		||||
in the Software without restriction, including without limitation the rights
 | 
			
		||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 | 
			
		||||
copies of the Software, and to permit persons to whom the Software is
 | 
			
		||||
furnished to do so, subject to the following conditions:
 | 
			
		||||
 | 
			
		||||
The above copyright notice and this permission notice shall be included in all
 | 
			
		||||
copies or substantial portions of the Software.
 | 
			
		||||
 | 
			
		||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 | 
			
		||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 | 
			
		||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 | 
			
		||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 | 
			
		||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 | 
			
		||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 | 
			
		||||
SOFTWARE.
 | 
			
		||||
							
								
								
									
										98
									
								
								node_modules/abort-controller/README.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										98
									
								
								node_modules/abort-controller/README.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,98 @@
 | 
			
		||||
# abort-controller
 | 
			
		||||
 | 
			
		||||
[](https://www.npmjs.com/package/abort-controller)
 | 
			
		||||
[](http://www.npmtrends.com/abort-controller)
 | 
			
		||||
[](https://travis-ci.org/mysticatea/abort-controller)
 | 
			
		||||
[](https://codecov.io/gh/mysticatea/abort-controller)
 | 
			
		||||
[](https://david-dm.org/mysticatea/abort-controller)
 | 
			
		||||
 | 
			
		||||
An implementation of [WHATWG AbortController interface](https://dom.spec.whatwg.org/#interface-abortcontroller).
 | 
			
		||||
 | 
			
		||||
```js
 | 
			
		||||
import AbortController from "abort-controller"
 | 
			
		||||
 | 
			
		||||
const controller = new AbortController()
 | 
			
		||||
const signal = controller.signal
 | 
			
		||||
 | 
			
		||||
signal.addEventListener("abort", () => {
 | 
			
		||||
    console.log("aborted!")
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
controller.abort()
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
> https://jsfiddle.net/1r2994qp/1/
 | 
			
		||||
 | 
			
		||||
## 💿 Installation
 | 
			
		||||
 | 
			
		||||
Use [npm](https://www.npmjs.com/) to install then use a bundler.
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
npm install abort-controller
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Or download from [`dist` directory](./dist).
 | 
			
		||||
 | 
			
		||||
- [dist/abort-controller.mjs](dist/abort-controller.mjs) ... ES modules version.
 | 
			
		||||
- [dist/abort-controller.js](dist/abort-controller.js) ... Common JS version.
 | 
			
		||||
- [dist/abort-controller.umd.js](dist/abort-controller.umd.js) ... UMD (Universal Module Definition) version. This is transpiled by [Babel](https://babeljs.io/) for IE 11.
 | 
			
		||||
 | 
			
		||||
## 📖 Usage
 | 
			
		||||
 | 
			
		||||
### Basic
 | 
			
		||||
 | 
			
		||||
```js
 | 
			
		||||
import AbortController from "abort-controller"
 | 
			
		||||
// or
 | 
			
		||||
const AbortController = require("abort-controller")
 | 
			
		||||
 | 
			
		||||
// or UMD version defines a global variable:
 | 
			
		||||
const AbortController = window.AbortControllerShim
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
If your bundler recognizes `browser` field of `package.json`, the imported `AbortController` is the native one and it doesn't contain shim (even if the native implementation was nothing).
 | 
			
		||||
If you wanted to polyfill `AbortController` for IE, use `abort-controller/polyfill`.
 | 
			
		||||
 | 
			
		||||
### Polyfilling
 | 
			
		||||
 | 
			
		||||
Importing `abort-controller/polyfill` assigns the `AbortController` shim to the `AbortController` global variable if the native implementation was nothing.
 | 
			
		||||
 | 
			
		||||
```js
 | 
			
		||||
import "abort-controller/polyfill"
 | 
			
		||||
// or
 | 
			
		||||
require("abort-controller/polyfill")
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### API
 | 
			
		||||
 | 
			
		||||
#### AbortController
 | 
			
		||||
 | 
			
		||||
> https://dom.spec.whatwg.org/#interface-abortcontroller
 | 
			
		||||
 | 
			
		||||
##### controller.signal
 | 
			
		||||
 | 
			
		||||
The [AbortSignal](https://dom.spec.whatwg.org/#interface-AbortSignal) object which is associated to this controller.
 | 
			
		||||
 | 
			
		||||
##### controller.abort()
 | 
			
		||||
 | 
			
		||||
Notify `abort` event to listeners that the `signal` has.
 | 
			
		||||
 | 
			
		||||
## 📰 Changelog
 | 
			
		||||
 | 
			
		||||
- See [GitHub releases](https://github.com/mysticatea/abort-controller/releases).
 | 
			
		||||
 | 
			
		||||
## 🍻 Contributing
 | 
			
		||||
 | 
			
		||||
Contributing is welcome ❤️
 | 
			
		||||
 | 
			
		||||
Please use GitHub issues/PRs.
 | 
			
		||||
 | 
			
		||||
### Development tools
 | 
			
		||||
 | 
			
		||||
- `npm install` installs dependencies for development.
 | 
			
		||||
- `npm test` runs tests and measures code coverage.
 | 
			
		||||
- `npm run clean` removes temporary files of tests.
 | 
			
		||||
- `npm run coverage` opens code coverage of the previous test with your default browser.
 | 
			
		||||
- `npm run lint` runs ESLint.
 | 
			
		||||
- `npm run build` generates `dist` codes.
 | 
			
		||||
- `npm run watch` runs tests on each file change.
 | 
			
		||||
							
								
								
									
										13
									
								
								node_modules/abort-controller/browser.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								node_modules/abort-controller/browser.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
			
		||||
/*globals self, window */
 | 
			
		||||
"use strict"
 | 
			
		||||
 | 
			
		||||
/*eslint-disable @mysticatea/prettier */
 | 
			
		||||
const { AbortController, AbortSignal } =
 | 
			
		||||
    typeof self !== "undefined" ? self :
 | 
			
		||||
    typeof window !== "undefined" ? window :
 | 
			
		||||
    /* otherwise */ undefined
 | 
			
		||||
/*eslint-enable @mysticatea/prettier */
 | 
			
		||||
 | 
			
		||||
module.exports = AbortController
 | 
			
		||||
module.exports.AbortSignal = AbortSignal
 | 
			
		||||
module.exports.default = AbortController
 | 
			
		||||
							
								
								
									
										11
									
								
								node_modules/abort-controller/browser.mjs
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								node_modules/abort-controller/browser.mjs
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
			
		||||
/*globals self, window */
 | 
			
		||||
 | 
			
		||||
/*eslint-disable @mysticatea/prettier */
 | 
			
		||||
const { AbortController, AbortSignal } =
 | 
			
		||||
    typeof self !== "undefined" ? self :
 | 
			
		||||
    typeof window !== "undefined" ? window :
 | 
			
		||||
    /* otherwise */ undefined
 | 
			
		||||
/*eslint-enable @mysticatea/prettier */
 | 
			
		||||
 | 
			
		||||
export default AbortController
 | 
			
		||||
export { AbortController, AbortSignal }
 | 
			
		||||
							
								
								
									
										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
											
										
									
								
							
							
								
								
									
										127
									
								
								node_modules/abort-controller/package.json
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										127
									
								
								node_modules/abort-controller/package.json
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,127 @@
 | 
			
		||||
{
 | 
			
		||||
  "_from": "abort-controller@^3.0.0",
 | 
			
		||||
  "_id": "abort-controller@3.0.0",
 | 
			
		||||
  "_inBundle": false,
 | 
			
		||||
  "_integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==",
 | 
			
		||||
  "_location": "/abort-controller",
 | 
			
		||||
  "_phantomChildren": {},
 | 
			
		||||
  "_requested": {
 | 
			
		||||
    "type": "range",
 | 
			
		||||
    "registry": true,
 | 
			
		||||
    "raw": "abort-controller@^3.0.0",
 | 
			
		||||
    "name": "abort-controller",
 | 
			
		||||
    "escapedName": "abort-controller",
 | 
			
		||||
    "rawSpec": "^3.0.0",
 | 
			
		||||
    "saveSpec": null,
 | 
			
		||||
    "fetchSpec": "^3.0.0"
 | 
			
		||||
  },
 | 
			
		||||
  "_requiredBy": [
 | 
			
		||||
    "/gaxios",
 | 
			
		||||
    "/gcs-resumable-upload",
 | 
			
		||||
    "/google-gax"
 | 
			
		||||
  ],
 | 
			
		||||
  "_resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz",
 | 
			
		||||
  "_shasum": "eaf54d53b62bae4138e809ca225c8439a6efb392",
 | 
			
		||||
  "_spec": "abort-controller@^3.0.0",
 | 
			
		||||
  "_where": "C:\\Users\\matia\\Documents\\GitHub\\FutoX-Musix\\node_modules\\google-gax",
 | 
			
		||||
  "author": {
 | 
			
		||||
    "name": "Toru Nagashima",
 | 
			
		||||
    "url": "https://github.com/mysticatea"
 | 
			
		||||
  },
 | 
			
		||||
  "browser": "./browser.js",
 | 
			
		||||
  "bugs": {
 | 
			
		||||
    "url": "https://github.com/mysticatea/abort-controller/issues"
 | 
			
		||||
  },
 | 
			
		||||
  "bundleDependencies": false,
 | 
			
		||||
  "dependencies": {
 | 
			
		||||
    "event-target-shim": "^5.0.0"
 | 
			
		||||
  },
 | 
			
		||||
  "deprecated": false,
 | 
			
		||||
  "description": "An implementation of WHATWG AbortController interface.",
 | 
			
		||||
  "devDependencies": {
 | 
			
		||||
    "@babel/core": "^7.2.2",
 | 
			
		||||
    "@babel/plugin-transform-modules-commonjs": "^7.2.0",
 | 
			
		||||
    "@babel/preset-env": "^7.3.0",
 | 
			
		||||
    "@babel/register": "^7.0.0",
 | 
			
		||||
    "@mysticatea/eslint-plugin": "^8.0.1",
 | 
			
		||||
    "@mysticatea/spy": "^0.1.2",
 | 
			
		||||
    "@types/mocha": "^5.2.5",
 | 
			
		||||
    "@types/node": "^10.12.18",
 | 
			
		||||
    "assert": "^1.4.1",
 | 
			
		||||
    "codecov": "^3.1.0",
 | 
			
		||||
    "dts-bundle-generator": "^2.0.0",
 | 
			
		||||
    "eslint": "^5.12.1",
 | 
			
		||||
    "karma": "^3.1.4",
 | 
			
		||||
    "karma-chrome-launcher": "^2.2.0",
 | 
			
		||||
    "karma-coverage": "^1.1.2",
 | 
			
		||||
    "karma-firefox-launcher": "^1.1.0",
 | 
			
		||||
    "karma-growl-reporter": "^1.0.0",
 | 
			
		||||
    "karma-ie-launcher": "^1.0.0",
 | 
			
		||||
    "karma-mocha": "^1.3.0",
 | 
			
		||||
    "karma-rollup-preprocessor": "^7.0.0-rc.2",
 | 
			
		||||
    "mocha": "^5.2.0",
 | 
			
		||||
    "npm-run-all": "^4.1.5",
 | 
			
		||||
    "nyc": "^13.1.0",
 | 
			
		||||
    "opener": "^1.5.1",
 | 
			
		||||
    "rimraf": "^2.6.3",
 | 
			
		||||
    "rollup": "^1.1.2",
 | 
			
		||||
    "rollup-plugin-babel": "^4.3.2",
 | 
			
		||||
    "rollup-plugin-babel-minify": "^7.0.0",
 | 
			
		||||
    "rollup-plugin-commonjs": "^9.2.0",
 | 
			
		||||
    "rollup-plugin-node-resolve": "^4.0.0",
 | 
			
		||||
    "rollup-plugin-sourcemaps": "^0.4.2",
 | 
			
		||||
    "rollup-plugin-typescript": "^1.0.0",
 | 
			
		||||
    "rollup-watch": "^4.3.1",
 | 
			
		||||
    "ts-node": "^8.0.1",
 | 
			
		||||
    "type-tester": "^1.0.0",
 | 
			
		||||
    "typescript": "^3.2.4"
 | 
			
		||||
  },
 | 
			
		||||
  "engines": {
 | 
			
		||||
    "node": ">=6.5"
 | 
			
		||||
  },
 | 
			
		||||
  "files": [
 | 
			
		||||
    "dist",
 | 
			
		||||
    "polyfill.*",
 | 
			
		||||
    "browser.*"
 | 
			
		||||
  ],
 | 
			
		||||
  "homepage": "https://github.com/mysticatea/abort-controller#readme",
 | 
			
		||||
  "keywords": [
 | 
			
		||||
    "w3c",
 | 
			
		||||
    "whatwg",
 | 
			
		||||
    "event",
 | 
			
		||||
    "events",
 | 
			
		||||
    "abort",
 | 
			
		||||
    "cancel",
 | 
			
		||||
    "abortcontroller",
 | 
			
		||||
    "abortsignal",
 | 
			
		||||
    "controller",
 | 
			
		||||
    "signal",
 | 
			
		||||
    "shim"
 | 
			
		||||
  ],
 | 
			
		||||
  "license": "MIT",
 | 
			
		||||
  "main": "dist/abort-controller",
 | 
			
		||||
  "name": "abort-controller",
 | 
			
		||||
  "repository": {
 | 
			
		||||
    "type": "git",
 | 
			
		||||
    "url": "git+https://github.com/mysticatea/abort-controller.git"
 | 
			
		||||
  },
 | 
			
		||||
  "scripts": {
 | 
			
		||||
    "build": "run-s -s build:*",
 | 
			
		||||
    "build:dts": "dts-bundle-generator -o dist/abort-controller.d.ts src/abort-controller.ts && ts-node scripts/fix-dts",
 | 
			
		||||
    "build:rollup": "rollup -c",
 | 
			
		||||
    "clean": "rimraf .nyc_output coverage",
 | 
			
		||||
    "codecov": "codecov",
 | 
			
		||||
    "coverage": "opener coverage/lcov-report/index.html",
 | 
			
		||||
    "lint": "eslint . --ext .ts",
 | 
			
		||||
    "postversion": "git push && git push --tags",
 | 
			
		||||
    "preversion": "npm test",
 | 
			
		||||
    "test": "run-s -s lint test:*",
 | 
			
		||||
    "test:karma": "karma start --single-run",
 | 
			
		||||
    "test:mocha": "nyc mocha test/*.ts",
 | 
			
		||||
    "version": "npm run -s build && git add dist/*",
 | 
			
		||||
    "watch": "run-p -s watch:*",
 | 
			
		||||
    "watch:karma": "karma start --watch",
 | 
			
		||||
    "watch:mocha": "mocha test/*.ts --require ts-node/register --watch-extensions ts --watch --growl"
 | 
			
		||||
  },
 | 
			
		||||
  "version": "3.0.0"
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										21
									
								
								node_modules/abort-controller/polyfill.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								node_modules/abort-controller/polyfill.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,21 @@
 | 
			
		||||
/*globals require, self, window */
 | 
			
		||||
"use strict"
 | 
			
		||||
 | 
			
		||||
const ac = require("./dist/abort-controller")
 | 
			
		||||
 | 
			
		||||
/*eslint-disable @mysticatea/prettier */
 | 
			
		||||
const g =
 | 
			
		||||
    typeof self !== "undefined" ? self :
 | 
			
		||||
    typeof window !== "undefined" ? window :
 | 
			
		||||
    typeof global !== "undefined" ? global :
 | 
			
		||||
    /* otherwise */ undefined
 | 
			
		||||
/*eslint-enable @mysticatea/prettier */
 | 
			
		||||
 | 
			
		||||
if (g) {
 | 
			
		||||
    if (typeof g.AbortController === "undefined") {
 | 
			
		||||
        g.AbortController = ac.AbortController
 | 
			
		||||
    }
 | 
			
		||||
    if (typeof g.AbortSignal === "undefined") {
 | 
			
		||||
        g.AbortSignal = ac.AbortSignal
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										19
									
								
								node_modules/abort-controller/polyfill.mjs
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								node_modules/abort-controller/polyfill.mjs
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,19 @@
 | 
			
		||||
/*globals self, window */
 | 
			
		||||
import * as ac from "./dist/abort-controller"
 | 
			
		||||
 | 
			
		||||
/*eslint-disable @mysticatea/prettier */
 | 
			
		||||
const g =
 | 
			
		||||
    typeof self !== "undefined" ? self :
 | 
			
		||||
    typeof window !== "undefined" ? window :
 | 
			
		||||
    typeof global !== "undefined" ? global :
 | 
			
		||||
    /* otherwise */ undefined
 | 
			
		||||
/*eslint-enable @mysticatea/prettier */
 | 
			
		||||
 | 
			
		||||
if (g) {
 | 
			
		||||
    if (typeof g.AbortController === "undefined") {
 | 
			
		||||
        g.AbortController = ac.AbortController
 | 
			
		||||
    }
 | 
			
		||||
    if (typeof g.AbortSignal === "undefined") {
 | 
			
		||||
        g.AbortSignal = ac.AbortSignal
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user