@powerlines/deepkit 0.7.4 → 0.7.5
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/dist/{capnp-BLx1WTBU.cjs → capnp-BLCHrDSY.cjs} +42 -42
- package/dist/{capnp-BiGNkOmV.mjs → capnp-BqAglxrS.mjs} +265 -265
- package/dist/capnp.cjs +1 -1
- package/dist/capnp.d.cts +42 -44
- package/dist/capnp.d.mts +42 -44
- package/dist/capnp.mjs +1 -1
- package/dist/{chunk-C0xms8kb.cjs → chunk-BmvPcxpV.cjs} +7 -0
- package/dist/chunk-CgI6uo-e.mjs +32 -0
- package/dist/{vendor/type-compiler/compiler-D1z5h1MK.d.cts → compiler-B-zwyGQf.d.cts} +3 -201
- package/dist/{vendor/type-compiler/compiler-Bg8jX6qU.mjs → compiler-BUUdv7wG.mjs} +4 -191
- package/dist/{vendor/type-compiler/compiler-Nkxc4PLJ.d.mts → compiler-BzOZmhWO.d.mts} +3 -201
- package/dist/{vendor/type-compiler/compiler-BUrWMhGi.cjs → compiler-DTp8Jvav.cjs} +207 -394
- package/dist/{vendor/type-compiler/config-B_cKkYZm.d.cts → config-B2hS4_tR.d.mts} +1 -1
- package/dist/config-C0OHvihx.d.mts +1 -0
- package/dist/{vendor/type-compiler/config-y0HNkbCH.mjs → config-CuXC21KA.mjs} +3 -32
- package/dist/{vendor/type-compiler/config-D9DM7Du_.d.mts → config-DCmu3CV2.d.cts} +1 -1
- package/dist/config-GPeRZeGl.d.cts +1 -0
- package/dist/{vendor/type-compiler/config-BEX924PC.cjs → config-GVyELKY1.cjs} +20 -59
- package/dist/esbuild-plugin-BUYqx8_5.cjs +80 -0
- package/dist/esbuild-plugin-CRQUmm86.mjs +75 -0
- package/dist/esbuild-plugin.cjs +2 -47
- package/dist/esbuild-plugin.d.cts +18 -4
- package/dist/esbuild-plugin.d.mts +18 -4
- package/dist/esbuild-plugin.mjs +2 -47
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +4 -4
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +3 -3
- package/dist/reflect-type.cjs +4 -4
- package/dist/reflect-type.d.cts +1 -1
- package/dist/reflect-type.d.mts +1 -1
- package/dist/reflect-type.mjs +2 -2
- package/dist/{reflection-C4IlLDrv.d.cts → reflection-Bhe75GyI.d.mts} +2 -2
- package/dist/{reflection-BB3pXP5l.d.mts → reflection-DGOuMF8F.d.cts} +2 -2
- package/dist/resolve-reflections.cjs +1 -1
- package/dist/rolldown-plugin.cjs +1 -1
- package/dist/{vendor/string-BuMgdahD.mjs → string-CjkshhTG.mjs} +2 -28
- package/dist/{vendor/string-BoXo0wS7.cjs → string-CpVz34Gv.cjs} +6 -39
- package/dist/transformer.cjs +6 -7
- package/dist/transformer.d.cts +1 -1
- package/dist/transformer.d.mts +1 -1
- package/dist/transformer.mjs +2 -3
- package/dist/transpile.cjs +6 -2
- package/dist/transpile.d.cts +1 -1
- package/dist/transpile.d.mts +1 -1
- package/dist/transpile.mjs +5 -1
- package/dist/type-8AL5U7vn.d.cts +2969 -0
- package/dist/type-BDuj5wg2.d.mts +2969 -0
- package/dist/{vendor/type-Dgeqs-rL.mjs → type-BWm74eaQ.mjs} +1 -1
- package/dist/type-C7UXbXfx.cjs +10688 -0
- package/dist/{vendor/type-2yMJb9Mw.d.cts → type-DR66Hepn.d.cts} +1 -1
- package/dist/{vendor/type-DEpHWwMt.d.mts → type-DfwJ6GTs.d.mts} +1 -1
- package/dist/type-ma8o4dJG.mjs +9110 -0
- package/dist/{vendor/types-Ur6a2Srw.d.mts → types-BO3PJV5p.d.mts} +1 -1
- package/dist/{vendor/types-exLGvFgG.d.cts → types-Bb6lL3KL.d.cts} +1 -1
- package/dist/types.d.cts +4 -7
- package/dist/types.d.mts +4 -7
- package/dist/utilities-CT_jcB5h.mjs +1483 -0
- package/dist/utilities-Dr3TzxMb.cjs +1523 -0
- package/dist/utilities.cjs +8 -116
- package/dist/utilities.d.cts +1 -1
- package/dist/utilities.d.mts +1 -1
- package/dist/utilities.mjs +2 -110
- package/dist/vendor/core.cjs +1 -1
- package/dist/vendor/core.d.cts +1 -1
- package/dist/vendor/core.d.mts +1 -1
- package/dist/vendor/core.mjs +1 -1
- package/dist/vendor/type-compiler/compiler.cjs +1 -1
- package/dist/vendor/type-compiler/compiler.d.cts +1 -1
- package/dist/vendor/type-compiler/compiler.d.mts +1 -1
- package/dist/vendor/type-compiler/compiler.mjs +1 -1
- package/dist/vendor/type-compiler/config.cjs +1 -1
- package/dist/vendor/type-compiler/config.d.cts +1 -1
- package/dist/vendor/type-compiler/config.d.mts +1 -1
- package/dist/vendor/type-compiler/config.mjs +1 -1
- package/dist/vendor/type-compiler/index.cjs +11 -3
- package/dist/vendor/type-compiler/index.d.cts +3 -2
- package/dist/vendor/type-compiler/index.d.mts +3 -2
- package/dist/vendor/type-compiler/index.mjs +3 -2
- package/dist/vendor/type-spec.cjs +1 -1
- package/dist/vendor/type-spec.d.cts +1 -1
- package/dist/vendor/type-spec.d.mts +1 -1
- package/dist/vendor/type-spec.mjs +1 -1
- package/dist/vendor/type.cjs +268 -9374
- package/dist/vendor/type.d.cts +3 -2969
- package/dist/vendor/type.d.mts +3 -2969
- package/dist/vendor/type.mjs +3 -9109
- package/package.json +9 -14
- package/schemas/reflection.d.cts +1 -6
- package/schemas/reflection.d.mts +1 -6
- /package/dist/{vendor/type-BMLjRtLY.cjs → type-DhqntM0q.cjs} +0 -0
package/dist/utilities.cjs
CHANGED
|
@@ -1,118 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const
|
|
3
|
-
let _powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
|
|
4
|
-
let _stryke_type_checks = require("@stryke/type-checks");
|
|
5
|
-
let _stryke_helpers_get_unique = require("@stryke/helpers/get-unique");
|
|
6
|
-
let _stryke_json_storm_json = require("@stryke/json/storm-json");
|
|
7
|
-
let _stryke_type_checks_is_null = require("@stryke/type-checks/is-null");
|
|
8
|
-
let _stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
|
|
9
|
-
let _stryke_type_checks_is_undefined = require("@stryke/type-checks/is-undefined");
|
|
2
|
+
const require_utilities = require('./utilities-Dr3TzxMb.cjs');
|
|
10
3
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
*/
|
|
19
|
-
function stringifyDefaultValue(property, value) {
|
|
20
|
-
return (0, _stryke_type_checks.isSetObject)(property) ? stringifyValue(property.type, value ?? property.getDefaultValue()) : stringifyValue({ kind: property }, value);
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Stringifies a value as a string.
|
|
24
|
-
*
|
|
25
|
-
* @param value - The value to stringify.
|
|
26
|
-
* @returns A string representation of the value.
|
|
27
|
-
*/
|
|
28
|
-
function stringifyStringValue(value) {
|
|
29
|
-
return `"${String(value).replaceAll("\"", "\\\"")}"`;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Converts any {@link Type}'s actual value to string representation.
|
|
33
|
-
*
|
|
34
|
-
* @param type - The {@link Type} of the value to stringify.
|
|
35
|
-
* @param value - The value to stringify.
|
|
36
|
-
* @returns A string representation of the value.
|
|
37
|
-
*/
|
|
38
|
-
function stringifyValue(type, value) {
|
|
39
|
-
return (0, _stryke_type_checks_is_undefined.isUndefined)(value) ? "undefined" : (0, _stryke_type_checks_is_null.isNull)(value) ? "null" : type.kind === _powerlines_deepkit_vendor_type.ReflectionKind.boolean ? String(value).trim().toLowerCase() === "true" ? "true" : "false" : type.kind === _powerlines_deepkit_vendor_type.ReflectionKind.string || type.kind === _powerlines_deepkit_vendor_type.ReflectionKind.literal && (0, _stryke_type_checks_is_string.isString)(type.literal) ? stringifyStringValue(value) : type.kind === _powerlines_deepkit_vendor_type.ReflectionKind.enum ? getEnumReflectionType(type).kind === _powerlines_deepkit_vendor_type.ReflectionKind.string ? stringifyStringValue(value) : `${String(value)}` : type.kind === _powerlines_deepkit_vendor_type.ReflectionKind.union ? isStringUnion(type) ? stringifyStringValue(value) : `${String(value)}` : type.kind === _powerlines_deepkit_vendor_type.ReflectionKind.array ? stringifyStringValue(_stryke_json_storm_json.StormJSON.stringify(value)) : type.kind === _powerlines_deepkit_vendor_type.ReflectionKind.object || type.kind === _powerlines_deepkit_vendor_type.ReflectionKind.objectLiteral ? _stryke_json_storm_json.StormJSON.stringify(value) : (type.kind === _powerlines_deepkit_vendor_type.ReflectionKind.property || type.kind === _powerlines_deepkit_vendor_type.ReflectionKind.parameter) && type.type?.kind ? stringifyValue(type.type, value) : String(value)?.includes("\"") || String(value)?.includes("'") ? stringifyStringValue(value) : String(value);
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Converts a {@link TypeEnum} to its underlying primitive type representation.
|
|
43
|
-
*
|
|
44
|
-
* @param type - The {@link TypeEnum} to evaluate.
|
|
45
|
-
* @returns A string representation of the primitive type.
|
|
46
|
-
*/
|
|
47
|
-
function getEnumReflectionType(type) {
|
|
48
|
-
if (type.kind !== _powerlines_deepkit_vendor_type.ReflectionKind.enum) throw new Error(`Expected a TypeEnum, but received ${type.kind}.`);
|
|
49
|
-
const unique = (0, _stryke_helpers_get_unique.getUniqueBy)(type.values.filter((value) => value !== void 0 && value !== null), (enumMember) => (0, _stryke_type_checks_is_string.isString)(enumMember) ? { kind: _powerlines_deepkit_vendor_type.ReflectionKind.string } : { kind: _powerlines_deepkit_vendor_type.ReflectionKind.number });
|
|
50
|
-
if (unique.length === 0) throw new Error(`No valid enum members could be found.`);
|
|
51
|
-
return unique[0] && (0, _stryke_type_checks_is_string.isString)(unique[0]) ? { kind: _powerlines_deepkit_vendor_type.ReflectionKind.string } : { kind: _powerlines_deepkit_vendor_type.ReflectionKind.number };
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Converts a {@link TypeUnion} to its underlying primitive type representation.
|
|
55
|
-
*
|
|
56
|
-
* @param type - The {@link TypeUnion} to evaluate.
|
|
57
|
-
* @returns A string representation of the primitive type.
|
|
58
|
-
*/
|
|
59
|
-
function getUnionTypes(type) {
|
|
60
|
-
if (type.kind === _powerlines_deepkit_vendor_type.ReflectionKind.union && type.types.length > 0) return (0, _stryke_helpers_get_unique.getUniqueBy)(type.types, (member) => member.kind);
|
|
61
|
-
throw new Error(`Expected a TypeUnion, but received ${type.kind}.`);
|
|
62
|
-
}
|
|
63
|
-
function isStringUnion(type) {
|
|
64
|
-
return getUnionTypes(type).some((member) => member.kind === _powerlines_deepkit_vendor_type.ReflectionKind.string || member.kind === _powerlines_deepkit_vendor_type.ReflectionKind.literal && (0, _stryke_type_checks_is_string.isString)(member.literal));
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Converts a ReflectionKind to its string representation.
|
|
68
|
-
*
|
|
69
|
-
* @param kind - The {@link ReflectionKind} to convert.
|
|
70
|
-
* @returns A string representation of the kind.
|
|
71
|
-
*/
|
|
72
|
-
function kindToName(kind) {
|
|
73
|
-
if (kind === _powerlines_deepkit_vendor_type.ReflectionKind.void) return "void";
|
|
74
|
-
else if (kind === _powerlines_deepkit_vendor_type.ReflectionKind.never) return "never";
|
|
75
|
-
else if (kind === _powerlines_deepkit_vendor_type.ReflectionKind.null) return "null";
|
|
76
|
-
else if (kind === _powerlines_deepkit_vendor_type.ReflectionKind.undefined) return "undefined";
|
|
77
|
-
else if (kind === _powerlines_deepkit_vendor_type.ReflectionKind.symbol) return "symbol";
|
|
78
|
-
else if (kind === _powerlines_deepkit_vendor_type.ReflectionKind.bigint) return "bigint";
|
|
79
|
-
else if (kind === _powerlines_deepkit_vendor_type.ReflectionKind.number) return "number";
|
|
80
|
-
else if (kind === _powerlines_deepkit_vendor_type.ReflectionKind.string) return "string";
|
|
81
|
-
else if (kind === _powerlines_deepkit_vendor_type.ReflectionKind.boolean) return "boolean";
|
|
82
|
-
else if (kind === _powerlines_deepkit_vendor_type.ReflectionKind.literal) return "literal";
|
|
83
|
-
else if (kind === _powerlines_deepkit_vendor_type.ReflectionKind.class) return "class";
|
|
84
|
-
else if (kind === _powerlines_deepkit_vendor_type.ReflectionKind.array) return "array";
|
|
85
|
-
else if (kind === _powerlines_deepkit_vendor_type.ReflectionKind.object) return "object";
|
|
86
|
-
else if (kind === _powerlines_deepkit_vendor_type.ReflectionKind.objectLiteral) return "objectLiteral";
|
|
87
|
-
else if (kind === _powerlines_deepkit_vendor_type.ReflectionKind.union) return "union";
|
|
88
|
-
else if (kind === _powerlines_deepkit_vendor_type.ReflectionKind.enum) return "enum";
|
|
89
|
-
else if (kind === _powerlines_deepkit_vendor_type.ReflectionKind.regexp) return "regexp";
|
|
90
|
-
else if (kind === _powerlines_deepkit_vendor_type.ReflectionKind.templateLiteral) return "templateLiteral";
|
|
91
|
-
else if (kind === _powerlines_deepkit_vendor_type.ReflectionKind.property) return "property";
|
|
92
|
-
else if (kind === _powerlines_deepkit_vendor_type.ReflectionKind.method) return "method";
|
|
93
|
-
else if (kind === _powerlines_deepkit_vendor_type.ReflectionKind.function) return "function";
|
|
94
|
-
else if (kind === _powerlines_deepkit_vendor_type.ReflectionKind.parameter) return "parameter";
|
|
95
|
-
else if (kind === _powerlines_deepkit_vendor_type.ReflectionKind.promise) return "promise";
|
|
96
|
-
else if (kind === _powerlines_deepkit_vendor_type.ReflectionKind.typeParameter) return "typeParameter";
|
|
97
|
-
else if (kind === _powerlines_deepkit_vendor_type.ReflectionKind.tuple) return "tuple";
|
|
98
|
-
else if (kind === _powerlines_deepkit_vendor_type.ReflectionKind.tupleMember) return "tupleMember";
|
|
99
|
-
else if (kind === _powerlines_deepkit_vendor_type.ReflectionKind.enumMember) return "enumMember";
|
|
100
|
-
else if (kind === _powerlines_deepkit_vendor_type.ReflectionKind.rest) return "rest";
|
|
101
|
-
else if (kind === _powerlines_deepkit_vendor_type.ReflectionKind.indexSignature) return "indexSignature";
|
|
102
|
-
else if (kind === _powerlines_deepkit_vendor_type.ReflectionKind.propertySignature) return "propertySignature";
|
|
103
|
-
else if (kind === _powerlines_deepkit_vendor_type.ReflectionKind.methodSignature) return "methodSignature";
|
|
104
|
-
else if (kind === _powerlines_deepkit_vendor_type.ReflectionKind.infer) return "infer";
|
|
105
|
-
else if (kind === _powerlines_deepkit_vendor_type.ReflectionKind.callSignature) return "callSignature";
|
|
106
|
-
else if (kind === _powerlines_deepkit_vendor_type.ReflectionKind.any) return "any";
|
|
107
|
-
else if (kind === _powerlines_deepkit_vendor_type.ReflectionKind.intersection) return "intersection";
|
|
108
|
-
return "unknown";
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
//#endregion
|
|
112
|
-
exports.getEnumReflectionType = getEnumReflectionType;
|
|
113
|
-
exports.getUnionTypes = getUnionTypes;
|
|
114
|
-
exports.isStringUnion = isStringUnion;
|
|
115
|
-
exports.kindToName = kindToName;
|
|
116
|
-
exports.stringifyDefaultValue = stringifyDefaultValue;
|
|
117
|
-
exports.stringifyStringValue = stringifyStringValue;
|
|
118
|
-
exports.stringifyValue = stringifyValue;
|
|
4
|
+
exports.getEnumReflectionType = require_utilities.getEnumReflectionType;
|
|
5
|
+
exports.getUnionTypes = require_utilities.getUnionTypes;
|
|
6
|
+
exports.isStringUnion = require_utilities.isStringUnion;
|
|
7
|
+
exports.kindToName = require_utilities.kindToName;
|
|
8
|
+
exports.stringifyDefaultValue = require_utilities.stringifyDefaultValue;
|
|
9
|
+
exports.stringifyStringValue = require_utilities.stringifyStringValue;
|
|
10
|
+
exports.stringifyValue = require_utilities.stringifyValue;
|
package/dist/utilities.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $t as ReflectionProperty, Qt as ReflectionParameter, Sa as ReflectionKind, Xa as TypeNumber, ao as TypeString, ka as Type } from "./type-8AL5U7vn.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/utilities.d.ts
|
|
4
4
|
/**
|
package/dist/utilities.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $t as ReflectionProperty, Qt as ReflectionParameter, Sa as ReflectionKind, Xa as TypeNumber, ao as TypeString, ka as Type } from "./type-BDuj5wg2.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/utilities.d.ts
|
|
4
4
|
/**
|
package/dist/utilities.mjs
CHANGED
|
@@ -1,111 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { isSetObject } from "@stryke/type-checks";
|
|
3
|
-
import { getUniqueBy } from "@stryke/helpers/get-unique";
|
|
4
|
-
import { StormJSON } from "@stryke/json/storm-json";
|
|
5
|
-
import { isNull } from "@stryke/type-checks/is-null";
|
|
6
|
-
import { isString as isString$1 } from "@stryke/type-checks/is-string";
|
|
7
|
-
import { isUndefined as isUndefined$1 } from "@stryke/type-checks/is-undefined";
|
|
1
|
+
import { a as stringifyDefaultValue, i as kindToName, n as getUnionTypes, o as stringifyStringValue, r as isStringUnion, s as stringifyValue, t as getEnumReflectionType } from "./utilities-CT_jcB5h.mjs";
|
|
8
2
|
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Converts any {@link ReflectionProperty}, {@link ReflectionParameter}, or {@link ReflectionKind}'s value to string representation.
|
|
12
|
-
*
|
|
13
|
-
* @param property - The {@link ReflectionProperty}, {@link ReflectionParameter}, or {@link ReflectionKind} containing the value to stringify.
|
|
14
|
-
* @param value - The value to stringify.
|
|
15
|
-
* @returns A string representation of the value.
|
|
16
|
-
*/
|
|
17
|
-
function stringifyDefaultValue(property, value) {
|
|
18
|
-
return isSetObject(property) ? stringifyValue(property.type, value ?? property.getDefaultValue()) : stringifyValue({ kind: property }, value);
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Stringifies a value as a string.
|
|
22
|
-
*
|
|
23
|
-
* @param value - The value to stringify.
|
|
24
|
-
* @returns A string representation of the value.
|
|
25
|
-
*/
|
|
26
|
-
function stringifyStringValue(value) {
|
|
27
|
-
return `"${String(value).replaceAll("\"", "\\\"")}"`;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Converts any {@link Type}'s actual value to string representation.
|
|
31
|
-
*
|
|
32
|
-
* @param type - The {@link Type} of the value to stringify.
|
|
33
|
-
* @param value - The value to stringify.
|
|
34
|
-
* @returns A string representation of the value.
|
|
35
|
-
*/
|
|
36
|
-
function stringifyValue(type, value) {
|
|
37
|
-
return isUndefined$1(value) ? "undefined" : isNull(value) ? "null" : type.kind === ReflectionKind.boolean ? String(value).trim().toLowerCase() === "true" ? "true" : "false" : type.kind === ReflectionKind.string || type.kind === ReflectionKind.literal && isString$1(type.literal) ? stringifyStringValue(value) : type.kind === ReflectionKind.enum ? getEnumReflectionType(type).kind === ReflectionKind.string ? stringifyStringValue(value) : `${String(value)}` : type.kind === ReflectionKind.union ? isStringUnion(type) ? stringifyStringValue(value) : `${String(value)}` : type.kind === ReflectionKind.array ? stringifyStringValue(StormJSON.stringify(value)) : type.kind === ReflectionKind.object || type.kind === ReflectionKind.objectLiteral ? StormJSON.stringify(value) : (type.kind === ReflectionKind.property || type.kind === ReflectionKind.parameter) && type.type?.kind ? stringifyValue(type.type, value) : String(value)?.includes("\"") || String(value)?.includes("'") ? stringifyStringValue(value) : String(value);
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Converts a {@link TypeEnum} to its underlying primitive type representation.
|
|
41
|
-
*
|
|
42
|
-
* @param type - The {@link TypeEnum} to evaluate.
|
|
43
|
-
* @returns A string representation of the primitive type.
|
|
44
|
-
*/
|
|
45
|
-
function getEnumReflectionType(type) {
|
|
46
|
-
if (type.kind !== ReflectionKind.enum) throw new Error(`Expected a TypeEnum, but received ${type.kind}.`);
|
|
47
|
-
const unique = getUniqueBy(type.values.filter((value) => value !== void 0 && value !== null), (enumMember) => isString$1(enumMember) ? { kind: ReflectionKind.string } : { kind: ReflectionKind.number });
|
|
48
|
-
if (unique.length === 0) throw new Error(`No valid enum members could be found.`);
|
|
49
|
-
return unique[0] && isString$1(unique[0]) ? { kind: ReflectionKind.string } : { kind: ReflectionKind.number };
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Converts a {@link TypeUnion} to its underlying primitive type representation.
|
|
53
|
-
*
|
|
54
|
-
* @param type - The {@link TypeUnion} to evaluate.
|
|
55
|
-
* @returns A string representation of the primitive type.
|
|
56
|
-
*/
|
|
57
|
-
function getUnionTypes(type) {
|
|
58
|
-
if (type.kind === ReflectionKind.union && type.types.length > 0) return getUniqueBy(type.types, (member) => member.kind);
|
|
59
|
-
throw new Error(`Expected a TypeUnion, but received ${type.kind}.`);
|
|
60
|
-
}
|
|
61
|
-
function isStringUnion(type) {
|
|
62
|
-
return getUnionTypes(type).some((member) => member.kind === ReflectionKind.string || member.kind === ReflectionKind.literal && isString$1(member.literal));
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Converts a ReflectionKind to its string representation.
|
|
66
|
-
*
|
|
67
|
-
* @param kind - The {@link ReflectionKind} to convert.
|
|
68
|
-
* @returns A string representation of the kind.
|
|
69
|
-
*/
|
|
70
|
-
function kindToName(kind) {
|
|
71
|
-
if (kind === ReflectionKind.void) return "void";
|
|
72
|
-
else if (kind === ReflectionKind.never) return "never";
|
|
73
|
-
else if (kind === ReflectionKind.null) return "null";
|
|
74
|
-
else if (kind === ReflectionKind.undefined) return "undefined";
|
|
75
|
-
else if (kind === ReflectionKind.symbol) return "symbol";
|
|
76
|
-
else if (kind === ReflectionKind.bigint) return "bigint";
|
|
77
|
-
else if (kind === ReflectionKind.number) return "number";
|
|
78
|
-
else if (kind === ReflectionKind.string) return "string";
|
|
79
|
-
else if (kind === ReflectionKind.boolean) return "boolean";
|
|
80
|
-
else if (kind === ReflectionKind.literal) return "literal";
|
|
81
|
-
else if (kind === ReflectionKind.class) return "class";
|
|
82
|
-
else if (kind === ReflectionKind.array) return "array";
|
|
83
|
-
else if (kind === ReflectionKind.object) return "object";
|
|
84
|
-
else if (kind === ReflectionKind.objectLiteral) return "objectLiteral";
|
|
85
|
-
else if (kind === ReflectionKind.union) return "union";
|
|
86
|
-
else if (kind === ReflectionKind.enum) return "enum";
|
|
87
|
-
else if (kind === ReflectionKind.regexp) return "regexp";
|
|
88
|
-
else if (kind === ReflectionKind.templateLiteral) return "templateLiteral";
|
|
89
|
-
else if (kind === ReflectionKind.property) return "property";
|
|
90
|
-
else if (kind === ReflectionKind.method) return "method";
|
|
91
|
-
else if (kind === ReflectionKind.function) return "function";
|
|
92
|
-
else if (kind === ReflectionKind.parameter) return "parameter";
|
|
93
|
-
else if (kind === ReflectionKind.promise) return "promise";
|
|
94
|
-
else if (kind === ReflectionKind.typeParameter) return "typeParameter";
|
|
95
|
-
else if (kind === ReflectionKind.tuple) return "tuple";
|
|
96
|
-
else if (kind === ReflectionKind.tupleMember) return "tupleMember";
|
|
97
|
-
else if (kind === ReflectionKind.enumMember) return "enumMember";
|
|
98
|
-
else if (kind === ReflectionKind.rest) return "rest";
|
|
99
|
-
else if (kind === ReflectionKind.indexSignature) return "indexSignature";
|
|
100
|
-
else if (kind === ReflectionKind.propertySignature) return "propertySignature";
|
|
101
|
-
else if (kind === ReflectionKind.methodSignature) return "methodSignature";
|
|
102
|
-
else if (kind === ReflectionKind.infer) return "infer";
|
|
103
|
-
else if (kind === ReflectionKind.callSignature) return "callSignature";
|
|
104
|
-
else if (kind === ReflectionKind.any) return "any";
|
|
105
|
-
else if (kind === ReflectionKind.intersection) return "intersection";
|
|
106
|
-
return "unknown";
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
//#endregion
|
|
110
|
-
export { getEnumReflectionType, getUnionTypes, isStringUnion, kindToName, stringifyDefaultValue, stringifyStringValue, stringifyValue };
|
|
111
|
-
//# sourceMappingURL=utilities.mjs.map
|
|
3
|
+
export { getEnumReflectionType, getUnionTypes, isStringUnion, kindToName, stringifyDefaultValue, stringifyStringValue, stringifyValue };
|
package/dist/vendor/core.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_string = require('
|
|
2
|
+
const require_string = require('../string-CpVz34Gv.cjs');
|
|
3
3
|
|
|
4
4
|
//#region ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/decorators.js
|
|
5
5
|
const __ΩPropertyDescriptor = [
|
package/dist/vendor/core.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as isClassInstance, A as ensureError, At as zip, B as getCurrentFileName, C as changeClass, Ct as range, D as createStack, Dt as sleep, E as createDynamicClass, Et as size, F as formatError, G as hasProperty, H as getObjectKeysSize, I as forwardTypeArguments, J as inDebugMode, K as humanBytes, L as getClassName, M as first, N as firstKey, O as deletePathValue, Ot as stringifyValueWithType, P as fixAsyncOperation, Q as isClass, R as getClassPropertyName, S as average, St as prettyPrintObject, T as copy, Tt as setPathValue, U as getParentClass, V as getInheritanceChain, W as getPathValue, X as isArray, Y as indexOf, Z as isAsyncFunction, _ as appendObject, _t as last, a as __ΩInjectMeta, at as isNull, b as assertInstanceOf, bt as mergeStack, c as AbstractClassType, ct as isObject, d as CustomError, dt as isPromise, et as isConstructable, f as ExtractClassType, ft as isPrototypeOfBase, g as __ΩExtractClassType, gt as iterableSize, h as __ΩCustomError, ht as isUndefined, i as __ΩInject, it as isIterable, j as escapeRegExp, k as empty, kt as time, l as AsyncFunction, lt as isObjectLiteral, m as __ΩClassType, mt as isString, n as InjectMeta, nt as isGlobalClass, o as __ΩTypeAnnotation, ot as isNumber, p as __ΩAbstractClassType, pt as isSet, q as identifyType, r as TypeAnnotation, rt as isInteger, s as CompilerContext, st as isNumeric, t as Inject, tt as isFunction, u as ClassType, ut as isPlainObject, v as applyDefaults, vt as lastKey, w as collectForMicrotask, wt as rangeArray, x as asyncOperation, xt as prependObjectKeys, y as assertDefined, yt as mergePromiseStack, z as getClassTypeFromInstance } from "
|
|
1
|
+
import { $ as isClassInstance, A as ensureError, At as zip, B as getCurrentFileName, C as changeClass, Ct as range, D as createStack, Dt as sleep, E as createDynamicClass, Et as size, F as formatError, G as hasProperty, H as getObjectKeysSize, I as forwardTypeArguments, J as inDebugMode, K as humanBytes, L as getClassName, M as first, N as firstKey, O as deletePathValue, Ot as stringifyValueWithType, P as fixAsyncOperation, Q as isClass, R as getClassPropertyName, S as average, St as prettyPrintObject, T as copy, Tt as setPathValue, U as getParentClass, V as getInheritanceChain, W as getPathValue, X as isArray, Y as indexOf, Z as isAsyncFunction, _ as appendObject, _t as last, a as __ΩInjectMeta, at as isNull, b as assertInstanceOf, bt as mergeStack, c as AbstractClassType, ct as isObject, d as CustomError, dt as isPromise, et as isConstructable, f as ExtractClassType, ft as isPrototypeOfBase, g as __ΩExtractClassType, gt as iterableSize, h as __ΩCustomError, ht as isUndefined, i as __ΩInject, it as isIterable, j as escapeRegExp, k as empty, kt as time, l as AsyncFunction, lt as isObjectLiteral, m as __ΩClassType, mt as isString, n as InjectMeta, nt as isGlobalClass, o as __ΩTypeAnnotation, ot as isNumber, p as __ΩAbstractClassType, pt as isSet, q as identifyType, r as TypeAnnotation, rt as isInteger, s as CompilerContext, st as isNumeric, t as Inject, tt as isFunction, u as ClassType, ut as isPlainObject, v as applyDefaults, vt as lastKey, w as collectForMicrotask, wt as rangeArray, x as asyncOperation, xt as prependObjectKeys, y as assertDefined, yt as mergePromiseStack, z as getClassTypeFromInstance } from "../types-Bb6lL3KL.cjs";
|
|
2
2
|
|
|
3
3
|
//#region ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/cjs/src/decorators.d.ts
|
|
4
4
|
/**
|
package/dist/vendor/core.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as isClassInstance, A as ensureError, At as zip, B as getCurrentFileName, C as changeClass, Ct as range, D as createStack, Dt as sleep, E as createDynamicClass, Et as size, F as formatError, G as hasProperty, H as getObjectKeysSize, I as forwardTypeArguments, J as inDebugMode, K as humanBytes, L as getClassName, M as first, N as firstKey, O as deletePathValue, Ot as stringifyValueWithType, P as fixAsyncOperation, Q as isClass, R as getClassPropertyName, S as average, St as prettyPrintObject, T as copy, Tt as setPathValue, U as getParentClass, V as getInheritanceChain, W as getPathValue, X as isArray, Y as indexOf, Z as isAsyncFunction, _ as appendObject, _t as last, a as __ΩInjectMeta, at as isNull, b as assertInstanceOf, bt as mergeStack, c as AbstractClassType, ct as isObject, d as CustomError, dt as isPromise, et as isConstructable, f as ExtractClassType, ft as isPrototypeOfBase, g as __ΩExtractClassType, gt as iterableSize, h as __ΩCustomError, ht as isUndefined, i as __ΩInject, it as isIterable, j as escapeRegExp, k as empty, kt as time, l as AsyncFunction, lt as isObjectLiteral, m as __ΩClassType, mt as isString, n as InjectMeta, nt as isGlobalClass, o as __ΩTypeAnnotation, ot as isNumber, p as __ΩAbstractClassType, pt as isSet, q as identifyType, r as TypeAnnotation, rt as isInteger, s as CompilerContext, st as isNumeric, t as Inject, tt as isFunction, u as ClassType, ut as isPlainObject, v as applyDefaults, vt as lastKey, w as collectForMicrotask, wt as rangeArray, x as asyncOperation, xt as prependObjectKeys, y as assertDefined, yt as mergePromiseStack, z as getClassTypeFromInstance } from "
|
|
1
|
+
import { $ as isClassInstance, A as ensureError, At as zip, B as getCurrentFileName, C as changeClass, Ct as range, D as createStack, Dt as sleep, E as createDynamicClass, Et as size, F as formatError, G as hasProperty, H as getObjectKeysSize, I as forwardTypeArguments, J as inDebugMode, K as humanBytes, L as getClassName, M as first, N as firstKey, O as deletePathValue, Ot as stringifyValueWithType, P as fixAsyncOperation, Q as isClass, R as getClassPropertyName, S as average, St as prettyPrintObject, T as copy, Tt as setPathValue, U as getParentClass, V as getInheritanceChain, W as getPathValue, X as isArray, Y as indexOf, Z as isAsyncFunction, _ as appendObject, _t as last, a as __ΩInjectMeta, at as isNull, b as assertInstanceOf, bt as mergeStack, c as AbstractClassType, ct as isObject, d as CustomError, dt as isPromise, et as isConstructable, f as ExtractClassType, ft as isPrototypeOfBase, g as __ΩExtractClassType, gt as iterableSize, h as __ΩCustomError, ht as isUndefined, i as __ΩInject, it as isIterable, j as escapeRegExp, k as empty, kt as time, l as AsyncFunction, lt as isObjectLiteral, m as __ΩClassType, mt as isString, n as InjectMeta, nt as isGlobalClass, o as __ΩTypeAnnotation, ot as isNumber, p as __ΩAbstractClassType, pt as isSet, q as identifyType, r as TypeAnnotation, rt as isInteger, s as CompilerContext, st as isNumeric, t as Inject, tt as isFunction, u as ClassType, ut as isPlainObject, v as applyDefaults, vt as lastKey, w as collectForMicrotask, wt as rangeArray, x as asyncOperation, xt as prependObjectKeys, y as assertDefined, yt as mergePromiseStack, z as getClassTypeFromInstance } from "../types-BO3PJV5p.mjs";
|
|
2
2
|
|
|
3
3
|
//#region ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/cjs/src/decorators.d.ts
|
|
4
4
|
/**
|
package/dist/vendor/core.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as isFunction, A as first, At as eachKey, B as getObjectKeysSize, C as copy, Ct as setPathValue, D as empty, Dt as time, E as deletePathValue, Et as stringifyValueWithType, F as getClassName, G as identifyType, H as getPathValue, I as getClassPropertyName, J as isArray, K as inDebugMode, L as getClassTypeFromInstance, M as fixAsyncOperation, N as formatError, O as ensureError, Ot as zip, P as forwardTypeArguments, Q as isConstructable, R as getCurrentFileName, S as collectForMicrotask, St as rangeArray, T as createStack, Tt as sleep, U as hasProperty, V as getParentClass, W as humanBytes, X as isClass, Y as isAsyncFunction, Z as isClassInstance, _ as assertDefined, _t as mergePromiseStack, a as arrayHasItem, at as isNumeric, b as average, bt as prettyPrintObject, c as toFastProperties, ct as isPlainObject, d as __ΩAbstractClassType, dt as isSet, et as isGlobalClass, f as __ΩClassType, ft as isString, g as applyDefaults, gt as lastKey, h as appendObject, ht as last, i as arrayClear, it as isNumber, j as firstKey, jt as eachPair, k as escapeRegExp, kt as each, l as AsyncFunction, lt as isPromise, m as __ΩExtractClassType, mt as iterableSize, n as indent, nt as isIterable, o as arrayMoveItem, ot as isObject, p as __ΩCustomError, pt as isUndefined, q as indexOf, r as CompilerContext, rt as isNull, s as arrayRemoveItem, st as isObjectLiteral, t as capitalize, tt as isInteger, u as CustomError, ut as isPrototypeOfBase, v as assertInstanceOf, vt as mergeStack, w as createDynamicClass, wt as size, x as changeClass, xt as range, y as asyncOperation, yt as prependObjectKeys, z as getInheritanceChain } from "
|
|
1
|
+
import { $ as isFunction, A as first, At as eachKey, B as getObjectKeysSize, C as copy, Ct as setPathValue, D as empty, Dt as time, E as deletePathValue, Et as stringifyValueWithType, F as getClassName, G as identifyType, H as getPathValue, I as getClassPropertyName, J as isArray, K as inDebugMode, L as getClassTypeFromInstance, M as fixAsyncOperation, N as formatError, O as ensureError, Ot as zip, P as forwardTypeArguments, Q as isConstructable, R as getCurrentFileName, S as collectForMicrotask, St as rangeArray, T as createStack, Tt as sleep, U as hasProperty, V as getParentClass, W as humanBytes, X as isClass, Y as isAsyncFunction, Z as isClassInstance, _ as assertDefined, _t as mergePromiseStack, a as arrayHasItem, at as isNumeric, b as average, bt as prettyPrintObject, c as toFastProperties, ct as isPlainObject, d as __ΩAbstractClassType, dt as isSet, et as isGlobalClass, f as __ΩClassType, ft as isString, g as applyDefaults, gt as lastKey, h as appendObject, ht as last, i as arrayClear, it as isNumber, j as firstKey, jt as eachPair, k as escapeRegExp, kt as each, l as AsyncFunction, lt as isPromise, m as __ΩExtractClassType, mt as iterableSize, n as indent, nt as isIterable, o as arrayMoveItem, ot as isObject, p as __ΩCustomError, pt as isUndefined, q as indexOf, r as CompilerContext, rt as isNull, s as arrayRemoveItem, st as isObjectLiteral, t as capitalize, tt as isInteger, u as CustomError, ut as isPrototypeOfBase, v as assertInstanceOf, vt as mergeStack, w as createDynamicClass, wt as size, x as changeClass, xt as range, y as asyncOperation, yt as prependObjectKeys, z as getInheritanceChain } from "../string-CjkshhTG.mjs";
|
|
2
2
|
|
|
3
3
|
//#region ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/decorators.js
|
|
4
4
|
const __ΩPropertyDescriptor = [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_compiler = require('
|
|
2
|
+
const require_compiler = require('../../compiler-DTp8Jvav.cjs');
|
|
3
3
|
|
|
4
4
|
exports.Cache = require_compiler.Cache;
|
|
5
5
|
exports.DeclarationTransformer = require_compiler.DeclarationTransformer;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as debugPackStruct, c as packSize, i as TagsReflectionStruct, l as packSizeByte, n as DeclarationTransformer, o as declarationTransformer, r as ReflectionTransformer, s as encodeOps, t as Cache, u as transformer } from "
|
|
1
|
+
import { a as debugPackStruct, c as packSize, i as TagsReflectionStruct, l as packSizeByte, n as DeclarationTransformer, o as declarationTransformer, r as ReflectionTransformer, s as encodeOps, t as Cache, u as transformer } from "../../compiler-B-zwyGQf.cjs";
|
|
2
2
|
export { Cache, DeclarationTransformer, ReflectionTransformer, TagsReflectionStruct, debugPackStruct, declarationTransformer, encodeOps, packSize, packSizeByte, transformer };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as debugPackStruct, c as packSize, i as TagsReflectionStruct, l as packSizeByte, n as DeclarationTransformer, o as declarationTransformer, r as ReflectionTransformer, s as encodeOps, t as Cache, u as transformer } from "
|
|
1
|
+
import { a as debugPackStruct, c as packSize, i as TagsReflectionStruct, l as packSizeByte, n as DeclarationTransformer, o as declarationTransformer, r as ReflectionTransformer, s as encodeOps, t as Cache, u as transformer } from "../../compiler-BzOZmhWO.mjs";
|
|
2
2
|
export { Cache, DeclarationTransformer, ReflectionTransformer, TagsReflectionStruct, debugPackStruct, declarationTransformer, encodeOps, packSize, packSizeByte, transformer };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as declarationTransformer, c as packSizeByte, i as debugPackStruct, l as transformer, n as DeclarationTransformer, o as encodeOps, r as ReflectionTransformer, s as packSize, t as Cache } from "
|
|
1
|
+
import { a as declarationTransformer, c as packSizeByte, i as debugPackStruct, l as transformer, n as DeclarationTransformer, o as encodeOps, r as ReflectionTransformer, s as packSize, t as Cache } from "../../compiler-BUUdv7wG.mjs";
|
|
2
2
|
|
|
3
3
|
export { Cache, DeclarationTransformer, ReflectionTransformer, debugPackStruct, declarationTransformer, encodeOps, packSize, packSizeByte, transformer };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_config = require('
|
|
2
|
+
const require_config = require('../../config-GVyELKY1.cjs');
|
|
3
3
|
|
|
4
4
|
exports.defaultExcluded = require_config.defaultExcluded;
|
|
5
5
|
exports.getConfigResolver = require_config.getConfigResolver;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as reflectionModeMatcher, a as Matcher, c as ReflectionConfig, d as TsConfigJson, f as defaultExcluded, g as reflectionLevel, h as parseRawMode, i as MatchResult, l as ReflectionConfigCache, m as isObject, n as CurrentConfig, o as Mode, p as getConfigResolver, r as Level, s as RawMode, t as ConfigResolver, u as ResolvedConfig, v as reflectionModes } from "
|
|
1
|
+
import { _ as reflectionModeMatcher, a as Matcher, c as ReflectionConfig, d as TsConfigJson, f as defaultExcluded, g as reflectionLevel, h as parseRawMode, i as MatchResult, l as ReflectionConfigCache, m as isObject, n as CurrentConfig, o as Mode, p as getConfigResolver, r as Level, s as RawMode, t as ConfigResolver, u as ResolvedConfig, v as reflectionModes } from "../../config-DCmu3CV2.cjs";
|
|
2
2
|
export { ConfigResolver, CurrentConfig, Level, MatchResult, Matcher, Mode, RawMode, ReflectionConfig, ReflectionConfigCache, ResolvedConfig, TsConfigJson, defaultExcluded, getConfigResolver, isObject, parseRawMode, reflectionLevel, reflectionModeMatcher, reflectionModes };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as reflectionModeMatcher, a as Matcher, c as ReflectionConfig, d as TsConfigJson, f as defaultExcluded, g as reflectionLevel, h as parseRawMode, i as MatchResult, l as ReflectionConfigCache, m as isObject, n as CurrentConfig, o as Mode, p as getConfigResolver, r as Level, s as RawMode, t as ConfigResolver, u as ResolvedConfig, v as reflectionModes } from "
|
|
1
|
+
import { _ as reflectionModeMatcher, a as Matcher, c as ReflectionConfig, d as TsConfigJson, f as defaultExcluded, g as reflectionLevel, h as parseRawMode, i as MatchResult, l as ReflectionConfigCache, m as isObject, n as CurrentConfig, o as Mode, p as getConfigResolver, r as Level, s as RawMode, t as ConfigResolver, u as ResolvedConfig, v as reflectionModes } from "../../config-B2hS4_tR.mjs";
|
|
2
2
|
export { ConfigResolver, CurrentConfig, Level, MatchResult, Matcher, Mode, RawMode, ReflectionConfig, ReflectionConfigCache, ResolvedConfig, TsConfigJson, defaultExcluded, getConfigResolver, isObject, parseRawMode, reflectionLevel, reflectionModeMatcher, reflectionModes };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as reflectionLevel, i as parseRawMode, n as getConfigResolver, o as reflectionModeMatcher, r as isObject, s as reflectionModes, t as defaultExcluded } from "
|
|
1
|
+
import { a as reflectionLevel, i as parseRawMode, n as getConfigResolver, o as reflectionModeMatcher, r as isObject, s as reflectionModes, t as defaultExcluded } from "../../config-CuXC21KA.mjs";
|
|
2
2
|
|
|
3
3
|
export { defaultExcluded, getConfigResolver, isObject, parseRawMode, reflectionLevel, reflectionModeMatcher, reflectionModes };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const
|
|
3
|
-
const require_compiler = require('
|
|
2
|
+
const require_chunk = require('../../chunk-BmvPcxpV.cjs');
|
|
3
|
+
const require_compiler = require('../../compiler-DTp8Jvav.cjs');
|
|
4
|
+
const require_config = require('../../config-GVyELKY1.cjs');
|
|
4
5
|
let typescript = require("typescript");
|
|
5
|
-
typescript =
|
|
6
|
+
typescript = require_chunk.__toESM(typescript);
|
|
6
7
|
|
|
7
8
|
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=439aa6e683a9a48c3ebbf3529be5811680c45c22d6a265d_be73b50bc43bac944747b8ca0498113a/node_modules/@deepkit/type-compiler/dist/esm/src/loader.js
|
|
8
9
|
var DeepkitLoader = class {
|
|
@@ -55,7 +56,14 @@ exports.DeepkitLoader = DeepkitLoader;
|
|
|
55
56
|
exports.ReflectionTransformer = require_compiler.ReflectionTransformer;
|
|
56
57
|
exports.debugPackStruct = require_compiler.debugPackStruct;
|
|
57
58
|
exports.declarationTransformer = require_compiler.declarationTransformer;
|
|
59
|
+
exports.defaultExcluded = require_config.defaultExcluded;
|
|
58
60
|
exports.encodeOps = require_compiler.encodeOps;
|
|
61
|
+
exports.getConfigResolver = require_config.getConfigResolver;
|
|
62
|
+
exports.isObject = require_config.isObject;
|
|
59
63
|
exports.packSize = require_compiler.packSize;
|
|
60
64
|
exports.packSizeByte = require_compiler.packSizeByte;
|
|
65
|
+
exports.parseRawMode = require_config.parseRawMode;
|
|
66
|
+
exports.reflectionLevel = require_config.reflectionLevel;
|
|
67
|
+
exports.reflectionModeMatcher = require_config.reflectionModeMatcher;
|
|
68
|
+
exports.reflectionModes = require_config.reflectionModes;
|
|
61
69
|
exports.transformer = require_compiler.transformer;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { _ as reflectionModeMatcher, a as Matcher, c as ReflectionConfig, d as TsConfigJson, f as defaultExcluded, g as reflectionLevel, h as parseRawMode, i as MatchResult, l as ReflectionConfigCache, m as isObject, n as CurrentConfig, o as Mode, p as getConfigResolver, r as Level, s as RawMode, t as ConfigResolver, u as ResolvedConfig, v as reflectionModes } from "../../config-DCmu3CV2.cjs";
|
|
2
|
+
import { a as debugPackStruct, c as packSize, i as TagsReflectionStruct, l as packSizeByte, n as DeclarationTransformer, o as declarationTransformer, r as ReflectionTransformer, s as encodeOps, t as Cache, u as transformer } from "../../compiler-B-zwyGQf.cjs";
|
|
2
3
|
import ts, { CompilerOptions, SourceFile } from "typescript";
|
|
3
4
|
|
|
4
5
|
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=439aa6e683a9a48c3ebbf3529be5811680c45c22d6a265d_be73b50bc43bac944747b8ca0498113a/node_modules/@deepkit/type-compiler/dist/cjs/src/loader.d.ts
|
|
@@ -18,5 +19,5 @@ declare class DeepkitLoader {
|
|
|
18
19
|
transform(source: string, path: string): string;
|
|
19
20
|
}
|
|
20
21
|
//#endregion
|
|
21
|
-
export { Cache, DeclarationTransformer, DeepkitLoader, ReflectionTransformer, TagsReflectionStruct, debugPackStruct, declarationTransformer, encodeOps, packSize, packSizeByte, transformer };
|
|
22
|
+
export { Cache, ConfigResolver, CurrentConfig, DeclarationTransformer, DeepkitLoader, Level, MatchResult, Matcher, Mode, RawMode, ReflectionConfig, ReflectionConfigCache, ReflectionTransformer, ResolvedConfig, TagsReflectionStruct, TsConfigJson, debugPackStruct, declarationTransformer, defaultExcluded, encodeOps, getConfigResolver, isObject, packSize, packSizeByte, parseRawMode, reflectionLevel, reflectionModeMatcher, reflectionModes, transformer };
|
|
22
23
|
//# sourceMappingURL=index.d.cts.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { _ as reflectionModeMatcher, a as Matcher, c as ReflectionConfig, d as TsConfigJson, f as defaultExcluded, g as reflectionLevel, h as parseRawMode, i as MatchResult, l as ReflectionConfigCache, m as isObject, n as CurrentConfig, o as Mode, p as getConfigResolver, r as Level, s as RawMode, t as ConfigResolver, u as ResolvedConfig, v as reflectionModes } from "../../config-B2hS4_tR.mjs";
|
|
2
|
+
import { a as debugPackStruct, c as packSize, i as TagsReflectionStruct, l as packSizeByte, n as DeclarationTransformer, o as declarationTransformer, r as ReflectionTransformer, s as encodeOps, t as Cache, u as transformer } from "../../compiler-BzOZmhWO.mjs";
|
|
2
3
|
import ts, { CompilerOptions, SourceFile } from "typescript";
|
|
3
4
|
|
|
4
5
|
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=439aa6e683a9a48c3ebbf3529be5811680c45c22d6a265d_be73b50bc43bac944747b8ca0498113a/node_modules/@deepkit/type-compiler/dist/cjs/src/loader.d.ts
|
|
@@ -18,5 +19,5 @@ declare class DeepkitLoader {
|
|
|
18
19
|
transform(source: string, path: string): string;
|
|
19
20
|
}
|
|
20
21
|
//#endregion
|
|
21
|
-
export { Cache, DeclarationTransformer, DeepkitLoader, ReflectionTransformer, TagsReflectionStruct, debugPackStruct, declarationTransformer, encodeOps, packSize, packSizeByte, transformer };
|
|
22
|
+
export { Cache, ConfigResolver, CurrentConfig, DeclarationTransformer, DeepkitLoader, Level, MatchResult, Matcher, Mode, RawMode, ReflectionConfig, ReflectionConfigCache, ReflectionTransformer, ResolvedConfig, TagsReflectionStruct, TsConfigJson, debugPackStruct, declarationTransformer, defaultExcluded, encodeOps, getConfigResolver, isObject, packSize, packSizeByte, parseRawMode, reflectionLevel, reflectionModeMatcher, reflectionModes, transformer };
|
|
22
23
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { a as declarationTransformer, c as packSizeByte, i as debugPackStruct, l as transformer, n as DeclarationTransformer, o as encodeOps, r as ReflectionTransformer, s as packSize, t as Cache } from "
|
|
1
|
+
import { a as declarationTransformer, c as packSizeByte, i as debugPackStruct, l as transformer, n as DeclarationTransformer, o as encodeOps, r as ReflectionTransformer, s as packSize, t as Cache } from "../../compiler-BUUdv7wG.mjs";
|
|
2
|
+
import { a as reflectionLevel, i as parseRawMode, n as getConfigResolver, o as reflectionModeMatcher, r as isObject, s as reflectionModes, t as defaultExcluded } from "../../config-CuXC21KA.mjs";
|
|
2
3
|
import ts from "typescript";
|
|
3
4
|
|
|
4
5
|
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=439aa6e683a9a48c3ebbf3529be5811680c45c22d6a265d_be73b50bc43bac944747b8ca0498113a/node_modules/@deepkit/type-compiler/dist/esm/src/loader.js
|
|
@@ -46,5 +47,5 @@ var DeepkitLoader = class {
|
|
|
46
47
|
};
|
|
47
48
|
|
|
48
49
|
//#endregion
|
|
49
|
-
export { Cache, DeclarationTransformer, DeepkitLoader, ReflectionTransformer, debugPackStruct, declarationTransformer, encodeOps, packSize, packSizeByte, transformer };
|
|
50
|
+
export { Cache, DeclarationTransformer, DeepkitLoader, ReflectionTransformer, debugPackStruct, declarationTransformer, defaultExcluded, encodeOps, getConfigResolver, isObject, packSize, packSizeByte, parseRawMode, reflectionLevel, reflectionModeMatcher, reflectionModes, transformer };
|
|
50
51
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ReflectionOp, r as TypeNumberBrand, t as MappedModifier } from "
|
|
1
|
+
import { n as ReflectionOp, r as TypeNumberBrand, t as MappedModifier } from "../type-DR66Hepn.cjs";
|
|
2
2
|
export { MappedModifier, ReflectionOp, TypeNumberBrand };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ReflectionOp, r as TypeNumberBrand, t as MappedModifier } from "
|
|
1
|
+
import { n as ReflectionOp, r as TypeNumberBrand, t as MappedModifier } from "../type-DfwJ6GTs.mjs";
|
|
2
2
|
export { MappedModifier, ReflectionOp, TypeNumberBrand };
|