@neon/sdk 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +64 -3
- package/dist/_virtual/_rolldown/runtime.js +1 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/neon/config.d.ts +13 -0
- package/dist/neon/config.d.ts.map +1 -1
- package/dist/neon/config.js +2 -0
- package/dist/neon/config.js.map +1 -1
- package/dist/neon/context.d.ts +26 -6
- package/dist/neon/context.d.ts.map +1 -1
- package/dist/neon/context.js +59 -10
- package/dist/neon/context.js.map +1 -1
- package/dist/neon/deadline.d.ts +81 -0
- package/dist/neon/deadline.d.ts.map +1 -0
- package/dist/neon/deadline.js +143 -0
- package/dist/neon/deadline.js.map +1 -0
- package/dist/neon/errors.d.ts +22 -3
- package/dist/neon/errors.d.ts.map +1 -1
- package/dist/neon/errors.js +22 -2
- package/dist/neon/errors.js.map +1 -1
- package/dist/neon/paginate.d.ts +6 -1
- package/dist/neon/paginate.d.ts.map +1 -1
- package/dist/neon/paginate.js +59 -24
- package/dist/neon/paginate.js.map +1 -1
- package/dist/neon/raw-wrap.d.ts.map +1 -1
- package/dist/neon/raw-wrap.js +17 -2
- package/dist/neon/raw-wrap.js.map +1 -1
- package/dist/neon/resources/account.d.ts.map +1 -1
- package/dist/neon/resources/account.js +18 -12
- package/dist/neon/resources/account.js.map +1 -1
- package/dist/neon/resources/ai-gateway.js +3 -2
- package/dist/neon/resources/ai-gateway.js.map +1 -1
- package/dist/neon/resources/auth.d.ts.map +1 -1
- package/dist/neon/resources/auth.js +42 -28
- package/dist/neon/resources/auth.js.map +1 -1
- package/dist/neon/resources/branches.d.ts +1 -1
- package/dist/neon/resources/branches.d.ts.map +1 -1
- package/dist/neon/resources/branches.js +29 -20
- package/dist/neon/resources/branches.js.map +1 -1
- package/dist/neon/resources/bucket-objects.d.ts.map +1 -1
- package/dist/neon/resources/bucket-objects.js +15 -10
- package/dist/neon/resources/bucket-objects.js.map +1 -1
- package/dist/neon/resources/buckets.d.ts.map +1 -1
- package/dist/neon/resources/buckets.js +9 -6
- package/dist/neon/resources/buckets.js.map +1 -1
- package/dist/neon/resources/consumption.d.ts +4 -4
- package/dist/neon/resources/consumption.d.ts.map +1 -1
- package/dist/neon/resources/consumption.js +6 -6
- package/dist/neon/resources/consumption.js.map +1 -1
- package/dist/neon/resources/credentials.d.ts.map +1 -1
- package/dist/neon/resources/credentials.js +9 -6
- package/dist/neon/resources/credentials.js.map +1 -1
- package/dist/neon/resources/dataapi.d.ts.map +1 -1
- package/dist/neon/resources/dataapi.js +12 -8
- package/dist/neon/resources/dataapi.js.map +1 -1
- package/dist/neon/resources/databases.d.ts.map +1 -1
- package/dist/neon/resources/databases.js +15 -10
- package/dist/neon/resources/databases.js.map +1 -1
- package/dist/neon/resources/endpoints.d.ts.map +1 -1
- package/dist/neon/resources/endpoints.js +27 -18
- package/dist/neon/resources/endpoints.js.map +1 -1
- package/dist/neon/resources/functions.d.ts +1 -1
- package/dist/neon/resources/functions.d.ts.map +1 -1
- package/dist/neon/resources/functions.js +14 -10
- package/dist/neon/resources/functions.js.map +1 -1
- package/dist/neon/resources/operations.d.ts +12 -3
- package/dist/neon/resources/operations.d.ts.map +1 -1
- package/dist/neon/resources/operations.js +5 -4
- package/dist/neon/resources/operations.js.map +1 -1
- package/dist/neon/resources/postgres.d.ts.map +1 -1
- package/dist/neon/resources/postgres.js +9 -1
- package/dist/neon/resources/postgres.js.map +1 -1
- package/dist/neon/resources/projects.d.ts +1 -1
- package/dist/neon/resources/projects.d.ts.map +1 -1
- package/dist/neon/resources/projects.js +35 -24
- package/dist/neon/resources/projects.js.map +1 -1
- package/dist/neon/resources/roles.d.ts.map +1 -1
- package/dist/neon/resources/roles.js +18 -12
- package/dist/neon/resources/roles.js.map +1 -1
- package/dist/neon/resources/snapshots.d.ts +10 -1
- package/dist/neon/resources/snapshots.d.ts.map +1 -1
- package/dist/neon/resources/snapshots.js +37 -19
- package/dist/neon/resources/snapshots.js.map +1 -1
- package/dist/neon/resources/storage.js +3 -2
- package/dist/neon/resources/storage.js.map +1 -1
- package/dist/neon/retry.d.ts +30 -8
- package/dist/neon/retry.d.ts.map +1 -1
- package/dist/neon/retry.js +59 -20
- package/dist/neon/retry.js.map +1 -1
- package/dist/neon/wait.d.ts +7 -1
- package/dist/neon/wait.d.ts.map +1 -1
- package/dist/neon/wait.js +53 -34
- package/dist/neon/wait.js.map +1 -1
- package/package.json +3 -2
- package/dist/neon/client.test-d.d.ts +0 -1
- package/dist/neon/client.test-d.js +0 -98
- package/dist/neon/client.test-d.js.map +0 -1
- package/dist/node_modules/.pnpm/@vitest_pretty-format@3.0.9/node_modules/@vitest/pretty-format/dist/index.js +0 -879
- package/dist/node_modules/.pnpm/@vitest_pretty-format@3.0.9/node_modules/@vitest/pretty-format/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@vitest_runner@3.0.9/node_modules/@vitest/runner/dist/chunk-tasks.js +0 -30
- package/dist/node_modules/.pnpm/@vitest_runner@3.0.9/node_modules/@vitest/runner/dist/chunk-tasks.js.map +0 -1
- package/dist/node_modules/.pnpm/@vitest_runner@3.0.9/node_modules/@vitest/runner/dist/index.js +0 -579
- package/dist/node_modules/.pnpm/@vitest_runner@3.0.9/node_modules/@vitest/runner/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@vitest_runner@3.0.9/node_modules/@vitest/runner/dist/utils.js +0 -2
- package/dist/node_modules/.pnpm/@vitest_utils@3.0.9/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js +0 -92
- package/dist/node_modules/.pnpm/@vitest_utils@3.0.9/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js.map +0 -1
- package/dist/node_modules/.pnpm/@vitest_utils@3.0.9/node_modules/@vitest/utils/dist/helpers.js +0 -43
- package/dist/node_modules/.pnpm/@vitest_utils@3.0.9/node_modules/@vitest/utils/dist/helpers.js.map +0 -1
- package/dist/node_modules/.pnpm/@vitest_utils@3.0.9/node_modules/@vitest/utils/dist/index.js +0 -450
- package/dist/node_modules/.pnpm/@vitest_utils@3.0.9/node_modules/@vitest/utils/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@vitest_utils@3.0.9/node_modules/@vitest/utils/dist/source-map.js +0 -168
- package/dist/node_modules/.pnpm/@vitest_utils@3.0.9/node_modules/@vitest/utils/dist/source-map.js.map +0 -1
- package/dist/node_modules/.pnpm/chai@5.2.0/node_modules/chai/chai.js +0 -3101
- package/dist/node_modules/.pnpm/chai@5.2.0/node_modules/chai/chai.js.map +0 -1
- package/dist/node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/branding.js +0 -10
- package/dist/node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/branding.js.map +0 -1
- package/dist/node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/index.js +0 -109
- package/dist/node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/messages.js +0 -10
- package/dist/node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/messages.js.map +0 -1
- package/dist/node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/overloads.js +0 -10
- package/dist/node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/overloads.js.map +0 -1
- package/dist/node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/utils.js +0 -10
- package/dist/node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/utils.js.map +0 -1
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.js +0 -11
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.js.map +0 -1
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.js +0 -16
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.js.map +0 -1
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.js +0 -11
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.js.map +0 -1
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.js +0 -15
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.js.map +0 -1
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.js +0 -13
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.js.map +0 -1
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.js +0 -34
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.js.map +0 -1
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.js +0 -12
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.js.map +0 -1
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.js +0 -122
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.js.map +0 -1
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.js +0 -39
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.js.map +0 -1
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.js +0 -99
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.js.map +0 -1
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.js +0 -25
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.js.map +0 -1
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.js +0 -14
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.js.map +0 -1
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.js +0 -21
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.js.map +0 -1
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.js +0 -6
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.js.map +0 -1
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.js +0 -12
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.js.map +0 -1
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.js +0 -18
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.js.map +0 -1
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.js +0 -24
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.js.map +0 -1
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.js +0 -9
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.js.map +0 -1
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.js +0 -30
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.js.map +0 -1
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js +0 -82
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js.map +0 -1
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/node.js +0 -7
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/node.js.map +0 -1
- package/dist/node_modules/.pnpm/vitest@3.0.9_@types_debug@4.1.13_@types_node@20.19.17_jiti@2.7.0_jsdom@26.1.0_lightning_fb7ae83398b95c49208c9194029bba02/node_modules/vitest/dist/index.js +0 -10
- package/dist/node_modules/.pnpm/vitest@3.0.9_@types_debug@4.1.13_@types_node@20.19.17_jiti@2.7.0_jsdom@26.1.0_lightning_fb7ae83398b95c49208c9194029bba02/node_modules/vitest/dist/index.js.map +0 -1
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require_branding } from "./branding.js";
|
|
3
|
-
import { require_messages } from "./messages.js";
|
|
4
|
-
import { require_overloads } from "./overloads.js";
|
|
5
|
-
import { require_utils } from "./utils.js";
|
|
6
|
-
//#region ../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/index.js
|
|
7
|
-
var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
8
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
9
|
-
if (k2 === void 0) k2 = k;
|
|
10
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
11
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
get: function() {
|
|
14
|
-
return m[k];
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
Object.defineProperty(o, k2, desc);
|
|
18
|
-
}) : (function(o, m, k, k2) {
|
|
19
|
-
if (k2 === void 0) k2 = k;
|
|
20
|
-
o[k2] = m[k];
|
|
21
|
-
}));
|
|
22
|
-
var __exportStar = exports && exports.__exportStar || function(m, exports$1) {
|
|
23
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports$1, p)) __createBinding(exports$1, m, p);
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.expectTypeOf = void 0;
|
|
27
|
-
__exportStar(require_branding(), exports);
|
|
28
|
-
__exportStar(require_messages(), exports);
|
|
29
|
-
__exportStar(require_overloads(), exports);
|
|
30
|
-
__exportStar(require_utils(), exports);
|
|
31
|
-
const fn = () => true;
|
|
32
|
-
/**
|
|
33
|
-
* Similar to Jest's `expect`, but with type-awareness.
|
|
34
|
-
* Gives you access to a number of type-matchers that let you make assertions about the
|
|
35
|
-
* form of a reference or generic type parameter.
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* ```ts
|
|
39
|
-
* import { foo, bar } from '../foo'
|
|
40
|
-
* import { expectTypeOf } from 'expect-type'
|
|
41
|
-
*
|
|
42
|
-
* test('foo types', () => {
|
|
43
|
-
* // make sure `foo` has type { a: number }
|
|
44
|
-
* expectTypeOf(foo).toMatchTypeOf({ a: 1 })
|
|
45
|
-
* expectTypeOf(foo).toHaveProperty('a').toBeNumber()
|
|
46
|
-
*
|
|
47
|
-
* // make sure `bar` is a function taking a string:
|
|
48
|
-
* expectTypeOf(bar).parameter(0).toBeString()
|
|
49
|
-
* expectTypeOf(bar).returns.not.toBeAny()
|
|
50
|
-
* })
|
|
51
|
-
* ```
|
|
52
|
-
*
|
|
53
|
-
* @description
|
|
54
|
-
* See the [full docs](https://npmjs.com/package/expect-type#documentation) for lots more examples.
|
|
55
|
-
*/
|
|
56
|
-
const expectTypeOf = (_actual) => {
|
|
57
|
-
const nonFunctionProperties = [
|
|
58
|
-
"parameters",
|
|
59
|
-
"returns",
|
|
60
|
-
"resolves",
|
|
61
|
-
"not",
|
|
62
|
-
"items",
|
|
63
|
-
"constructorParameters",
|
|
64
|
-
"thisParameter",
|
|
65
|
-
"instance",
|
|
66
|
-
"guards",
|
|
67
|
-
"asserts",
|
|
68
|
-
"branded"
|
|
69
|
-
];
|
|
70
|
-
const obj = {
|
|
71
|
-
toBeAny: fn,
|
|
72
|
-
toBeUnknown: fn,
|
|
73
|
-
toBeNever: fn,
|
|
74
|
-
toBeFunction: fn,
|
|
75
|
-
toBeObject: fn,
|
|
76
|
-
toBeArray: fn,
|
|
77
|
-
toBeString: fn,
|
|
78
|
-
toBeNumber: fn,
|
|
79
|
-
toBeBoolean: fn,
|
|
80
|
-
toBeVoid: fn,
|
|
81
|
-
toBeSymbol: fn,
|
|
82
|
-
toBeNull: fn,
|
|
83
|
-
toBeUndefined: fn,
|
|
84
|
-
toBeNullable: fn,
|
|
85
|
-
toBeBigInt: fn,
|
|
86
|
-
toMatchTypeOf: fn,
|
|
87
|
-
toEqualTypeOf: fn,
|
|
88
|
-
toBeConstructibleWith: fn,
|
|
89
|
-
toMatchObjectType: fn,
|
|
90
|
-
toExtend: fn,
|
|
91
|
-
map: exports.expectTypeOf,
|
|
92
|
-
toBeCallableWith: exports.expectTypeOf,
|
|
93
|
-
extract: exports.expectTypeOf,
|
|
94
|
-
exclude: exports.expectTypeOf,
|
|
95
|
-
pick: exports.expectTypeOf,
|
|
96
|
-
omit: exports.expectTypeOf,
|
|
97
|
-
toHaveProperty: exports.expectTypeOf,
|
|
98
|
-
parameter: exports.expectTypeOf
|
|
99
|
-
};
|
|
100
|
-
nonFunctionProperties.forEach((prop) => Object.defineProperty(obj, prop, { get: () => (0, exports.expectTypeOf)({}) }));
|
|
101
|
-
return obj;
|
|
102
|
-
};
|
|
103
|
-
exports.expectTypeOf = expectTypeOf;
|
|
104
|
-
}));
|
|
105
|
-
//#endregion
|
|
106
|
-
export default require_dist();
|
|
107
|
-
export { require_dist };
|
|
108
|
-
|
|
109
|
-
//# sourceMappingURL=index.js.map
|
package/dist/node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["exports"],"sources":["../../../../../../../../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/index.js"],"sourcesContent":["\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.expectTypeOf = void 0;\n__exportStar(require(\"./branding\"), exports); // backcompat, consider removing in next major version\n__exportStar(require(\"./messages\"), exports); // backcompat, consider removing in next major version\n__exportStar(require(\"./overloads\"), exports);\n__exportStar(require(\"./utils\"), exports); // backcompat, consider removing in next major version\nconst fn = () => true;\n/**\n * Similar to Jest's `expect`, but with type-awareness.\n * Gives you access to a number of type-matchers that let you make assertions about the\n * form of a reference or generic type parameter.\n *\n * @example\n * ```ts\n * import { foo, bar } from '../foo'\n * import { expectTypeOf } from 'expect-type'\n *\n * test('foo types', () => {\n * // make sure `foo` has type { a: number }\n * expectTypeOf(foo).toMatchTypeOf({ a: 1 })\n * expectTypeOf(foo).toHaveProperty('a').toBeNumber()\n *\n * // make sure `bar` is a function taking a string:\n * expectTypeOf(bar).parameter(0).toBeString()\n * expectTypeOf(bar).returns.not.toBeAny()\n * })\n * ```\n *\n * @description\n * See the [full docs](https://npmjs.com/package/expect-type#documentation) for lots more examples.\n */\nconst expectTypeOf = (_actual) => {\n const nonFunctionProperties = [\n 'parameters',\n 'returns',\n 'resolves',\n 'not',\n 'items',\n 'constructorParameters',\n 'thisParameter',\n 'instance',\n 'guards',\n 'asserts',\n 'branded',\n ];\n const obj = {\n /* eslint-disable @typescript-eslint/no-unsafe-assignment */\n toBeAny: fn,\n toBeUnknown: fn,\n toBeNever: fn,\n toBeFunction: fn,\n toBeObject: fn,\n toBeArray: fn,\n toBeString: fn,\n toBeNumber: fn,\n toBeBoolean: fn,\n toBeVoid: fn,\n toBeSymbol: fn,\n toBeNull: fn,\n toBeUndefined: fn,\n toBeNullable: fn,\n toBeBigInt: fn,\n toMatchTypeOf: fn,\n toEqualTypeOf: fn,\n toBeConstructibleWith: fn,\n toMatchObjectType: fn,\n toExtend: fn,\n map: exports.expectTypeOf,\n toBeCallableWith: exports.expectTypeOf,\n extract: exports.expectTypeOf,\n exclude: exports.expectTypeOf,\n pick: exports.expectTypeOf,\n omit: exports.expectTypeOf,\n toHaveProperty: exports.expectTypeOf,\n parameter: exports.expectTypeOf,\n };\n const getterProperties = nonFunctionProperties;\n getterProperties.forEach((prop) => Object.defineProperty(obj, prop, { get: () => (0, exports.expectTypeOf)({}) }));\n return obj;\n};\nexports.expectTypeOf = expectTypeOf;\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;CACA,IAAI,kBAAA,WAAA,QAAgC,oBAAqB,OAAO,UAAU,SAAS,GAAG,GAAG,GAAG,IAAI;EAC5F,IAAI,OAAO,KAAA,GAAW,KAAK;EAC3B,IAAI,OAAO,OAAO,yBAAyB,GAAG,CAAC;EAC/C,IAAI,CAAC,SAAS,SAAS,OAAO,CAAC,EAAE,aAAa,KAAK,YAAY,KAAK,eAClE,OAAO;GAAE,YAAY;GAAM,KAAK,WAAW;IAAE,OAAO,EAAE;GAAI;EAAE;EAE9D,OAAO,eAAe,GAAG,IAAI,IAAI;CACrC,MAAM,SAAS,GAAG,GAAG,GAAG,IAAI;EACxB,IAAI,OAAO,KAAA,GAAW,KAAK;EAC3B,EAAE,MAAM,EAAE;CACd;CACA,IAAI,eAAA,WAAA,QAA6B,gBAAiB,SAAS,GAAG,WAAS;EACnE,KAAK,IAAI,KAAK,GAAG,IAAI,MAAM,aAAa,CAAC,OAAO,UAAU,eAAe,KAAKA,WAAS,CAAC,GAAG,gBAAgBA,WAAS,GAAG,CAAC;CAC5H;CACA,OAAO,eAAe,SAAS,cAAc,EAAE,OAAO,KAAK,CAAC;CAC5D,QAAQ,eAAe,KAAK;CAC5B,aAAA,iBAAA,GAAoC,OAAO;CAC3C,aAAA,iBAAA,GAAoC,OAAO;CAC3C,aAAA,kBAAA,GAAqC,OAAO;CAC5C,aAAA,cAAA,GAAiC,OAAO;CACxC,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;CAyBjB,MAAM,gBAAgB,YAAY;EAC9B,MAAM,wBAAwB;GAC1B;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACJ;EACA,MAAM,MAAM;GAER,SAAS;GACT,aAAa;GACb,WAAW;GACX,cAAc;GACd,YAAY;GACZ,WAAW;GACX,YAAY;GACZ,YAAY;GACZ,aAAa;GACb,UAAU;GACV,YAAY;GACZ,UAAU;GACV,eAAe;GACf,cAAc;GACd,YAAY;GACZ,eAAe;GACf,eAAe;GACf,uBAAuB;GACvB,mBAAmB;GACnB,UAAU;GACV,KAAK,QAAQ;GACb,kBAAkB,QAAQ;GAC1B,SAAS,QAAQ;GACjB,SAAS,QAAQ;GACjB,MAAM,QAAQ;GACd,MAAM,QAAQ;GACd,gBAAgB,QAAQ;GACxB,WAAW,QAAQ;EACvB;EAEA,sBAAiB,SAAS,SAAS,OAAO,eAAe,KAAK,MAAM,EAAE,YAAY,GAAG,QAAQ,aAAA,CAAc,CAAC,CAAC,EAAE,CAAC,CAAC;EACjH,OAAO;CACX;CACA,QAAQ,eAAe"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/messages.js
|
|
3
|
-
var require_messages = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
}));
|
|
6
|
-
//#endregion
|
|
7
|
-
export default require_messages();
|
|
8
|
-
export { require_messages };
|
|
9
|
-
|
|
10
|
-
//# sourceMappingURL=messages.js.map
|
package/dist/node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/messages.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"messages.js","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/messages.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * @internal\n */\nconst inverted = Symbol('inverted');\n/**\n * @internal\n */\nconst expectNull = Symbol('expectNull');\n/**\n * @internal\n */\nconst expectUndefined = Symbol('expectUndefined');\n/**\n * @internal\n */\nconst expectNumber = Symbol('expectNumber');\n/**\n * @internal\n */\nconst expectString = Symbol('expectString');\n/**\n * @internal\n */\nconst expectBoolean = Symbol('expectBoolean');\n/**\n * @internal\n */\nconst expectVoid = Symbol('expectVoid');\n/**\n * @internal\n */\nconst expectFunction = Symbol('expectFunction');\n/**\n * @internal\n */\nconst expectObject = Symbol('expectObject');\n/**\n * @internal\n */\nconst expectArray = Symbol('expectArray');\n/**\n * @internal\n */\nconst expectSymbol = Symbol('expectSymbol');\n/**\n * @internal\n */\nconst expectAny = Symbol('expectAny');\n/**\n * @internal\n */\nconst expectUnknown = Symbol('expectUnknown');\n/**\n * @internal\n */\nconst expectNever = Symbol('expectNever');\n/**\n * @internal\n */\nconst expectNullable = Symbol('expectNullable');\n/**\n * @internal\n */\nconst expectBigInt = Symbol('expectBigInt');\n"],"x_google_ignoreList":[0],"mappings":";;;CACA,OAAO,eAAe,SAAS,cAAc,EAAE,OAAO,KAAK,CAAC"}
|
package/dist/node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/overloads.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/overloads.js
|
|
3
|
-
var require_overloads = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
}));
|
|
6
|
-
//#endregion
|
|
7
|
-
export default require_overloads();
|
|
8
|
-
export { require_overloads };
|
|
9
|
-
|
|
10
|
-
//# sourceMappingURL=overloads.js.map
|
package/dist/node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/overloads.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"overloads.js","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/overloads.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n"],"x_google_ignoreList":[0],"mappings":";;;CACA,OAAO,eAAe,SAAS,cAAc,EAAE,OAAO,KAAK,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/utils.js
|
|
3
|
-
var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
}));
|
|
6
|
-
//#endregion
|
|
7
|
-
export default require_utils();
|
|
8
|
-
export { require_utils };
|
|
9
|
-
|
|
10
|
-
//# sourceMappingURL=utils.js.map
|
package/dist/node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/utils.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/utils.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * @internal\n */\nconst secret = Symbol('secret');\n/**\n * @internal\n */\nconst mismatch = Symbol('mismatch');\n/**\n * A type which should match anything passed as a value but *doesn't*\n * match {@linkcode Mismatch}. It helps TypeScript select the right overload\n * for {@linkcode PositiveExpectTypeOf.toEqualTypeOf | .toEqualTypeOf()} and\n * {@linkcode PositiveExpectTypeOf.toMatchTypeOf | .toMatchTypeOf()}.\n *\n * @internal\n */\nconst avalue = Symbol('avalue');\n"],"x_google_ignoreList":[0],"mappings":";;;CACA,OAAO,eAAe,SAAS,cAAc,EAAE,OAAO,KAAK,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { inspectList } from "./helpers.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.js
|
|
3
|
-
function inspectArguments(args, options) {
|
|
4
|
-
if (args.length === 0) return "Arguments[]";
|
|
5
|
-
options.truncate -= 13;
|
|
6
|
-
return `Arguments[ ${inspectList(args, options)} ]`;
|
|
7
|
-
}
|
|
8
|
-
//#endregion
|
|
9
|
-
export { inspectArguments as default };
|
|
10
|
-
|
|
11
|
-
//# sourceMappingURL=arguments.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"arguments.js","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.js"],"sourcesContent":["import { inspectList } from './helpers.js';\nexport default function inspectArguments(args, options) {\n if (args.length === 0)\n return 'Arguments[]';\n options.truncate -= 13;\n return `Arguments[ ${inspectList(args, options)} ]`;\n}\n"],"x_google_ignoreList":[0],"mappings":";;AACA,SAAwB,iBAAiB,MAAM,SAAS;CACpD,IAAI,KAAK,WAAW,GAChB,OAAO;CACX,QAAQ,YAAY;CACpB,OAAO,cAAc,YAAY,MAAM,OAAO,EAAE;AACpD"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { inspectList, inspectProperty } from "./helpers.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.js
|
|
3
|
-
function inspectArray(array, options) {
|
|
4
|
-
const nonIndexProperties = Object.keys(array).slice(array.length);
|
|
5
|
-
if (!array.length && !nonIndexProperties.length) return "[]";
|
|
6
|
-
options.truncate -= 4;
|
|
7
|
-
const listContents = inspectList(array, options);
|
|
8
|
-
options.truncate -= listContents.length;
|
|
9
|
-
let propertyContents = "";
|
|
10
|
-
if (nonIndexProperties.length) propertyContents = inspectList(nonIndexProperties.map((key) => [key, array[key]]), options, inspectProperty);
|
|
11
|
-
return `[ ${listContents}${propertyContents ? `, ${propertyContents}` : ""} ]`;
|
|
12
|
-
}
|
|
13
|
-
//#endregion
|
|
14
|
-
export { inspectArray as default };
|
|
15
|
-
|
|
16
|
-
//# sourceMappingURL=array.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"array.js","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.js"],"sourcesContent":["import { inspectList, inspectProperty } from './helpers.js';\nexport default function inspectArray(array, options) {\n // Object.keys will always output the Array indices first, so we can slice by\n // `array.length` to get non-index properties\n const nonIndexProperties = Object.keys(array).slice(array.length);\n if (!array.length && !nonIndexProperties.length)\n return '[]';\n options.truncate -= 4;\n const listContents = inspectList(array, options);\n options.truncate -= listContents.length;\n let propertyContents = '';\n if (nonIndexProperties.length) {\n propertyContents = inspectList(nonIndexProperties.map(key => [key, array[key]]), options, inspectProperty);\n }\n return `[ ${listContents}${propertyContents ? `, ${propertyContents}` : ''} ]`;\n}\n"],"x_google_ignoreList":[0],"mappings":";;AACA,SAAwB,aAAa,OAAO,SAAS;CAGjD,MAAM,qBAAqB,OAAO,KAAK,KAAK,CAAC,CAAC,MAAM,MAAM,MAAM;CAChE,IAAI,CAAC,MAAM,UAAU,CAAC,mBAAmB,QACrC,OAAO;CACX,QAAQ,YAAY;CACpB,MAAM,eAAe,YAAY,OAAO,OAAO;CAC/C,QAAQ,YAAY,aAAa;CACjC,IAAI,mBAAmB;CACvB,IAAI,mBAAmB,QACnB,mBAAmB,YAAY,mBAAmB,KAAI,QAAO,CAAC,KAAK,MAAM,IAAI,CAAC,GAAG,SAAS,eAAe;CAE7G,OAAO,KAAK,eAAe,mBAAmB,KAAK,qBAAqB,GAAG;AAC/E"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { truncate } from "./helpers.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.js
|
|
3
|
-
function inspectBigInt(number, options) {
|
|
4
|
-
let nums = truncate(number.toString(), options.truncate - 1);
|
|
5
|
-
if (nums !== "…") nums += "n";
|
|
6
|
-
return options.stylize(nums, "bigint");
|
|
7
|
-
}
|
|
8
|
-
//#endregion
|
|
9
|
-
export { inspectBigInt as default };
|
|
10
|
-
|
|
11
|
-
//# sourceMappingURL=bigint.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bigint.js","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.js"],"sourcesContent":["import { truncate, truncator } from './helpers.js';\nexport default function inspectBigInt(number, options) {\n let nums = truncate(number.toString(), options.truncate - 1);\n if (nums !== truncator)\n nums += 'n';\n return options.stylize(nums, 'bigint');\n}\n"],"x_google_ignoreList":[0],"mappings":";;AACA,SAAwB,cAAc,QAAQ,SAAS;CACnD,IAAI,OAAO,SAAS,OAAO,SAAS,GAAG,QAAQ,WAAW,CAAC;CAC3D,IAAI,SAAA,KACA,QAAQ;CACZ,OAAO,QAAQ,QAAQ,MAAM,QAAQ;AACzC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import inspectObject from "./object.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.js
|
|
3
|
-
const toStringTag = typeof Symbol !== "undefined" && Symbol.toStringTag ? Symbol.toStringTag : false;
|
|
4
|
-
function inspectClass(value, options) {
|
|
5
|
-
let name = "";
|
|
6
|
-
if (toStringTag && toStringTag in value) name = value[toStringTag];
|
|
7
|
-
name = name || value.constructor.name;
|
|
8
|
-
if (!name || name === "_class") name = "<Anonymous Class>";
|
|
9
|
-
options.truncate -= name.length;
|
|
10
|
-
return `${name}${inspectObject(value, options)}`;
|
|
11
|
-
}
|
|
12
|
-
//#endregion
|
|
13
|
-
export { inspectClass as default };
|
|
14
|
-
|
|
15
|
-
//# sourceMappingURL=class.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"class.js","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.js"],"sourcesContent":["import inspectObject from './object.js';\nconst toStringTag = typeof Symbol !== 'undefined' && Symbol.toStringTag ? Symbol.toStringTag : false;\nexport default function inspectClass(value, options) {\n let name = '';\n if (toStringTag && toStringTag in value) {\n name = value[toStringTag];\n }\n name = name || value.constructor.name;\n // Babel transforms anonymous classes to the name `_class`\n if (!name || name === '_class') {\n name = '<Anonymous Class>';\n }\n options.truncate -= name.length;\n return `${name}${inspectObject(value, options)}`;\n}\n"],"x_google_ignoreList":[0],"mappings":";;AACA,MAAM,cAAc,OAAO,WAAW,eAAe,OAAO,cAAc,OAAO,cAAc;AAC/F,SAAwB,aAAa,OAAO,SAAS;CACjD,IAAI,OAAO;CACX,IAAI,eAAe,eAAe,OAC9B,OAAO,MAAM;CAEjB,OAAO,QAAQ,MAAM,YAAY;CAEjC,IAAI,CAAC,QAAQ,SAAS,UAClB,OAAO;CAEX,QAAQ,YAAY,KAAK;CACzB,OAAO,GAAG,OAAO,cAAc,OAAO,OAAO;AACjD"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { truncate } from "./helpers.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.js
|
|
3
|
-
function inspectDate(dateObject, options) {
|
|
4
|
-
const stringRepresentation = dateObject.toJSON();
|
|
5
|
-
if (stringRepresentation === null) return "Invalid Date";
|
|
6
|
-
const split = stringRepresentation.split("T");
|
|
7
|
-
const date = split[0];
|
|
8
|
-
return options.stylize(`${date}T${truncate(split[1], options.truncate - date.length - 1)}`, "date");
|
|
9
|
-
}
|
|
10
|
-
//#endregion
|
|
11
|
-
export { inspectDate as default };
|
|
12
|
-
|
|
13
|
-
//# sourceMappingURL=date.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"date.js","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.js"],"sourcesContent":["import { truncate } from './helpers.js';\nexport default function inspectDate(dateObject, options) {\n const stringRepresentation = dateObject.toJSON();\n if (stringRepresentation === null) {\n return 'Invalid Date';\n }\n const split = stringRepresentation.split('T');\n const date = split[0];\n // If we need to - truncate the time portion, but never the date\n return options.stylize(`${date}T${truncate(split[1], options.truncate - date.length - 1)}`, 'date');\n}\n"],"x_google_ignoreList":[0],"mappings":";;AACA,SAAwB,YAAY,YAAY,SAAS;CACrD,MAAM,uBAAuB,WAAW,OAAO;CAC/C,IAAI,yBAAyB,MACzB,OAAO;CAEX,MAAM,QAAQ,qBAAqB,MAAM,GAAG;CAC5C,MAAM,OAAO,MAAM;CAEnB,OAAO,QAAQ,QAAQ,GAAG,KAAK,GAAG,SAAS,MAAM,IAAI,QAAQ,WAAW,KAAK,SAAS,CAAC,KAAK,MAAM;AACtG"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { inspectList, inspectProperty, truncate } from "./helpers.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.js
|
|
3
|
-
const errorKeys = [
|
|
4
|
-
"stack",
|
|
5
|
-
"line",
|
|
6
|
-
"column",
|
|
7
|
-
"name",
|
|
8
|
-
"message",
|
|
9
|
-
"fileName",
|
|
10
|
-
"lineNumber",
|
|
11
|
-
"columnNumber",
|
|
12
|
-
"number",
|
|
13
|
-
"description",
|
|
14
|
-
"cause"
|
|
15
|
-
];
|
|
16
|
-
function inspectObject(error, options) {
|
|
17
|
-
const properties = Object.getOwnPropertyNames(error).filter((key) => errorKeys.indexOf(key) === -1);
|
|
18
|
-
const name = error.name;
|
|
19
|
-
options.truncate -= name.length;
|
|
20
|
-
let message = "";
|
|
21
|
-
if (typeof error.message === "string") message = truncate(error.message, options.truncate);
|
|
22
|
-
else properties.unshift("message");
|
|
23
|
-
message = message ? `: ${message}` : "";
|
|
24
|
-
options.truncate -= message.length + 5;
|
|
25
|
-
options.seen = options.seen || [];
|
|
26
|
-
if (options.seen.includes(error)) return "[Circular]";
|
|
27
|
-
options.seen.push(error);
|
|
28
|
-
const propertyContents = inspectList(properties.map((key) => [key, error[key]]), options, inspectProperty);
|
|
29
|
-
return `${name}${message}${propertyContents ? ` { ${propertyContents} }` : ""}`;
|
|
30
|
-
}
|
|
31
|
-
//#endregion
|
|
32
|
-
export { inspectObject as default };
|
|
33
|
-
|
|
34
|
-
//# sourceMappingURL=error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"error.js","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.js"],"sourcesContent":["import { inspectList, inspectProperty, truncate } from './helpers.js';\nconst errorKeys = [\n 'stack',\n 'line',\n 'column',\n 'name',\n 'message',\n 'fileName',\n 'lineNumber',\n 'columnNumber',\n 'number',\n 'description',\n 'cause',\n];\nexport default function inspectObject(error, options) {\n const properties = Object.getOwnPropertyNames(error).filter(key => errorKeys.indexOf(key) === -1);\n const name = error.name;\n options.truncate -= name.length;\n let message = '';\n if (typeof error.message === 'string') {\n message = truncate(error.message, options.truncate);\n }\n else {\n properties.unshift('message');\n }\n message = message ? `: ${message}` : '';\n options.truncate -= message.length + 5;\n options.seen = options.seen || [];\n if (options.seen.includes(error)) {\n return '[Circular]';\n }\n options.seen.push(error);\n const propertyContents = inspectList(properties.map(key => [key, error[key]]), options, inspectProperty);\n return `${name}${message}${propertyContents ? ` { ${propertyContents} }` : ''}`;\n}\n"],"x_google_ignoreList":[0],"mappings":";;AACA,MAAM,YAAY;CACd;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACJ;AACA,SAAwB,cAAc,OAAO,SAAS;CAClD,MAAM,aAAa,OAAO,oBAAoB,KAAK,CAAC,CAAC,QAAO,QAAO,UAAU,QAAQ,GAAG,MAAM,EAAE;CAChG,MAAM,OAAO,MAAM;CACnB,QAAQ,YAAY,KAAK;CACzB,IAAI,UAAU;CACd,IAAI,OAAO,MAAM,YAAY,UACzB,UAAU,SAAS,MAAM,SAAS,QAAQ,QAAQ;MAGlD,WAAW,QAAQ,SAAS;CAEhC,UAAU,UAAU,KAAK,YAAY;CACrC,QAAQ,YAAY,QAAQ,SAAS;CACrC,QAAQ,OAAO,QAAQ,QAAQ,CAAC;CAChC,IAAI,QAAQ,KAAK,SAAS,KAAK,GAC3B,OAAO;CAEX,QAAQ,KAAK,KAAK,KAAK;CACvB,MAAM,mBAAmB,YAAY,WAAW,KAAI,QAAO,CAAC,KAAK,MAAM,IAAI,CAAC,GAAG,SAAS,eAAe;CACvG,OAAO,GAAG,OAAO,UAAU,mBAAmB,MAAM,iBAAiB,MAAM;AAC/E"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { truncate } from "./helpers.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.js
|
|
3
|
-
function inspectFunction(func, options) {
|
|
4
|
-
const functionType = func[Symbol.toStringTag] || "Function";
|
|
5
|
-
const name = func.name;
|
|
6
|
-
if (!name) return options.stylize(`[${functionType}]`, "special");
|
|
7
|
-
return options.stylize(`[${functionType} ${truncate(name, options.truncate - 11)}]`, "special");
|
|
8
|
-
}
|
|
9
|
-
//#endregion
|
|
10
|
-
export { inspectFunction as default };
|
|
11
|
-
|
|
12
|
-
//# sourceMappingURL=function.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"function.js","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.js"],"sourcesContent":["import { truncate } from './helpers.js';\nexport default function inspectFunction(func, options) {\n const functionType = func[Symbol.toStringTag] || 'Function';\n const name = func.name;\n if (!name) {\n return options.stylize(`[${functionType}]`, 'special');\n }\n return options.stylize(`[${functionType} ${truncate(name, options.truncate - 11)}]`, 'special');\n}\n"],"x_google_ignoreList":[0],"mappings":";;AACA,SAAwB,gBAAgB,MAAM,SAAS;CACnD,MAAM,eAAe,KAAK,OAAO,gBAAgB;CACjD,MAAM,OAAO,KAAK;CAClB,IAAI,CAAC,MACD,OAAO,QAAQ,QAAQ,IAAI,aAAa,IAAI,SAAS;CAEzD,OAAO,QAAQ,QAAQ,IAAI,aAAa,GAAG,SAAS,MAAM,QAAQ,WAAW,EAAE,EAAE,IAAI,SAAS;AAClG"}
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.js
|
|
2
|
-
const ansiColors = {
|
|
3
|
-
bold: ["1", "22"],
|
|
4
|
-
dim: ["2", "22"],
|
|
5
|
-
italic: ["3", "23"],
|
|
6
|
-
underline: ["4", "24"],
|
|
7
|
-
inverse: ["7", "27"],
|
|
8
|
-
hidden: ["8", "28"],
|
|
9
|
-
strike: ["9", "29"],
|
|
10
|
-
black: ["30", "39"],
|
|
11
|
-
red: ["31", "39"],
|
|
12
|
-
green: ["32", "39"],
|
|
13
|
-
yellow: ["33", "39"],
|
|
14
|
-
blue: ["34", "39"],
|
|
15
|
-
magenta: ["35", "39"],
|
|
16
|
-
cyan: ["36", "39"],
|
|
17
|
-
white: ["37", "39"],
|
|
18
|
-
brightblack: ["30;1", "39"],
|
|
19
|
-
brightred: ["31;1", "39"],
|
|
20
|
-
brightgreen: ["32;1", "39"],
|
|
21
|
-
brightyellow: ["33;1", "39"],
|
|
22
|
-
brightblue: ["34;1", "39"],
|
|
23
|
-
brightmagenta: ["35;1", "39"],
|
|
24
|
-
brightcyan: ["36;1", "39"],
|
|
25
|
-
brightwhite: ["37;1", "39"],
|
|
26
|
-
grey: ["90", "39"]
|
|
27
|
-
};
|
|
28
|
-
const styles = {
|
|
29
|
-
special: "cyan",
|
|
30
|
-
number: "yellow",
|
|
31
|
-
bigint: "yellow",
|
|
32
|
-
boolean: "yellow",
|
|
33
|
-
undefined: "grey",
|
|
34
|
-
null: "bold",
|
|
35
|
-
string: "green",
|
|
36
|
-
symbol: "green",
|
|
37
|
-
date: "magenta",
|
|
38
|
-
regexp: "red"
|
|
39
|
-
};
|
|
40
|
-
function colorise(value, styleType) {
|
|
41
|
-
const color = ansiColors[styles[styleType]] || ansiColors[styleType] || "";
|
|
42
|
-
if (!color) return String(value);
|
|
43
|
-
return `\u001b[${color[0]}m${String(value)}\u001b[${color[1]}m`;
|
|
44
|
-
}
|
|
45
|
-
function normaliseOptions({ showHidden = false, depth = 2, colors = false, customInspect = true, showProxy = false, maxArrayLength = Infinity, breakLength = Infinity, seen = [], truncate = Infinity, stylize = String } = {}, inspect) {
|
|
46
|
-
const options = {
|
|
47
|
-
showHidden: Boolean(showHidden),
|
|
48
|
-
depth: Number(depth),
|
|
49
|
-
colors: Boolean(colors),
|
|
50
|
-
customInspect: Boolean(customInspect),
|
|
51
|
-
showProxy: Boolean(showProxy),
|
|
52
|
-
maxArrayLength: Number(maxArrayLength),
|
|
53
|
-
breakLength: Number(breakLength),
|
|
54
|
-
truncate: Number(truncate),
|
|
55
|
-
seen,
|
|
56
|
-
inspect,
|
|
57
|
-
stylize
|
|
58
|
-
};
|
|
59
|
-
if (options.colors) options.stylize = colorise;
|
|
60
|
-
return options;
|
|
61
|
-
}
|
|
62
|
-
function isHighSurrogate(char) {
|
|
63
|
-
return char >= "\ud800" && char <= "\udbff";
|
|
64
|
-
}
|
|
65
|
-
function truncate(string, length, tail = "…") {
|
|
66
|
-
string = String(string);
|
|
67
|
-
const tailLength = tail.length;
|
|
68
|
-
const stringLength = string.length;
|
|
69
|
-
if (tailLength > length && stringLength > tailLength) return tail;
|
|
70
|
-
if (stringLength > length && stringLength > tailLength) {
|
|
71
|
-
let end = length - tailLength;
|
|
72
|
-
if (end > 0 && isHighSurrogate(string[end - 1])) end = end - 1;
|
|
73
|
-
return `${string.slice(0, end)}${tail}`;
|
|
74
|
-
}
|
|
75
|
-
return string;
|
|
76
|
-
}
|
|
77
|
-
function inspectList(list, options, inspectItem, separator = ", ") {
|
|
78
|
-
inspectItem = inspectItem || options.inspect;
|
|
79
|
-
const size = list.length;
|
|
80
|
-
if (size === 0) return "";
|
|
81
|
-
const originalLength = options.truncate;
|
|
82
|
-
let output = "";
|
|
83
|
-
let peek = "";
|
|
84
|
-
let truncated = "";
|
|
85
|
-
for (let i = 0; i < size; i += 1) {
|
|
86
|
-
const last = i + 1 === list.length;
|
|
87
|
-
const secondToLast = i + 2 === list.length;
|
|
88
|
-
truncated = `…(${list.length - i})`;
|
|
89
|
-
const value = list[i];
|
|
90
|
-
options.truncate = originalLength - output.length - (last ? 0 : separator.length);
|
|
91
|
-
const string = peek || inspectItem(value, options) + (last ? "" : separator);
|
|
92
|
-
const nextLength = output.length + string.length;
|
|
93
|
-
const truncatedLength = nextLength + truncated.length;
|
|
94
|
-
if (last && nextLength > originalLength && output.length + truncated.length <= originalLength) break;
|
|
95
|
-
if (!last && !secondToLast && truncatedLength > originalLength) break;
|
|
96
|
-
peek = last ? "" : inspectItem(list[i + 1], options) + (secondToLast ? "" : separator);
|
|
97
|
-
if (!last && secondToLast && truncatedLength > originalLength && nextLength + peek.length > originalLength) break;
|
|
98
|
-
output += string;
|
|
99
|
-
if (!last && !secondToLast && nextLength + peek.length >= originalLength) {
|
|
100
|
-
truncated = `…(${list.length - i - 1})`;
|
|
101
|
-
break;
|
|
102
|
-
}
|
|
103
|
-
truncated = "";
|
|
104
|
-
}
|
|
105
|
-
return `${output}${truncated}`;
|
|
106
|
-
}
|
|
107
|
-
function quoteComplexKey(key) {
|
|
108
|
-
if (key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)) return key;
|
|
109
|
-
return JSON.stringify(key).replace(/'/g, "\\'").replace(/\\"/g, "\"").replace(/(^"|"$)/g, "'");
|
|
110
|
-
}
|
|
111
|
-
function inspectProperty([key, value], options) {
|
|
112
|
-
options.truncate -= 2;
|
|
113
|
-
if (typeof key === "string") key = quoteComplexKey(key);
|
|
114
|
-
else if (typeof key !== "number") key = `[${options.inspect(key, options)}]`;
|
|
115
|
-
options.truncate -= key.length;
|
|
116
|
-
value = options.inspect(value, options);
|
|
117
|
-
return `${key}: ${value}`;
|
|
118
|
-
}
|
|
119
|
-
//#endregion
|
|
120
|
-
export { inspectList, inspectProperty, normaliseOptions, truncate };
|
|
121
|
-
|
|
122
|
-
//# sourceMappingURL=helpers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.js"],"sourcesContent":["const ansiColors = {\n bold: ['1', '22'],\n dim: ['2', '22'],\n italic: ['3', '23'],\n underline: ['4', '24'],\n // 5 & 6 are blinking\n inverse: ['7', '27'],\n hidden: ['8', '28'],\n strike: ['9', '29'],\n // 10-20 are fonts\n // 21-29 are resets for 1-9\n black: ['30', '39'],\n red: ['31', '39'],\n green: ['32', '39'],\n yellow: ['33', '39'],\n blue: ['34', '39'],\n magenta: ['35', '39'],\n cyan: ['36', '39'],\n white: ['37', '39'],\n brightblack: ['30;1', '39'],\n brightred: ['31;1', '39'],\n brightgreen: ['32;1', '39'],\n brightyellow: ['33;1', '39'],\n brightblue: ['34;1', '39'],\n brightmagenta: ['35;1', '39'],\n brightcyan: ['36;1', '39'],\n brightwhite: ['37;1', '39'],\n grey: ['90', '39'],\n};\nconst styles = {\n special: 'cyan',\n number: 'yellow',\n bigint: 'yellow',\n boolean: 'yellow',\n undefined: 'grey',\n null: 'bold',\n string: 'green',\n symbol: 'green',\n date: 'magenta',\n regexp: 'red',\n};\nexport const truncator = '…';\nfunction colorise(value, styleType) {\n const color = ansiColors[styles[styleType]] || ansiColors[styleType] || '';\n if (!color) {\n return String(value);\n }\n return `\\u001b[${color[0]}m${String(value)}\\u001b[${color[1]}m`;\n}\nexport function normaliseOptions({ showHidden = false, depth = 2, colors = false, customInspect = true, showProxy = false, maxArrayLength = Infinity, breakLength = Infinity, seen = [], \n// eslint-disable-next-line no-shadow\ntruncate = Infinity, stylize = String, } = {}, inspect) {\n const options = {\n showHidden: Boolean(showHidden),\n depth: Number(depth),\n colors: Boolean(colors),\n customInspect: Boolean(customInspect),\n showProxy: Boolean(showProxy),\n maxArrayLength: Number(maxArrayLength),\n breakLength: Number(breakLength),\n truncate: Number(truncate),\n seen,\n inspect,\n stylize,\n };\n if (options.colors) {\n options.stylize = colorise;\n }\n return options;\n}\nfunction isHighSurrogate(char) {\n return char >= '\\ud800' && char <= '\\udbff';\n}\nexport function truncate(string, length, tail = truncator) {\n string = String(string);\n const tailLength = tail.length;\n const stringLength = string.length;\n if (tailLength > length && stringLength > tailLength) {\n return tail;\n }\n if (stringLength > length && stringLength > tailLength) {\n let end = length - tailLength;\n if (end > 0 && isHighSurrogate(string[end - 1])) {\n end = end - 1;\n }\n return `${string.slice(0, end)}${tail}`;\n }\n return string;\n}\n// eslint-disable-next-line complexity\nexport function inspectList(list, options, inspectItem, separator = ', ') {\n inspectItem = inspectItem || options.inspect;\n const size = list.length;\n if (size === 0)\n return '';\n const originalLength = options.truncate;\n let output = '';\n let peek = '';\n let truncated = '';\n for (let i = 0; i < size; i += 1) {\n const last = i + 1 === list.length;\n const secondToLast = i + 2 === list.length;\n truncated = `${truncator}(${list.length - i})`;\n const value = list[i];\n // If there is more than one remaining we need to account for a separator of `, `\n options.truncate = originalLength - output.length - (last ? 0 : separator.length);\n const string = peek || inspectItem(value, options) + (last ? '' : separator);\n const nextLength = output.length + string.length;\n const truncatedLength = nextLength + truncated.length;\n // If this is the last element, and adding it would\n // take us over length, but adding the truncator wouldn't - then break now\n if (last && nextLength > originalLength && output.length + truncated.length <= originalLength) {\n break;\n }\n // If this isn't the last or second to last element to scan,\n // but the string is already over length then break here\n if (!last && !secondToLast && truncatedLength > originalLength) {\n break;\n }\n // Peek at the next string to determine if we should\n // break early before adding this item to the output\n peek = last ? '' : inspectItem(list[i + 1], options) + (secondToLast ? '' : separator);\n // If we have one element left, but this element and\n // the next takes over length, the break early\n if (!last && secondToLast && truncatedLength > originalLength && nextLength + peek.length > originalLength) {\n break;\n }\n output += string;\n // If the next element takes us to length -\n // but there are more after that, then we should truncate now\n if (!last && !secondToLast && nextLength + peek.length >= originalLength) {\n truncated = `${truncator}(${list.length - i - 1})`;\n break;\n }\n truncated = '';\n }\n return `${output}${truncated}`;\n}\nfunction quoteComplexKey(key) {\n if (key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)) {\n return key;\n }\n return JSON.stringify(key)\n .replace(/'/g, \"\\\\'\")\n .replace(/\\\\\"/g, '\"')\n .replace(/(^\"|\"$)/g, \"'\");\n}\nexport function inspectProperty([key, value], options) {\n options.truncate -= 2;\n if (typeof key === 'string') {\n key = quoteComplexKey(key);\n }\n else if (typeof key !== 'number') {\n key = `[${options.inspect(key, options)}]`;\n }\n options.truncate -= key.length;\n value = options.inspect(value, options);\n return `${key}: ${value}`;\n}\n"],"x_google_ignoreList":[0],"mappings":"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"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { inspectList } from "./helpers.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.js
|
|
3
|
-
function inspectAttribute([key, value], options) {
|
|
4
|
-
options.truncate -= 3;
|
|
5
|
-
if (!value) return `${options.stylize(String(key), "yellow")}`;
|
|
6
|
-
return `${options.stylize(String(key), "yellow")}=${options.stylize(`"${value}"`, "string")}`;
|
|
7
|
-
}
|
|
8
|
-
function inspectNodeCollection(collection, options) {
|
|
9
|
-
return inspectList(collection, options, inspectNode, "\n");
|
|
10
|
-
}
|
|
11
|
-
function inspectNode(node, options) {
|
|
12
|
-
switch (node.nodeType) {
|
|
13
|
-
case 1: return inspectHTML(node, options);
|
|
14
|
-
case 3: return options.inspect(node.data, options);
|
|
15
|
-
default: return options.inspect(node, options);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
function inspectHTML(element, options) {
|
|
19
|
-
const properties = element.getAttributeNames();
|
|
20
|
-
const name = element.tagName.toLowerCase();
|
|
21
|
-
const head = options.stylize(`<${name}`, "special");
|
|
22
|
-
const headClose = options.stylize(`>`, "special");
|
|
23
|
-
const tail = options.stylize(`</${name}>`, "special");
|
|
24
|
-
options.truncate -= name.length * 2 + 5;
|
|
25
|
-
let propertyContents = "";
|
|
26
|
-
if (properties.length > 0) {
|
|
27
|
-
propertyContents += " ";
|
|
28
|
-
propertyContents += inspectList(properties.map((key) => [key, element.getAttribute(key)]), options, inspectAttribute, " ");
|
|
29
|
-
}
|
|
30
|
-
options.truncate -= propertyContents.length;
|
|
31
|
-
const truncate = options.truncate;
|
|
32
|
-
let children = inspectNodeCollection(element.children, options);
|
|
33
|
-
if (children && children.length > truncate) children = `…(${element.children.length})`;
|
|
34
|
-
return `${head}${propertyContents}${headClose}${children}${tail}`;
|
|
35
|
-
}
|
|
36
|
-
//#endregion
|
|
37
|
-
export { inspectHTML as default, inspectAttribute, inspectNode, inspectNodeCollection };
|
|
38
|
-
|
|
39
|
-
//# sourceMappingURL=html.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"html.js","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.js"],"sourcesContent":["import { inspectList, truncator } from './helpers.js';\nexport function inspectAttribute([key, value], options) {\n options.truncate -= 3;\n if (!value) {\n return `${options.stylize(String(key), 'yellow')}`;\n }\n return `${options.stylize(String(key), 'yellow')}=${options.stylize(`\"${value}\"`, 'string')}`;\n}\nexport function inspectNodeCollection(collection, options) {\n return inspectList(collection, options, inspectNode, '\\n');\n}\nexport function inspectNode(node, options) {\n switch (node.nodeType) {\n case 1:\n return inspectHTML(node, options);\n case 3:\n return options.inspect(node.data, options);\n default:\n return options.inspect(node, options);\n }\n}\n// @ts-ignore (Deno doesn't have Element)\nexport default function inspectHTML(element, options) {\n const properties = element.getAttributeNames();\n const name = element.tagName.toLowerCase();\n const head = options.stylize(`<${name}`, 'special');\n const headClose = options.stylize(`>`, 'special');\n const tail = options.stylize(`</${name}>`, 'special');\n options.truncate -= name.length * 2 + 5;\n let propertyContents = '';\n if (properties.length > 0) {\n propertyContents += ' ';\n propertyContents += inspectList(properties.map((key) => [key, element.getAttribute(key)]), options, inspectAttribute, ' ');\n }\n options.truncate -= propertyContents.length;\n const truncate = options.truncate;\n let children = inspectNodeCollection(element.children, options);\n if (children && children.length > truncate) {\n children = `${truncator}(${element.children.length})`;\n }\n return `${head}${propertyContents}${headClose}${children}${tail}`;\n}\n"],"x_google_ignoreList":[0],"mappings":";;AACA,SAAgB,iBAAiB,CAAC,KAAK,QAAQ,SAAS;CACpD,QAAQ,YAAY;CACpB,IAAI,CAAC,OACD,OAAO,GAAG,QAAQ,QAAQ,OAAO,GAAG,GAAG,QAAQ;CAEnD,OAAO,GAAG,QAAQ,QAAQ,OAAO,GAAG,GAAG,QAAQ,EAAE,GAAG,QAAQ,QAAQ,IAAI,MAAM,IAAI,QAAQ;AAC9F;AACA,SAAgB,sBAAsB,YAAY,SAAS;CACvD,OAAO,YAAY,YAAY,SAAS,aAAa,IAAI;AAC7D;AACA,SAAgB,YAAY,MAAM,SAAS;CACvC,QAAQ,KAAK,UAAb;EACI,KAAK,GACD,OAAO,YAAY,MAAM,OAAO;EACpC,KAAK,GACD,OAAO,QAAQ,QAAQ,KAAK,MAAM,OAAO;EAC7C,SACI,OAAO,QAAQ,QAAQ,MAAM,OAAO;CAC5C;AACJ;AAEA,SAAwB,YAAY,SAAS,SAAS;CAClD,MAAM,aAAa,QAAQ,kBAAkB;CAC7C,MAAM,OAAO,QAAQ,QAAQ,YAAY;CACzC,MAAM,OAAO,QAAQ,QAAQ,IAAI,QAAQ,SAAS;CAClD,MAAM,YAAY,QAAQ,QAAQ,KAAK,SAAS;CAChD,MAAM,OAAO,QAAQ,QAAQ,KAAK,KAAK,IAAI,SAAS;CACpD,QAAQ,YAAY,KAAK,SAAS,IAAI;CACtC,IAAI,mBAAmB;CACvB,IAAI,WAAW,SAAS,GAAG;EACvB,oBAAoB;EACpB,oBAAoB,YAAY,WAAW,KAAK,QAAQ,CAAC,KAAK,QAAQ,aAAa,GAAG,CAAC,CAAC,GAAG,SAAS,kBAAkB,GAAG;CAC7H;CACA,QAAQ,YAAY,iBAAiB;CACrC,MAAM,WAAW,QAAQ;CACzB,IAAI,WAAW,sBAAsB,QAAQ,UAAU,OAAO;CAC9D,IAAI,YAAY,SAAS,SAAS,UAC9B,WAAW,KAAgB,QAAQ,SAAS,OAAO;CAEvD,OAAO,GAAG,OAAO,mBAAmB,YAAY,WAAW;AAC/D"}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { normaliseOptions } from "./helpers.js";
|
|
2
|
-
import inspectArray from "./array.js";
|
|
3
|
-
import inspectTypedArray from "./typedarray.js";
|
|
4
|
-
import inspectDate from "./date.js";
|
|
5
|
-
import inspectFunction from "./function.js";
|
|
6
|
-
import inspectMap from "./map.js";
|
|
7
|
-
import inspectNumber from "./number.js";
|
|
8
|
-
import inspectBigInt from "./bigint.js";
|
|
9
|
-
import inspectRegExp from "./regexp.js";
|
|
10
|
-
import inspectSet from "./set.js";
|
|
11
|
-
import inspectString from "./string.js";
|
|
12
|
-
import inspectSymbol from "./symbol.js";
|
|
13
|
-
import getPromiseValue from "./promise.js";
|
|
14
|
-
import inspectObject from "./object.js";
|
|
15
|
-
import inspectClass from "./class.js";
|
|
16
|
-
import inspectArguments from "./arguments.js";
|
|
17
|
-
import inspectObject$1 from "./error.js";
|
|
18
|
-
import inspectHTML, { inspectNodeCollection } from "./html.js";
|
|
19
|
-
//#region ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.js
|
|
20
|
-
const chaiInspect = typeof Symbol === "function" && typeof Symbol.for === "function" ? Symbol.for("chai/inspect") : "@@chai/inspect";
|
|
21
|
-
const nodeInspect = Symbol.for("nodejs.util.inspect.custom");
|
|
22
|
-
const constructorMap = /* @__PURE__ */ new WeakMap();
|
|
23
|
-
const stringTagMap = {};
|
|
24
|
-
const baseTypesMap = {
|
|
25
|
-
undefined: (value, options) => options.stylize("undefined", "undefined"),
|
|
26
|
-
null: (value, options) => options.stylize("null", "null"),
|
|
27
|
-
boolean: (value, options) => options.stylize(String(value), "boolean"),
|
|
28
|
-
Boolean: (value, options) => options.stylize(String(value), "boolean"),
|
|
29
|
-
number: inspectNumber,
|
|
30
|
-
Number: inspectNumber,
|
|
31
|
-
bigint: inspectBigInt,
|
|
32
|
-
BigInt: inspectBigInt,
|
|
33
|
-
string: inspectString,
|
|
34
|
-
String: inspectString,
|
|
35
|
-
function: inspectFunction,
|
|
36
|
-
Function: inspectFunction,
|
|
37
|
-
symbol: inspectSymbol,
|
|
38
|
-
Symbol: inspectSymbol,
|
|
39
|
-
Array: inspectArray,
|
|
40
|
-
Date: inspectDate,
|
|
41
|
-
Map: inspectMap,
|
|
42
|
-
Set: inspectSet,
|
|
43
|
-
RegExp: inspectRegExp,
|
|
44
|
-
Promise: getPromiseValue,
|
|
45
|
-
WeakSet: (value, options) => options.stylize("WeakSet{…}", "special"),
|
|
46
|
-
WeakMap: (value, options) => options.stylize("WeakMap{…}", "special"),
|
|
47
|
-
Arguments: inspectArguments,
|
|
48
|
-
Int8Array: inspectTypedArray,
|
|
49
|
-
Uint8Array: inspectTypedArray,
|
|
50
|
-
Uint8ClampedArray: inspectTypedArray,
|
|
51
|
-
Int16Array: inspectTypedArray,
|
|
52
|
-
Uint16Array: inspectTypedArray,
|
|
53
|
-
Int32Array: inspectTypedArray,
|
|
54
|
-
Uint32Array: inspectTypedArray,
|
|
55
|
-
Float32Array: inspectTypedArray,
|
|
56
|
-
Float64Array: inspectTypedArray,
|
|
57
|
-
Generator: () => "",
|
|
58
|
-
DataView: () => "",
|
|
59
|
-
ArrayBuffer: () => "",
|
|
60
|
-
Error: inspectObject$1,
|
|
61
|
-
HTMLCollection: inspectNodeCollection,
|
|
62
|
-
NodeList: inspectNodeCollection
|
|
63
|
-
};
|
|
64
|
-
const inspectCustom = (value, options, type, inspectFn) => {
|
|
65
|
-
if (chaiInspect in value && typeof value[chaiInspect] === "function") return value[chaiInspect](options);
|
|
66
|
-
if (nodeInspect in value && typeof value[nodeInspect] === "function") return value[nodeInspect](options.depth, options, inspectFn);
|
|
67
|
-
if ("inspect" in value && typeof value.inspect === "function") return value.inspect(options.depth, options);
|
|
68
|
-
if ("constructor" in value && constructorMap.has(value.constructor)) return constructorMap.get(value.constructor)(value, options);
|
|
69
|
-
if (stringTagMap[type]) return stringTagMap[type](value, options);
|
|
70
|
-
return "";
|
|
71
|
-
};
|
|
72
|
-
const toString = Object.prototype.toString;
|
|
73
|
-
function inspect(value, opts = {}) {
|
|
74
|
-
const options = normaliseOptions(opts, inspect);
|
|
75
|
-
const { customInspect } = options;
|
|
76
|
-
let type = value === null ? "null" : typeof value;
|
|
77
|
-
if (type === "object") type = toString.call(value).slice(8, -1);
|
|
78
|
-
if (type in baseTypesMap) return baseTypesMap[type](value, options);
|
|
79
|
-
if (customInspect && value) {
|
|
80
|
-
const output = inspectCustom(value, options, type, inspect);
|
|
81
|
-
if (output) {
|
|
82
|
-
if (typeof output === "string") return output;
|
|
83
|
-
return inspect(output, options);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
const proto = value ? Object.getPrototypeOf(value) : false;
|
|
87
|
-
if (proto === Object.prototype || proto === null) return inspectObject(value, options);
|
|
88
|
-
if (value && typeof HTMLElement === "function" && value instanceof HTMLElement) return inspectHTML(value, options);
|
|
89
|
-
if ("constructor" in value) {
|
|
90
|
-
if (value.constructor !== Object) return inspectClass(value, options);
|
|
91
|
-
return inspectObject(value, options);
|
|
92
|
-
}
|
|
93
|
-
if (value === Object(value)) return inspectObject(value, options);
|
|
94
|
-
return options.stylize(String(value), type);
|
|
95
|
-
}
|
|
96
|
-
//#endregion
|
|
97
|
-
export { inspect as default, inspect };
|
|
98
|
-
|
|
99
|
-
//# sourceMappingURL=index.js.map
|