"
5 | ],
6 | "name": "delayed-stream",
7 | "description": "Buffers events from a stream until you are ready to handle them.",
8 | "license": "MIT",
9 | "version": "1.0.0",
10 | "homepage": "https://github.com/felixge/node-delayed-stream",
11 | "repository": {
12 | "type": "git",
13 | "url": "git://github.com/felixge/node-delayed-stream.git"
14 | },
15 | "main": "./lib/delayed_stream",
16 | "engines": {
17 | "node": ">=0.4.0"
18 | },
19 | "scripts": {
20 | "test": "make test"
21 | },
22 | "dependencies": {},
23 | "devDependencies": {
24 | "fake": "0.2.0",
25 | "far": "0.0.1"
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/node_modules/dunder-proto/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "root": true,
3 |
4 | "extends": "@ljharb",
5 | }
6 |
--------------------------------------------------------------------------------
/node_modules/dunder-proto/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: [ljharb]
4 | patreon: # Replace with a single Patreon username
5 | open_collective: # Replace with a single Open Collective username
6 | ko_fi: # Replace with a single Ko-fi username
7 | tidelift: npm/dunder-proto
8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9 | liberapay: # Replace with a single Liberapay username
10 | issuehunt: # Replace with a single IssueHunt username
11 | otechie: # Replace with a single Otechie username
12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
13 |
--------------------------------------------------------------------------------
/node_modules/dunder-proto/.nycrc:
--------------------------------------------------------------------------------
1 | {
2 | "all": true,
3 | "check-coverage": false,
4 | "reporter": ["text-summary", "text", "html", "json"],
5 | "lines": 86,
6 | "statements": 85.93,
7 | "functions": 82.43,
8 | "branches": 76.06,
9 | "exclude": [
10 | "coverage",
11 | "test"
12 | ]
13 | }
14 |
--------------------------------------------------------------------------------
/node_modules/dunder-proto/get.d.ts:
--------------------------------------------------------------------------------
1 | declare function getDunderProto(target: {}): object | null;
2 |
3 | declare const x: false | typeof getDunderProto;
4 |
5 | export = x;
--------------------------------------------------------------------------------
/node_modules/dunder-proto/get.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var callBind = require('call-bind-apply-helpers');
4 | var gOPD = require('gopd');
5 |
6 | var hasProtoAccessor;
7 | try {
8 | // eslint-disable-next-line no-extra-parens, no-proto
9 | hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
10 | } catch (e) {
11 | if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {
12 | throw e;
13 | }
14 | }
15 |
16 | // eslint-disable-next-line no-extra-parens
17 | var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
18 |
19 | var $Object = Object;
20 | var $getPrototypeOf = $Object.getPrototypeOf;
21 |
22 | /** @type {import('./get')} */
23 | module.exports = desc && typeof desc.get === 'function'
24 | ? callBind([desc.get])
25 | : typeof $getPrototypeOf === 'function'
26 | ? /** @type {import('./get')} */ function getDunder(value) {
27 | // eslint-disable-next-line eqeqeq
28 | return $getPrototypeOf(value == null ? value : $Object(value));
29 | }
30 | : false;
31 |
--------------------------------------------------------------------------------
/node_modules/dunder-proto/set.d.ts:
--------------------------------------------------------------------------------
1 | declare function setDunderProto(target: {}, proto: P): P;
2 |
3 | declare const x: false | typeof setDunderProto;
4 |
5 | export = x;
--------------------------------------------------------------------------------
/node_modules/dunder-proto/test/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | require('./get');
4 | require('./set');
5 |
--------------------------------------------------------------------------------
/node_modules/dunder-proto/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "@ljharb/tsconfig",
3 | "compilerOptions": {
4 | "target": "ES2021",
5 | },
6 | "exclude": [
7 | "coverage",
8 | ],
9 | }
10 |
--------------------------------------------------------------------------------
/node_modules/end-of-stream/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "end-of-stream",
3 | "version": "1.4.4",
4 | "description": "Call a callback when a readable/writable/duplex stream has completed or failed.",
5 | "repository": {
6 | "type": "git",
7 | "url": "git://github.com/mafintosh/end-of-stream.git"
8 | },
9 | "dependencies": {
10 | "once": "^1.4.0"
11 | },
12 | "scripts": {
13 | "test": "node test.js"
14 | },
15 | "files": [
16 | "index.js"
17 | ],
18 | "keywords": [
19 | "stream",
20 | "streams",
21 | "callback",
22 | "finish",
23 | "close",
24 | "end",
25 | "wait"
26 | ],
27 | "bugs": {
28 | "url": "https://github.com/mafintosh/end-of-stream/issues"
29 | },
30 | "homepage": "https://github.com/mafintosh/end-of-stream",
31 | "main": "index.js",
32 | "author": "Mathias Buus ",
33 | "license": "MIT",
34 | "devDependencies": {
35 | "tape": "^4.11.0"
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/node_modules/es-define-property/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "root": true,
3 |
4 | "extends": "@ljharb",
5 |
6 | "rules": {
7 | "new-cap": ["error", {
8 | "capIsNewExceptions": [
9 | "GetIntrinsic",
10 | ],
11 | }],
12 | },
13 | }
14 |
--------------------------------------------------------------------------------
/node_modules/es-define-property/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: [ljharb]
4 | patreon: # Replace with a single Patreon username
5 | open_collective: # Replace with a single Open Collective username
6 | ko_fi: # Replace with a single Ko-fi username
7 | tidelift: npm/es-define-property
8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9 | liberapay: # Replace with a single Liberapay username
10 | issuehunt: # Replace with a single IssueHunt username
11 | otechie: # Replace with a single Otechie username
12 | custom: # Replace with a single custom sponsorship URL
13 |
--------------------------------------------------------------------------------
/node_modules/es-define-property/.nycrc:
--------------------------------------------------------------------------------
1 | {
2 | "all": true,
3 | "check-coverage": false,
4 | "reporter": ["text-summary", "text", "html", "json"],
5 | "exclude": [
6 | "coverage",
7 | "test"
8 | ]
9 | }
10 |
--------------------------------------------------------------------------------
/node_modules/es-define-property/index.d.ts:
--------------------------------------------------------------------------------
1 | declare const defineProperty: false | typeof Object.defineProperty;
2 |
3 | export = defineProperty;
--------------------------------------------------------------------------------
/node_modules/es-define-property/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /** @type {import('.')} */
4 | var $defineProperty = Object.defineProperty || false;
5 | if ($defineProperty) {
6 | try {
7 | $defineProperty({}, 'a', { value: 1 });
8 | } catch (e) {
9 | // IE 8 has a broken defineProperty
10 | $defineProperty = false;
11 | }
12 | }
13 |
14 | module.exports = $defineProperty;
15 |
--------------------------------------------------------------------------------
/node_modules/es-define-property/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "@ljharb/tsconfig",
3 | "compilerOptions": {
4 | "target": "es2022",
5 | },
6 | "exclude": [
7 | "coverage",
8 | "test/list-exports"
9 | ],
10 | }
11 |
--------------------------------------------------------------------------------
/node_modules/es-errors/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "root": true,
3 |
4 | "extends": "@ljharb",
5 | }
6 |
--------------------------------------------------------------------------------
/node_modules/es-errors/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: [ljharb]
4 | patreon: # Replace with a single Patreon username
5 | open_collective: # Replace with a single Open Collective username
6 | ko_fi: # Replace with a single Ko-fi username
7 | tidelift: npm/es-errors
8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9 | liberapay: # Replace with a single Liberapay username
10 | issuehunt: # Replace with a single IssueHunt username
11 | otechie: # Replace with a single Otechie username
12 | custom: # Replace with a single custom sponsorship URL
13 |
--------------------------------------------------------------------------------
/node_modules/es-errors/eval.d.ts:
--------------------------------------------------------------------------------
1 | declare const EvalError: EvalErrorConstructor;
2 |
3 | export = EvalError;
4 |
--------------------------------------------------------------------------------
/node_modules/es-errors/eval.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /** @type {import('./eval')} */
4 | module.exports = EvalError;
5 |
--------------------------------------------------------------------------------
/node_modules/es-errors/index.d.ts:
--------------------------------------------------------------------------------
1 | declare const Error: ErrorConstructor;
2 |
3 | export = Error;
4 |
--------------------------------------------------------------------------------
/node_modules/es-errors/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /** @type {import('.')} */
4 | module.exports = Error;
5 |
--------------------------------------------------------------------------------
/node_modules/es-errors/range.d.ts:
--------------------------------------------------------------------------------
1 | declare const RangeError: RangeErrorConstructor;
2 |
3 | export = RangeError;
4 |
--------------------------------------------------------------------------------
/node_modules/es-errors/range.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /** @type {import('./range')} */
4 | module.exports = RangeError;
5 |
--------------------------------------------------------------------------------
/node_modules/es-errors/ref.d.ts:
--------------------------------------------------------------------------------
1 | declare const ReferenceError: ReferenceErrorConstructor;
2 |
3 | export = ReferenceError;
4 |
--------------------------------------------------------------------------------
/node_modules/es-errors/ref.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /** @type {import('./ref')} */
4 | module.exports = ReferenceError;
5 |
--------------------------------------------------------------------------------
/node_modules/es-errors/syntax.d.ts:
--------------------------------------------------------------------------------
1 | declare const SyntaxError: SyntaxErrorConstructor;
2 |
3 | export = SyntaxError;
4 |
--------------------------------------------------------------------------------
/node_modules/es-errors/syntax.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /** @type {import('./syntax')} */
4 | module.exports = SyntaxError;
5 |
--------------------------------------------------------------------------------
/node_modules/es-errors/test/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var test = require('tape');
4 |
5 | var E = require('../');
6 | var R = require('../range');
7 | var Ref = require('../ref');
8 | var S = require('../syntax');
9 | var T = require('../type');
10 |
11 | test('errors', function (t) {
12 | t.equal(E, Error);
13 | t.equal(R, RangeError);
14 | t.equal(Ref, ReferenceError);
15 | t.equal(S, SyntaxError);
16 | t.equal(T, TypeError);
17 |
18 | t.end();
19 | });
20 |
--------------------------------------------------------------------------------
/node_modules/es-errors/type.d.ts:
--------------------------------------------------------------------------------
1 | declare const TypeError: TypeErrorConstructor
2 |
3 | export = TypeError;
4 |
--------------------------------------------------------------------------------
/node_modules/es-errors/type.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /** @type {import('./type')} */
4 | module.exports = TypeError;
5 |
--------------------------------------------------------------------------------
/node_modules/es-errors/uri.d.ts:
--------------------------------------------------------------------------------
1 | declare const URIError: URIErrorConstructor;
2 |
3 | export = URIError;
4 |
--------------------------------------------------------------------------------
/node_modules/es-errors/uri.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /** @type {import('./uri')} */
4 | module.exports = URIError;
5 |
--------------------------------------------------------------------------------
/node_modules/es-object-atoms/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "root": true,
3 |
4 | "extends": "@ljharb",
5 |
6 | "rules": {
7 | "eqeqeq": ["error", "allow-null"],
8 | "id-length": "off",
9 | "new-cap": ["error", {
10 | "capIsNewExceptions": [
11 | "RequireObjectCoercible",
12 | "ToObject",
13 | ],
14 | }],
15 | },
16 | }
17 |
--------------------------------------------------------------------------------
/node_modules/es-object-atoms/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: [ljharb]
4 | patreon: # Replace with a single Patreon username
5 | open_collective: # Replace with a single Open Collective username
6 | ko_fi: # Replace with a single Ko-fi username
7 | tidelift: npm/es-object
8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9 | liberapay: # Replace with a single Liberapay username
10 | issuehunt: # Replace with a single IssueHunt username
11 | otechie: # Replace with a single Otechie username
12 | custom: # Replace with a single custom sponsorship URL
13 |
--------------------------------------------------------------------------------
/node_modules/es-object-atoms/RequireObjectCoercible.d.ts:
--------------------------------------------------------------------------------
1 | declare function RequireObjectCoercible(value: T, optMessage?: string): T;
2 |
3 | export = RequireObjectCoercible;
4 |
--------------------------------------------------------------------------------
/node_modules/es-object-atoms/RequireObjectCoercible.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var $TypeError = require('es-errors/type');
4 |
5 | /** @type {import('./RequireObjectCoercible')} */
6 | module.exports = function RequireObjectCoercible(value) {
7 | if (value == null) {
8 | throw new $TypeError((arguments.length > 0 && arguments[1]) || ('Cannot call method on ' + value));
9 | }
10 | return value;
11 | };
12 |
--------------------------------------------------------------------------------
/node_modules/es-object-atoms/ToObject.d.ts:
--------------------------------------------------------------------------------
1 | declare function ToObject(value: number): Number;
2 | declare function ToObject(value: boolean): Boolean;
3 | declare function ToObject(value: string): String;
4 | declare function ToObject(value: bigint): BigInt;
5 | declare function ToObject(value: T): T;
6 |
7 | export = ToObject;
8 |
--------------------------------------------------------------------------------
/node_modules/es-object-atoms/ToObject.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var $Object = require('./');
4 | var RequireObjectCoercible = require('./RequireObjectCoercible');
5 |
6 | /** @type {import('./ToObject')} */
7 | module.exports = function ToObject(value) {
8 | RequireObjectCoercible(value);
9 | return $Object(value);
10 | };
11 |
--------------------------------------------------------------------------------
/node_modules/es-object-atoms/index.d.ts:
--------------------------------------------------------------------------------
1 | declare const Object: ObjectConstructor;
2 |
3 | export = Object;
4 |
--------------------------------------------------------------------------------
/node_modules/es-object-atoms/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /** @type {import('.')} */
4 | module.exports = Object;
5 |
--------------------------------------------------------------------------------
/node_modules/es-object-atoms/isObject.d.ts:
--------------------------------------------------------------------------------
1 | declare function isObject(x: unknown): x is object;
2 |
3 | export = isObject;
4 |
--------------------------------------------------------------------------------
/node_modules/es-object-atoms/isObject.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /** @type {import('./isObject')} */
4 | module.exports = function isObject(x) {
5 | return !!x && (typeof x === 'function' || typeof x === 'object');
6 | };
7 |
--------------------------------------------------------------------------------
/node_modules/es-object-atoms/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "@ljharb/tsconfig",
3 | "compilerOptions": {
4 | "target": "es5",
5 | },
6 | }
7 |
--------------------------------------------------------------------------------
/node_modules/es-set-tostringtag/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "root": true,
3 |
4 | "extends": "@ljharb",
5 |
6 | "rules": {
7 | "new-cap": [2, {
8 | "capIsNewExceptions": [
9 | "GetIntrinsic",
10 | ],
11 | }],
12 | },
13 | }
14 |
--------------------------------------------------------------------------------
/node_modules/es-set-tostringtag/.nycrc:
--------------------------------------------------------------------------------
1 | {
2 | "all": true,
3 | "check-coverage": false,
4 | "reporter": ["text-summary", "text", "html", "json"],
5 | "exclude": [
6 | "coverage",
7 | "test"
8 | ]
9 | }
10 |
--------------------------------------------------------------------------------
/node_modules/es-set-tostringtag/index.d.ts:
--------------------------------------------------------------------------------
1 | declare function setToStringTag(
2 | object: object & { [Symbol.toStringTag]?: unknown },
3 | value: string | unknown,
4 | options?: {
5 | force?: boolean;
6 | nonConfigurable?: boolean;
7 | },
8 | ): void;
9 |
10 | export = setToStringTag;
--------------------------------------------------------------------------------
/node_modules/es-set-tostringtag/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "@ljharb/tsconfig",
3 | "compilerOptions": {
4 | "target": "es2021",
5 | },
6 | "exclude": [
7 | "coverage",
8 | ],
9 | }
10 |
--------------------------------------------------------------------------------
/node_modules/follow-redirects/debug.js:
--------------------------------------------------------------------------------
1 | var debug;
2 |
3 | module.exports = function () {
4 | if (!debug) {
5 | try {
6 | /* eslint global-require: off */
7 | debug = require("debug")("follow-redirects");
8 | }
9 | catch (error) { /* */ }
10 | if (typeof debug !== "function") {
11 | debug = function () { /* */ };
12 | }
13 | }
14 | debug.apply(null, arguments);
15 | };
16 |
--------------------------------------------------------------------------------
/node_modules/follow-redirects/http.js:
--------------------------------------------------------------------------------
1 | module.exports = require("./").http;
2 |
--------------------------------------------------------------------------------
/node_modules/follow-redirects/https.js:
--------------------------------------------------------------------------------
1 | module.exports = require("./").https;
2 |
--------------------------------------------------------------------------------
/node_modules/form-data/lib/browser.js:
--------------------------------------------------------------------------------
1 | /* eslint-env browser */
2 | module.exports = typeof self == 'object' ? self.FormData : window.FormData;
3 |
--------------------------------------------------------------------------------
/node_modules/form-data/lib/populate.js:
--------------------------------------------------------------------------------
1 | // populates missing values
2 | module.exports = function(dst, src) {
3 |
4 | Object.keys(src).forEach(function(prop)
5 | {
6 | dst[prop] = dst[prop] || src[prop];
7 | });
8 |
9 | return dst;
10 | };
11 |
--------------------------------------------------------------------------------
/node_modules/function-bind/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "root": true,
3 |
4 | "extends": "@ljharb",
5 |
6 | "rules": {
7 | "func-name-matching": 0,
8 | "indent": [2, 4],
9 | "no-new-func": [1],
10 | },
11 |
12 | "overrides": [
13 | {
14 | "files": "test/**",
15 | "rules": {
16 | "max-lines-per-function": 0,
17 | "strict": [0]
18 | },
19 | },
20 | ],
21 | }
22 |
--------------------------------------------------------------------------------
/node_modules/function-bind/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: [ljharb]
4 | patreon: # Replace with a single Patreon username
5 | open_collective: # Replace with a single Open Collective username
6 | ko_fi: # Replace with a single Ko-fi username
7 | tidelift: npm/function-bind
8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9 | liberapay: # Replace with a single Liberapay username
10 | issuehunt: # Replace with a single IssueHunt username
11 | otechie: # Replace with a single Otechie username
12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
13 |
--------------------------------------------------------------------------------
/node_modules/function-bind/.github/SECURITY.md:
--------------------------------------------------------------------------------
1 | # Security
2 |
3 | Please email [@ljharb](https://github.com/ljharb) or see https://tidelift.com/security if you have a potential security vulnerability to report.
4 |
--------------------------------------------------------------------------------
/node_modules/function-bind/.nycrc:
--------------------------------------------------------------------------------
1 | {
2 | "all": true,
3 | "check-coverage": false,
4 | "reporter": ["text-summary", "text", "html", "json"],
5 | "lines": 86,
6 | "statements": 85.93,
7 | "functions": 82.43,
8 | "branches": 76.06,
9 | "exclude": [
10 | "coverage",
11 | "test"
12 | ]
13 | }
14 |
--------------------------------------------------------------------------------
/node_modules/function-bind/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2013 Raynos.
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in
11 | all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
21 |
--------------------------------------------------------------------------------
/node_modules/function-bind/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var implementation = require('./implementation');
4 |
5 | module.exports = Function.prototype.bind || implementation;
6 |
--------------------------------------------------------------------------------
/node_modules/function-bind/test/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "rules": {
3 | "array-bracket-newline": 0,
4 | "array-element-newline": 0,
5 | "max-statements-per-line": [2, { "max": 2 }],
6 | "no-invalid-this": 0,
7 | "no-magic-numbers": 0,
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/node_modules/get-intrinsic/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "root": true,
3 |
4 | "extends": "@ljharb",
5 |
6 | "env": {
7 | "es6": true,
8 | "es2017": true,
9 | "es2020": true,
10 | "es2021": true,
11 | "es2022": true,
12 | },
13 |
14 | "globals": {
15 | "Float16Array": false,
16 | },
17 |
18 | "rules": {
19 | "array-bracket-newline": 0,
20 | "complexity": 0,
21 | "eqeqeq": [2, "allow-null"],
22 | "func-name-matching": 0,
23 | "id-length": 0,
24 | "max-lines": 0,
25 | "max-lines-per-function": [2, 90],
26 | "max-params": [2, 4],
27 | "max-statements": 0,
28 | "max-statements-per-line": [2, { "max": 2 }],
29 | "multiline-comment-style": 0,
30 | "no-magic-numbers": 0,
31 | "sort-keys": 0,
32 | },
33 |
34 | "overrides": [
35 | {
36 | "files": "test/**",
37 | "rules": {
38 | "new-cap": 0,
39 | },
40 | },
41 | ],
42 | }
43 |
--------------------------------------------------------------------------------
/node_modules/get-intrinsic/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: [ljharb]
4 | patreon: # Replace with a single Patreon username
5 | open_collective: # Replace with a single Open Collective username
6 | ko_fi: # Replace with a single Ko-fi username
7 | tidelift: npm/get-intrinsic
8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9 | liberapay: # Replace with a single Liberapay username
10 | issuehunt: # Replace with a single IssueHunt username
11 | otechie: # Replace with a single Otechie username
12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
13 |
--------------------------------------------------------------------------------
/node_modules/get-intrinsic/.nycrc:
--------------------------------------------------------------------------------
1 | {
2 | "all": true,
3 | "check-coverage": false,
4 | "reporter": ["text-summary", "text", "html", "json"],
5 | "exclude": [
6 | "coverage",
7 | "test"
8 | ]
9 | }
10 |
--------------------------------------------------------------------------------
/node_modules/get-proto/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "root": true,
3 |
4 | "extends": "@ljharb",
5 |
6 | "rules": {
7 | "id-length": "off",
8 | "sort-keys": "off",
9 | },
10 | }
11 |
--------------------------------------------------------------------------------
/node_modules/get-proto/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: [ljharb]
4 | patreon: # Replace with a single Patreon username
5 | open_collective: # Replace with a single Open Collective username
6 | ko_fi: # Replace with a single Ko-fi username
7 | tidelift: npm/get-proto
8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9 | liberapay: # Replace with a single Liberapay username
10 | issuehunt: # Replace with a single IssueHunt username
11 | otechie: # Replace with a single Otechie username
12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
13 |
--------------------------------------------------------------------------------
/node_modules/get-proto/.nycrc:
--------------------------------------------------------------------------------
1 | {
2 | "all": true,
3 | "check-coverage": false,
4 | "reporter": ["text-summary", "text", "html", "json"],
5 | "exclude": [
6 | "coverage",
7 | "test"
8 | ]
9 | }
10 |
--------------------------------------------------------------------------------
/node_modules/get-proto/Object.getPrototypeOf.d.ts:
--------------------------------------------------------------------------------
1 | declare function getProto(object: O): object | null;
2 |
3 | declare const x: typeof getProto | null;
4 |
5 | export = x;
--------------------------------------------------------------------------------
/node_modules/get-proto/Object.getPrototypeOf.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var $Object = require('es-object-atoms');
4 |
5 | /** @type {import('./Object.getPrototypeOf')} */
6 | module.exports = $Object.getPrototypeOf || null;
7 |
--------------------------------------------------------------------------------
/node_modules/get-proto/Reflect.getPrototypeOf.d.ts:
--------------------------------------------------------------------------------
1 | declare const x: typeof Reflect.getPrototypeOf | null;
2 |
3 | export = x;
--------------------------------------------------------------------------------
/node_modules/get-proto/Reflect.getPrototypeOf.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /** @type {import('./Reflect.getPrototypeOf')} */
4 | module.exports = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null;
5 |
--------------------------------------------------------------------------------
/node_modules/get-proto/index.d.ts:
--------------------------------------------------------------------------------
1 | declare function getProto(object: O): object | null;
2 |
3 | declare const x: typeof getProto | null;
4 |
5 | export = x;
6 |
--------------------------------------------------------------------------------
/node_modules/get-proto/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var reflectGetProto = require('./Reflect.getPrototypeOf');
4 | var originalGetProto = require('./Object.getPrototypeOf');
5 |
6 | var getDunderProto = require('dunder-proto/get');
7 |
8 | /** @type {import('.')} */
9 | module.exports = reflectGetProto
10 | ? function getProto(O) {
11 | // @ts-expect-error TS can't narrow inside a closure, for some reason
12 | return reflectGetProto(O);
13 | }
14 | : originalGetProto
15 | ? function getProto(O) {
16 | if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
17 | throw new TypeError('getProto: not an object');
18 | }
19 | // @ts-expect-error TS can't narrow inside a closure, for some reason
20 | return originalGetProto(O);
21 | }
22 | : getDunderProto
23 | ? function getProto(O) {
24 | // @ts-expect-error TS can't narrow inside a closure, for some reason
25 | return getDunderProto(O);
26 | }
27 | : null;
28 |
--------------------------------------------------------------------------------
/node_modules/get-proto/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "@ljharb/tsconfig",
3 | "compilerOptions": {
4 | //"target": "es2021",
5 | },
6 | "exclude": [
7 | "coverage",
8 | ],
9 | }
10 |
--------------------------------------------------------------------------------
/node_modules/get-stream/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "get-stream",
3 | "version": "5.2.0",
4 | "description": "Get a stream as a string, buffer, or array",
5 | "license": "MIT",
6 | "repository": "sindresorhus/get-stream",
7 | "funding": "https://github.com/sponsors/sindresorhus",
8 | "author": {
9 | "name": "Sindre Sorhus",
10 | "email": "sindresorhus@gmail.com",
11 | "url": "https://sindresorhus.com"
12 | },
13 | "engines": {
14 | "node": ">=8"
15 | },
16 | "scripts": {
17 | "test": "xo && ava && tsd"
18 | },
19 | "files": [
20 | "index.js",
21 | "index.d.ts",
22 | "buffer-stream.js"
23 | ],
24 | "keywords": [
25 | "get",
26 | "stream",
27 | "promise",
28 | "concat",
29 | "string",
30 | "text",
31 | "buffer",
32 | "read",
33 | "data",
34 | "consume",
35 | "readable",
36 | "readablestream",
37 | "array",
38 | "object"
39 | ],
40 | "dependencies": {
41 | "pump": "^3.0.0"
42 | },
43 | "devDependencies": {
44 | "@types/node": "^12.0.7",
45 | "ava": "^2.0.0",
46 | "into-stream": "^5.0.0",
47 | "tsd": "^0.7.2",
48 | "xo": "^0.24.0"
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/node_modules/gopd/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "root": true,
3 |
4 | "extends": "@ljharb",
5 |
6 | "rules": {
7 | "func-style": [2, "declaration"],
8 | "id-length": 0,
9 | "multiline-comment-style": 0,
10 | "new-cap": [2, {
11 | "capIsNewExceptions": [
12 | "GetIntrinsic",
13 | ],
14 | }],
15 | },
16 | }
17 |
--------------------------------------------------------------------------------
/node_modules/gopd/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: [ljharb]
4 | patreon: # Replace with a single Patreon username
5 | open_collective: # Replace with a single Open Collective username
6 | ko_fi: # Replace with a single Ko-fi username
7 | tidelift: npm/gopd
8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9 | liberapay: # Replace with a single Liberapay username
10 | issuehunt: # Replace with a single IssueHunt username
11 | otechie: # Replace with a single Otechie username
12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
13 |
--------------------------------------------------------------------------------
/node_modules/gopd/gOPD.d.ts:
--------------------------------------------------------------------------------
1 | export = Object.getOwnPropertyDescriptor;
2 |
--------------------------------------------------------------------------------
/node_modules/gopd/gOPD.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /** @type {import('./gOPD')} */
4 | module.exports = Object.getOwnPropertyDescriptor;
5 |
--------------------------------------------------------------------------------
/node_modules/gopd/index.d.ts:
--------------------------------------------------------------------------------
1 | declare function gOPD(obj: O, prop: K): PropertyDescriptor | undefined;
2 |
3 | declare const fn: typeof gOPD | undefined | null;
4 |
5 | export = fn;
--------------------------------------------------------------------------------
/node_modules/gopd/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /** @type {import('.')} */
4 | var $gOPD = require('./gOPD');
5 |
6 | if ($gOPD) {
7 | try {
8 | $gOPD([], 'length');
9 | } catch (e) {
10 | // IE 8 has a broken gOPD
11 | $gOPD = null;
12 | }
13 | }
14 |
15 | module.exports = $gOPD;
16 |
--------------------------------------------------------------------------------
/node_modules/gopd/test/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var test = require('tape');
4 | var gOPD = require('../');
5 |
6 | test('gOPD', function (t) {
7 | t.test('supported', { skip: !gOPD }, function (st) {
8 | st.equal(typeof gOPD, 'function', 'is a function');
9 |
10 | var obj = { x: 1 };
11 | st.ok('x' in obj, 'property exists');
12 |
13 | // @ts-expect-error TS can't figure out narrowing from `skip`
14 | var desc = gOPD(obj, 'x');
15 | st.deepEqual(
16 | desc,
17 | {
18 | configurable: true,
19 | enumerable: true,
20 | value: 1,
21 | writable: true
22 | },
23 | 'descriptor is as expected'
24 | );
25 |
26 | st.end();
27 | });
28 |
29 | t.test('not supported', { skip: !!gOPD }, function (st) {
30 | st.notOk(gOPD, 'is falsy');
31 |
32 | st.end();
33 | });
34 |
35 | t.end();
36 | });
37 |
--------------------------------------------------------------------------------
/node_modules/gopd/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "@ljharb/tsconfig",
3 | "compilerOptions": {
4 | "target": "es2021",
5 | },
6 | "exclude": [
7 | "coverage",
8 | ],
9 | }
10 |
--------------------------------------------------------------------------------
/node_modules/got/dist/source/as-promise/create-rejection.d.ts:
--------------------------------------------------------------------------------
1 | import { CancelableRequest, BeforeErrorHook } from './types';
2 | export default function createRejection(error: Error, ...beforeErrorGroups: Array): CancelableRequest;
3 |
--------------------------------------------------------------------------------
/node_modules/got/dist/source/as-promise/create-rejection.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | const types_1 = require("./types");
4 | function createRejection(error, ...beforeErrorGroups) {
5 | const promise = (async () => {
6 | if (error instanceof types_1.RequestError) {
7 | try {
8 | for (const hooks of beforeErrorGroups) {
9 | if (hooks) {
10 | for (const hook of hooks) {
11 | // eslint-disable-next-line no-await-in-loop
12 | error = await hook(error);
13 | }
14 | }
15 | }
16 | }
17 | catch (error_) {
18 | error = error_;
19 | }
20 | }
21 | throw error;
22 | })();
23 | const returnPromise = () => promise;
24 | promise.json = returnPromise;
25 | promise.text = returnPromise;
26 | promise.buffer = returnPromise;
27 | promise.on = returnPromise;
28 | return promise;
29 | }
30 | exports.default = createRejection;
31 |
--------------------------------------------------------------------------------
/node_modules/got/dist/source/as-promise/index.d.ts:
--------------------------------------------------------------------------------
1 | import { NormalizedOptions, CancelableRequest } from './types';
2 | export default function asPromise(normalizedOptions: NormalizedOptions): CancelableRequest;
3 | export * from './types';
4 |
--------------------------------------------------------------------------------
/node_modules/got/dist/source/as-promise/normalize-arguments.d.ts:
--------------------------------------------------------------------------------
1 | import { NormalizedOptions, Defaults } from './types';
2 | declare const normalizeArguments: (options: NormalizedOptions, defaults?: Defaults | undefined) => NormalizedOptions;
3 | export default normalizeArguments;
4 |
--------------------------------------------------------------------------------
/node_modules/got/dist/source/as-promise/parse-body.d.ts:
--------------------------------------------------------------------------------
1 | import { ResponseType, Response, ParseJsonFunction } from './types';
2 | declare const parseBody: (response: Response, responseType: ResponseType, parseJson: ParseJsonFunction, encoding?: "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex" | undefined) => unknown;
3 | export default parseBody;
4 |
--------------------------------------------------------------------------------
/node_modules/got/dist/source/as-promise/parse-body.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | const types_1 = require("./types");
4 | const parseBody = (response, responseType, parseJson, encoding) => {
5 | const { rawBody } = response;
6 | try {
7 | if (responseType === 'text') {
8 | return rawBody.toString(encoding);
9 | }
10 | if (responseType === 'json') {
11 | return rawBody.length === 0 ? '' : parseJson(rawBody.toString());
12 | }
13 | if (responseType === 'buffer') {
14 | return rawBody;
15 | }
16 | throw new types_1.ParseError({
17 | message: `Unknown body type '${responseType}'`,
18 | name: 'Error'
19 | }, response);
20 | }
21 | catch (error) {
22 | throw new types_1.ParseError(error, response);
23 | }
24 | };
25 | exports.default = parseBody;
26 |
--------------------------------------------------------------------------------
/node_modules/got/dist/source/core/calculate-retry-delay.d.ts:
--------------------------------------------------------------------------------
1 | import { RetryFunction } from '.';
2 | declare type Returns unknown, V> = (...args: Parameters) => V;
3 | export declare const retryAfterStatusCodes: ReadonlySet;
4 | declare const calculateRetryDelay: Returns;
5 | export default calculateRetryDelay;
6 |
--------------------------------------------------------------------------------
/node_modules/got/dist/source/core/utils/dns-ip-version.d.ts:
--------------------------------------------------------------------------------
1 | export declare type DnsLookupIpVersion = 'auto' | 'ipv4' | 'ipv6';
2 | declare type DnsIpFamily = 0 | 4 | 6;
3 | export declare const isDnsLookupIpVersion: (value: any) => boolean;
4 | export declare const dnsLookupIpVersionToFamily: (dnsLookupIpVersion: DnsLookupIpVersion) => DnsIpFamily;
5 | export {};
6 |
--------------------------------------------------------------------------------
/node_modules/got/dist/source/core/utils/dns-ip-version.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | exports.dnsLookupIpVersionToFamily = exports.isDnsLookupIpVersion = void 0;
4 | const conversionTable = {
5 | auto: 0,
6 | ipv4: 4,
7 | ipv6: 6
8 | };
9 | exports.isDnsLookupIpVersion = (value) => {
10 | return value in conversionTable;
11 | };
12 | exports.dnsLookupIpVersionToFamily = (dnsLookupIpVersion) => {
13 | if (exports.isDnsLookupIpVersion(dnsLookupIpVersion)) {
14 | return conversionTable[dnsLookupIpVersion];
15 | }
16 | throw new Error('Invalid DNS lookup IP version');
17 | };
18 |
--------------------------------------------------------------------------------
/node_modules/got/dist/source/core/utils/get-body-size.d.ts:
--------------------------------------------------------------------------------
1 | import { ClientRequestArgs } from 'http';
2 | declare const _default: (body: unknown, headers: ClientRequestArgs['headers']) => Promise;
3 | export default _default;
4 |
--------------------------------------------------------------------------------
/node_modules/got/dist/source/core/utils/get-body-size.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | const fs_1 = require("fs");
4 | const util_1 = require("util");
5 | const is_1 = require("@sindresorhus/is");
6 | const is_form_data_1 = require("./is-form-data");
7 | const statAsync = util_1.promisify(fs_1.stat);
8 | exports.default = async (body, headers) => {
9 | if (headers && 'content-length' in headers) {
10 | return Number(headers['content-length']);
11 | }
12 | if (!body) {
13 | return 0;
14 | }
15 | if (is_1.default.string(body)) {
16 | return Buffer.byteLength(body);
17 | }
18 | if (is_1.default.buffer(body)) {
19 | return body.length;
20 | }
21 | if (is_form_data_1.default(body)) {
22 | return util_1.promisify(body.getLength.bind(body))();
23 | }
24 | if (body instanceof fs_1.ReadStream) {
25 | const { size } = await statAsync(body.path);
26 | if (size === 0) {
27 | return undefined;
28 | }
29 | return size;
30 | }
31 | return undefined;
32 | };
33 |
--------------------------------------------------------------------------------
/node_modules/got/dist/source/core/utils/get-buffer.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { Readable } from 'stream';
3 | declare const getBuffer: (stream: Readable) => Promise;
4 | export default getBuffer;
5 |
--------------------------------------------------------------------------------
/node_modules/got/dist/source/core/utils/get-buffer.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | // TODO: Update https://github.com/sindresorhus/get-stream
4 | const getBuffer = async (stream) => {
5 | const chunks = [];
6 | let length = 0;
7 | for await (const chunk of stream) {
8 | chunks.push(chunk);
9 | length += Buffer.byteLength(chunk);
10 | }
11 | if (Buffer.isBuffer(chunks[0])) {
12 | return Buffer.concat(chunks, length);
13 | }
14 | return Buffer.from(chunks.join(''));
15 | };
16 | exports.default = getBuffer;
17 |
--------------------------------------------------------------------------------
/node_modules/got/dist/source/core/utils/is-form-data.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { Readable } from 'stream';
3 | interface FormData extends Readable {
4 | getBoundary: () => string;
5 | getLength: (callback: (error: Error | null, length: number) => void) => void;
6 | }
7 | declare const _default: (body: unknown) => body is FormData;
8 | export default _default;
9 |
--------------------------------------------------------------------------------
/node_modules/got/dist/source/core/utils/is-form-data.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | const is_1 = require("@sindresorhus/is");
4 | exports.default = (body) => is_1.default.nodeStream(body) && is_1.default.function_(body.getBoundary);
5 |
--------------------------------------------------------------------------------
/node_modules/got/dist/source/core/utils/is-response-ok.d.ts:
--------------------------------------------------------------------------------
1 | import { Response } from '..';
2 | export declare const isResponseOk: (response: Response) => boolean;
3 |
--------------------------------------------------------------------------------
/node_modules/got/dist/source/core/utils/is-response-ok.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | exports.isResponseOk = void 0;
4 | exports.isResponseOk = (response) => {
5 | const { statusCode } = response;
6 | const limitStatusCode = response.request.options.followRedirect ? 299 : 399;
7 | return (statusCode >= 200 && statusCode <= limitStatusCode) || statusCode === 304;
8 | };
9 |
--------------------------------------------------------------------------------
/node_modules/got/dist/source/core/utils/options-to-url.d.ts:
--------------------------------------------------------------------------------
1 | import { URL } from 'url';
2 | export interface URLOptions {
3 | href?: string;
4 | protocol?: string;
5 | host?: string;
6 | hostname?: string;
7 | port?: string | number;
8 | pathname?: string;
9 | search?: string;
10 | searchParams?: unknown;
11 | path?: string;
12 | }
13 | declare const _default: (origin: string, options: URLOptions) => URL;
14 | export default _default;
15 |
--------------------------------------------------------------------------------
/node_modules/got/dist/source/core/utils/proxy-events.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { EventEmitter } from 'events';
3 | export default function (from: EventEmitter, to: EventEmitter, events: string[]): () => void;
4 |
--------------------------------------------------------------------------------
/node_modules/got/dist/source/core/utils/proxy-events.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | function default_1(from, to, events) {
4 | const fns = {};
5 | for (const event of events) {
6 | fns[event] = (...args) => {
7 | to.emit(event, ...args);
8 | };
9 | from.on(event, fns[event]);
10 | }
11 | return () => {
12 | for (const event of events) {
13 | from.off(event, fns[event]);
14 | }
15 | };
16 | }
17 | exports.default = default_1;
18 |
--------------------------------------------------------------------------------
/node_modules/got/dist/source/core/utils/timed-out.d.ts:
--------------------------------------------------------------------------------
1 | import { ClientRequest } from 'http';
2 | declare const reentry: unique symbol;
3 | interface TimedOutOptions {
4 | host?: string;
5 | hostname?: string;
6 | protocol?: string;
7 | }
8 | export interface Delays {
9 | lookup?: number;
10 | connect?: number;
11 | secureConnect?: number;
12 | socket?: number;
13 | response?: number;
14 | send?: number;
15 | request?: number;
16 | }
17 | export declare type ErrorCode = 'ETIMEDOUT' | 'ECONNRESET' | 'EADDRINUSE' | 'ECONNREFUSED' | 'EPIPE' | 'ENOTFOUND' | 'ENETUNREACH' | 'EAI_AGAIN';
18 | export declare class TimeoutError extends Error {
19 | event: string;
20 | code: ErrorCode;
21 | constructor(threshold: number, event: string);
22 | }
23 | declare const _default: (request: ClientRequest, delays: Delays, options: TimedOutOptions) => () => void;
24 | export default _default;
25 | declare module 'http' {
26 | interface ClientRequest {
27 | [reentry]: boolean;
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/node_modules/got/dist/source/core/utils/unhandle.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { EventEmitter } from 'events';
3 | declare type Origin = EventEmitter;
4 | declare type Event = string | symbol;
5 | declare type Fn = (...args: any[]) => void;
6 | interface Unhandler {
7 | once: (origin: Origin, event: Event, fn: Fn) => void;
8 | unhandleAll: () => void;
9 | }
10 | declare const _default: () => Unhandler;
11 | export default _default;
12 |
--------------------------------------------------------------------------------
/node_modules/got/dist/source/core/utils/unhandle.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | // When attaching listeners, it's very easy to forget about them.
4 | // Especially if you do error handling and set timeouts.
5 | // So instead of checking if it's proper to throw an error on every timeout ever,
6 | // use this simple tool which will remove all listeners you have attached.
7 | exports.default = () => {
8 | const handlers = [];
9 | return {
10 | once(origin, event, fn) {
11 | origin.once(event, fn);
12 | handlers.push({ origin, event, fn });
13 | },
14 | unhandleAll() {
15 | for (const handler of handlers) {
16 | const { origin, event, fn } = handler;
17 | origin.removeListener(event, fn);
18 | }
19 | handlers.length = 0;
20 | }
21 | };
22 | };
23 |
--------------------------------------------------------------------------------
/node_modules/got/dist/source/core/utils/url-to-options.d.ts:
--------------------------------------------------------------------------------
1 | import { URL, UrlWithStringQuery } from 'url';
2 | export interface LegacyUrlOptions {
3 | protocol: string;
4 | hostname: string;
5 | host: string;
6 | hash: string | null;
7 | search: string | null;
8 | pathname: string;
9 | href: string;
10 | path: string;
11 | port?: number;
12 | auth?: string;
13 | }
14 | declare const _default: (url: URL | UrlWithStringQuery) => LegacyUrlOptions;
15 | export default _default;
16 |
--------------------------------------------------------------------------------
/node_modules/got/dist/source/core/utils/url-to-options.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | const is_1 = require("@sindresorhus/is");
4 | exports.default = (url) => {
5 | // Cast to URL
6 | url = url;
7 | const options = {
8 | protocol: url.protocol,
9 | hostname: is_1.default.string(url.hostname) && url.hostname.startsWith('[') ? url.hostname.slice(1, -1) : url.hostname,
10 | host: url.host,
11 | hash: url.hash,
12 | search: url.search,
13 | pathname: url.pathname,
14 | href: url.href,
15 | path: `${url.pathname || ''}${url.search || ''}`
16 | };
17 | if (is_1.default.string(url.port) && url.port.length > 0) {
18 | options.port = Number(url.port);
19 | }
20 | if (url.username || url.password) {
21 | options.auth = `${url.username || ''}:${url.password || ''}`;
22 | }
23 | return options;
24 | };
25 |
--------------------------------------------------------------------------------
/node_modules/got/dist/source/core/utils/weakable-map.d.ts:
--------------------------------------------------------------------------------
1 | export default class WeakableMap {
2 | weakMap: WeakMap, V>;
3 | map: Map;
4 | constructor();
5 | set(key: K, value: V): void;
6 | get(key: K): V | undefined;
7 | has(key: K): boolean;
8 | }
9 |
--------------------------------------------------------------------------------
/node_modules/got/dist/source/core/utils/weakable-map.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | class WeakableMap {
4 | constructor() {
5 | this.weakMap = new WeakMap();
6 | this.map = new Map();
7 | }
8 | set(key, value) {
9 | if (typeof key === 'object') {
10 | this.weakMap.set(key, value);
11 | }
12 | else {
13 | this.map.set(key, value);
14 | }
15 | }
16 | get(key) {
17 | if (typeof key === 'object') {
18 | return this.weakMap.get(key);
19 | }
20 | return this.map.get(key);
21 | }
22 | has(key) {
23 | if (typeof key === 'object') {
24 | return this.weakMap.has(key);
25 | }
26 | return this.map.has(key);
27 | }
28 | }
29 | exports.default = WeakableMap;
30 |
--------------------------------------------------------------------------------
/node_modules/got/dist/source/create.d.ts:
--------------------------------------------------------------------------------
1 | import { Got, HandlerFunction, InstanceDefaults } from './types';
2 | export declare const defaultHandler: HandlerFunction;
3 | declare const create: (defaults: InstanceDefaults) => Got;
4 | export default create;
5 | export * from './types';
6 |
--------------------------------------------------------------------------------
/node_modules/got/dist/source/index.d.ts:
--------------------------------------------------------------------------------
1 | declare const got: import("./types").Got;
2 | export default got;
3 | export * from './create';
4 | export * from './as-promise';
5 |
--------------------------------------------------------------------------------
/node_modules/got/dist/source/types.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 |
--------------------------------------------------------------------------------
/node_modules/got/dist/source/utils/deep-freeze.d.ts:
--------------------------------------------------------------------------------
1 | export default function deepFreeze>(object: T): Readonly;
2 |
--------------------------------------------------------------------------------
/node_modules/got/dist/source/utils/deep-freeze.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | const is_1 = require("@sindresorhus/is");
4 | function deepFreeze(object) {
5 | for (const value of Object.values(object)) {
6 | if (is_1.default.plainObject(value) || is_1.default.array(value)) {
7 | deepFreeze(value);
8 | }
9 | }
10 | return Object.freeze(object);
11 | }
12 | exports.default = deepFreeze;
13 |
--------------------------------------------------------------------------------
/node_modules/got/dist/source/utils/deprecation-warning.d.ts:
--------------------------------------------------------------------------------
1 | declare const _default: (message: string) => void;
2 | export default _default;
3 |
--------------------------------------------------------------------------------
/node_modules/got/dist/source/utils/deprecation-warning.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | const alreadyWarned = new Set();
4 | exports.default = (message) => {
5 | if (alreadyWarned.has(message)) {
6 | return;
7 | }
8 | alreadyWarned.add(message);
9 | // @ts-expect-error Missing types.
10 | process.emitWarning(`Got: ${message}`, {
11 | type: 'DeprecationWarning'
12 | });
13 | };
14 |
--------------------------------------------------------------------------------
/node_modules/got/license:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) Sindre Sorhus (sindresorhus.com)
4 |
5 | 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:
6 |
7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8 |
9 | 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.
10 |
--------------------------------------------------------------------------------
/node_modules/has-symbols/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "root": true,
3 |
4 | "extends": "@ljharb",
5 |
6 | "rules": {
7 | "max-statements-per-line": [2, { "max": 2 }],
8 | "no-magic-numbers": 0,
9 | "multiline-comment-style": 0,
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/node_modules/has-symbols/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: [ljharb]
4 | patreon: # Replace with a single Patreon username
5 | open_collective: # Replace with a single Open Collective username
6 | ko_fi: # Replace with a single Ko-fi username
7 | tidelift: npm/has-symbols
8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9 | liberapay: # Replace with a single Liberapay username
10 | issuehunt: # Replace with a single IssueHunt username
11 | otechie: # Replace with a single Otechie username
12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
13 |
--------------------------------------------------------------------------------
/node_modules/has-symbols/.nycrc:
--------------------------------------------------------------------------------
1 | {
2 | "all": true,
3 | "check-coverage": false,
4 | "reporter": ["text-summary", "text", "html", "json"],
5 | "exclude": [
6 | "coverage",
7 | "test"
8 | ]
9 | }
10 |
--------------------------------------------------------------------------------
/node_modules/has-symbols/index.d.ts:
--------------------------------------------------------------------------------
1 | declare function hasNativeSymbols(): boolean;
2 |
3 | export = hasNativeSymbols;
--------------------------------------------------------------------------------
/node_modules/has-symbols/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var origSymbol = typeof Symbol !== 'undefined' && Symbol;
4 | var hasSymbolSham = require('./shams');
5 |
6 | /** @type {import('.')} */
7 | module.exports = function hasNativeSymbols() {
8 | if (typeof origSymbol !== 'function') { return false; }
9 | if (typeof Symbol !== 'function') { return false; }
10 | if (typeof origSymbol('foo') !== 'symbol') { return false; }
11 | if (typeof Symbol('bar') !== 'symbol') { return false; }
12 |
13 | return hasSymbolSham();
14 | };
15 |
--------------------------------------------------------------------------------
/node_modules/has-symbols/shams.d.ts:
--------------------------------------------------------------------------------
1 | declare function hasSymbolShams(): boolean;
2 |
3 | export = hasSymbolShams;
--------------------------------------------------------------------------------
/node_modules/has-symbols/test/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var test = require('tape');
4 | var hasSymbols = require('../');
5 | var runSymbolTests = require('./tests');
6 |
7 | test('interface', function (t) {
8 | t.equal(typeof hasSymbols, 'function', 'is a function');
9 | t.equal(typeof hasSymbols(), 'boolean', 'returns a boolean');
10 | t.end();
11 | });
12 |
13 | test('Symbols are supported', { skip: !hasSymbols() }, function (t) {
14 | runSymbolTests(t);
15 | t.end();
16 | });
17 |
18 | test('Symbols are not supported', { skip: hasSymbols() }, function (t) {
19 | t.equal(typeof Symbol, 'undefined', 'global Symbol is undefined');
20 | t.equal(typeof Object.getOwnPropertySymbols, 'undefined', 'Object.getOwnPropertySymbols does not exist');
21 | t.end();
22 | });
23 |
--------------------------------------------------------------------------------
/node_modules/has-symbols/test/shams/core-js.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var test = require('tape');
4 |
5 | if (typeof Symbol === 'function' && typeof Symbol() === 'symbol') {
6 | test('has native Symbol support', function (t) {
7 | t.equal(typeof Symbol, 'function');
8 | t.equal(typeof Symbol(), 'symbol');
9 | t.end();
10 | });
11 | // @ts-expect-error TS is stupid and doesn't know about top level return
12 | return;
13 | }
14 |
15 | var hasSymbols = require('../../shams');
16 |
17 | test('polyfilled Symbols', function (t) {
18 | /* eslint-disable global-require */
19 | t.equal(hasSymbols(), false, 'hasSymbols is false before polyfilling');
20 | require('core-js/fn/symbol');
21 | require('core-js/fn/symbol/to-string-tag');
22 |
23 | require('../tests')(t);
24 |
25 | var hasSymbolsAfter = hasSymbols();
26 | t.equal(hasSymbolsAfter, true, 'hasSymbols is true after polyfilling');
27 | /* eslint-enable global-require */
28 | t.end();
29 | });
30 |
--------------------------------------------------------------------------------
/node_modules/has-symbols/test/shams/get-own-property-symbols.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var test = require('tape');
4 |
5 | if (typeof Symbol === 'function' && typeof Symbol() === 'symbol') {
6 | test('has native Symbol support', function (t) {
7 | t.equal(typeof Symbol, 'function');
8 | t.equal(typeof Symbol(), 'symbol');
9 | t.end();
10 | });
11 | // @ts-expect-error TS is stupid and doesn't know about top level return
12 | return;
13 | }
14 |
15 | var hasSymbols = require('../../shams');
16 |
17 | test('polyfilled Symbols', function (t) {
18 | /* eslint-disable global-require */
19 | t.equal(hasSymbols(), false, 'hasSymbols is false before polyfilling');
20 |
21 | require('get-own-property-symbols');
22 |
23 | require('../tests')(t);
24 |
25 | var hasSymbolsAfter = hasSymbols();
26 | t.equal(hasSymbolsAfter, true, 'hasSymbols is true after polyfilling');
27 | /* eslint-enable global-require */
28 | t.end();
29 | });
30 |
--------------------------------------------------------------------------------
/node_modules/has-symbols/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "@ljharb/tsconfig",
3 | "compilerOptions": {
4 | "target": "ES2021",
5 | "maxNodeModuleJsDepth": 0,
6 | },
7 | "exclude": [
8 | "coverage"
9 | ]
10 | }
11 |
--------------------------------------------------------------------------------
/node_modules/has-tostringtag/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "root": true,
3 |
4 | "extends": "@ljharb",
5 | }
6 |
--------------------------------------------------------------------------------
/node_modules/has-tostringtag/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: [ljharb]
4 | patreon: # Replace with a single Patreon username
5 | open_collective: # Replace with a single Open Collective username
6 | ko_fi: # Replace with a single Ko-fi username
7 | tidelift: npm/has-tostringtag
8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9 | liberapay: # Replace with a single Liberapay username
10 | issuehunt: # Replace with a single IssueHunt username
11 | otechie: # Replace with a single Otechie username
12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
13 |
--------------------------------------------------------------------------------
/node_modules/has-tostringtag/.nycrc:
--------------------------------------------------------------------------------
1 | {
2 | "all": true,
3 | "check-coverage": false,
4 | "reporter": ["text-summary", "text", "html", "json"],
5 | "lines": 86,
6 | "statements": 85.93,
7 | "functions": 82.43,
8 | "branches": 76.06,
9 | "exclude": [
10 | "coverage",
11 | "test"
12 | ]
13 | }
14 |
--------------------------------------------------------------------------------
/node_modules/has-tostringtag/index.d.ts:
--------------------------------------------------------------------------------
1 | declare function hasToStringTag(): boolean;
2 |
3 | export = hasToStringTag;
4 |
--------------------------------------------------------------------------------
/node_modules/has-tostringtag/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var hasSymbols = require('has-symbols');
4 |
5 | /** @type {import('.')} */
6 | module.exports = function hasToStringTag() {
7 | return hasSymbols() && typeof Symbol.toStringTag === 'symbol';
8 | };
9 |
--------------------------------------------------------------------------------
/node_modules/has-tostringtag/shams.d.ts:
--------------------------------------------------------------------------------
1 | declare function hasToStringTagShams(): boolean;
2 |
3 | export = hasToStringTagShams;
4 |
--------------------------------------------------------------------------------
/node_modules/has-tostringtag/shams.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var hasSymbols = require('has-symbols/shams');
4 |
5 | /** @type {import('.')} */
6 | module.exports = function hasToStringTagShams() {
7 | return hasSymbols() && !!Symbol.toStringTag;
8 | };
9 |
--------------------------------------------------------------------------------
/node_modules/has-tostringtag/test/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var test = require('tape');
4 | var hasSymbolToStringTag = require('../');
5 | var runSymbolTests = require('./tests');
6 |
7 | test('interface', function (t) {
8 | t.equal(typeof hasSymbolToStringTag, 'function', 'is a function');
9 | t.equal(typeof hasSymbolToStringTag(), 'boolean', 'returns a boolean');
10 | t.end();
11 | });
12 |
13 | test('Symbol.toStringTag exists', { skip: !hasSymbolToStringTag() }, function (t) {
14 | runSymbolTests(t);
15 | t.end();
16 | });
17 |
18 | test('Symbol.toStringTag does not exist', { skip: hasSymbolToStringTag() }, function (t) {
19 | t.equal(typeof Symbol === 'undefined' ? 'undefined' : typeof Symbol.toStringTag, 'undefined', 'global Symbol.toStringTag is undefined');
20 | t.end();
21 | });
22 |
--------------------------------------------------------------------------------
/node_modules/has-tostringtag/test/shams/core-js.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var test = require('tape');
4 |
5 | if (typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol') {
6 | test('has native Symbol.toStringTag support', function (t) {
7 | t.equal(typeof Symbol, 'function');
8 | t.equal(typeof Symbol.toStringTag, 'symbol');
9 | t.end();
10 | });
11 | // @ts-expect-error CJS has top-level return
12 | return;
13 | }
14 |
15 | var hasSymbolToStringTag = require('../../shams');
16 |
17 | test('polyfilled Symbols', function (t) {
18 | /* eslint-disable global-require */
19 | t.equal(hasSymbolToStringTag(), false, 'hasSymbolToStringTag is false before polyfilling');
20 | // @ts-expect-error no types defined
21 | require('core-js/fn/symbol');
22 | // @ts-expect-error no types defined
23 | require('core-js/fn/symbol/to-string-tag');
24 |
25 | require('../tests')(t);
26 |
27 | var hasToStringTagAfter = hasSymbolToStringTag();
28 | t.equal(hasToStringTagAfter, true, 'hasSymbolToStringTag is true after polyfilling');
29 | /* eslint-enable global-require */
30 | t.end();
31 | });
32 |
--------------------------------------------------------------------------------
/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var test = require('tape');
4 |
5 | if (typeof Symbol === 'function' && typeof Symbol() === 'symbol') {
6 | test('has native Symbol support', function (t) {
7 | t.equal(typeof Symbol, 'function');
8 | t.equal(typeof Symbol(), 'symbol');
9 | t.end();
10 | });
11 | // @ts-expect-error CJS has top-level return
12 | return;
13 | }
14 |
15 | var hasSymbolToStringTag = require('../../shams');
16 |
17 | test('polyfilled Symbols', function (t) {
18 | /* eslint-disable global-require */
19 | t.equal(hasSymbolToStringTag(), false, 'hasSymbolToStringTag is false before polyfilling');
20 |
21 | // @ts-expect-error no types defined
22 | require('get-own-property-symbols');
23 |
24 | require('../tests')(t);
25 |
26 | var hasToStringTagAfter = hasSymbolToStringTag();
27 | t.equal(hasToStringTagAfter, true, 'hasSymbolToStringTag is true after polyfilling');
28 | /* eslint-enable global-require */
29 | t.end();
30 | });
31 |
--------------------------------------------------------------------------------
/node_modules/has-tostringtag/test/tests.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | // eslint-disable-next-line consistent-return
4 | module.exports = /** @type {(t: import('tape').Test) => void | false} */ function runSymbolTests(t) {
5 | t.equal(typeof Symbol, 'function', 'global Symbol is a function');
6 | t.ok(Symbol.toStringTag, 'Symbol.toStringTag exists');
7 |
8 | if (typeof Symbol !== 'function' || !Symbol.toStringTag) { return false; }
9 |
10 | /** @type {{ [Symbol.toStringTag]?: 'test'}} */
11 | var obj = {};
12 | obj[Symbol.toStringTag] = 'test';
13 |
14 | t.equal(Object.prototype.toString.call(obj), '[object test]');
15 | };
16 |
--------------------------------------------------------------------------------
/node_modules/hasown/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "root": true,
3 |
4 | "extends": "@ljharb",
5 | }
6 |
--------------------------------------------------------------------------------
/node_modules/hasown/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: [ljharb]
4 | patreon: # Replace with a single Patreon username
5 | open_collective: # Replace with a single Open Collective username
6 | ko_fi: # Replace with a single Ko-fi username
7 | tidelift: npm/hasown
8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9 | liberapay: # Replace with a single Liberapay username
10 | issuehunt: # Replace with a single IssueHunt username
11 | otechie: # Replace with a single Otechie username
12 | custom: # Replace with a single custom sponsorship URL
13 |
--------------------------------------------------------------------------------
/node_modules/hasown/.nycrc:
--------------------------------------------------------------------------------
1 | {
2 | "all": true,
3 | "check-coverage": false,
4 | "reporter": ["text-summary", "text", "html", "json"],
5 | "lines": 86,
6 | "statements": 85.93,
7 | "functions": 82.43,
8 | "branches": 76.06,
9 | "exclude": [
10 | "coverage",
11 | "test"
12 | ]
13 | }
14 |
--------------------------------------------------------------------------------
/node_modules/hasown/index.d.ts:
--------------------------------------------------------------------------------
1 | declare function hasOwn(o: O, p: K): o is O & Record;
2 |
3 | export = hasOwn;
4 |
--------------------------------------------------------------------------------
/node_modules/hasown/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var call = Function.prototype.call;
4 | var $hasOwn = Object.prototype.hasOwnProperty;
5 | var bind = require('function-bind');
6 |
7 | /** @type {import('.')} */
8 | module.exports = bind.call(call, $hasOwn);
9 |
--------------------------------------------------------------------------------
/node_modules/hasown/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "@ljharb/tsconfig",
3 | "exclude": [
4 | "coverage",
5 | ],
6 | }
7 |
--------------------------------------------------------------------------------
/node_modules/http-cache-semantics/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "http-cache-semantics",
3 | "version": "4.1.1",
4 | "description": "Parses Cache-Control and other headers. Helps building correct HTTP caches and proxies",
5 | "repository": "https://github.com/kornelski/http-cache-semantics.git",
6 | "main": "index.js",
7 | "scripts": {
8 | "test": "mocha"
9 | },
10 | "files": [
11 | "index.js"
12 | ],
13 | "author": "Kornel Lesiński (https://kornel.ski/)",
14 | "license": "BSD-2-Clause",
15 | "devDependencies": {
16 | "mocha": "^10.0"
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/node_modules/http2-wrapper/source/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | const http2 = require('http2');
3 | const agent = require('./agent');
4 | const ClientRequest = require('./client-request');
5 | const IncomingMessage = require('./incoming-message');
6 | const auto = require('./auto');
7 |
8 | const request = (url, options, callback) => {
9 | return new ClientRequest(url, options, callback);
10 | };
11 |
12 | const get = (url, options, callback) => {
13 | // eslint-disable-next-line unicorn/prevent-abbreviations
14 | const req = new ClientRequest(url, options, callback);
15 | req.end();
16 |
17 | return req;
18 | };
19 |
20 | module.exports = {
21 | ...http2,
22 | ClientRequest,
23 | IncomingMessage,
24 | ...agent,
25 | request,
26 | get,
27 | auto
28 | };
29 |
--------------------------------------------------------------------------------
/node_modules/http2-wrapper/source/utils/calculate-server-name.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | const net = require('net');
3 | /* istanbul ignore file: https://github.com/nodejs/node/blob/v13.0.1/lib/_http_agent.js */
4 |
5 | module.exports = options => {
6 | let servername = options.host;
7 | const hostHeader = options.headers && options.headers.host;
8 |
9 | if (hostHeader) {
10 | if (hostHeader.startsWith('[')) {
11 | const index = hostHeader.indexOf(']');
12 | if (index === -1) {
13 | servername = hostHeader;
14 | } else {
15 | servername = hostHeader.slice(1, -1);
16 | }
17 | } else {
18 | servername = hostHeader.split(':', 1)[0];
19 | }
20 | }
21 |
22 | if (net.isIP(servername)) {
23 | return '';
24 | }
25 |
26 | return servername;
27 | };
28 |
--------------------------------------------------------------------------------
/node_modules/http2-wrapper/source/utils/is-request-pseudo-header.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = header => {
4 | switch (header) {
5 | case ':method':
6 | case ':scheme':
7 | case ':authority':
8 | case ':path':
9 | return true;
10 | default:
11 | return false;
12 | }
13 | };
14 |
--------------------------------------------------------------------------------
/node_modules/http2-wrapper/source/utils/proxy-events.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = (from, to, events) => {
4 | for (const event of events) {
5 | from.on(event, (...args) => to.emit(event, ...args));
6 | }
7 | };
8 |
--------------------------------------------------------------------------------
/node_modules/http2-wrapper/source/utils/url-to-options.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | /* istanbul ignore file: https://github.com/nodejs/node/blob/a91293d4d9ab403046ab5eb022332e4e3d249bd3/lib/internal/url.js#L1257 */
3 |
4 | module.exports = url => {
5 | const options = {
6 | protocol: url.protocol,
7 | hostname: typeof url.hostname === 'string' && url.hostname.startsWith('[') ? url.hostname.slice(1, -1) : url.hostname,
8 | host: url.host,
9 | hash: url.hash,
10 | search: url.search,
11 | pathname: url.pathname,
12 | href: url.href,
13 | path: `${url.pathname || ''}${url.search || ''}`
14 | };
15 |
16 | if (typeof url.port === 'string' && url.port.length !== 0) {
17 | options.port = Number(url.port);
18 | }
19 |
20 | if (url.username || url.password) {
21 | options.auth = `${url.username || ''}:${url.password || ''}`;
22 | }
23 |
24 | return options;
25 | };
26 |
--------------------------------------------------------------------------------
/node_modules/json-buffer/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - '0.10'
4 |
--------------------------------------------------------------------------------
/node_modules/json-buffer/README.md:
--------------------------------------------------------------------------------
1 | # json-buffer
2 |
3 | JSON functions that can convert buffers!
4 |
5 | [](http://travis-ci.org/dominictarr/json-buffer)
6 |
7 | [](https://ci.testling.com/dominictarr/json-buffer)
8 |
9 | JSON mangles buffers by converting to an array...
10 | which isn't helpful. json-buffers converts to base64 instead,
11 | and deconverts base64 to a buffer.
12 |
13 | ``` js
14 | var JSONB = require('json-buffer')
15 | var Buffer = require('buffer').Buffer
16 |
17 | var str = JSONB.stringify(Buffer.from('hello there!'))
18 |
19 | console.log(JSONB.parse(str)) //GET a BUFFER back
20 | ```
21 |
22 | ## License
23 |
24 | MIT
25 |
--------------------------------------------------------------------------------
/node_modules/json-buffer/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "json-buffer",
3 | "description": "JSON parse & stringify that supports binary via bops & base64",
4 | "version": "3.0.1",
5 | "homepage": "https://github.com/dominictarr/json-buffer",
6 | "repository": {
7 | "type": "git",
8 | "url": "git://github.com/dominictarr/json-buffer.git"
9 | },
10 | "devDependencies": {
11 | "tape": "^4.6.3"
12 | },
13 | "scripts": {
14 | "test": "set -e; for t in test/*.js; do node $t; done"
15 | },
16 | "author": "Dominic Tarr (http://dominictarr.com)",
17 | "license": "MIT",
18 | "testling": {
19 | "files": "test/*.js",
20 | "browsers": [
21 | "ie/8..latest",
22 | "firefox/17..latest",
23 | "firefox/nightly",
24 | "chrome/22..latest",
25 | "chrome/canary",
26 | "opera/12..latest",
27 | "opera/next",
28 | "safari/5.1..latest",
29 | "ipad/6.0..latest",
30 | "iphone/6.0..latest",
31 | "android-browser/4.2..latest"
32 | ]
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/node_modules/lowercase-keys/index.d.ts:
--------------------------------------------------------------------------------
1 | /**
2 | Lowercase the keys of an object.
3 |
4 | @returns A new object with the keys lowercased.
5 |
6 | @example
7 | ```
8 | import lowercaseKeys = require('lowercase-keys');
9 |
10 | lowercaseKeys({FOO: true, bAr: false});
11 | //=> {foo: true, bar: false}
12 | ```
13 | */
14 | declare function lowercaseKeys(object: {[key: string]: T}): {[key: string]: T};
15 |
16 | export = lowercaseKeys;
17 |
--------------------------------------------------------------------------------
/node_modules/lowercase-keys/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | module.exports = object => {
3 | const result = {};
4 |
5 | for (const [key, value] of Object.entries(object)) {
6 | result[key.toLowerCase()] = value;
7 | }
8 |
9 | return result;
10 | };
11 |
--------------------------------------------------------------------------------
/node_modules/lowercase-keys/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "lowercase-keys",
3 | "version": "2.0.0",
4 | "description": "Lowercase the keys of an object",
5 | "license": "MIT",
6 | "repository": "sindresorhus/lowercase-keys",
7 | "author": {
8 | "name": "Sindre Sorhus",
9 | "email": "sindresorhus@gmail.com",
10 | "url": "sindresorhus.com"
11 | },
12 | "engines": {
13 | "node": ">=8"
14 | },
15 | "scripts": {
16 | "test": "xo && ava && tsd"
17 | },
18 | "files": [
19 | "index.js",
20 | "index.d.ts"
21 | ],
22 | "keywords": [
23 | "object",
24 | "assign",
25 | "extend",
26 | "properties",
27 | "lowercase",
28 | "lower-case",
29 | "case",
30 | "keys",
31 | "key"
32 | ],
33 | "devDependencies": {
34 | "ava": "^1.4.1",
35 | "tsd": "^0.7.2",
36 | "xo": "^0.24.0"
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/node_modules/lowercase-keys/readme.md:
--------------------------------------------------------------------------------
1 | # lowercase-keys [](https://travis-ci.org/sindresorhus/lowercase-keys)
2 |
3 | > Lowercase the keys of an object
4 |
5 |
6 | ## Install
7 |
8 | ```
9 | $ npm install lowercase-keys
10 | ```
11 |
12 |
13 | ## Usage
14 |
15 | ```js
16 | const lowercaseKeys = require('lowercase-keys');
17 |
18 | lowercaseKeys({FOO: true, bAr: false});
19 | //=> {foo: true, bar: false}
20 | ```
21 |
22 |
23 | ## API
24 |
25 | ### lowercaseKeys(object)
26 |
27 | Returns a new object with the keys lowercased.
28 |
29 |
30 | ## License
31 |
32 | MIT © [Sindre Sorhus](https://sindresorhus.com)
33 |
--------------------------------------------------------------------------------
/node_modules/math-intrinsics/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "root": true,
3 |
4 | "extends": "@ljharb",
5 |
6 | "rules": {
7 | "eqeqeq": ["error", "allow-null"],
8 | "id-length": "off",
9 | "new-cap": ["error", {
10 | "capIsNewExceptions": [
11 | "RequireObjectCoercible",
12 | "ToObject",
13 | ],
14 | }],
15 | },
16 | }
17 |
--------------------------------------------------------------------------------
/node_modules/math-intrinsics/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: [ljharb]
4 | patreon: # Replace with a single Patreon username
5 | open_collective: # Replace with a single Open Collective username
6 | ko_fi: # Replace with a single Ko-fi username
7 | tidelift: npm/math-intrinsics
8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9 | liberapay: # Replace with a single Liberapay username
10 | issuehunt: # Replace with a single IssueHunt username
11 | otechie: # Replace with a single Otechie username
12 | custom: # Replace with a single custom sponsorship URL
13 |
--------------------------------------------------------------------------------
/node_modules/math-intrinsics/abs.d.ts:
--------------------------------------------------------------------------------
1 | export = Math.abs;
--------------------------------------------------------------------------------
/node_modules/math-intrinsics/abs.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /** @type {import('./abs')} */
4 | module.exports = Math.abs;
5 |
--------------------------------------------------------------------------------
/node_modules/math-intrinsics/constants/maxArrayLength.d.ts:
--------------------------------------------------------------------------------
1 | declare const MAX_ARRAY_LENGTH: 4294967295;
2 |
3 | export = MAX_ARRAY_LENGTH;
--------------------------------------------------------------------------------
/node_modules/math-intrinsics/constants/maxArrayLength.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /** @type {import('./maxArrayLength')} */
4 | module.exports = 4294967295; // Math.pow(2, 32) - 1;
5 |
--------------------------------------------------------------------------------
/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts:
--------------------------------------------------------------------------------
1 | declare const MAX_SAFE_INTEGER: 9007199254740991;
2 |
3 | export = MAX_SAFE_INTEGER;
--------------------------------------------------------------------------------
/node_modules/math-intrinsics/constants/maxSafeInteger.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /** @type {import('./maxSafeInteger')} */
4 | // eslint-disable-next-line no-extra-parens
5 | module.exports = /** @type {import('./maxSafeInteger')} */ (Number.MAX_SAFE_INTEGER) || 9007199254740991; // Math.pow(2, 53) - 1;
6 |
--------------------------------------------------------------------------------
/node_modules/math-intrinsics/constants/maxValue.d.ts:
--------------------------------------------------------------------------------
1 | declare const MAX_VALUE: 1.7976931348623157e+308;
2 |
3 | export = MAX_VALUE;
4 |
--------------------------------------------------------------------------------
/node_modules/math-intrinsics/constants/maxValue.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /** @type {import('./maxValue')} */
4 | // eslint-disable-next-line no-extra-parens
5 | module.exports = /** @type {import('./maxValue')} */ (Number.MAX_VALUE) || 1.7976931348623157e+308;
6 |
--------------------------------------------------------------------------------
/node_modules/math-intrinsics/floor.d.ts:
--------------------------------------------------------------------------------
1 | export = Math.floor;
--------------------------------------------------------------------------------
/node_modules/math-intrinsics/floor.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /** @type {import('./floor')} */
4 | module.exports = Math.floor;
5 |
--------------------------------------------------------------------------------
/node_modules/math-intrinsics/isFinite.d.ts:
--------------------------------------------------------------------------------
1 | declare function isFinite(x: unknown): x is number | bigint;
2 |
3 | export = isFinite;
--------------------------------------------------------------------------------
/node_modules/math-intrinsics/isFinite.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var $isNaN = require('./isNaN');
4 |
5 | /** @type {import('./isFinite')} */
6 | module.exports = function isFinite(x) {
7 | return (typeof x === 'number' || typeof x === 'bigint')
8 | && !$isNaN(x)
9 | && x !== Infinity
10 | && x !== -Infinity;
11 | };
12 |
13 |
--------------------------------------------------------------------------------
/node_modules/math-intrinsics/isInteger.d.ts:
--------------------------------------------------------------------------------
1 | declare function isInteger(argument: unknown): argument is number;
2 |
3 | export = isInteger;
--------------------------------------------------------------------------------
/node_modules/math-intrinsics/isInteger.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var $abs = require('./abs');
4 | var $floor = require('./floor');
5 |
6 | var $isNaN = require('./isNaN');
7 | var $isFinite = require('./isFinite');
8 |
9 | /** @type {import('./isInteger')} */
10 | module.exports = function isInteger(argument) {
11 | if (typeof argument !== 'number' || $isNaN(argument) || !$isFinite(argument)) {
12 | return false;
13 | }
14 | var absValue = $abs(argument);
15 | return $floor(absValue) === absValue;
16 | };
17 |
--------------------------------------------------------------------------------
/node_modules/math-intrinsics/isNaN.d.ts:
--------------------------------------------------------------------------------
1 | export = Number.isNaN;
--------------------------------------------------------------------------------
/node_modules/math-intrinsics/isNaN.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /** @type {import('./isNaN')} */
4 | module.exports = Number.isNaN || function isNaN(a) {
5 | return a !== a;
6 | };
7 |
--------------------------------------------------------------------------------
/node_modules/math-intrinsics/isNegativeZero.d.ts:
--------------------------------------------------------------------------------
1 | declare function isNegativeZero(x: unknown): boolean;
2 |
3 | export = isNegativeZero;
--------------------------------------------------------------------------------
/node_modules/math-intrinsics/isNegativeZero.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /** @type {import('./isNegativeZero')} */
4 | module.exports = function isNegativeZero(x) {
5 | return x === 0 && 1 / x === 1 / -0;
6 | };
7 |
--------------------------------------------------------------------------------
/node_modules/math-intrinsics/max.d.ts:
--------------------------------------------------------------------------------
1 | export = Math.max;
--------------------------------------------------------------------------------
/node_modules/math-intrinsics/max.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /** @type {import('./max')} */
4 | module.exports = Math.max;
5 |
--------------------------------------------------------------------------------
/node_modules/math-intrinsics/min.d.ts:
--------------------------------------------------------------------------------
1 | export = Math.min;
--------------------------------------------------------------------------------
/node_modules/math-intrinsics/min.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /** @type {import('./min')} */
4 | module.exports = Math.min;
5 |
--------------------------------------------------------------------------------
/node_modules/math-intrinsics/mod.d.ts:
--------------------------------------------------------------------------------
1 | declare function mod(number: number, modulo: number): number;
2 |
3 | export = mod;
--------------------------------------------------------------------------------
/node_modules/math-intrinsics/mod.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var $floor = require('./floor');
4 |
5 | /** @type {import('./mod')} */
6 | module.exports = function mod(number, modulo) {
7 | var remain = number % modulo;
8 | return $floor(remain >= 0 ? remain : remain + modulo);
9 | };
10 |
--------------------------------------------------------------------------------
/node_modules/math-intrinsics/pow.d.ts:
--------------------------------------------------------------------------------
1 | export = Math.pow;
--------------------------------------------------------------------------------
/node_modules/math-intrinsics/pow.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /** @type {import('./pow')} */
4 | module.exports = Math.pow;
5 |
--------------------------------------------------------------------------------
/node_modules/math-intrinsics/round.d.ts:
--------------------------------------------------------------------------------
1 | export = Math.round;
--------------------------------------------------------------------------------
/node_modules/math-intrinsics/round.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /** @type {import('./round')} */
4 | module.exports = Math.round;
5 |
--------------------------------------------------------------------------------
/node_modules/math-intrinsics/sign.d.ts:
--------------------------------------------------------------------------------
1 | declare function sign(x: number): number;
2 |
3 | export = sign;
--------------------------------------------------------------------------------
/node_modules/math-intrinsics/sign.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var $isNaN = require('./isNaN');
4 |
5 | /** @type {import('./sign')} */
6 | module.exports = function sign(number) {
7 | if ($isNaN(number) || number === 0) {
8 | return number;
9 | }
10 | return number < 0 ? -1 : +1;
11 | };
12 |
--------------------------------------------------------------------------------
/node_modules/math-intrinsics/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "@ljharb/tsconfig",
3 | }
4 |
--------------------------------------------------------------------------------
/node_modules/mime-db/index.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * mime-db
3 | * Copyright(c) 2014 Jonathan Ong
4 | * Copyright(c) 2015-2022 Douglas Christopher Wilson
5 | * MIT Licensed
6 | */
7 |
8 | /**
9 | * Module exports.
10 | */
11 |
12 | module.exports = require('./db.json')
13 |
--------------------------------------------------------------------------------
/node_modules/mimic-response/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | // We define these manually to ensure they're always copied
4 | // even if they would move up the prototype chain
5 | // https://nodejs.org/api/http.html#http_class_http_incomingmessage
6 | const knownProps = [
7 | 'destroy',
8 | 'setTimeout',
9 | 'socket',
10 | 'headers',
11 | 'trailers',
12 | 'rawHeaders',
13 | 'statusCode',
14 | 'httpVersion',
15 | 'httpVersionMinor',
16 | 'httpVersionMajor',
17 | 'rawTrailers',
18 | 'statusMessage'
19 | ];
20 |
21 | module.exports = (fromStream, toStream) => {
22 | const fromProps = new Set(Object.keys(fromStream).concat(knownProps));
23 |
24 | for (const prop of fromProps) {
25 | // Don't overwrite existing properties
26 | if (prop in toStream) {
27 | continue;
28 | }
29 |
30 | toStream[prop] = typeof fromStream[prop] === 'function' ? fromStream[prop].bind(fromStream) : fromStream[prop];
31 | }
32 | };
33 |
--------------------------------------------------------------------------------
/node_modules/mimic-response/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "mimic-response",
3 | "version": "1.0.1",
4 | "description": "Mimic a Node.js HTTP response stream",
5 | "license": "MIT",
6 | "repository": "sindresorhus/mimic-response",
7 | "author": {
8 | "name": "Sindre Sorhus",
9 | "email": "sindresorhus@gmail.com",
10 | "url": "sindresorhus.com"
11 | },
12 | "engines": {
13 | "node": ">=4"
14 | },
15 | "scripts": {
16 | "test": "xo && ava"
17 | },
18 | "files": [
19 | "index.js"
20 | ],
21 | "keywords": [
22 | "mimic",
23 | "response",
24 | "stream",
25 | "http",
26 | "https",
27 | "request",
28 | "get",
29 | "core"
30 | ],
31 | "devDependencies": {
32 | "ava": "*",
33 | "create-test-server": "^0.1.0",
34 | "pify": "^3.0.0",
35 | "xo": "*"
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/node_modules/normalize-url/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "normalize-url",
3 | "version": "6.1.0",
4 | "description": "Normalize a URL",
5 | "license": "MIT",
6 | "repository": "sindresorhus/normalize-url",
7 | "funding": "https://github.com/sponsors/sindresorhus",
8 | "author": {
9 | "name": "Sindre Sorhus",
10 | "email": "sindresorhus@gmail.com",
11 | "url": "https://sindresorhus.com"
12 | },
13 | "engines": {
14 | "node": ">=10"
15 | },
16 | "scripts": {
17 | "test": "xo && nyc ava && tsd"
18 | },
19 | "files": [
20 | "index.js",
21 | "index.d.ts"
22 | ],
23 | "keywords": [
24 | "normalize",
25 | "url",
26 | "uri",
27 | "address",
28 | "string",
29 | "normalization",
30 | "normalisation",
31 | "query",
32 | "querystring",
33 | "simplify",
34 | "strip",
35 | "trim",
36 | "canonical"
37 | ],
38 | "devDependencies": {
39 | "ava": "^2.4.0",
40 | "nyc": "^15.0.0",
41 | "tsd": "^0.11.0",
42 | "xo": "^0.25.3"
43 | },
44 | "nyc": {
45 | "reporter": [
46 | "text",
47 | "lcov"
48 | ]
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/node_modules/object-inspect/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: [ljharb]
4 | patreon: # Replace with a single Patreon username
5 | open_collective: # Replace with a single Open Collective username
6 | ko_fi: # Replace with a single Ko-fi username
7 | tidelift: npm/object-inspect
8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9 | liberapay: # Replace with a single Liberapay username
10 | issuehunt: # Replace with a single IssueHunt username
11 | otechie: # Replace with a single Otechie username
12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
13 |
--------------------------------------------------------------------------------
/node_modules/object-inspect/.nycrc:
--------------------------------------------------------------------------------
1 | {
2 | "all": true,
3 | "check-coverage": false,
4 | "instrumentation": false,
5 | "sourceMap": false,
6 | "reporter": ["text-summary", "text", "html", "json"],
7 | "exclude": [
8 | "coverage",
9 | "example",
10 | "test",
11 | "test-core-js.js"
12 | ]
13 | }
14 |
--------------------------------------------------------------------------------
/node_modules/object-inspect/example/all.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var inspect = require('../');
4 | var Buffer = require('safer-buffer').Buffer;
5 |
6 | var holes = ['a', 'b'];
7 | holes[4] = 'e';
8 | holes[6] = 'g';
9 |
10 | var obj = {
11 | a: 1,
12 | b: [3, 4, undefined, null],
13 | c: undefined,
14 | d: null,
15 | e: {
16 | regex: /^x/i,
17 | buf: Buffer.from('abc'),
18 | holes: holes
19 | },
20 | now: new Date()
21 | };
22 | obj.self = obj;
23 | console.log(inspect(obj));
24 |
--------------------------------------------------------------------------------
/node_modules/object-inspect/example/circular.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var inspect = require('../');
4 | var obj = { a: 1, b: [3, 4] };
5 | obj.c = obj;
6 | console.log(inspect(obj));
7 |
--------------------------------------------------------------------------------
/node_modules/object-inspect/example/fn.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var inspect = require('../');
4 | var obj = [1, 2, function f(n) { return n + 5; }, 4];
5 | console.log(inspect(obj));
6 |
--------------------------------------------------------------------------------
/node_modules/object-inspect/example/inspect.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /* eslint-env browser */
4 | var inspect = require('../');
5 |
6 | var d = document.createElement('div');
7 | d.setAttribute('id', 'beep');
8 | d.innerHTML = 'woooiiiii';
9 |
10 | console.log(inspect([d, { a: 3, b: 4, c: [5, 6, [7, [8, [9]]]] }]));
11 |
--------------------------------------------------------------------------------
/node_modules/object-inspect/package-support.json:
--------------------------------------------------------------------------------
1 | {
2 | "versions": [
3 | {
4 | "version": "*",
5 | "target": {
6 | "node": "all"
7 | },
8 | "response": {
9 | "type": "time-permitting"
10 | },
11 | "backing": {
12 | "npm-funding": true,
13 | "donations": [
14 | "https://github.com/ljharb",
15 | "https://tidelift.com/funding/github/npm/object-inspect"
16 | ]
17 | }
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/node_modules/object-inspect/test-core-js.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | require('core-js');
4 |
5 | var inspect = require('./');
6 | var test = require('tape');
7 |
8 | test('Maps', function (t) {
9 | t.equal(inspect(new Map([[1, 2]])), 'Map (1) {1 => 2}');
10 | t.end();
11 | });
12 |
13 | test('WeakMaps', function (t) {
14 | t.equal(inspect(new WeakMap([[{}, 2]])), 'WeakMap { ? }');
15 | t.end();
16 | });
17 |
18 | test('Sets', function (t) {
19 | t.equal(inspect(new Set([[1, 2]])), 'Set (1) {[ 1, 2 ]}');
20 | t.end();
21 | });
22 |
23 | test('WeakSets', function (t) {
24 | t.equal(inspect(new WeakSet([[1, 2]])), 'WeakSet { ? }');
25 | t.end();
26 | });
27 |
--------------------------------------------------------------------------------
/node_modules/object-inspect/test/browser/dom.js:
--------------------------------------------------------------------------------
1 | var inspect = require('../../');
2 | var test = require('tape');
3 |
4 | test('dom element', function (t) {
5 | t.plan(1);
6 |
7 | var d = document.createElement('div');
8 | d.setAttribute('id', 'beep');
9 | d.innerHTML = 'woooiiiii';
10 |
11 | t.equal(
12 | inspect([d, { a: 3, b: 4, c: [5, 6, [7, [8, [9]]]] }]),
13 | '[ ...
, { a: 3, b: 4, c: [ 5, 6, [ 7, [ 8, [Object] ] ] ] } ]'
14 | );
15 | });
16 |
--------------------------------------------------------------------------------
/node_modules/object-inspect/test/circular.js:
--------------------------------------------------------------------------------
1 | var inspect = require('../');
2 | var test = require('tape');
3 |
4 | test('circular', function (t) {
5 | t.plan(2);
6 | var obj = { a: 1, b: [3, 4] };
7 | obj.c = obj;
8 | t.equal(inspect(obj), '{ a: 1, b: [ 3, 4 ], c: [Circular] }');
9 |
10 | var double = {};
11 | double.a = [double];
12 | double.b = {};
13 | double.b.inner = double.b;
14 | double.b.obj = double;
15 | t.equal(inspect(double), '{ a: [ [Circular] ], b: { inner: [Circular], obj: [Circular] } }');
16 | });
17 |
--------------------------------------------------------------------------------
/node_modules/object-inspect/test/deep.js:
--------------------------------------------------------------------------------
1 | var inspect = require('../');
2 | var test = require('tape');
3 |
4 | test('deep', function (t) {
5 | t.plan(4);
6 | var obj = [[[[[[500]]]]]];
7 | t.equal(inspect(obj), '[ [ [ [ [ [Array] ] ] ] ] ]');
8 | t.equal(inspect(obj, { depth: 4 }), '[ [ [ [ [Array] ] ] ] ]');
9 | t.equal(inspect(obj, { depth: 2 }), '[ [ [Array] ] ]');
10 |
11 | t.equal(inspect([[[{ a: 1 }]]], { depth: 3 }), '[ [ [ [Object] ] ] ]');
12 | });
13 |
--------------------------------------------------------------------------------
/node_modules/object-inspect/test/fakes.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var inspect = require('../');
4 | var test = require('tape');
5 | var hasToStringTag = require('has-tostringtag/shams')();
6 | var forEach = require('for-each');
7 |
8 | test('fakes', { skip: !hasToStringTag }, function (t) {
9 | forEach([
10 | 'Array',
11 | 'Boolean',
12 | 'Date',
13 | 'Error',
14 | 'Number',
15 | 'RegExp',
16 | 'String'
17 | ], function (expected) {
18 | var faker = {};
19 | faker[Symbol.toStringTag] = expected;
20 |
21 | t.equal(
22 | inspect(faker),
23 | '{ [Symbol(Symbol.toStringTag)]: \'' + expected + '\' }',
24 | 'faker masquerading as ' + expected + ' is not shown as one'
25 | );
26 | });
27 |
28 | t.end();
29 | });
30 |
--------------------------------------------------------------------------------
/node_modules/object-inspect/test/global.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var inspect = require('../');
4 |
5 | var test = require('tape');
6 | var globalThis = require('globalthis')();
7 |
8 | test('global object', function (t) {
9 | /* eslint-env browser */
10 | var expected = typeof window === 'undefined' ? 'globalThis' : 'Window';
11 | t.equal(
12 | inspect([globalThis]),
13 | '[ { [object ' + expected + '] } ]'
14 | );
15 |
16 | t.end();
17 | });
18 |
--------------------------------------------------------------------------------
/node_modules/object-inspect/test/has.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var inspect = require('../');
4 | var test = require('tape');
5 | var mockProperty = require('mock-property');
6 |
7 | test('when Object#hasOwnProperty is deleted', function (t) {
8 | t.plan(1);
9 | var arr = [1, , 3]; // eslint-disable-line no-sparse-arrays
10 |
11 | t.teardown(mockProperty(Array.prototype, 1, { value: 2 })); // this is needed to account for "in" vs "hasOwnProperty"
12 | t.teardown(mockProperty(Object.prototype, 'hasOwnProperty', { 'delete': true }));
13 |
14 | t.equal(inspect(arr), '[ 1, , 3 ]');
15 | });
16 |
--------------------------------------------------------------------------------
/node_modules/object-inspect/test/holes.js:
--------------------------------------------------------------------------------
1 | var test = require('tape');
2 | var inspect = require('../');
3 |
4 | var xs = ['a', 'b'];
5 | xs[5] = 'f';
6 | xs[7] = 'j';
7 | xs[8] = 'k';
8 |
9 | test('holes', function (t) {
10 | t.plan(1);
11 | t.equal(
12 | inspect(xs),
13 | "[ 'a', 'b', , , , 'f', , 'j', 'k' ]"
14 | );
15 | });
16 |
--------------------------------------------------------------------------------
/node_modules/object-inspect/test/lowbyte.js:
--------------------------------------------------------------------------------
1 | var test = require('tape');
2 | var inspect = require('../');
3 |
4 | var obj = { x: 'a\r\nb', y: '\x05! \x1f \x12' };
5 |
6 | test('interpolate low bytes', function (t) {
7 | t.plan(1);
8 | t.equal(
9 | inspect(obj),
10 | "{ x: 'a\\r\\nb', y: '\\x05! \\x1F \\x12' }"
11 | );
12 | });
13 |
--------------------------------------------------------------------------------
/node_modules/object-inspect/test/undef.js:
--------------------------------------------------------------------------------
1 | var test = require('tape');
2 | var inspect = require('../');
3 |
4 | var obj = { a: 1, b: [3, 4, undefined, null], c: undefined, d: null };
5 |
6 | test('undef and null', function (t) {
7 | t.plan(1);
8 | t.equal(
9 | inspect(obj),
10 | '{ a: 1, b: [ 3, 4, undefined, null ], c: undefined, d: null }'
11 | );
12 | });
13 |
--------------------------------------------------------------------------------
/node_modules/object-inspect/util.inspect.js:
--------------------------------------------------------------------------------
1 | module.exports = require('util').inspect;
2 |
--------------------------------------------------------------------------------
/node_modules/once/LICENSE:
--------------------------------------------------------------------------------
1 | The ISC License
2 |
3 | Copyright (c) Isaac Z. Schlueter and Contributors
4 |
5 | Permission to use, copy, modify, and/or distribute this software for any
6 | purpose with or without fee is hereby granted, provided that the above
7 | copyright notice and this permission notice appear in all copies.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 |
--------------------------------------------------------------------------------
/node_modules/once/once.js:
--------------------------------------------------------------------------------
1 | var wrappy = require('wrappy')
2 | module.exports = wrappy(once)
3 | module.exports.strict = wrappy(onceStrict)
4 |
5 | once.proto = once(function () {
6 | Object.defineProperty(Function.prototype, 'once', {
7 | value: function () {
8 | return once(this)
9 | },
10 | configurable: true
11 | })
12 |
13 | Object.defineProperty(Function.prototype, 'onceStrict', {
14 | value: function () {
15 | return onceStrict(this)
16 | },
17 | configurable: true
18 | })
19 | })
20 |
21 | function once (fn) {
22 | var f = function () {
23 | if (f.called) return f.value
24 | f.called = true
25 | return f.value = fn.apply(this, arguments)
26 | }
27 | f.called = false
28 | return f
29 | }
30 |
31 | function onceStrict (fn) {
32 | var f = function () {
33 | if (f.called)
34 | throw new Error(f.onceError)
35 | f.called = true
36 | return f.value = fn.apply(this, arguments)
37 | }
38 | var name = fn.name || 'Function wrapped with `once`'
39 | f.onceError = name + " shouldn't be called more than once"
40 | f.called = false
41 | return f
42 | }
43 |
--------------------------------------------------------------------------------
/node_modules/once/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "once",
3 | "version": "1.4.0",
4 | "description": "Run a function exactly one time",
5 | "main": "once.js",
6 | "directories": {
7 | "test": "test"
8 | },
9 | "dependencies": {
10 | "wrappy": "1"
11 | },
12 | "devDependencies": {
13 | "tap": "^7.0.1"
14 | },
15 | "scripts": {
16 | "test": "tap test/*.js"
17 | },
18 | "files": [
19 | "once.js"
20 | ],
21 | "repository": {
22 | "type": "git",
23 | "url": "git://github.com/isaacs/once"
24 | },
25 | "keywords": [
26 | "once",
27 | "function",
28 | "one",
29 | "single"
30 | ],
31 | "author": "Isaac Z. Schlueter (http://blog.izs.me/)",
32 | "license": "ISC"
33 | }
34 |
--------------------------------------------------------------------------------
/node_modules/p-cancelable/license:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) Sindre Sorhus (sindresorhus.com)
4 |
5 | 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:
6 |
7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8 |
9 | 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.
10 |
--------------------------------------------------------------------------------
/node_modules/p-cancelable/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "p-cancelable",
3 | "version": "2.1.1",
4 | "description": "Create a promise that can be canceled",
5 | "license": "MIT",
6 | "repository": "sindresorhus/p-cancelable",
7 | "author": {
8 | "name": "Sindre Sorhus",
9 | "email": "sindresorhus@gmail.com",
10 | "url": "sindresorhus.com"
11 | },
12 | "engines": {
13 | "node": ">=8"
14 | },
15 | "scripts": {
16 | "test": "xo && ava && tsd"
17 | },
18 | "files": [
19 | "index.js",
20 | "index.d.ts"
21 | ],
22 | "keywords": [
23 | "promise",
24 | "cancelable",
25 | "cancel",
26 | "canceled",
27 | "canceling",
28 | "cancellable",
29 | "cancellation",
30 | "abort",
31 | "abortable",
32 | "aborting",
33 | "cleanup",
34 | "task",
35 | "token",
36 | "async",
37 | "function",
38 | "await",
39 | "promises",
40 | "bluebird"
41 | ],
42 | "devDependencies": {
43 | "ava": "^1.4.1",
44 | "delay": "^4.1.0",
45 | "promise.prototype.finally": "^3.1.0",
46 | "tsd": "^0.7.1",
47 | "xo": "^0.24.0"
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/node_modules/proxy-from-env/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "env": {
3 | "node": true
4 | },
5 | "rules": {
6 | "array-bracket-spacing": [2, "never"],
7 | "block-scoped-var": 2,
8 | "brace-style": [2, "1tbs"],
9 | "camelcase": 1,
10 | "computed-property-spacing": [2, "never"],
11 | "curly": 2,
12 | "eol-last": 2,
13 | "eqeqeq": [2, "smart"],
14 | "max-depth": [1, 3],
15 | "max-len": [1, 80],
16 | "max-statements": [1, 15],
17 | "new-cap": 1,
18 | "no-extend-native": 2,
19 | "no-mixed-spaces-and-tabs": 2,
20 | "no-trailing-spaces": 2,
21 | "no-unused-vars": 1,
22 | "no-use-before-define": [2, "nofunc"],
23 | "object-curly-spacing": [2, "never"],
24 | "quotes": [2, "single", "avoid-escape"],
25 | "semi": [2, "always"],
26 | "keyword-spacing": [2, {"before": true, "after": true}],
27 | "space-unary-ops": 2
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/node_modules/proxy-from-env/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - node
4 | - lts/*
5 | script:
6 | - npm run lint
7 | # test-coverage will also run the tests, but does not print helpful output upon test failure.
8 | # So we also run the tests separately.
9 | - npm run test
10 | - npm run test-coverage && cat coverage/lcov.info | ./node_modules/.bin/coveralls && rm -rf coverage
11 |
--------------------------------------------------------------------------------
/node_modules/proxy-from-env/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "proxy-from-env",
3 | "version": "1.1.0",
4 | "description": "Offers getProxyForUrl to get the proxy URL for a URL, respecting the *_PROXY (e.g. HTTP_PROXY) and NO_PROXY environment variables.",
5 | "main": "index.js",
6 | "scripts": {
7 | "lint": "eslint *.js",
8 | "test": "mocha ./test.js --reporter spec",
9 | "test-coverage": "istanbul cover ./node_modules/.bin/_mocha -- --reporter spec"
10 | },
11 | "repository": {
12 | "type": "git",
13 | "url": "https://github.com/Rob--W/proxy-from-env.git"
14 | },
15 | "keywords": [
16 | "proxy",
17 | "http_proxy",
18 | "https_proxy",
19 | "no_proxy",
20 | "environment"
21 | ],
22 | "author": "Rob Wu (https://robwu.nl/)",
23 | "license": "MIT",
24 | "bugs": {
25 | "url": "https://github.com/Rob--W/proxy-from-env/issues"
26 | },
27 | "homepage": "https://github.com/Rob--W/proxy-from-env#readme",
28 | "devDependencies": {
29 | "coveralls": "^3.0.9",
30 | "eslint": "^6.8.0",
31 | "istanbul": "^0.4.5",
32 | "mocha": "^7.1.0"
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/node_modules/pump/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | github: mafintosh
2 | tidelift: "npm/pump"
3 |
--------------------------------------------------------------------------------
/node_modules/pump/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "0.10"
4 |
5 | script: "npm test"
6 |
--------------------------------------------------------------------------------
/node_modules/pump/SECURITY.md:
--------------------------------------------------------------------------------
1 | ## Security contact information
2 |
3 | To report a security vulnerability, please use the
4 | [Tidelift security contact](https://tidelift.com/security).
5 | Tidelift will coordinate the fix and disclosure.
6 |
--------------------------------------------------------------------------------
/node_modules/pump/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "pump",
3 | "version": "3.0.2",
4 | "repository": "git://github.com/mafintosh/pump.git",
5 | "license": "MIT",
6 | "description": "pipe streams together and close all of them if one of them closes",
7 | "browser": {
8 | "fs": false
9 | },
10 | "keywords": [
11 | "streams",
12 | "pipe",
13 | "destroy",
14 | "callback"
15 | ],
16 | "author": "Mathias Buus Madsen ",
17 | "dependencies": {
18 | "end-of-stream": "^1.1.0",
19 | "once": "^1.3.1"
20 | },
21 | "scripts": {
22 | "test": "node test-browser.js && node test-node.js"
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/node_modules/qs/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | indent_style = space
5 | indent_size = 4
6 | end_of_line = lf
7 | charset = utf-8
8 | trim_trailing_whitespace = true
9 | insert_final_newline = true
10 | max_line_length = 160
11 | quote_type = single
12 |
13 | [test/*]
14 | max_line_length = off
15 |
16 | [LICENSE.md]
17 | indent_size = off
18 |
19 | [*.md]
20 | max_line_length = off
21 |
22 | [*.json]
23 | max_line_length = off
24 |
25 | [Makefile]
26 | max_line_length = off
27 |
28 | [CHANGELOG.md]
29 | indent_style = space
30 | indent_size = 2
31 |
32 | [LICENSE]
33 | indent_size = 2
34 | max_line_length = off
35 |
36 | [coverage/**/*]
37 | indent_size = off
38 | indent_style = off
39 | indent = off
40 | max_line_length = off
41 |
42 | [.nycrc]
43 | indent_style = tab
44 |
45 | [tea.yaml]
46 | indent_size = 2
47 |
--------------------------------------------------------------------------------
/node_modules/qs/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: [ljharb]
4 | patreon: # Replace with a single Patreon username
5 | open_collective: # Replace with a single Open Collective username
6 | ko_fi: # Replace with a single Ko-fi username
7 | tidelift: npm/qs
8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9 | liberapay: # Replace with a single Liberapay username
10 | issuehunt: # Replace with a single IssueHunt username
11 | otechie: # Replace with a single Otechie username
12 | custom: # Replace with a single custom sponsorship URL
13 |
--------------------------------------------------------------------------------
/node_modules/qs/.nycrc:
--------------------------------------------------------------------------------
1 | {
2 | "all": true,
3 | "check-coverage": false,
4 | "reporter": ["text-summary", "text", "html", "json"],
5 | "lines": 86,
6 | "statements": 85.93,
7 | "functions": 82.43,
8 | "branches": 76.06,
9 | "exclude": [
10 | "coverage",
11 | "dist"
12 | ]
13 | }
14 |
--------------------------------------------------------------------------------
/node_modules/qs/lib/formats.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var replace = String.prototype.replace;
4 | var percentTwenties = /%20/g;
5 |
6 | var Format = {
7 | RFC1738: 'RFC1738',
8 | RFC3986: 'RFC3986'
9 | };
10 |
11 | module.exports = {
12 | 'default': Format.RFC3986,
13 | formatters: {
14 | RFC1738: function (value) {
15 | return replace.call(value, percentTwenties, '+');
16 | },
17 | RFC3986: function (value) {
18 | return String(value);
19 | }
20 | },
21 | RFC1738: Format.RFC1738,
22 | RFC3986: Format.RFC3986
23 | };
24 |
--------------------------------------------------------------------------------
/node_modules/qs/lib/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var stringify = require('./stringify');
4 | var parse = require('./parse');
5 | var formats = require('./formats');
6 |
7 | module.exports = {
8 | formats: formats,
9 | parse: parse,
10 | stringify: stringify
11 | };
12 |
--------------------------------------------------------------------------------
/node_modules/quick-lru/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "quick-lru",
3 | "version": "5.1.1",
4 | "description": "Simple “Least Recently Used” (LRU) cache",
5 | "license": "MIT",
6 | "repository": "sindresorhus/quick-lru",
7 | "funding": "https://github.com/sponsors/sindresorhus",
8 | "author": {
9 | "name": "Sindre Sorhus",
10 | "email": "sindresorhus@gmail.com",
11 | "url": "https://sindresorhus.com"
12 | },
13 | "engines": {
14 | "node": ">=10"
15 | },
16 | "scripts": {
17 | "test": "xo && nyc ava && tsd"
18 | },
19 | "files": [
20 | "index.js",
21 | "index.d.ts"
22 | ],
23 | "keywords": [
24 | "lru",
25 | "quick",
26 | "cache",
27 | "caching",
28 | "least",
29 | "recently",
30 | "used",
31 | "fast",
32 | "map",
33 | "hash",
34 | "buffer"
35 | ],
36 | "devDependencies": {
37 | "ava": "^2.0.0",
38 | "coveralls": "^3.0.3",
39 | "nyc": "^15.0.0",
40 | "tsd": "^0.11.0",
41 | "xo": "^0.26.0"
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/node_modules/resolve-alpn/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | const tls = require('tls');
3 |
4 | module.exports = (options = {}, connect = tls.connect) => new Promise((resolve, reject) => {
5 | let timeout = false;
6 |
7 | let socket;
8 |
9 | const callback = async () => {
10 | await socketPromise;
11 |
12 | socket.off('timeout', onTimeout);
13 | socket.off('error', reject);
14 |
15 | if (options.resolveSocket) {
16 | resolve({alpnProtocol: socket.alpnProtocol, socket, timeout});
17 |
18 | if (timeout) {
19 | await Promise.resolve();
20 | socket.emit('timeout');
21 | }
22 | } else {
23 | socket.destroy();
24 | resolve({alpnProtocol: socket.alpnProtocol, timeout});
25 | }
26 | };
27 |
28 | const onTimeout = async () => {
29 | timeout = true;
30 | callback();
31 | };
32 |
33 | const socketPromise = (async () => {
34 | try {
35 | socket = await connect(options, callback);
36 |
37 | socket.on('error', reject);
38 | socket.once('timeout', onTimeout);
39 | } catch (error) {
40 | reject(error);
41 | }
42 | })();
43 | });
44 |
--------------------------------------------------------------------------------
/node_modules/resolve-alpn/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "resolve-alpn",
3 | "version": "1.2.1",
4 | "description": "Detects the ALPN protocol",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "xo && nyc --reporter=lcovonly --reporter=text --reporter=html ava"
8 | },
9 | "files": [
10 | "index.js"
11 | ],
12 | "repository": {
13 | "type": "git",
14 | "url": "git+https://github.com/szmarczak/resolve-alpn.git"
15 | },
16 | "keywords": [
17 | "alpn",
18 | "tls",
19 | "socket",
20 | "http2"
21 | ],
22 | "author": "Szymon Marczak",
23 | "license": "MIT",
24 | "bugs": {
25 | "url": "https://github.com/szmarczak/resolve-alpn/issues"
26 | },
27 | "homepage": "https://github.com/szmarczak/resolve-alpn#readme",
28 | "devDependencies": {
29 | "ava": "^3.15.0",
30 | "nyc": "^15.1.0",
31 | "pem": "1.14.3",
32 | "xo": "^0.38.2"
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/node_modules/responselike/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "responselike",
3 | "version": "2.0.1",
4 | "description": "A response-like object for mocking a Node.js HTTP response stream",
5 | "funding": "https://github.com/sponsors/sindresorhus",
6 | "main": "src/index.js",
7 | "scripts": {
8 | "test": "xo && nyc ava",
9 | "coverage": "nyc report --reporter=text-lcov | coveralls"
10 | },
11 | "xo": {
12 | "extends": "xo-lukechilds"
13 | },
14 | "keywords": [
15 | "http",
16 | "https",
17 | "response",
18 | "mock",
19 | "request",
20 | "responselike"
21 | ],
22 | "repository": {
23 | "type": "git",
24 | "url": "https://github.com/sindresorhus/responselike.git"
25 | },
26 | "author": "lukechilds",
27 | "license": "MIT",
28 | "devDependencies": {
29 | "ava": "^0.25.0",
30 | "coveralls": "^3.0.0",
31 | "eslint-config-xo-lukechilds": "^1.0.0",
32 | "get-stream": "^3.0.0",
33 | "nyc": "^11.8.0",
34 | "xo": "^0.19.0"
35 | },
36 | "dependencies": {
37 | "lowercase-keys": "^2.0.0"
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/node_modules/responselike/src/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | const Readable = require('stream').Readable;
4 | const lowercaseKeys = require('lowercase-keys');
5 |
6 | class Response extends Readable {
7 | constructor(statusCode, headers, body, url) {
8 | if (typeof statusCode !== 'number') {
9 | throw new TypeError('Argument `statusCode` should be a number');
10 | }
11 | if (typeof headers !== 'object') {
12 | throw new TypeError('Argument `headers` should be an object');
13 | }
14 | if (!(body instanceof Buffer)) {
15 | throw new TypeError('Argument `body` should be a buffer');
16 | }
17 | if (typeof url !== 'string') {
18 | throw new TypeError('Argument `url` should be a string');
19 | }
20 |
21 | super();
22 | this.statusCode = statusCode;
23 | this.headers = lowercaseKeys(headers);
24 | this.body = body;
25 | this.url = url;
26 | }
27 |
28 | _read() {
29 | this.push(this.body);
30 | this.push(null);
31 | }
32 | }
33 |
34 | module.exports = Response;
35 |
--------------------------------------------------------------------------------
/node_modules/side-channel-list/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | end_of_line = lf
6 | insert_final_newline = true
7 | indent_style = tab
8 | indent_size = 2
9 | trim_trailing_whitespace = true
10 |
--------------------------------------------------------------------------------
/node_modules/side-channel-list/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "root": true,
3 |
4 | "extends": "@ljharb",
5 |
6 | "rules": {
7 | "max-lines-per-function": 0,
8 | "multiline-comment-style": 1,
9 | "new-cap": [2, { "capIsNewExceptions": ["GetIntrinsic"] }],
10 | },
11 | }
12 |
--------------------------------------------------------------------------------
/node_modules/side-channel-list/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: [ljharb]
4 | patreon: # Replace with a single Patreon username
5 | open_collective: # Replace with a single Open Collective username
6 | ko_fi: # Replace with a single Ko-fi username
7 | tidelift: npm/side-channel-list
8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9 | liberapay: # Replace with a single Liberapay username
10 | issuehunt: # Replace with a single IssueHunt username
11 | otechie: # Replace with a single Otechie username
12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
13 |
--------------------------------------------------------------------------------
/node_modules/side-channel-list/.nycrc:
--------------------------------------------------------------------------------
1 | {
2 | "all": true,
3 | "check-coverage": false,
4 | "reporter": ["text-summary", "text", "html", "json"],
5 | "lines": 86,
6 | "statements": 85.93,
7 | "functions": 82.43,
8 | "branches": 76.06,
9 | "exclude": [
10 | "coverage",
11 | "test"
12 | ]
13 | }
14 |
--------------------------------------------------------------------------------
/node_modules/side-channel-list/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Changelog
2 |
3 | All notable changes to this project will be documented in this file.
4 |
5 | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6 | and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7 |
8 | ## v1.0.0 - 2024-12-10
9 |
10 | ### Commits
11 |
12 | - Initial implementation, tests, readme, types [`5d6baee`](https://github.com/ljharb/side-channel-list/commit/5d6baee5c9054a1238007f5a1dfc109a7a816251)
13 | - Initial commit [`3ae784c`](https://github.com/ljharb/side-channel-list/commit/3ae784c63a47895fbaeed2a91ab54a8029a7a100)
14 | - npm init [`07055a4`](https://github.com/ljharb/side-channel-list/commit/07055a4d139895565b199dba5fe2479c1a1b9e28)
15 | - Only apps should have lockfiles [`9573058`](https://github.com/ljharb/side-channel-list/commit/9573058a47494e2d68f8c6c77b5d7fbe441949c1)
16 |
--------------------------------------------------------------------------------
/node_modules/side-channel-list/index.d.ts:
--------------------------------------------------------------------------------
1 | declare namespace getSideChannelList {
2 | type Channel = {
3 | assert: (key: K) => void;
4 | has: (key: K) => boolean;
5 | get: (key: K) => V | undefined;
6 | set: (key: K, value: V) => void;
7 | delete: (key: K) => boolean;
8 | };
9 | }
10 |
11 | declare function getSideChannelList(): getSideChannelList.Channel;
12 |
13 | export = getSideChannelList;
14 |
--------------------------------------------------------------------------------
/node_modules/side-channel-list/list.d.ts:
--------------------------------------------------------------------------------
1 | type ListNode = {
2 | key: K;
3 | next: undefined | ListNode;
4 | value: T;
5 | };
6 | type RootNode = {
7 | next: undefined | ListNode;
8 | };
9 |
10 | export function listGetNode(list: RootNode, key: ListNode['key'], isDelete?: boolean): ListNode | undefined;
11 | export function listGet(objects: undefined | RootNode, key: ListNode['key']): T | undefined;
12 | export function listSet(objects: RootNode, key: ListNode['key'], value: T): void;
13 | export function listHas(objects: undefined | RootNode, key: ListNode['key']): boolean;
14 | export function listDelete(objects: undefined | RootNode, key: ListNode['key']): ListNode | undefined;
15 |
--------------------------------------------------------------------------------
/node_modules/side-channel-list/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "@ljharb/tsconfig",
3 | "compilerOptions": {
4 | "target": "es2021",
5 | },
6 | "exclude": [
7 | "coverage",
8 | ],
9 | }
10 |
--------------------------------------------------------------------------------
/node_modules/side-channel-map/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | end_of_line = lf
6 | insert_final_newline = true
7 | indent_style = tab
8 | indent_size = 2
9 | trim_trailing_whitespace = true
10 |
--------------------------------------------------------------------------------
/node_modules/side-channel-map/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "root": true,
3 |
4 | "extends": "@ljharb",
5 |
6 | "rules": {
7 | "max-lines-per-function": 0,
8 | "multiline-comment-style": 1,
9 | "new-cap": [2, { "capIsNewExceptions": ["GetIntrinsic"] }],
10 | },
11 | }
12 |
--------------------------------------------------------------------------------
/node_modules/side-channel-map/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: [ljharb]
4 | patreon: # Replace with a single Patreon username
5 | open_collective: # Replace with a single Open Collective username
6 | ko_fi: # Replace with a single Ko-fi username
7 | tidelift: npm/side-channel-map
8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9 | liberapay: # Replace with a single Liberapay username
10 | issuehunt: # Replace with a single IssueHunt username
11 | otechie: # Replace with a single Otechie username
12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
13 |
--------------------------------------------------------------------------------
/node_modules/side-channel-map/.nycrc:
--------------------------------------------------------------------------------
1 | {
2 | "all": true,
3 | "check-coverage": false,
4 | "reporter": ["text-summary", "text", "html", "json"],
5 | "lines": 86,
6 | "statements": 85.93,
7 | "functions": 82.43,
8 | "branches": 76.06,
9 | "exclude": [
10 | "coverage",
11 | "test"
12 | ]
13 | }
14 |
--------------------------------------------------------------------------------
/node_modules/side-channel-map/index.d.ts:
--------------------------------------------------------------------------------
1 | declare namespace getSideChannelMap {
2 | type Channel = {
3 | assert: (key: K) => void;
4 | has: (key: K) => boolean;
5 | get: (key: K) => V | undefined;
6 | set: (key: K, value: V) => void;
7 | delete: (key: K) => boolean;
8 | };
9 | }
10 |
11 | declare function getSideChannelMap(): getSideChannelMap.Channel;
12 |
13 | declare const x: false | typeof getSideChannelMap;
14 |
15 | export = x;
16 |
--------------------------------------------------------------------------------
/node_modules/side-channel-map/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "@ljharb/tsconfig",
3 | "compilerOptions": {
4 | "target": "es2021",
5 | },
6 | "exclude": [
7 | "coverage",
8 | ],
9 | }
10 |
--------------------------------------------------------------------------------
/node_modules/side-channel-weakmap/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | end_of_line = lf
6 | insert_final_newline = true
7 | indent_style = tab
8 | indent_size = 2
9 | trim_trailing_whitespace = true
10 |
--------------------------------------------------------------------------------
/node_modules/side-channel-weakmap/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "root": true,
3 |
4 | "extends": "@ljharb",
5 |
6 | "rules": {
7 | "id-length": 0,
8 | "max-lines-per-function": 0,
9 | "multiline-comment-style": 1,
10 | "new-cap": [2, { "capIsNewExceptions": ["GetIntrinsic"] }],
11 | },
12 | }
13 |
--------------------------------------------------------------------------------
/node_modules/side-channel-weakmap/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: [ljharb]
4 | patreon: # Replace with a single Patreon username
5 | open_collective: # Replace with a single Open Collective username
6 | ko_fi: # Replace with a single Ko-fi username
7 | tidelift: npm/side-channel-weakmap
8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9 | liberapay: # Replace with a single Liberapay username
10 | issuehunt: # Replace with a single IssueHunt username
11 | otechie: # Replace with a single Otechie username
12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
13 |
--------------------------------------------------------------------------------
/node_modules/side-channel-weakmap/.nycrc:
--------------------------------------------------------------------------------
1 | {
2 | "all": true,
3 | "check-coverage": false,
4 | "reporter": ["text-summary", "text", "html", "json"],
5 | "lines": 86,
6 | "statements": 85.93,
7 | "functions": 82.43,
8 | "branches": 76.06,
9 | "exclude": [
10 | "coverage",
11 | "test"
12 | ]
13 | }
14 |
--------------------------------------------------------------------------------
/node_modules/side-channel-weakmap/index.d.ts:
--------------------------------------------------------------------------------
1 | declare namespace getSideChannelWeakMap {
2 | type Channel = {
3 | assert: (key: K) => void;
4 | has: (key: K) => boolean;
5 | get: (key: K) => V | undefined;
6 | set: (key: K, value: V) => void;
7 | delete: (key: K) => boolean;
8 | }
9 | }
10 |
11 | declare function getSideChannelWeakMap(): getSideChannelWeakMap.Channel;
12 |
13 | declare const x: false | typeof getSideChannelWeakMap;
14 |
15 | export = x;
16 |
--------------------------------------------------------------------------------
/node_modules/side-channel-weakmap/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "@ljharb/tsconfig",
3 | "compilerOptions": {
4 | "target": "es2021",
5 | },
6 | "exclude": [
7 | "coverage",
8 | ],
9 | }
10 |
--------------------------------------------------------------------------------
/node_modules/side-channel/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | end_of_line = lf
6 | insert_final_newline = true
7 | indent_style = tab
8 | indent_size = 2
9 | trim_trailing_whitespace = true
10 |
--------------------------------------------------------------------------------
/node_modules/side-channel/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "root": true,
3 |
4 | "extends": "@ljharb",
5 |
6 | "rules": {
7 | "id-length": 0,
8 | "max-lines-per-function": 0,
9 | "multiline-comment-style": 1,
10 | "new-cap": [2, { "capIsNewExceptions": ["GetIntrinsic"] }],
11 | },
12 | }
13 |
--------------------------------------------------------------------------------
/node_modules/side-channel/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: [ljharb]
4 | patreon: # Replace with a single Patreon username
5 | open_collective: # Replace with a single Open Collective username
6 | ko_fi: # Replace with a single Ko-fi username
7 | tidelift: npm/side-channel
8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9 | liberapay: # Replace with a single Liberapay username
10 | issuehunt: # Replace with a single IssueHunt username
11 | otechie: # Replace with a single Otechie username
12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
13 |
--------------------------------------------------------------------------------
/node_modules/side-channel/.nycrc:
--------------------------------------------------------------------------------
1 | {
2 | "all": true,
3 | "check-coverage": false,
4 | "reporter": ["text-summary", "text", "html", "json"],
5 | "lines": 86,
6 | "statements": 85.93,
7 | "functions": 82.43,
8 | "branches": 76.06,
9 | "exclude": [
10 | "coverage",
11 | "test"
12 | ]
13 | }
14 |
--------------------------------------------------------------------------------
/node_modules/side-channel/index.d.ts:
--------------------------------------------------------------------------------
1 | import getSideChannelList from 'side-channel-list';
2 | import getSideChannelMap from 'side-channel-map';
3 | import getSideChannelWeakMap from 'side-channel-weakmap';
4 |
5 | declare namespace getSideChannel {
6 | type Channel =
7 | | getSideChannelList.Channel
8 | | ReturnType, false>>
9 | | ReturnType, false>>;
10 | }
11 |
12 | declare function getSideChannel(): getSideChannel.Channel;
13 |
14 | export = getSideChannel;
15 |
--------------------------------------------------------------------------------
/node_modules/side-channel/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "@ljharb/tsconfig",
3 | "compilerOptions": {
4 | "target": "es2021",
5 | },
6 | "exclude": [
7 | "coverage",
8 | ],
9 | }
10 |
--------------------------------------------------------------------------------
/node_modules/undici-types/README.md:
--------------------------------------------------------------------------------
1 | # undici-types
2 |
3 | This package is a dual-publish of the [undici](https://www.npmjs.com/package/undici) library types. The `undici` package **still contains types**. This package is for users who _only_ need undici types (such as for `@types/node`). It is published alongside every release of `undici`, so you can always use the same version.
4 |
5 | - [GitHub nodejs/undici](https://github.com/nodejs/undici)
6 | - [Undici Documentation](https://undici.nodejs.org/#/)
7 |
--------------------------------------------------------------------------------
/node_modules/undici-types/balanced-pool.d.ts:
--------------------------------------------------------------------------------
1 | import Pool from './pool'
2 | import Dispatcher from './dispatcher'
3 | import { URL } from 'url'
4 |
5 | export default BalancedPool
6 |
7 | type BalancedPoolConnectOptions = Omit;
8 |
9 | declare class BalancedPool extends Dispatcher {
10 | constructor(url: string | string[] | URL | URL[], options?: Pool.Options);
11 |
12 | addUpstream(upstream: string | URL): BalancedPool;
13 | removeUpstream(upstream: string | URL): BalancedPool;
14 | upstreams: Array;
15 |
16 | /** `true` after `pool.close()` has been called. */
17 | closed: boolean;
18 | /** `true` after `pool.destroyed()` has been called or `pool.close()` has been called and the pool shutdown has completed. */
19 | destroyed: boolean;
20 |
21 | // Override dispatcher APIs.
22 | override connect(
23 | options: BalancedPoolConnectOptions
24 | ): Promise;
25 | override connect(
26 | options: BalancedPoolConnectOptions,
27 | callback: (err: Error | null, data: Dispatcher.ConnectData) => void
28 | ): void;
29 | }
30 |
--------------------------------------------------------------------------------
/node_modules/undici-types/content-type.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
3 | interface MIMEType {
4 | type: string
5 | subtype: string
6 | parameters: Map
7 | essence: string
8 | }
9 |
10 | /**
11 | * Parse a string to a {@link MIMEType} object. Returns `failure` if the string
12 | * couldn't be parsed.
13 | * @see https://mimesniff.spec.whatwg.org/#parse-a-mime-type
14 | */
15 | export function parseMIMEType (input: string): 'failure' | MIMEType
16 |
17 | /**
18 | * Convert a MIMEType object to a string.
19 | * @see https://mimesniff.spec.whatwg.org/#serialize-a-mime-type
20 | */
21 | export function serializeAMimeType (mimeType: MIMEType): string
22 |
--------------------------------------------------------------------------------
/node_modules/undici-types/cookies.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
3 | import type { Headers } from './fetch'
4 |
5 | export interface Cookie {
6 | name: string
7 | value: string
8 | expires?: Date | number
9 | maxAge?: number
10 | domain?: string
11 | path?: string
12 | secure?: boolean
13 | httpOnly?: boolean
14 | sameSite?: 'Strict' | 'Lax' | 'None'
15 | unparsed?: string[]
16 | }
17 |
18 | export function deleteCookie (
19 | headers: Headers,
20 | name: string,
21 | attributes?: { name?: string, domain?: string }
22 | ): void
23 |
24 | export function getCookies (headers: Headers): Record
25 |
26 | export function getSetCookies (headers: Headers): Cookie[]
27 |
28 | export function setCookie (headers: Headers, cookie: Cookie): void
29 |
--------------------------------------------------------------------------------
/node_modules/undici-types/env-http-proxy-agent.d.ts:
--------------------------------------------------------------------------------
1 | import Agent from './agent'
2 | import Dispatcher from './dispatcher'
3 |
4 | export default EnvHttpProxyAgent
5 |
6 | declare class EnvHttpProxyAgent extends Dispatcher {
7 | constructor(opts?: EnvHttpProxyAgent.Options)
8 |
9 | dispatch(options: Agent.DispatchOptions, handler: Dispatcher.DispatchHandlers): boolean;
10 | }
11 |
12 | declare namespace EnvHttpProxyAgent {
13 | export interface Options extends Agent.Options {
14 | /** Overrides the value of the HTTP_PROXY environment variable */
15 | httpProxy?: string;
16 | /** Overrides the value of the HTTPS_PROXY environment variable */
17 | httpsProxy?: string;
18 | /** Overrides the value of the NO_PROXY environment variable */
19 | noProxy?: string;
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/node_modules/undici-types/global-dispatcher.d.ts:
--------------------------------------------------------------------------------
1 | import Dispatcher from "./dispatcher";
2 |
3 | export {
4 | getGlobalDispatcher,
5 | setGlobalDispatcher
6 | }
7 |
8 | declare function setGlobalDispatcher(dispatcher: DispatcherImplementation): void;
9 | declare function getGlobalDispatcher(): Dispatcher;
10 |
--------------------------------------------------------------------------------
/node_modules/undici-types/global-origin.d.ts:
--------------------------------------------------------------------------------
1 | export {
2 | setGlobalOrigin,
3 | getGlobalOrigin
4 | }
5 |
6 | declare function setGlobalOrigin(origin: string | URL | undefined): void;
7 | declare function getGlobalOrigin(): URL | undefined;
--------------------------------------------------------------------------------
/node_modules/undici-types/handlers.d.ts:
--------------------------------------------------------------------------------
1 | import Dispatcher from "./dispatcher";
2 |
3 | export declare class RedirectHandler implements Dispatcher.DispatchHandlers {
4 | constructor(
5 | dispatch: Dispatcher,
6 | maxRedirections: number,
7 | opts: Dispatcher.DispatchOptions,
8 | handler: Dispatcher.DispatchHandlers,
9 | redirectionLimitReached: boolean
10 | );
11 | }
12 |
13 | export declare class DecoratorHandler implements Dispatcher.DispatchHandlers {
14 | constructor(handler: Dispatcher.DispatchHandlers);
15 | }
16 |
--------------------------------------------------------------------------------
/node_modules/undici-types/header.d.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * The header type declaration of `undici`.
3 | */
4 | export type IncomingHttpHeaders = Record;
5 |
--------------------------------------------------------------------------------
/node_modules/undici-types/interceptors.d.ts:
--------------------------------------------------------------------------------
1 | import Dispatcher from "./dispatcher";
2 | import RetryHandler from "./retry-handler";
3 |
4 | export default Interceptors;
5 |
6 | declare namespace Interceptors {
7 | export type DumpInterceptorOpts = { maxSize?: number }
8 | export type RetryInterceptorOpts = RetryHandler.RetryOptions
9 | export type RedirectInterceptorOpts = { maxRedirections?: number }
10 | export type ResponseErrorInterceptorOpts = { throwOnError: boolean }
11 |
12 | export function createRedirectInterceptor(opts: RedirectInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
13 | export function dump(opts?: DumpInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
14 | export function retry(opts?: RetryInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
15 | export function redirect(opts?: RedirectInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
16 | export function responseError(opts?: ResponseErrorInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
17 | }
18 |
--------------------------------------------------------------------------------
/node_modules/undici-types/mock-client.d.ts:
--------------------------------------------------------------------------------
1 | import Client from './client'
2 | import Dispatcher from './dispatcher'
3 | import MockAgent from './mock-agent'
4 | import { MockInterceptor, Interceptable } from './mock-interceptor'
5 |
6 | export default MockClient
7 |
8 | /** MockClient extends the Client API and allows one to mock requests. */
9 | declare class MockClient extends Client implements Interceptable {
10 | constructor(origin: string, options: MockClient.Options);
11 | /** Intercepts any matching requests that use the same origin as this mock client. */
12 | intercept(options: MockInterceptor.Options): MockInterceptor;
13 | /** Dispatches a mocked request. */
14 | dispatch(options: Dispatcher.DispatchOptions, handlers: Dispatcher.DispatchHandlers): boolean;
15 | /** Closes the mock client and gracefully waits for enqueued requests to complete. */
16 | close(): Promise;
17 | }
18 |
19 | declare namespace MockClient {
20 | /** MockClient options. */
21 | export interface Options extends Client.Options {
22 | /** The agent to associate this MockClient with. */
23 | agent: MockAgent;
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/node_modules/undici-types/mock-errors.d.ts:
--------------------------------------------------------------------------------
1 | import Errors from './errors'
2 |
3 | export default MockErrors
4 |
5 | declare namespace MockErrors {
6 | /** The request does not match any registered mock dispatches. */
7 | export class MockNotMatchedError extends Errors.UndiciError {
8 | constructor(message?: string);
9 | name: 'MockNotMatchedError';
10 | code: 'UND_MOCK_ERR_MOCK_NOT_MATCHED';
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/node_modules/undici-types/mock-pool.d.ts:
--------------------------------------------------------------------------------
1 | import Pool from './pool'
2 | import MockAgent from './mock-agent'
3 | import { Interceptable, MockInterceptor } from './mock-interceptor'
4 | import Dispatcher from './dispatcher'
5 |
6 | export default MockPool
7 |
8 | /** MockPool extends the Pool API and allows one to mock requests. */
9 | declare class MockPool extends Pool implements Interceptable {
10 | constructor(origin: string, options: MockPool.Options);
11 | /** Intercepts any matching requests that use the same origin as this mock pool. */
12 | intercept(options: MockInterceptor.Options): MockInterceptor;
13 | /** Dispatches a mocked request. */
14 | dispatch(options: Dispatcher.DispatchOptions, handlers: Dispatcher.DispatchHandlers): boolean;
15 | /** Closes the mock pool and gracefully waits for enqueued requests to complete. */
16 | close(): Promise;
17 | }
18 |
19 | declare namespace MockPool {
20 | /** MockPool options. */
21 | export interface Options extends Pool.Options {
22 | /** The agent to associate this MockPool with. */
23 | agent: MockAgent;
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/node_modules/undici-types/patch.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
3 | // See https://github.com/nodejs/undici/issues/1740
4 |
5 | export type DOMException = typeof globalThis extends { DOMException: infer T }
6 | ? T
7 | : any
8 |
9 | export interface EventInit {
10 | bubbles?: boolean
11 | cancelable?: boolean
12 | composed?: boolean
13 | }
14 |
15 | export interface EventListenerOptions {
16 | capture?: boolean
17 | }
18 |
19 | export interface AddEventListenerOptions extends EventListenerOptions {
20 | once?: boolean
21 | passive?: boolean
22 | signal?: AbortSignal
23 | }
24 |
25 | export type EventListenerOrEventListenerObject = EventListener | EventListenerObject
26 |
27 | export interface EventListenerObject {
28 | handleEvent (object: Event): void
29 | }
30 |
31 | export interface EventListener {
32 | (evt: Event): void
33 | }
34 |
--------------------------------------------------------------------------------
/node_modules/undici-types/pool-stats.d.ts:
--------------------------------------------------------------------------------
1 | import Pool from "./pool"
2 |
3 | export default PoolStats
4 |
5 | declare class PoolStats {
6 | constructor(pool: Pool);
7 | /** Number of open socket connections in this pool. */
8 | connected: number;
9 | /** Number of open socket connections in this pool that do not have an active request. */
10 | free: number;
11 | /** Number of pending requests across all clients in this pool. */
12 | pending: number;
13 | /** Number of queued requests across all clients in this pool. */
14 | queued: number;
15 | /** Number of currently active requests across all clients in this pool. */
16 | running: number;
17 | /** Number of active, pending, or queued requests across all clients in this pool. */
18 | size: number;
19 | }
20 |
--------------------------------------------------------------------------------
/node_modules/undici-types/proxy-agent.d.ts:
--------------------------------------------------------------------------------
1 | import Agent from './agent'
2 | import buildConnector from './connector';
3 | import Dispatcher from './dispatcher'
4 | import { IncomingHttpHeaders } from './header'
5 |
6 | export default ProxyAgent
7 |
8 | declare class ProxyAgent extends Dispatcher {
9 | constructor(options: ProxyAgent.Options | string)
10 |
11 | dispatch(options: Agent.DispatchOptions, handler: Dispatcher.DispatchHandlers): boolean;
12 | close(): Promise;
13 | }
14 |
15 | declare namespace ProxyAgent {
16 | export interface Options extends Agent.Options {
17 | uri: string;
18 | /**
19 | * @deprecated use opts.token
20 | */
21 | auth?: string;
22 | token?: string;
23 | headers?: IncomingHttpHeaders;
24 | requestTls?: buildConnector.BuildOptions;
25 | proxyTls?: buildConnector.BuildOptions;
26 | clientFactory?(origin: URL, opts: object): Dispatcher;
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/node_modules/undici-types/retry-agent.d.ts:
--------------------------------------------------------------------------------
1 | import Dispatcher from './dispatcher'
2 | import RetryHandler from './retry-handler'
3 |
4 | export default RetryAgent
5 |
6 | declare class RetryAgent extends Dispatcher {
7 | constructor(dispatcher: Dispatcher, options?: RetryHandler.RetryOptions)
8 | }
9 |
--------------------------------------------------------------------------------
/node_modules/undici-types/util.d.ts:
--------------------------------------------------------------------------------
1 | export namespace util {
2 | /**
3 | * Retrieves a header name and returns its lowercase value.
4 | * @param value Header name
5 | */
6 | export function headerNameToString(value: string | Buffer): string;
7 |
8 | /**
9 | * Receives a header object and returns the parsed value.
10 | * @param headers Header object
11 | * @param obj Object to specify a proxy object. Used to assign parsed values.
12 | * @returns If `obj` is specified, it is equivalent to `obj`.
13 | */
14 | export function parseHeaders(
15 | headers: (Buffer | string | (Buffer | string)[])[],
16 | obj?: Record
17 | ): Record;
18 | }
19 |
--------------------------------------------------------------------------------
/node_modules/wrappy/LICENSE:
--------------------------------------------------------------------------------
1 | The ISC License
2 |
3 | Copyright (c) Isaac Z. Schlueter and Contributors
4 |
5 | Permission to use, copy, modify, and/or distribute this software for any
6 | purpose with or without fee is hereby granted, provided that the above
7 | copyright notice and this permission notice appear in all copies.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 |
--------------------------------------------------------------------------------
/node_modules/wrappy/README.md:
--------------------------------------------------------------------------------
1 | # wrappy
2 |
3 | Callback wrapping utility
4 |
5 | ## USAGE
6 |
7 | ```javascript
8 | var wrappy = require("wrappy")
9 |
10 | // var wrapper = wrappy(wrapperFunction)
11 |
12 | // make sure a cb is called only once
13 | // See also: http://npm.im/once for this specific use case
14 | var once = wrappy(function (cb) {
15 | var called = false
16 | return function () {
17 | if (called) return
18 | called = true
19 | return cb.apply(this, arguments)
20 | }
21 | })
22 |
23 | function printBoo () {
24 | console.log('boo')
25 | }
26 | // has some rando property
27 | printBoo.iAmBooPrinter = true
28 |
29 | var onlyPrintOnce = once(printBoo)
30 |
31 | onlyPrintOnce() // prints 'boo'
32 | onlyPrintOnce() // does nothing
33 |
34 | // random property is retained!
35 | assert.equal(onlyPrintOnce.iAmBooPrinter, true)
36 | ```
37 |
--------------------------------------------------------------------------------
/node_modules/wrappy/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "wrappy",
3 | "version": "1.0.2",
4 | "description": "Callback wrapping utility",
5 | "main": "wrappy.js",
6 | "files": [
7 | "wrappy.js"
8 | ],
9 | "directories": {
10 | "test": "test"
11 | },
12 | "dependencies": {},
13 | "devDependencies": {
14 | "tap": "^2.3.1"
15 | },
16 | "scripts": {
17 | "test": "tap --coverage test/*.js"
18 | },
19 | "repository": {
20 | "type": "git",
21 | "url": "https://github.com/npm/wrappy"
22 | },
23 | "author": "Isaac Z. Schlueter (http://blog.izs.me/)",
24 | "license": "ISC",
25 | "bugs": {
26 | "url": "https://github.com/npm/wrappy/issues"
27 | },
28 | "homepage": "https://github.com/npm/wrappy"
29 | }
30 |
--------------------------------------------------------------------------------
/node_modules/wrappy/wrappy.js:
--------------------------------------------------------------------------------
1 | // Returns a wrapper function that returns a wrapped callback
2 | // The wrapper function should do some stuff, and return a
3 | // presumably different callback function.
4 | // This makes sure that own properties are retained, so that
5 | // decorations and such are not lost along the way.
6 | module.exports = wrappy
7 | function wrappy (fn, cb) {
8 | if (fn && cb) return wrappy(fn)(cb)
9 |
10 | if (typeof fn !== 'function')
11 | throw new TypeError('need wrapper function')
12 |
13 | Object.keys(fn).forEach(function (k) {
14 | wrapper[k] = fn[k]
15 | })
16 |
17 | return wrapper
18 |
19 | function wrapper() {
20 | var args = new Array(arguments.length)
21 | for (var i = 0; i < args.length; i++) {
22 | args[i] = arguments[i]
23 | }
24 | var ret = fn.apply(this, args)
25 | var cb = args[args.length-1]
26 | if (typeof ret === 'function' && ret !== cb) {
27 | Object.keys(cb).forEach(function (k) {
28 | ret[k] = cb[k]
29 | })
30 | }
31 | return ret
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/node_modules/ws/browser.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function () {
4 | throw new Error(
5 | 'ws does not work in the browser. Browser clients must use the native ' +
6 | 'WebSocket object'
7 | );
8 | };
9 |
--------------------------------------------------------------------------------
/node_modules/ws/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | const WebSocket = require('./lib/websocket');
4 |
5 | WebSocket.createWebSocketStream = require('./lib/stream');
6 | WebSocket.Server = require('./lib/websocket-server');
7 | WebSocket.Receiver = require('./lib/receiver');
8 | WebSocket.Sender = require('./lib/sender');
9 |
10 | WebSocket.WebSocket = WebSocket;
11 | WebSocket.WebSocketServer = WebSocket.Server;
12 |
13 | module.exports = WebSocket;
14 |
--------------------------------------------------------------------------------
/node_modules/ws/lib/constants.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | const BINARY_TYPES = ['nodebuffer', 'arraybuffer', 'fragments'];
4 | const hasBlob = typeof Blob !== 'undefined';
5 |
6 | if (hasBlob) BINARY_TYPES.push('blob');
7 |
8 | module.exports = {
9 | BINARY_TYPES,
10 | EMPTY_BUFFER: Buffer.alloc(0),
11 | GUID: '258EAFA5-E914-47DA-95CA-C5AB0DC85B11',
12 | hasBlob,
13 | kForOnEventAttribute: Symbol('kIsForOnEventAttribute'),
14 | kListener: Symbol('kListener'),
15 | kStatusCode: Symbol('status-code'),
16 | kWebSocket: Symbol('websocket'),
17 | NOOP: () => {}
18 | };
19 |
--------------------------------------------------------------------------------
/node_modules/ws/wrapper.mjs:
--------------------------------------------------------------------------------
1 | import createWebSocketStream from './lib/stream.js';
2 | import Receiver from './lib/receiver.js';
3 | import Sender from './lib/sender.js';
4 | import WebSocket from './lib/websocket.js';
5 | import WebSocketServer from './lib/websocket-server.js';
6 |
7 | export { createWebSocketStream, Receiver, Sender, WebSocket, WebSocketServer };
8 | export default WebSocket;
9 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "axios": "^1.8.4",
4 | "got": "^11.8.6",
5 | "qs": "^6.14.0",
6 | "ws": "^8.18.1"
7 | },
8 | "name": "bpmading",
9 | "version": "1.0.0",
10 | "description": "这是一个基于 Backpack 交易所的自动交易系统,支持自动买入、止盈和风险控制。",
11 | "main": "backpack_api.js",
12 | "scripts": {
13 | "test": "echo \"Error: no test specified\" && exit 1"
14 | },
15 | "repository": {
16 | "type": "git",
17 | "url": "git+https://github.com/cryptocj520/backpack2.git"
18 | },
19 | "keywords": [],
20 | "author": "",
21 | "license": "ISC",
22 | "bugs": {
23 | "url": "https://github.com/cryptocj520/backpack2/issues"
24 | },
25 | "homepage": "https://github.com/cryptocj520/backpack2#readme"
26 | }
27 |
--------------------------------------------------------------------------------
/src/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cryptocj520/bp3/9055f40589ef899cb62c0e49e5cdfb28a96c961a/src/.DS_Store
--------------------------------------------------------------------------------