@neon/sdk 0.0.0 → 0.2.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/LICENSE.md +178 -0
- package/README.md +349 -0
- package/dist/_virtual/_rolldown/runtime.js +14 -0
- package/dist/client/client/client.gen.d.ts +7 -0
- package/dist/client/client/client.gen.d.ts.map +1 -0
- package/dist/client/client/client.gen.js +176 -0
- package/dist/client/client/client.gen.js.map +1 -0
- package/dist/client/client/index.d.ts +10 -0
- package/dist/client/client/index.js +6 -0
- package/dist/client/client/types.gen.d.ts +124 -0
- package/dist/client/client/types.gen.d.ts.map +1 -0
- package/dist/client/client/types.gen.js +1 -0
- package/dist/client/client/utils.gen.d.ts +42 -0
- package/dist/client/client/utils.gen.d.ts.map +1 -0
- package/dist/client/client/utils.gen.js +179 -0
- package/dist/client/client/utils.gen.js.map +1 -0
- package/dist/client/client.gen.d.ts +18 -0
- package/dist/client/client.gen.d.ts.map +1 -0
- package/dist/client/client.gen.js +8 -0
- package/dist/client/client.gen.js.map +1 -0
- package/dist/client/core/auth.gen.d.ts +29 -0
- package/dist/client/core/auth.gen.d.ts.map +1 -0
- package/dist/client/core/auth.gen.js +12 -0
- package/dist/client/core/auth.gen.js.map +1 -0
- package/dist/client/core/bodySerializer.gen.d.ts +29 -0
- package/dist/client/core/bodySerializer.gen.d.ts.map +1 -0
- package/dist/client/core/bodySerializer.gen.js +33 -0
- package/dist/client/core/bodySerializer.gen.js.map +1 -0
- package/dist/client/core/params.gen.d.ts +46 -0
- package/dist/client/core/params.gen.d.ts.map +1 -0
- package/dist/client/core/params.gen.js +65 -0
- package/dist/client/core/params.gen.js.map +1 -0
- package/dist/client/core/pathSerializer.gen.d.ts +52 -0
- package/dist/client/core/pathSerializer.gen.d.ts.map +1 -0
- package/dist/client/core/pathSerializer.gen.js +82 -0
- package/dist/client/core/pathSerializer.gen.js.map +1 -0
- package/dist/client/core/queryKeySerializer.gen.d.ts +22 -0
- package/dist/client/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/dist/client/core/queryKeySerializer.gen.js +64 -0
- package/dist/client/core/queryKeySerializer.gen.js.map +1 -0
- package/dist/client/core/serverSentEvents.gen.d.ts +88 -0
- package/dist/client/core/serverSentEvents.gen.d.ts.map +1 -0
- package/dist/client/core/serverSentEvents.gen.js +95 -0
- package/dist/client/core/serverSentEvents.gen.js.map +1 -0
- package/dist/client/core/types.gen.d.ts +80 -0
- package/dist/client/core/types.gen.d.ts.map +1 -0
- package/dist/client/core/types.gen.js +1 -0
- package/dist/client/core/utils.gen.d.ts +33 -0
- package/dist/client/core/utils.gen.d.ts.map +1 -0
- package/dist/client/core/utils.gen.js +78 -0
- package/dist/client/core/utils.gen.js.map +1 -0
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.js +2 -0
- package/dist/client/sdk.gen.d.ts +1362 -0
- package/dist/client/sdk.gen.d.ts.map +1 -0
- package/dist/client/sdk.gen.js +4315 -0
- package/dist/client/sdk.gen.js.map +1 -0
- package/dist/client/types.gen.d.ts +9938 -0
- package/dist/client/types.gen.d.ts.map +1 -0
- package/dist/client/types.gen.js +1 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +4 -0
- package/dist/neon/client.d.ts +52 -0
- package/dist/neon/client.d.ts.map +1 -0
- package/dist/neon/client.js +40 -0
- package/dist/neon/client.js.map +1 -0
- package/dist/neon/client.test-d.d.ts +1 -0
- package/dist/neon/client.test-d.js +76 -0
- package/dist/neon/client.test-d.js.map +1 -0
- package/dist/neon/config.d.ts +40 -0
- package/dist/neon/config.d.ts.map +1 -0
- package/dist/neon/config.js +23 -0
- package/dist/neon/config.js.map +1 -0
- package/dist/neon/connection.d.ts +22 -0
- package/dist/neon/connection.d.ts.map +1 -0
- package/dist/neon/connection.js +33 -0
- package/dist/neon/connection.js.map +1 -0
- package/dist/neon/context.d.ts +50 -0
- package/dist/neon/context.d.ts.map +1 -0
- package/dist/neon/context.js +59 -0
- package/dist/neon/context.js.map +1 -0
- package/dist/neon/coverage.d.ts +26 -0
- package/dist/neon/coverage.d.ts.map +1 -0
- package/dist/neon/coverage.js +229 -0
- package/dist/neon/coverage.js.map +1 -0
- package/dist/neon/errors.d.ts +78 -0
- package/dist/neon/errors.d.ts.map +1 -0
- package/dist/neon/errors.js +116 -0
- package/dist/neon/errors.js.map +1 -0
- package/dist/neon/paginate.d.ts +34 -0
- package/dist/neon/paginate.d.ts.map +1 -0
- package/dist/neon/paginate.js +51 -0
- package/dist/neon/paginate.js.map +1 -0
- package/dist/neon/resources/account.d.ts +45 -0
- package/dist/neon/resources/account.d.ts.map +1 -0
- package/dist/neon/resources/account.js +65 -0
- package/dist/neon/resources/account.js.map +1 -0
- package/dist/neon/resources/branches.d.ts +84 -0
- package/dist/neon/resources/branches.d.ts.map +1 -0
- package/dist/neon/resources/branches.js +132 -0
- package/dist/neon/resources/branches.js.map +1 -0
- package/dist/neon/resources/consumption.d.ts +22 -0
- package/dist/neon/resources/consumption.d.ts.map +1 -0
- package/dist/neon/resources/consumption.js +59 -0
- package/dist/neon/resources/consumption.js.map +1 -0
- package/dist/neon/resources/dataapi.d.ts +25 -0
- package/dist/neon/resources/dataapi.d.ts.map +1 -0
- package/dist/neon/resources/dataapi.js +59 -0
- package/dist/neon/resources/dataapi.js.map +1 -0
- package/dist/neon/resources/databases.d.ts +30 -0
- package/dist/neon/resources/databases.d.ts.map +1 -0
- package/dist/neon/resources/databases.js +68 -0
- package/dist/neon/resources/databases.js.map +1 -0
- package/dist/neon/resources/endpoints.d.ts +39 -0
- package/dist/neon/resources/endpoints.d.ts.map +1 -0
- package/dist/neon/resources/endpoints.js +89 -0
- package/dist/neon/resources/endpoints.js.map +1 -0
- package/dist/neon/resources/operations.d.ts +27 -0
- package/dist/neon/resources/operations.d.ts.map +1 -0
- package/dist/neon/resources/operations.js +50 -0
- package/dist/neon/resources/operations.js.map +1 -0
- package/dist/neon/resources/postgres.d.ts +45 -0
- package/dist/neon/resources/postgres.d.ts.map +1 -0
- package/dist/neon/resources/postgres.js +104 -0
- package/dist/neon/resources/postgres.js.map +1 -0
- package/dist/neon/resources/projects.d.ts +84 -0
- package/dist/neon/resources/projects.d.ts.map +1 -0
- package/dist/neon/resources/projects.js +111 -0
- package/dist/neon/resources/projects.js.map +1 -0
- package/dist/neon/resources/roles.d.ts +40 -0
- package/dist/neon/resources/roles.d.ts.map +1 -0
- package/dist/neon/resources/roles.js +78 -0
- package/dist/neon/resources/roles.js.map +1 -0
- package/dist/neon/resources/snapshots.d.ts +86 -0
- package/dist/neon/resources/snapshots.d.ts.map +1 -0
- package/dist/neon/resources/snapshots.js +125 -0
- package/dist/neon/resources/snapshots.js.map +1 -0
- package/dist/neon/result.d.ts +32 -0
- package/dist/neon/result.d.ts.map +1 -0
- package/dist/neon/result.js +26 -0
- package/dist/neon/result.js.map +1 -0
- package/dist/neon/retry.d.ts +17 -0
- package/dist/neon/retry.d.ts.map +1 -0
- package/dist/neon/retry.js +42 -0
- package/dist/neon/retry.js.map +1 -0
- package/dist/neon/wait.d.ts +27 -0
- package/dist/neon/wait.d.ts.map +1 -0
- package/dist/neon/wait.js +70 -0
- package/dist/neon/wait.js.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_pretty-format@3.0.9/node_modules/@vitest/pretty-format/dist/index.js +879 -0
- package/dist/node_modules/.pnpm/@vitest_pretty-format@3.0.9/node_modules/@vitest/pretty-format/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_runner@3.0.9/node_modules/@vitest/runner/dist/chunk-tasks.js +30 -0
- package/dist/node_modules/.pnpm/@vitest_runner@3.0.9/node_modules/@vitest/runner/dist/chunk-tasks.js.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_runner@3.0.9/node_modules/@vitest/runner/dist/index.js +578 -0
- package/dist/node_modules/.pnpm/@vitest_runner@3.0.9/node_modules/@vitest/runner/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.0.9/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js +92 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.0.9/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.0.9/node_modules/@vitest/utils/dist/helpers.js +43 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.0.9/node_modules/@vitest/utils/dist/helpers.js.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.0.9/node_modules/@vitest/utils/dist/index.js +450 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.0.9/node_modules/@vitest/utils/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.0.9/node_modules/@vitest/utils/dist/source-map.js +168 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.0.9/node_modules/@vitest/utils/dist/source-map.js.map +1 -0
- package/dist/node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/branding.js +10 -0
- package/dist/node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/branding.js.map +1 -0
- package/dist/node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/index.js +109 -0
- package/dist/node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/messages.js +10 -0
- package/dist/node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/messages.js.map +1 -0
- package/dist/node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/overloads.js +10 -0
- package/dist/node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/overloads.js.map +1 -0
- package/dist/node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/utils.js +10 -0
- package/dist/node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/utils.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.js +11 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.js +16 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.js +11 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.js +15 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.js +13 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.js +34 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.js +12 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.js +122 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.js +39 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.js +99 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.js +25 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.js +14 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.js +21 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.js +6 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.js +12 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.js +18 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.js +24 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.js +9 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.js +30 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.js.map +1 -0
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js +82 -0
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js.map +1 -0
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/node.js +7 -0
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/node.js.map +1 -0
- 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 +8 -0
- 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 +1 -0
- package/dist/raw.d.ts +13 -0
- package/dist/raw.d.ts.map +1 -0
- package/dist/raw.js +159 -0
- package/dist/raw.js.map +1 -0
- package/package.json +58 -16
package/dist/node_modules/.pnpm/@vitest_utils@3.0.9/node_modules/@vitest/utils/dist/source-map.js
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
",".charCodeAt(0);
|
|
2
|
+
const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
3
|
+
const intToChar = /* @__PURE__ */ new Uint8Array(64);
|
|
4
|
+
const charToInt = /* @__PURE__ */ new Uint8Array(128);
|
|
5
|
+
for (let i = 0; i < 64; i++) {
|
|
6
|
+
const c = chars.charCodeAt(i);
|
|
7
|
+
intToChar[i] = c;
|
|
8
|
+
charToInt[c] = i;
|
|
9
|
+
}
|
|
10
|
+
var UrlType;
|
|
11
|
+
(function(UrlType) {
|
|
12
|
+
UrlType[UrlType["Empty"] = 1] = "Empty";
|
|
13
|
+
UrlType[UrlType["Hash"] = 2] = "Hash";
|
|
14
|
+
UrlType[UrlType["Query"] = 3] = "Query";
|
|
15
|
+
UrlType[UrlType["RelativePath"] = 4] = "RelativePath";
|
|
16
|
+
UrlType[UrlType["AbsolutePath"] = 5] = "AbsolutePath";
|
|
17
|
+
UrlType[UrlType["SchemeRelative"] = 6] = "SchemeRelative";
|
|
18
|
+
UrlType[UrlType["Absolute"] = 7] = "Absolute";
|
|
19
|
+
})(UrlType || (UrlType = {}));
|
|
20
|
+
const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
21
|
+
function normalizeWindowsPath(input = "") {
|
|
22
|
+
if (!input) return input;
|
|
23
|
+
return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
|
|
24
|
+
}
|
|
25
|
+
const _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
26
|
+
function cwd() {
|
|
27
|
+
if (typeof process !== "undefined" && typeof process.cwd === "function") return process.cwd().replace(/\\/g, "/");
|
|
28
|
+
return "/";
|
|
29
|
+
}
|
|
30
|
+
const resolve = function(...arguments_) {
|
|
31
|
+
arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));
|
|
32
|
+
let resolvedPath = "";
|
|
33
|
+
let resolvedAbsolute = false;
|
|
34
|
+
for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
35
|
+
const path = index >= 0 ? arguments_[index] : cwd();
|
|
36
|
+
if (!path || path.length === 0) continue;
|
|
37
|
+
resolvedPath = `${path}/${resolvedPath}`;
|
|
38
|
+
resolvedAbsolute = isAbsolute(path);
|
|
39
|
+
}
|
|
40
|
+
resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);
|
|
41
|
+
if (resolvedAbsolute && !isAbsolute(resolvedPath)) return `/${resolvedPath}`;
|
|
42
|
+
return resolvedPath.length > 0 ? resolvedPath : ".";
|
|
43
|
+
};
|
|
44
|
+
function normalizeString(path, allowAboveRoot) {
|
|
45
|
+
let res = "";
|
|
46
|
+
let lastSegmentLength = 0;
|
|
47
|
+
let lastSlash = -1;
|
|
48
|
+
let dots = 0;
|
|
49
|
+
let char = null;
|
|
50
|
+
for (let index = 0; index <= path.length; ++index) {
|
|
51
|
+
if (index < path.length) char = path[index];
|
|
52
|
+
else if (char === "/") break;
|
|
53
|
+
else char = "/";
|
|
54
|
+
if (char === "/") {
|
|
55
|
+
if (lastSlash === index - 1 || dots === 1);
|
|
56
|
+
else if (dots === 2) {
|
|
57
|
+
if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
|
|
58
|
+
if (res.length > 2) {
|
|
59
|
+
const lastSlashIndex = res.lastIndexOf("/");
|
|
60
|
+
if (lastSlashIndex === -1) {
|
|
61
|
+
res = "";
|
|
62
|
+
lastSegmentLength = 0;
|
|
63
|
+
} else {
|
|
64
|
+
res = res.slice(0, lastSlashIndex);
|
|
65
|
+
lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
|
|
66
|
+
}
|
|
67
|
+
lastSlash = index;
|
|
68
|
+
dots = 0;
|
|
69
|
+
continue;
|
|
70
|
+
} else if (res.length > 0) {
|
|
71
|
+
res = "";
|
|
72
|
+
lastSegmentLength = 0;
|
|
73
|
+
lastSlash = index;
|
|
74
|
+
dots = 0;
|
|
75
|
+
continue;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
if (allowAboveRoot) {
|
|
79
|
+
res += res.length > 0 ? "/.." : "..";
|
|
80
|
+
lastSegmentLength = 2;
|
|
81
|
+
}
|
|
82
|
+
} else {
|
|
83
|
+
if (res.length > 0) res += `/${path.slice(lastSlash + 1, index)}`;
|
|
84
|
+
else res = path.slice(lastSlash + 1, index);
|
|
85
|
+
lastSegmentLength = index - lastSlash - 1;
|
|
86
|
+
}
|
|
87
|
+
lastSlash = index;
|
|
88
|
+
dots = 0;
|
|
89
|
+
} else if (char === "." && dots !== -1) ++dots;
|
|
90
|
+
else dots = -1;
|
|
91
|
+
}
|
|
92
|
+
return res;
|
|
93
|
+
}
|
|
94
|
+
const isAbsolute = function(p) {
|
|
95
|
+
return _IS_ABSOLUTE_RE.test(p);
|
|
96
|
+
};
|
|
97
|
+
const CHROME_IE_STACK_REGEXP = /^\s*at .*(?:\S:\d+|\(native\))/m;
|
|
98
|
+
const SAFARI_NATIVE_CODE_REGEXP = /^(?:eval@)?(?:\[native code\])?$/;
|
|
99
|
+
function extractLocation(urlLike) {
|
|
100
|
+
if (!urlLike.includes(":")) return [urlLike];
|
|
101
|
+
const parts = /(.+?)(?::(\d+))?(?::(\d+))?$/.exec(urlLike.replace(/^\(|\)$/g, ""));
|
|
102
|
+
if (!parts) return [urlLike];
|
|
103
|
+
let url = parts[1];
|
|
104
|
+
if (url.startsWith("async ")) url = url.slice(6);
|
|
105
|
+
if (url.startsWith("http:") || url.startsWith("https:")) {
|
|
106
|
+
const urlObj = new URL(url);
|
|
107
|
+
urlObj.searchParams.delete("import");
|
|
108
|
+
urlObj.searchParams.delete("browserv");
|
|
109
|
+
url = urlObj.pathname + urlObj.hash + urlObj.search;
|
|
110
|
+
}
|
|
111
|
+
if (url.startsWith("/@fs/")) {
|
|
112
|
+
const isWindows = /^\/@fs\/[a-zA-Z]:\//.test(url);
|
|
113
|
+
url = url.slice(isWindows ? 5 : 4);
|
|
114
|
+
}
|
|
115
|
+
return [
|
|
116
|
+
url,
|
|
117
|
+
parts[2] || void 0,
|
|
118
|
+
parts[3] || void 0
|
|
119
|
+
];
|
|
120
|
+
}
|
|
121
|
+
function parseSingleFFOrSafariStack(raw) {
|
|
122
|
+
let line = raw.trim();
|
|
123
|
+
if (SAFARI_NATIVE_CODE_REGEXP.test(line)) return null;
|
|
124
|
+
if (line.includes(" > eval")) line = line.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, ":$1");
|
|
125
|
+
if (!line.includes("@") && !line.includes(":")) return null;
|
|
126
|
+
const functionNameRegex = /((.*".+"[^@]*)?[^@]*)(@)/;
|
|
127
|
+
const matches = line.match(functionNameRegex);
|
|
128
|
+
const functionName = matches && matches[1] ? matches[1] : void 0;
|
|
129
|
+
const [url, lineNumber, columnNumber] = extractLocation(line.replace(functionNameRegex, ""));
|
|
130
|
+
if (!url || !lineNumber || !columnNumber) return null;
|
|
131
|
+
return {
|
|
132
|
+
file: url,
|
|
133
|
+
method: functionName || "",
|
|
134
|
+
line: Number.parseInt(lineNumber),
|
|
135
|
+
column: Number.parseInt(columnNumber)
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
function parseSingleStack(raw) {
|
|
139
|
+
const line = raw.trim();
|
|
140
|
+
if (!CHROME_IE_STACK_REGEXP.test(line)) return parseSingleFFOrSafariStack(line);
|
|
141
|
+
return parseSingleV8Stack(line);
|
|
142
|
+
}
|
|
143
|
+
function parseSingleV8Stack(raw) {
|
|
144
|
+
let line = raw.trim();
|
|
145
|
+
if (!CHROME_IE_STACK_REGEXP.test(line)) return null;
|
|
146
|
+
if (line.includes("(eval ")) line = line.replace(/eval code/g, "eval").replace(/(\(eval at [^()]*)|(,.*$)/g, "");
|
|
147
|
+
let sanitizedLine = line.replace(/^\s+/, "").replace(/\(eval code/g, "(").replace(/^.*?\s+/, "");
|
|
148
|
+
const location = sanitizedLine.match(/ (\(.+\)$)/);
|
|
149
|
+
sanitizedLine = location ? sanitizedLine.replace(location[0], "") : sanitizedLine;
|
|
150
|
+
const [url, lineNumber, columnNumber] = extractLocation(location ? location[1] : sanitizedLine);
|
|
151
|
+
let method = location && sanitizedLine || "";
|
|
152
|
+
let file = url && ["eval", "<anonymous>"].includes(url) ? void 0 : url;
|
|
153
|
+
if (!file || !lineNumber || !columnNumber) return null;
|
|
154
|
+
if (method.startsWith("async ")) method = method.slice(6);
|
|
155
|
+
if (file.startsWith("file://")) file = file.slice(7);
|
|
156
|
+
file = file.startsWith("node:") || file.startsWith("internal:") ? file : resolve(file);
|
|
157
|
+
if (method) method = method.replace(/__vite_ssr_import_\d+__\./g, "");
|
|
158
|
+
return {
|
|
159
|
+
method,
|
|
160
|
+
file,
|
|
161
|
+
line: Number.parseInt(lineNumber),
|
|
162
|
+
column: Number.parseInt(columnNumber)
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
//#endregion
|
|
166
|
+
export { parseSingleStack };
|
|
167
|
+
|
|
168
|
+
//# sourceMappingURL=source-map.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source-map.js","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/@vitest+utils@3.0.9/node_modules/@vitest/utils/dist/source-map.js"],"sourcesContent":["import { isPrimitive, notNullish } from './helpers.js';\n\nconst comma = ','.charCodeAt(0);\nconst chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\nconst intToChar = new Uint8Array(64); // 64 possible chars.\nconst charToInt = new Uint8Array(128); // z is 122 in ASCII\nfor (let i = 0; i < chars.length; i++) {\n const c = chars.charCodeAt(i);\n intToChar[i] = c;\n charToInt[c] = i;\n}\nfunction decodeInteger(reader, relative) {\n let value = 0;\n let shift = 0;\n let integer = 0;\n do {\n const c = reader.next();\n integer = charToInt[c];\n value |= (integer & 31) << shift;\n shift += 5;\n } while (integer & 32);\n const shouldNegate = value & 1;\n value >>>= 1;\n if (shouldNegate) {\n value = -2147483648 | -value;\n }\n return relative + value;\n}\nfunction hasMoreVlq(reader, max) {\n if (reader.pos >= max)\n return false;\n return reader.peek() !== comma;\n}\nclass StringReader {\n constructor(buffer) {\n this.pos = 0;\n this.buffer = buffer;\n }\n next() {\n return this.buffer.charCodeAt(this.pos++);\n }\n peek() {\n return this.buffer.charCodeAt(this.pos);\n }\n indexOf(char) {\n const { buffer, pos } = this;\n const idx = buffer.indexOf(char, pos);\n return idx === -1 ? buffer.length : idx;\n }\n}\n\nfunction decode(mappings) {\n const { length } = mappings;\n const reader = new StringReader(mappings);\n const decoded = [];\n let genColumn = 0;\n let sourcesIndex = 0;\n let sourceLine = 0;\n let sourceColumn = 0;\n let namesIndex = 0;\n do {\n const semi = reader.indexOf(';');\n const line = [];\n let sorted = true;\n let lastCol = 0;\n genColumn = 0;\n while (reader.pos < semi) {\n let seg;\n genColumn = decodeInteger(reader, genColumn);\n if (genColumn < lastCol)\n sorted = false;\n lastCol = genColumn;\n if (hasMoreVlq(reader, semi)) {\n sourcesIndex = decodeInteger(reader, sourcesIndex);\n sourceLine = decodeInteger(reader, sourceLine);\n sourceColumn = decodeInteger(reader, sourceColumn);\n if (hasMoreVlq(reader, semi)) {\n namesIndex = decodeInteger(reader, namesIndex);\n seg = [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex];\n }\n else {\n seg = [genColumn, sourcesIndex, sourceLine, sourceColumn];\n }\n }\n else {\n seg = [genColumn];\n }\n line.push(seg);\n reader.pos++;\n }\n if (!sorted)\n sort(line);\n decoded.push(line);\n reader.pos = semi + 1;\n } while (reader.pos <= length);\n return decoded;\n}\nfunction sort(line) {\n line.sort(sortComparator$1);\n}\nfunction sortComparator$1(a, b) {\n return a[0] - b[0];\n}\n\n// Matches the scheme of a URL, eg \"http://\"\nconst schemeRegex = /^[\\w+.-]+:\\/\\//;\n/**\n * Matches the parts of a URL:\n * 1. Scheme, including \":\", guaranteed.\n * 2. User/password, including \"@\", optional.\n * 3. Host, guaranteed.\n * 4. Port, including \":\", optional.\n * 5. Path, including \"/\", optional.\n * 6. Query, including \"?\", optional.\n * 7. Hash, including \"#\", optional.\n */\nconst urlRegex = /^([\\w+.-]+:)\\/\\/([^@/#?]*@)?([^:/#?]*)(:\\d+)?(\\/[^#?]*)?(\\?[^#]*)?(#.*)?/;\n/**\n * File URLs are weird. They dont' need the regular `//` in the scheme, they may or may not start\n * with a leading `/`, they can have a domain (but only if they don't start with a Windows drive).\n *\n * 1. Host, optional.\n * 2. Path, which may include \"/\", guaranteed.\n * 3. Query, including \"?\", optional.\n * 4. Hash, including \"#\", optional.\n */\nconst fileRegex = /^file:(?:\\/\\/((?![a-z]:)[^/#?]*)?)?(\\/?[^#?]*)(\\?[^#]*)?(#.*)?/i;\nvar UrlType;\n(function (UrlType) {\n UrlType[UrlType[\"Empty\"] = 1] = \"Empty\";\n UrlType[UrlType[\"Hash\"] = 2] = \"Hash\";\n UrlType[UrlType[\"Query\"] = 3] = \"Query\";\n UrlType[UrlType[\"RelativePath\"] = 4] = \"RelativePath\";\n UrlType[UrlType[\"AbsolutePath\"] = 5] = \"AbsolutePath\";\n UrlType[UrlType[\"SchemeRelative\"] = 6] = \"SchemeRelative\";\n UrlType[UrlType[\"Absolute\"] = 7] = \"Absolute\";\n})(UrlType || (UrlType = {}));\nfunction isAbsoluteUrl(input) {\n return schemeRegex.test(input);\n}\nfunction isSchemeRelativeUrl(input) {\n return input.startsWith('//');\n}\nfunction isAbsolutePath(input) {\n return input.startsWith('/');\n}\nfunction isFileUrl(input) {\n return input.startsWith('file:');\n}\nfunction isRelative(input) {\n return /^[.?#]/.test(input);\n}\nfunction parseAbsoluteUrl(input) {\n const match = urlRegex.exec(input);\n return makeUrl(match[1], match[2] || '', match[3], match[4] || '', match[5] || '/', match[6] || '', match[7] || '');\n}\nfunction parseFileUrl(input) {\n const match = fileRegex.exec(input);\n const path = match[2];\n return makeUrl('file:', '', match[1] || '', '', isAbsolutePath(path) ? path : '/' + path, match[3] || '', match[4] || '');\n}\nfunction makeUrl(scheme, user, host, port, path, query, hash) {\n return {\n scheme,\n user,\n host,\n port,\n path,\n query,\n hash,\n type: UrlType.Absolute,\n };\n}\nfunction parseUrl(input) {\n if (isSchemeRelativeUrl(input)) {\n const url = parseAbsoluteUrl('http:' + input);\n url.scheme = '';\n url.type = UrlType.SchemeRelative;\n return url;\n }\n if (isAbsolutePath(input)) {\n const url = parseAbsoluteUrl('http://foo.com' + input);\n url.scheme = '';\n url.host = '';\n url.type = UrlType.AbsolutePath;\n return url;\n }\n if (isFileUrl(input))\n return parseFileUrl(input);\n if (isAbsoluteUrl(input))\n return parseAbsoluteUrl(input);\n const url = parseAbsoluteUrl('http://foo.com/' + input);\n url.scheme = '';\n url.host = '';\n url.type = input\n ? input.startsWith('?')\n ? UrlType.Query\n : input.startsWith('#')\n ? UrlType.Hash\n : UrlType.RelativePath\n : UrlType.Empty;\n return url;\n}\nfunction stripPathFilename(path) {\n // If a path ends with a parent directory \"..\", then it's a relative path with excess parent\n // paths. It's not a file, so we can't strip it.\n if (path.endsWith('/..'))\n return path;\n const index = path.lastIndexOf('/');\n return path.slice(0, index + 1);\n}\nfunction mergePaths(url, base) {\n normalizePath(base, base.type);\n // If the path is just a \"/\", then it was an empty path to begin with (remember, we're a relative\n // path).\n if (url.path === '/') {\n url.path = base.path;\n }\n else {\n // Resolution happens relative to the base path's directory, not the file.\n url.path = stripPathFilename(base.path) + url.path;\n }\n}\n/**\n * The path can have empty directories \"//\", unneeded parents \"foo/..\", or current directory\n * \"foo/.\". We need to normalize to a standard representation.\n */\nfunction normalizePath(url, type) {\n const rel = type <= UrlType.RelativePath;\n const pieces = url.path.split('/');\n // We need to preserve the first piece always, so that we output a leading slash. The item at\n // pieces[0] is an empty string.\n let pointer = 1;\n // Positive is the number of real directories we've output, used for popping a parent directory.\n // Eg, \"foo/bar/..\" will have a positive 2, and we can decrement to be left with just \"foo\".\n let positive = 0;\n // We need to keep a trailing slash if we encounter an empty directory (eg, splitting \"foo/\" will\n // generate `[\"foo\", \"\"]` pieces). And, if we pop a parent directory. But once we encounter a\n // real directory, we won't need to append, unless the other conditions happen again.\n let addTrailingSlash = false;\n for (let i = 1; i < pieces.length; i++) {\n const piece = pieces[i];\n // An empty directory, could be a trailing slash, or just a double \"//\" in the path.\n if (!piece) {\n addTrailingSlash = true;\n continue;\n }\n // If we encounter a real directory, then we don't need to append anymore.\n addTrailingSlash = false;\n // A current directory, which we can always drop.\n if (piece === '.')\n continue;\n // A parent directory, we need to see if there are any real directories we can pop. Else, we\n // have an excess of parents, and we'll need to keep the \"..\".\n if (piece === '..') {\n if (positive) {\n addTrailingSlash = true;\n positive--;\n pointer--;\n }\n else if (rel) {\n // If we're in a relativePath, then we need to keep the excess parents. Else, in an absolute\n // URL, protocol relative URL, or an absolute path, we don't need to keep excess.\n pieces[pointer++] = piece;\n }\n continue;\n }\n // We've encountered a real directory. Move it to the next insertion pointer, which accounts for\n // any popped or dropped directories.\n pieces[pointer++] = piece;\n positive++;\n }\n let path = '';\n for (let i = 1; i < pointer; i++) {\n path += '/' + pieces[i];\n }\n if (!path || (addTrailingSlash && !path.endsWith('/..'))) {\n path += '/';\n }\n url.path = path;\n}\n/**\n * Attempts to resolve `input` URL/path relative to `base`.\n */\nfunction resolve$2(input, base) {\n if (!input && !base)\n return '';\n const url = parseUrl(input);\n let inputType = url.type;\n if (base && inputType !== UrlType.Absolute) {\n const baseUrl = parseUrl(base);\n const baseType = baseUrl.type;\n switch (inputType) {\n case UrlType.Empty:\n url.hash = baseUrl.hash;\n // fall through\n case UrlType.Hash:\n url.query = baseUrl.query;\n // fall through\n case UrlType.Query:\n case UrlType.RelativePath:\n mergePaths(url, baseUrl);\n // fall through\n case UrlType.AbsolutePath:\n // The host, user, and port are joined, you can't copy one without the others.\n url.user = baseUrl.user;\n url.host = baseUrl.host;\n url.port = baseUrl.port;\n // fall through\n case UrlType.SchemeRelative:\n // The input doesn't have a schema at least, so we need to copy at least that over.\n url.scheme = baseUrl.scheme;\n }\n if (baseType > inputType)\n inputType = baseType;\n }\n normalizePath(url, inputType);\n const queryHash = url.query + url.hash;\n switch (inputType) {\n // This is impossible, because of the empty checks at the start of the function.\n // case UrlType.Empty:\n case UrlType.Hash:\n case UrlType.Query:\n return queryHash;\n case UrlType.RelativePath: {\n // The first char is always a \"/\", and we need it to be relative.\n const path = url.path.slice(1);\n if (!path)\n return queryHash || '.';\n if (isRelative(base || input) && !isRelative(path)) {\n // If base started with a leading \".\", or there is no base and input started with a \".\",\n // then we need to ensure that the relative path starts with a \".\". We don't know if\n // relative starts with a \"..\", though, so check before prepending.\n return './' + path + queryHash;\n }\n return path + queryHash;\n }\n case UrlType.AbsolutePath:\n return url.path + queryHash;\n default:\n return url.scheme + '//' + url.user + url.host + url.port + url.path + queryHash;\n }\n}\n\nfunction resolve$1(input, base) {\n // The base is always treated as a directory, if it's not empty.\n // https://github.com/mozilla/source-map/blob/8cb3ee57/lib/util.js#L327\n // https://github.com/chromium/chromium/blob/da4adbb3/third_party/blink/renderer/devtools/front_end/sdk/SourceMap.js#L400-L401\n if (base && !base.endsWith('/'))\n base += '/';\n return resolve$2(input, base);\n}\n\n/**\n * Removes everything after the last \"/\", but leaves the slash.\n */\nfunction stripFilename(path) {\n if (!path)\n return '';\n const index = path.lastIndexOf('/');\n return path.slice(0, index + 1);\n}\n\nconst COLUMN = 0;\nconst SOURCES_INDEX = 1;\nconst SOURCE_LINE = 2;\nconst SOURCE_COLUMN = 3;\nconst NAMES_INDEX = 4;\nconst REV_GENERATED_LINE = 1;\nconst REV_GENERATED_COLUMN = 2;\n\nfunction maybeSort(mappings, owned) {\n const unsortedIndex = nextUnsortedSegmentLine(mappings, 0);\n if (unsortedIndex === mappings.length)\n return mappings;\n // If we own the array (meaning we parsed it from JSON), then we're free to directly mutate it. If\n // not, we do not want to modify the consumer's input array.\n if (!owned)\n mappings = mappings.slice();\n for (let i = unsortedIndex; i < mappings.length; i = nextUnsortedSegmentLine(mappings, i + 1)) {\n mappings[i] = sortSegments(mappings[i], owned);\n }\n return mappings;\n}\nfunction nextUnsortedSegmentLine(mappings, start) {\n for (let i = start; i < mappings.length; i++) {\n if (!isSorted(mappings[i]))\n return i;\n }\n return mappings.length;\n}\nfunction isSorted(line) {\n for (let j = 1; j < line.length; j++) {\n if (line[j][COLUMN] < line[j - 1][COLUMN]) {\n return false;\n }\n }\n return true;\n}\nfunction sortSegments(line, owned) {\n if (!owned)\n line = line.slice();\n return line.sort(sortComparator);\n}\nfunction sortComparator(a, b) {\n return a[COLUMN] - b[COLUMN];\n}\n\nlet found = false;\n/**\n * A binary search implementation that returns the index if a match is found.\n * If no match is found, then the left-index (the index associated with the item that comes just\n * before the desired index) is returned. To maintain proper sort order, a splice would happen at\n * the next index:\n *\n * ```js\n * const array = [1, 3];\n * const needle = 2;\n * const index = binarySearch(array, needle, (item, needle) => item - needle);\n *\n * assert.equal(index, 0);\n * array.splice(index + 1, 0, needle);\n * assert.deepEqual(array, [1, 2, 3]);\n * ```\n */\nfunction binarySearch(haystack, needle, low, high) {\n while (low <= high) {\n const mid = low + ((high - low) >> 1);\n const cmp = haystack[mid][COLUMN] - needle;\n if (cmp === 0) {\n found = true;\n return mid;\n }\n if (cmp < 0) {\n low = mid + 1;\n }\n else {\n high = mid - 1;\n }\n }\n found = false;\n return low - 1;\n}\nfunction upperBound(haystack, needle, index) {\n for (let i = index + 1; i < haystack.length; index = i++) {\n if (haystack[i][COLUMN] !== needle)\n break;\n }\n return index;\n}\nfunction lowerBound(haystack, needle, index) {\n for (let i = index - 1; i >= 0; index = i--) {\n if (haystack[i][COLUMN] !== needle)\n break;\n }\n return index;\n}\nfunction memoizedState() {\n return {\n lastKey: -1,\n lastNeedle: -1,\n lastIndex: -1,\n };\n}\n/**\n * This overly complicated beast is just to record the last tested line/column and the resulting\n * index, allowing us to skip a few tests if mappings are monotonically increasing.\n */\nfunction memoizedBinarySearch(haystack, needle, state, key) {\n const { lastKey, lastNeedle, lastIndex } = state;\n let low = 0;\n let high = haystack.length - 1;\n if (key === lastKey) {\n if (needle === lastNeedle) {\n found = lastIndex !== -1 && haystack[lastIndex][COLUMN] === needle;\n return lastIndex;\n }\n if (needle >= lastNeedle) {\n // lastIndex may be -1 if the previous needle was not found.\n low = lastIndex === -1 ? 0 : lastIndex;\n }\n else {\n high = lastIndex;\n }\n }\n state.lastKey = key;\n state.lastNeedle = needle;\n return (state.lastIndex = binarySearch(haystack, needle, low, high));\n}\n\n// Rebuilds the original source files, with mappings that are ordered by source line/column instead\n// of generated line/column.\nfunction buildBySources(decoded, memos) {\n const sources = memos.map(buildNullArray);\n for (let i = 0; i < decoded.length; i++) {\n const line = decoded[i];\n for (let j = 0; j < line.length; j++) {\n const seg = line[j];\n if (seg.length === 1)\n continue;\n const sourceIndex = seg[SOURCES_INDEX];\n const sourceLine = seg[SOURCE_LINE];\n const sourceColumn = seg[SOURCE_COLUMN];\n const originalSource = sources[sourceIndex];\n const originalLine = (originalSource[sourceLine] || (originalSource[sourceLine] = []));\n const memo = memos[sourceIndex];\n // The binary search either found a match, or it found the left-index just before where the\n // segment should go. Either way, we want to insert after that. And there may be multiple\n // generated segments associated with an original location, so there may need to move several\n // indexes before we find where we need to insert.\n let index = upperBound(originalLine, sourceColumn, memoizedBinarySearch(originalLine, sourceColumn, memo, sourceLine));\n memo.lastIndex = ++index;\n insert(originalLine, index, [sourceColumn, i, seg[COLUMN]]);\n }\n }\n return sources;\n}\nfunction insert(array, index, value) {\n for (let i = array.length; i > index; i--) {\n array[i] = array[i - 1];\n }\n array[index] = value;\n}\n// Null arrays allow us to use ordered index keys without actually allocating contiguous memory like\n// a real array. We use a null-prototype object to avoid prototype pollution and deoptimizations.\n// Numeric properties on objects are magically sorted in ascending order by the engine regardless of\n// the insertion order. So, by setting any numeric keys, even out of order, we'll get ascending\n// order when iterating with for-in.\nfunction buildNullArray() {\n return { __proto__: null };\n}\n\nconst LINE_GTR_ZERO = '`line` must be greater than 0 (lines start at line 1)';\nconst COL_GTR_EQ_ZERO = '`column` must be greater than or equal to 0 (columns start at column 0)';\nconst LEAST_UPPER_BOUND = -1;\nconst GREATEST_LOWER_BOUND = 1;\nclass TraceMap {\n constructor(map, mapUrl) {\n const isString = typeof map === 'string';\n if (!isString && map._decodedMemo)\n return map;\n const parsed = (isString ? JSON.parse(map) : map);\n const { version, file, names, sourceRoot, sources, sourcesContent } = parsed;\n this.version = version;\n this.file = file;\n this.names = names || [];\n this.sourceRoot = sourceRoot;\n this.sources = sources;\n this.sourcesContent = sourcesContent;\n this.ignoreList = parsed.ignoreList || parsed.x_google_ignoreList || undefined;\n const from = resolve$1(sourceRoot || '', stripFilename(mapUrl));\n this.resolvedSources = sources.map((s) => resolve$1(s || '', from));\n const { mappings } = parsed;\n if (typeof mappings === 'string') {\n this._encoded = mappings;\n this._decoded = undefined;\n }\n else {\n this._encoded = undefined;\n this._decoded = maybeSort(mappings, isString);\n }\n this._decodedMemo = memoizedState();\n this._bySources = undefined;\n this._bySourceMemos = undefined;\n }\n}\n/**\n * Typescript doesn't allow friend access to private fields, so this just casts the map into a type\n * with public access modifiers.\n */\nfunction cast(map) {\n return map;\n}\n/**\n * Returns the decoded (array of lines of segments) form of the SourceMap's mappings field.\n */\nfunction decodedMappings(map) {\n var _a;\n return ((_a = cast(map))._decoded || (_a._decoded = decode(cast(map)._encoded)));\n}\n/**\n * A higher-level API to find the source/line/column associated with a generated line/column\n * (think, from a stack trace). Line is 1-based, but column is 0-based, due to legacy behavior in\n * `source-map` library.\n */\nfunction originalPositionFor(map, needle) {\n let { line, column, bias } = needle;\n line--;\n if (line < 0)\n throw new Error(LINE_GTR_ZERO);\n if (column < 0)\n throw new Error(COL_GTR_EQ_ZERO);\n const decoded = decodedMappings(map);\n // It's common for parent source maps to have pointers to lines that have no\n // mapping (like a \"//# sourceMappingURL=\") at the end of the child file.\n if (line >= decoded.length)\n return OMapping(null, null, null, null);\n const segments = decoded[line];\n const index = traceSegmentInternal(segments, cast(map)._decodedMemo, line, column, bias || GREATEST_LOWER_BOUND);\n if (index === -1)\n return OMapping(null, null, null, null);\n const segment = segments[index];\n if (segment.length === 1)\n return OMapping(null, null, null, null);\n const { names, resolvedSources } = map;\n return OMapping(resolvedSources[segment[SOURCES_INDEX]], segment[SOURCE_LINE] + 1, segment[SOURCE_COLUMN], segment.length === 5 ? names[segment[NAMES_INDEX]] : null);\n}\n/**\n * Finds the generated line/column position of the provided source/line/column source position.\n */\nfunction generatedPositionFor(map, needle) {\n const { source, line, column, bias } = needle;\n return generatedPosition(map, source, line, column, bias || GREATEST_LOWER_BOUND, false);\n}\n/**\n * Iterates each mapping in generated position order.\n */\nfunction eachMapping(map, cb) {\n const decoded = decodedMappings(map);\n const { names, resolvedSources } = map;\n for (let i = 0; i < decoded.length; i++) {\n const line = decoded[i];\n for (let j = 0; j < line.length; j++) {\n const seg = line[j];\n const generatedLine = i + 1;\n const generatedColumn = seg[0];\n let source = null;\n let originalLine = null;\n let originalColumn = null;\n let name = null;\n if (seg.length !== 1) {\n source = resolvedSources[seg[1]];\n originalLine = seg[2] + 1;\n originalColumn = seg[3];\n }\n if (seg.length === 5)\n name = names[seg[4]];\n cb({\n generatedLine,\n generatedColumn,\n source,\n originalLine,\n originalColumn,\n name,\n });\n }\n }\n}\nfunction OMapping(source, line, column, name) {\n return { source, line, column, name };\n}\nfunction GMapping(line, column) {\n return { line, column };\n}\nfunction traceSegmentInternal(segments, memo, line, column, bias) {\n let index = memoizedBinarySearch(segments, column, memo, line);\n if (found) {\n index = (bias === LEAST_UPPER_BOUND ? upperBound : lowerBound)(segments, column, index);\n }\n else if (bias === LEAST_UPPER_BOUND)\n index++;\n if (index === -1 || index === segments.length)\n return -1;\n return index;\n}\nfunction generatedPosition(map, source, line, column, bias, all) {\n var _a;\n line--;\n if (line < 0)\n throw new Error(LINE_GTR_ZERO);\n if (column < 0)\n throw new Error(COL_GTR_EQ_ZERO);\n const { sources, resolvedSources } = map;\n let sourceIndex = sources.indexOf(source);\n if (sourceIndex === -1)\n sourceIndex = resolvedSources.indexOf(source);\n if (sourceIndex === -1)\n return all ? [] : GMapping(null, null);\n const generated = ((_a = cast(map))._bySources || (_a._bySources = buildBySources(decodedMappings(map), (cast(map)._bySourceMemos = sources.map(memoizedState)))));\n const segments = generated[sourceIndex][line];\n if (segments == null)\n return all ? [] : GMapping(null, null);\n const memo = cast(map)._bySourceMemos[sourceIndex];\n const index = traceSegmentInternal(segments, memo, line, column, bias);\n if (index === -1)\n return GMapping(null, null);\n const segment = segments[index];\n return GMapping(segment[REV_GENERATED_LINE] + 1, segment[REV_GENERATED_COLUMN]);\n}\n\nconst _DRIVE_LETTER_START_RE = /^[A-Za-z]:\\//;\nfunction normalizeWindowsPath(input = \"\") {\n if (!input) {\n return input;\n }\n return input.replace(/\\\\/g, \"/\").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());\n}\nconst _IS_ABSOLUTE_RE = /^[/\\\\](?![/\\\\])|^[/\\\\]{2}(?!\\.)|^[A-Za-z]:[/\\\\]/;\nfunction cwd() {\n if (typeof process !== \"undefined\" && typeof process.cwd === \"function\") {\n return process.cwd().replace(/\\\\/g, \"/\");\n }\n return \"/\";\n}\nconst resolve = function(...arguments_) {\n arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));\n let resolvedPath = \"\";\n let resolvedAbsolute = false;\n for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {\n const path = index >= 0 ? arguments_[index] : cwd();\n if (!path || path.length === 0) {\n continue;\n }\n resolvedPath = `${path}/${resolvedPath}`;\n resolvedAbsolute = isAbsolute(path);\n }\n resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);\n if (resolvedAbsolute && !isAbsolute(resolvedPath)) {\n return `/${resolvedPath}`;\n }\n return resolvedPath.length > 0 ? resolvedPath : \".\";\n};\nfunction normalizeString(path, allowAboveRoot) {\n let res = \"\";\n let lastSegmentLength = 0;\n let lastSlash = -1;\n let dots = 0;\n let char = null;\n for (let index = 0; index <= path.length; ++index) {\n if (index < path.length) {\n char = path[index];\n } else if (char === \"/\") {\n break;\n } else {\n char = \"/\";\n }\n if (char === \"/\") {\n if (lastSlash === index - 1 || dots === 1) ; else if (dots === 2) {\n if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== \".\" || res[res.length - 2] !== \".\") {\n if (res.length > 2) {\n const lastSlashIndex = res.lastIndexOf(\"/\");\n if (lastSlashIndex === -1) {\n res = \"\";\n lastSegmentLength = 0;\n } else {\n res = res.slice(0, lastSlashIndex);\n lastSegmentLength = res.length - 1 - res.lastIndexOf(\"/\");\n }\n lastSlash = index;\n dots = 0;\n continue;\n } else if (res.length > 0) {\n res = \"\";\n lastSegmentLength = 0;\n lastSlash = index;\n dots = 0;\n continue;\n }\n }\n if (allowAboveRoot) {\n res += res.length > 0 ? \"/..\" : \"..\";\n lastSegmentLength = 2;\n }\n } else {\n if (res.length > 0) {\n res += `/${path.slice(lastSlash + 1, index)}`;\n } else {\n res = path.slice(lastSlash + 1, index);\n }\n lastSegmentLength = index - lastSlash - 1;\n }\n lastSlash = index;\n dots = 0;\n } else if (char === \".\" && dots !== -1) {\n ++dots;\n } else {\n dots = -1;\n }\n }\n return res;\n}\nconst isAbsolute = function(p) {\n return _IS_ABSOLUTE_RE.test(p);\n};\n\nconst CHROME_IE_STACK_REGEXP = /^\\s*at .*(?:\\S:\\d+|\\(native\\))/m;\nconst SAFARI_NATIVE_CODE_REGEXP = /^(?:eval@)?(?:\\[native code\\])?$/;\nconst stackIgnorePatterns = [\n \"node:internal\",\n /\\/packages\\/\\w+\\/dist\\//,\n /\\/@vitest\\/\\w+\\/dist\\//,\n \"/vitest/dist/\",\n \"/vitest/src/\",\n \"/vite-node/dist/\",\n \"/vite-node/src/\",\n \"/node_modules/chai/\",\n \"/node_modules/tinypool/\",\n \"/node_modules/tinyspy/\",\n // browser related deps\n \"/deps/chunk-\",\n \"/deps/@vitest\",\n \"/deps/loupe\",\n \"/deps/chai\",\n /node:\\w+/,\n /__vitest_test__/,\n /__vitest_browser__/,\n /\\/deps\\/vitest_/\n];\nfunction extractLocation(urlLike) {\n if (!urlLike.includes(\":\")) {\n return [urlLike];\n }\n const regExp = /(.+?)(?::(\\d+))?(?::(\\d+))?$/;\n const parts = regExp.exec(urlLike.replace(/^\\(|\\)$/g, \"\"));\n if (!parts) {\n return [urlLike];\n }\n let url = parts[1];\n if (url.startsWith(\"async \")) {\n url = url.slice(6);\n }\n if (url.startsWith(\"http:\") || url.startsWith(\"https:\")) {\n const urlObj = new URL(url);\n urlObj.searchParams.delete(\"import\");\n urlObj.searchParams.delete(\"browserv\");\n url = urlObj.pathname + urlObj.hash + urlObj.search;\n }\n if (url.startsWith(\"/@fs/\")) {\n const isWindows = /^\\/@fs\\/[a-zA-Z]:\\//.test(url);\n url = url.slice(isWindows ? 5 : 4);\n }\n return [url, parts[2] || void 0, parts[3] || void 0];\n}\nfunction parseSingleFFOrSafariStack(raw) {\n let line = raw.trim();\n if (SAFARI_NATIVE_CODE_REGEXP.test(line)) {\n return null;\n }\n if (line.includes(\" > eval\")) {\n line = line.replace(\n / line (\\d+)(?: > eval line \\d+)* > eval:\\d+:\\d+/g,\n \":$1\"\n );\n }\n if (!line.includes(\"@\") && !line.includes(\":\")) {\n return null;\n }\n const functionNameRegex = /((.*\".+\"[^@]*)?[^@]*)(@)/;\n const matches = line.match(functionNameRegex);\n const functionName = matches && matches[1] ? matches[1] : void 0;\n const [url, lineNumber, columnNumber] = extractLocation(\n line.replace(functionNameRegex, \"\")\n );\n if (!url || !lineNumber || !columnNumber) {\n return null;\n }\n return {\n file: url,\n method: functionName || \"\",\n line: Number.parseInt(lineNumber),\n column: Number.parseInt(columnNumber)\n };\n}\nfunction parseSingleStack(raw) {\n const line = raw.trim();\n if (!CHROME_IE_STACK_REGEXP.test(line)) {\n return parseSingleFFOrSafariStack(line);\n }\n return parseSingleV8Stack(line);\n}\nfunction parseSingleV8Stack(raw) {\n let line = raw.trim();\n if (!CHROME_IE_STACK_REGEXP.test(line)) {\n return null;\n }\n if (line.includes(\"(eval \")) {\n line = line.replace(/eval code/g, \"eval\").replace(/(\\(eval at [^()]*)|(,.*$)/g, \"\");\n }\n let sanitizedLine = line.replace(/^\\s+/, \"\").replace(/\\(eval code/g, \"(\").replace(/^.*?\\s+/, \"\");\n const location = sanitizedLine.match(/ (\\(.+\\)$)/);\n sanitizedLine = location ? sanitizedLine.replace(location[0], \"\") : sanitizedLine;\n const [url, lineNumber, columnNumber] = extractLocation(\n location ? location[1] : sanitizedLine\n );\n let method = location && sanitizedLine || \"\";\n let file = url && [\"eval\", \"<anonymous>\"].includes(url) ? void 0 : url;\n if (!file || !lineNumber || !columnNumber) {\n return null;\n }\n if (method.startsWith(\"async \")) {\n method = method.slice(6);\n }\n if (file.startsWith(\"file://\")) {\n file = file.slice(7);\n }\n file = file.startsWith(\"node:\") || file.startsWith(\"internal:\") ? file : resolve(file);\n if (method) {\n method = method.replace(/__vite_ssr_import_\\d+__\\./g, \"\");\n }\n return {\n method,\n file,\n line: Number.parseInt(lineNumber),\n column: Number.parseInt(columnNumber)\n };\n}\nfunction createStackString(stacks) {\n return stacks.map((stack) => {\n const line = `${stack.file}:${stack.line}:${stack.column}`;\n if (stack.method) {\n return ` at ${stack.method}(${line})`;\n }\n return ` at ${line}`;\n }).join(\"\\n\");\n}\nfunction parseStacktrace(stack, options = {}) {\n const { ignoreStackEntries = stackIgnorePatterns } = options;\n const stacks = !CHROME_IE_STACK_REGEXP.test(stack) ? parseFFOrSafariStackTrace(stack) : parseV8Stacktrace(stack);\n return stacks.map((stack2) => {\n var _a;\n if (options.getUrlId) {\n stack2.file = options.getUrlId(stack2.file);\n }\n const map = (_a = options.getSourceMap) == null ? void 0 : _a.call(options, stack2.file);\n if (!map || typeof map !== \"object\" || !map.version) {\n return shouldFilter(ignoreStackEntries, stack2.file) ? null : stack2;\n }\n const traceMap = new TraceMap(map);\n const { line, column, source, name } = originalPositionFor(traceMap, stack2);\n let file = stack2.file;\n if (source) {\n const fileUrl = stack2.file.startsWith(\"file://\") ? stack2.file : `file://${stack2.file}`;\n const sourceRootUrl = map.sourceRoot ? new URL(map.sourceRoot, fileUrl) : fileUrl;\n file = new URL(source, sourceRootUrl).pathname;\n }\n if (shouldFilter(ignoreStackEntries, file)) {\n return null;\n }\n if (line != null && column != null) {\n return {\n line,\n column,\n file,\n method: name || stack2.method\n };\n }\n return stack2;\n }).filter((s) => s != null);\n}\nfunction shouldFilter(ignoreStackEntries, file) {\n return ignoreStackEntries.some((p) => file.match(p));\n}\nfunction parseFFOrSafariStackTrace(stack) {\n return stack.split(\"\\n\").map((line) => parseSingleFFOrSafariStack(line)).filter(notNullish);\n}\nfunction parseV8Stacktrace(stack) {\n return stack.split(\"\\n\").map((line) => parseSingleV8Stack(line)).filter(notNullish);\n}\nfunction parseErrorStacktrace(e, options = {}) {\n if (!e || isPrimitive(e)) {\n return [];\n }\n if (e.stacks) {\n return e.stacks;\n }\n const stackStr = e.stack || e.stackStr || \"\";\n let stackFrames = parseStacktrace(stackStr, options);\n if (options.frameFilter) {\n stackFrames = stackFrames.filter(\n (f) => options.frameFilter(e, f) !== false\n );\n }\n e.stacks = stackFrames;\n return stackFrames;\n}\n\nexport { TraceMap, createStackString, eachMapping, generatedPositionFor, originalPositionFor, parseErrorStacktrace, parseSingleFFOrSafariStack, parseSingleStack, parseSingleV8Stack, parseStacktrace };\n"],"x_google_ignoreList":[0],"mappings":"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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/branding.js
|
|
3
|
+
var require_branding = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
}));
|
|
6
|
+
//#endregion
|
|
7
|
+
export default require_branding();
|
|
8
|
+
export { require_branding };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=branding.js.map
|
package/dist/node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/branding.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"branding.js","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/branding.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"}
|
|
@@ -0,0 +1,109 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
ADDED
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
ADDED
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|