@powerlines/deepkit 0.5.0 → 0.5.2

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.
Files changed (92) hide show
  1. package/dist/capnp.cjs +48 -47
  2. package/dist/capnp.js +3 -2
  3. package/dist/{chunk-TVDEXHJN.js → chunk-2ODODKQQ.js} +8 -9
  4. package/dist/{chunk-KYFUOGZ6.cjs → chunk-6QPIKQMO.cjs} +9 -10
  5. package/dist/chunk-7J3ZDT6O.cjs +30 -0
  6. package/dist/chunk-C7BRLIIA.js +187 -0
  7. package/dist/{chunk-55HOZO7D.cjs → chunk-EKHXI2JI.cjs} +5 -7
  8. package/dist/chunk-GRNJVY7I.cjs +19 -0
  9. package/dist/{chunk-DGXATHAN.js → chunk-I5CVIT7W.js} +41 -46
  10. package/dist/chunk-IRPJW6HH.js +16 -0
  11. package/dist/{chunk-SKYW5GV2.cjs → chunk-J2FVIV7W.cjs} +127 -132
  12. package/dist/chunk-J4SVRFV4.js +127 -0
  13. package/dist/{chunk-BTXPY3B4.js → chunk-LPLPOVLC.js} +2 -4
  14. package/dist/{chunk-FEBG7WWO.js → chunk-MEMIQ5AA.js} +1 -3
  15. package/dist/{chunk-U4JSDAXK.js → chunk-MNUBEEIW.js} +12 -7
  16. package/dist/chunk-ORA4UQMU.cjs +2 -0
  17. package/dist/chunk-OULCUN6I.js +1 -0
  18. package/dist/chunk-QABG54Y3.cjs +193 -0
  19. package/dist/chunk-QLKLDV3V.cjs +135 -0
  20. package/dist/{chunk-JHEBLHYK.cjs → chunk-VMRRVNO2.cjs} +2 -4
  21. package/dist/chunk-VXZTOOL6.cjs +69 -0
  22. package/dist/chunk-XGQQM64U.js +8 -0
  23. package/dist/esbuild-plugin.cjs +5 -5
  24. package/dist/esbuild-plugin.d.cts +3 -2
  25. package/dist/esbuild-plugin.d.ts +3 -2
  26. package/dist/esbuild-plugin.js +4 -4
  27. package/dist/index.cjs +69 -69
  28. package/dist/index.js +10 -12
  29. package/dist/reflect-type.cjs +7 -6
  30. package/dist/reflect-type.js +6 -5
  31. package/dist/resolve-reflections.cjs +3 -3
  32. package/dist/resolve-reflections.js +2 -2
  33. package/dist/transformer.cjs +4 -4
  34. package/dist/transformer.js +2 -2
  35. package/dist/transpile.cjs +4 -4
  36. package/dist/transpile.js +3 -3
  37. package/dist/types.cjs +1 -2
  38. package/dist/types.js +1 -2
  39. package/dist/utilities.cjs +10 -9
  40. package/dist/utilities.js +3 -2
  41. package/dist/vendor/chunk-IOMA7ABE.js +359 -0
  42. package/dist/vendor/chunk-K5KCTNDL.cjs +2678 -0
  43. package/dist/vendor/chunk-L3KIZV6P.js +2664 -0
  44. package/dist/vendor/chunk-M3FJ3QXG.cjs +377 -0
  45. package/dist/vendor/compiler.cjs +12 -13
  46. package/dist/vendor/compiler.js +2 -5
  47. package/dist/vendor/config.cjs +9 -10
  48. package/dist/vendor/config.js +1 -5
  49. package/dist/vendor/core.cjs +130 -130
  50. package/dist/vendor/core.js +2 -5
  51. package/dist/vendor/index.cjs +42 -22
  52. package/dist/vendor/index.d.cts +2 -0
  53. package/dist/vendor/index.d.ts +2 -0
  54. package/dist/vendor/index.js +4 -11
  55. package/dist/vendor/type-spec.cjs +5 -5
  56. package/dist/vendor/type-spec.js +2 -5
  57. package/dist/vendor/type.cjs +2269 -691
  58. package/dist/vendor/type.js +1607 -92
  59. package/package.json +5 -5
  60. package/dist/chunk-2V4ET57D.js +0 -6954
  61. package/dist/chunk-4WJJKR53.js +0 -3731
  62. package/dist/chunk-6ETLMANX.js +0 -3472
  63. package/dist/chunk-6IQVU53O.cjs +0 -24
  64. package/dist/chunk-6OXPIOZY.cjs +0 -43
  65. package/dist/chunk-7WAH4JD3.js +0 -115
  66. package/dist/chunk-B4PTD5KQ.js +0 -4
  67. package/dist/chunk-ITQKPDCW.cjs +0 -3859
  68. package/dist/chunk-LBHO5BRF.js +0 -2251
  69. package/dist/chunk-OYRIJX67.cjs +0 -3487
  70. package/dist/chunk-PANPZ6S6.cjs +0 -6
  71. package/dist/chunk-QPSZUUB6.cjs +0 -2259
  72. package/dist/chunk-QQ7GKXIS.js +0 -43
  73. package/dist/chunk-SA3DCC4M.cjs +0 -6968
  74. package/dist/chunk-WVKPC33H.cjs +0 -49
  75. package/dist/chunk-YKFG2BZQ.cjs +0 -115
  76. package/dist/chunk-YUO4MCOI.js +0 -18
  77. package/dist/vendor/chunk-MCNMRQDT.js +0 -3513
  78. package/dist/vendor/chunk-RH4YMONA.js +0 -7064
  79. package/dist/vendor/chunk-RZKB5IQZ.cjs +0 -3531
  80. package/dist/vendor/chunk-WOXMCJJU.cjs +0 -7078
  81. package/dist/vendor/type-compiler/compiler.cjs +0 -46
  82. package/dist/vendor/type-compiler/compiler.d.cts +0 -1
  83. package/dist/vendor/type-compiler/compiler.d.ts +0 -1
  84. package/dist/vendor/type-compiler/compiler.js +0 -7
  85. package/dist/vendor/type-compiler/config.cjs +0 -36
  86. package/dist/vendor/type-compiler/config.d.cts +0 -6
  87. package/dist/vendor/type-compiler/config.d.ts +0 -6
  88. package/dist/vendor/type-compiler/config.js +0 -5
  89. package/dist/vendor/type-compiler/index.cjs +0 -108
  90. package/dist/vendor/type-compiler/index.d.cts +0 -1
  91. package/dist/vendor/type-compiler/index.d.ts +0 -1
  92. package/dist/vendor/type-compiler/index.js +0 -67
@@ -1,49 +0,0 @@
1
- 'use strict';
2
-
3
- var __create = Object.create;
4
- var __defProp = Object.defineProperty;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf;
8
- var __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
10
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
11
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
12
- }) : x)(function(x) {
13
- if (typeof require !== "undefined") return require.apply(this, arguments);
14
- throw Error('Dynamic require of "' + x + '" is not supported');
15
- });
16
- var __esm = (fn, res) => function __init() {
17
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
18
- };
19
- var __commonJS = (cb, mod) => function __require2() {
20
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
21
- };
22
- var __copyProps = (to, from, except, desc) => {
23
- if (from && typeof from === "object" || typeof from === "function") {
24
- for (let key of __getOwnPropNames(from))
25
- if (!__hasOwnProp.call(to, key) && key !== except)
26
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
27
- }
28
- return to;
29
- };
30
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
31
- // If the importer is in node compatibility mode or this is not an ESM
32
- // file that has been converted to a CommonJS file using a Babel-
33
- // compatible transform (i.e. "__esModule" has not been set), then set
34
- // "default" to the CommonJS "module.exports" for node compatibility.
35
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
36
- mod
37
- ));
38
-
39
- // ../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.55.2_@types+node@24.10.4__@swc+core@1.15.7_@swc+h_f8da27b0440c7f48fd09d237580fc3c9/node_modules/tsup/assets/cjs_shims.js
40
- var init_cjs_shims = __esm({
41
- "../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.55.2_@types+node@24.10.4__@swc+core@1.15.7_@swc+h_f8da27b0440c7f48fd09d237580fc3c9/node_modules/tsup/assets/cjs_shims.js"() {
42
- }
43
- });
44
-
45
- exports.__commonJS = __commonJS;
46
- exports.__name = __name;
47
- exports.__require = __require;
48
- exports.__toESM = __toESM;
49
- exports.init_cjs_shims = init_cjs_shims;
@@ -1,115 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkWVKPC33H_cjs = require('./chunk-WVKPC33H.cjs');
4
-
5
- // ../../node_modules/.pnpm/@deepkit+type-spec@1.0.1_patch_hash=f3c3a4fd486751022d78f17d39a5a79f493bca20b185964ca1aba41fbfc93244/node_modules/@deepkit/type-spec/dist/esm/src/type.js
6
- chunkWVKPC33H_cjs.init_cjs_shims();
7
- exports.TypeNumberBrand = void 0;
8
- (function(TypeNumberBrand2) {
9
- TypeNumberBrand2[TypeNumberBrand2["integer"] = 0] = "integer";
10
- TypeNumberBrand2[TypeNumberBrand2["int8"] = 1] = "int8";
11
- TypeNumberBrand2[TypeNumberBrand2["int16"] = 2] = "int16";
12
- TypeNumberBrand2[TypeNumberBrand2["int32"] = 3] = "int32";
13
- TypeNumberBrand2[TypeNumberBrand2["uint8"] = 4] = "uint8";
14
- TypeNumberBrand2[TypeNumberBrand2["uint16"] = 5] = "uint16";
15
- TypeNumberBrand2[TypeNumberBrand2["uint32"] = 6] = "uint32";
16
- TypeNumberBrand2[TypeNumberBrand2["float"] = 7] = "float";
17
- TypeNumberBrand2[TypeNumberBrand2["float32"] = 8] = "float32";
18
- TypeNumberBrand2[TypeNumberBrand2["float64"] = 9] = "float64";
19
- })(exports.TypeNumberBrand || (exports.TypeNumberBrand = {}));
20
- exports.ReflectionOp = void 0;
21
- (function(ReflectionOp2) {
22
- ReflectionOp2[ReflectionOp2["never"] = 0] = "never";
23
- ReflectionOp2[ReflectionOp2["any"] = 1] = "any";
24
- ReflectionOp2[ReflectionOp2["unknown"] = 2] = "unknown";
25
- ReflectionOp2[ReflectionOp2["void"] = 3] = "void";
26
- ReflectionOp2[ReflectionOp2["object"] = 4] = "object";
27
- ReflectionOp2[ReflectionOp2["string"] = 5] = "string";
28
- ReflectionOp2[ReflectionOp2["number"] = 6] = "number";
29
- ReflectionOp2[ReflectionOp2["numberBrand"] = 7] = "numberBrand";
30
- ReflectionOp2[ReflectionOp2["boolean"] = 8] = "boolean";
31
- ReflectionOp2[ReflectionOp2["bigint"] = 9] = "bigint";
32
- ReflectionOp2[ReflectionOp2["symbol"] = 10] = "symbol";
33
- ReflectionOp2[ReflectionOp2["null"] = 11] = "null";
34
- ReflectionOp2[ReflectionOp2["undefined"] = 12] = "undefined";
35
- ReflectionOp2[ReflectionOp2["literal"] = 13] = "literal";
36
- ReflectionOp2[ReflectionOp2["function"] = 14] = "function";
37
- ReflectionOp2[ReflectionOp2["method"] = 15] = "method";
38
- ReflectionOp2[ReflectionOp2["methodSignature"] = 16] = "methodSignature";
39
- ReflectionOp2[ReflectionOp2["parameter"] = 17] = "parameter";
40
- ReflectionOp2[ReflectionOp2["property"] = 18] = "property";
41
- ReflectionOp2[ReflectionOp2["propertySignature"] = 19] = "propertySignature";
42
- ReflectionOp2[ReflectionOp2["class"] = 20] = "class";
43
- ReflectionOp2[ReflectionOp2["classExtends"] = 21] = "classExtends";
44
- ReflectionOp2[ReflectionOp2["classReference"] = 22] = "classReference";
45
- ReflectionOp2[ReflectionOp2["optional"] = 23] = "optional";
46
- ReflectionOp2[ReflectionOp2["readonly"] = 24] = "readonly";
47
- ReflectionOp2[ReflectionOp2["public"] = 25] = "public";
48
- ReflectionOp2[ReflectionOp2["private"] = 26] = "private";
49
- ReflectionOp2[ReflectionOp2["protected"] = 27] = "protected";
50
- ReflectionOp2[ReflectionOp2["abstract"] = 28] = "abstract";
51
- ReflectionOp2[ReflectionOp2["defaultValue"] = 29] = "defaultValue";
52
- ReflectionOp2[ReflectionOp2["description"] = 30] = "description";
53
- ReflectionOp2[ReflectionOp2["rest"] = 31] = "rest";
54
- ReflectionOp2[ReflectionOp2["regexp"] = 32] = "regexp";
55
- ReflectionOp2[ReflectionOp2["enum"] = 33] = "enum";
56
- ReflectionOp2[ReflectionOp2["enumMember"] = 34] = "enumMember";
57
- ReflectionOp2[ReflectionOp2["set"] = 35] = "set";
58
- ReflectionOp2[ReflectionOp2["map"] = 36] = "map";
59
- ReflectionOp2[ReflectionOp2["array"] = 37] = "array";
60
- ReflectionOp2[ReflectionOp2["tuple"] = 38] = "tuple";
61
- ReflectionOp2[ReflectionOp2["tupleMember"] = 39] = "tupleMember";
62
- ReflectionOp2[ReflectionOp2["namedTupleMember"] = 40] = "namedTupleMember";
63
- ReflectionOp2[ReflectionOp2["union"] = 41] = "union";
64
- ReflectionOp2[ReflectionOp2["intersection"] = 42] = "intersection";
65
- ReflectionOp2[ReflectionOp2["indexSignature"] = 43] = "indexSignature";
66
- ReflectionOp2[ReflectionOp2["objectLiteral"] = 44] = "objectLiteral";
67
- ReflectionOp2[ReflectionOp2["mappedType"] = 45] = "mappedType";
68
- ReflectionOp2[ReflectionOp2["in"] = 46] = "in";
69
- ReflectionOp2[ReflectionOp2["frame"] = 47] = "frame";
70
- ReflectionOp2[ReflectionOp2["moveFrame"] = 48] = "moveFrame";
71
- ReflectionOp2[ReflectionOp2["return"] = 49] = "return";
72
- ReflectionOp2[ReflectionOp2["templateLiteral"] = 50] = "templateLiteral";
73
- ReflectionOp2[ReflectionOp2["date"] = 51] = "date";
74
- ReflectionOp2[ReflectionOp2["int8Array"] = 52] = "int8Array";
75
- ReflectionOp2[ReflectionOp2["uint8ClampedArray"] = 53] = "uint8ClampedArray";
76
- ReflectionOp2[ReflectionOp2["uint8Array"] = 54] = "uint8Array";
77
- ReflectionOp2[ReflectionOp2["int16Array"] = 55] = "int16Array";
78
- ReflectionOp2[ReflectionOp2["uint16Array"] = 56] = "uint16Array";
79
- ReflectionOp2[ReflectionOp2["int32Array"] = 57] = "int32Array";
80
- ReflectionOp2[ReflectionOp2["uint32Array"] = 58] = "uint32Array";
81
- ReflectionOp2[ReflectionOp2["float32Array"] = 59] = "float32Array";
82
- ReflectionOp2[ReflectionOp2["float64Array"] = 60] = "float64Array";
83
- ReflectionOp2[ReflectionOp2["bigInt64Array"] = 61] = "bigInt64Array";
84
- ReflectionOp2[ReflectionOp2["arrayBuffer"] = 62] = "arrayBuffer";
85
- ReflectionOp2[ReflectionOp2["promise"] = 63] = "promise";
86
- ReflectionOp2[ReflectionOp2["arg"] = 64] = "arg";
87
- ReflectionOp2[ReflectionOp2["typeParameter"] = 65] = "typeParameter";
88
- ReflectionOp2[ReflectionOp2["typeParameterDefault"] = 66] = "typeParameterDefault";
89
- ReflectionOp2[ReflectionOp2["var"] = 67] = "var";
90
- ReflectionOp2[ReflectionOp2["loads"] = 68] = "loads";
91
- ReflectionOp2[ReflectionOp2["indexAccess"] = 69] = "indexAccess";
92
- ReflectionOp2[ReflectionOp2["keyof"] = 70] = "keyof";
93
- ReflectionOp2[ReflectionOp2["infer"] = 71] = "infer";
94
- ReflectionOp2[ReflectionOp2["typeof"] = 72] = "typeof";
95
- ReflectionOp2[ReflectionOp2["condition"] = 73] = "condition";
96
- ReflectionOp2[ReflectionOp2["jumpCondition"] = 74] = "jumpCondition";
97
- ReflectionOp2[ReflectionOp2["jump"] = 75] = "jump";
98
- ReflectionOp2[ReflectionOp2["call"] = 76] = "call";
99
- ReflectionOp2[ReflectionOp2["inline"] = 77] = "inline";
100
- ReflectionOp2[ReflectionOp2["inlineCall"] = 78] = "inlineCall";
101
- ReflectionOp2[ReflectionOp2["distribute"] = 79] = "distribute";
102
- ReflectionOp2[ReflectionOp2["extends"] = 80] = "extends";
103
- ReflectionOp2[ReflectionOp2["widen"] = 81] = "widen";
104
- ReflectionOp2[ReflectionOp2["static"] = 82] = "static";
105
- ReflectionOp2[ReflectionOp2["mappedType2"] = 83] = "mappedType2";
106
- ReflectionOp2[ReflectionOp2["functionReference"] = 84] = "functionReference";
107
- ReflectionOp2[ReflectionOp2["callSignature"] = 85] = "callSignature";
108
- ReflectionOp2[ReflectionOp2["typeName"] = 86] = "typeName";
109
- ReflectionOp2[ReflectionOp2["implements"] = 87] = "implements";
110
- ReflectionOp2[ReflectionOp2["nominal"] = 88] = "nominal";
111
- ReflectionOp2[ReflectionOp2["tags"] = 89] = "tags";
112
- })(exports.ReflectionOp || (exports.ReflectionOp = {}));
113
-
114
- // ../../node_modules/.pnpm/@deepkit+type-spec@1.0.1_patch_hash=f3c3a4fd486751022d78f17d39a5a79f493bca20b185964ca1aba41fbfc93244/node_modules/@deepkit/type-spec/dist/esm/index.js
115
- chunkWVKPC33H_cjs.init_cjs_shims();
@@ -1,18 +0,0 @@
1
- import { esbuildPlugin } from './chunk-TVDEXHJN.js';
2
- import { init_esm_shims, __name } from './chunk-QQ7GKXIS.js';
3
- import { reflect } from '@powerlines/deepkit/vendor/type';
4
- import defu from 'defu';
5
- import { resolve } from 'powerlines/lib/utilities/resolve';
6
-
7
- // src/reflect-type.ts
8
- init_esm_shims();
9
- async function reflectType(context, type, overrides = {}) {
10
- return reflect(await resolve(context, type, defu(overrides, {
11
- plugins: [
12
- esbuildPlugin(context)
13
- ]
14
- })));
15
- }
16
- __name(reflectType, "reflectType");
17
-
18
- export { reflectType };