@powerlines/deepkit 0.6.166 → 0.7.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.
Files changed (137) hide show
  1. package/bin/deepkit-install.cjs +55 -90
  2. package/dist/capnp-BLx1WTBU.cjs +5175 -0
  3. package/dist/capnp-BiGNkOmV.mjs +4905 -0
  4. package/dist/capnp.cjs +47 -186
  5. package/dist/capnp.d.cts +78 -77
  6. package/dist/{capnp.d.ts → capnp.d.mts} +78 -77
  7. package/dist/capnp.mjs +3 -0
  8. package/dist/chunk-C0xms8kb.cjs +34 -0
  9. package/dist/esbuild-plugin.cjs +47 -11
  10. package/dist/esbuild-plugin.d.cts +20 -18
  11. package/dist/esbuild-plugin.d.mts +35 -0
  12. package/dist/esbuild-plugin.mjs +48 -0
  13. package/dist/index.cjs +69 -250
  14. package/dist/index.d.cts +10 -19
  15. package/dist/index.d.mts +10 -0
  16. package/dist/index.mjs +11 -0
  17. package/dist/reflect-type.cjs +24 -12
  18. package/dist/reflect-type.d.cts +7 -5
  19. package/dist/{reflect-type.d.ts → reflect-type.d.mts} +7 -5
  20. package/dist/reflect-type.mjs +24 -0
  21. package/dist/{reflection-9KUpjPqV.d.cts → reflection-BwdnCwaK.d.cts} +11 -17
  22. package/dist/{reflection-9KUpjPqV.d.ts → reflection-D9R8cdSo.d.mts} +26 -32
  23. package/dist/resolve-reflections.cjs +15 -9
  24. package/dist/resolve-reflections.d.cts +4 -2
  25. package/dist/{resolve-reflections.d.ts → resolve-reflections.d.mts} +4 -2
  26. package/dist/resolve-reflections.mjs +16 -0
  27. package/dist/rolldown-plugin.cjs +44 -11
  28. package/dist/rolldown-plugin.d.cts +5 -3
  29. package/dist/{rolldown-plugin.d.ts → rolldown-plugin.d.mts} +5 -3
  30. package/dist/rolldown-plugin.mjs +45 -0
  31. package/dist/transformer.cjs +52 -13
  32. package/dist/transformer.d.cts +6 -4
  33. package/dist/{transformer.d.ts → transformer.d.mts} +6 -4
  34. package/dist/transformer.mjs +51 -0
  35. package/dist/transpile.cjs +29 -10
  36. package/dist/transpile.d.cts +6 -4
  37. package/dist/{transpile.d.ts → transpile.d.mts} +6 -4
  38. package/dist/transpile.mjs +29 -0
  39. package/dist/types.cjs +0 -4
  40. package/dist/types.d.cts +9 -9
  41. package/dist/{types.d.ts → types.d.mts} +9 -9
  42. package/dist/types.mjs +1 -0
  43. package/dist/utilities.cjs +116 -33
  44. package/dist/utilities.d.cts +4 -2
  45. package/dist/{utilities.d.ts → utilities.d.mts} +4 -2
  46. package/dist/utilities.mjs +111 -0
  47. package/dist/vendor/core.cjs +1240 -513
  48. package/dist/vendor/core.mjs +1116 -0
  49. package/dist/vendor/string-BoXo0wS7.cjs +2983 -0
  50. package/dist/vendor/string-BuMgdahD.mjs +2467 -0
  51. package/dist/vendor/type-BMLjRtLY.cjs +202 -0
  52. package/dist/vendor/type-Dgeqs-rL.mjs +190 -0
  53. package/dist/vendor/type-compiler/compiler-BUrWMhGi.cjs +6792 -0
  54. package/dist/vendor/type-compiler/compiler-Bg8jX6qU.mjs +6739 -0
  55. package/dist/vendor/type-compiler/compiler-D1z5h1MK.d.cts +578 -0
  56. package/dist/vendor/type-compiler/compiler-Nkxc4PLJ.d.mts +578 -0
  57. package/dist/vendor/type-compiler/compiler.cjs +11 -43
  58. package/dist/vendor/type-compiler/compiler.d.cts +2 -3
  59. package/dist/vendor/type-compiler/compiler.d.mts +2 -0
  60. package/dist/vendor/type-compiler/compiler.mjs +3 -0
  61. package/dist/vendor/type-compiler/config-BEX924PC.cjs +3709 -0
  62. package/dist/vendor/type-compiler/config-B_cKkYZm.d.cts +116 -0
  63. package/dist/vendor/type-compiler/config-D9DM7Du_.d.mts +116 -0
  64. package/dist/vendor/type-compiler/config-y0HNkbCH.mjs +3640 -0
  65. package/dist/vendor/type-compiler/config.cjs +9 -34
  66. package/dist/vendor/type-compiler/config.d.cts +2 -1
  67. package/dist/vendor/type-compiler/config.d.mts +2 -0
  68. package/dist/vendor/type-compiler/config.mjs +3 -0
  69. package/dist/vendor/type-compiler/index.cjs +56 -129
  70. package/dist/vendor/type-compiler/index.d.cts +22 -3
  71. package/dist/vendor/type-compiler/index.d.mts +22 -0
  72. package/dist/vendor/type-compiler/index.mjs +50 -0
  73. package/dist/vendor/type-spec.cjs +11 -12
  74. package/dist/vendor/type-spec.mjs +3 -0
  75. package/dist/vendor/type.cjs +8407 -17892
  76. package/dist/vendor/type.d.cts +10 -196
  77. package/dist/vendor/{type.d.ts → type.d.mts} +10 -196
  78. package/dist/vendor/type.mjs +9109 -0
  79. package/package.json +43 -31
  80. package/schemas/reflection.cjs +4018 -4129
  81. package/schemas/reflection.d.cts +30 -38
  82. package/schemas/{reflection.d.ts → reflection.d.mts} +30 -38
  83. package/schemas/reflection.mjs +4036 -0
  84. package/dist/capnp.js +0 -2
  85. package/dist/chunk-23YNDVRG.js +0 -34
  86. package/dist/chunk-27RKMKSF.cjs +0 -50
  87. package/dist/chunk-2XDQUCXZ.js +0 -2392
  88. package/dist/chunk-34OFD7LS.cjs +0 -68
  89. package/dist/chunk-7FXYDYVQ.cjs +0 -5246
  90. package/dist/chunk-7QZGCBH7.cjs +0 -11
  91. package/dist/chunk-ALM6UMVU.js +0 -9
  92. package/dist/chunk-BLLXF42T.cjs +0 -41
  93. package/dist/chunk-H3Q3XL3D.js +0 -19
  94. package/dist/chunk-HPVJ6OV3.cjs +0 -31
  95. package/dist/chunk-JQUKKAFM.js +0 -48
  96. package/dist/chunk-KK7TQA7L.cjs +0 -25
  97. package/dist/chunk-NPV2346T.js +0 -25
  98. package/dist/chunk-ORA4UQMU.cjs +0 -2
  99. package/dist/chunk-OUGDFUKJ.cjs +0 -2400
  100. package/dist/chunk-OULCUN6I.js +0 -1
  101. package/dist/chunk-SHUYVCID.js +0 -4
  102. package/dist/chunk-TDYIUJGY.js +0 -5180
  103. package/dist/chunk-USNT2KNT.cjs +0 -6
  104. package/dist/chunk-WYEFKIRL.js +0 -66
  105. package/dist/esbuild-plugin.d.ts +0 -33
  106. package/dist/esbuild-plugin.js +0 -4
  107. package/dist/index.d.ts +0 -19
  108. package/dist/index.js +0 -10
  109. package/dist/reflect-type.js +0 -5
  110. package/dist/resolve-reflections.js +0 -2
  111. package/dist/rolldown-plugin.js +0 -4
  112. package/dist/transformer.js +0 -2
  113. package/dist/transpile.js +0 -3
  114. package/dist/types.js +0 -1
  115. package/dist/utilities.js +0 -2
  116. package/dist/vendor/chunk-5BKT4CS5.js +0 -28
  117. package/dist/vendor/chunk-BLN7QVCP.js +0 -3704
  118. package/dist/vendor/chunk-BR2FK5K7.js +0 -109
  119. package/dist/vendor/chunk-EPQZMVJO.cjs +0 -3859
  120. package/dist/vendor/chunk-IFK6AU6M.cjs +0 -42
  121. package/dist/vendor/chunk-SHDAXCXF.cjs +0 -115
  122. package/dist/vendor/core.js +0 -2
  123. package/dist/vendor/type-compiler/chunk-3LL3TSRJ.js +0 -3762
  124. package/dist/vendor/type-compiler/chunk-CUTGHVNY.js +0 -7100
  125. package/dist/vendor/type-compiler/chunk-IAWCLVUK.cjs +0 -3780
  126. package/dist/vendor/type-compiler/chunk-UIWPG352.cjs +0 -7114
  127. package/dist/vendor/type-compiler/compiler.d.ts +0 -3
  128. package/dist/vendor/type-compiler/compiler.js +0 -5
  129. package/dist/vendor/type-compiler/config.d.ts +0 -1
  130. package/dist/vendor/type-compiler/config.js +0 -5
  131. package/dist/vendor/type-compiler/index.d.ts +0 -3
  132. package/dist/vendor/type-compiler/index.js +0 -66
  133. package/dist/vendor/type-spec.js +0 -2
  134. package/dist/vendor/type.js +0 -18359
  135. package/schemas/reflection.js +0 -4153
  136. /package/dist/vendor/{core.d.ts → core.d.mts} +0 -0
  137. /package/dist/vendor/{type-spec.d.ts → type-spec.d.mts} +0 -0
@@ -1,35 +1,10 @@
1
- 'use strict';
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_config = require('./config-BEX924PC.cjs');
2
3
 
3
- var chunkIAWCLVUK_cjs = require('./chunk-IAWCLVUK.cjs');
4
-
5
- // src/vendor/type-compiler/config.ts
6
- chunkIAWCLVUK_cjs.init_cjs_shims();
7
-
8
- Object.defineProperty(exports, "defaultExcluded", {
9
- enumerable: true,
10
- get: function () { return chunkIAWCLVUK_cjs.defaultExcluded; }
11
- });
12
- Object.defineProperty(exports, "getConfigResolver", {
13
- enumerable: true,
14
- get: function () { return chunkIAWCLVUK_cjs.getConfigResolver; }
15
- });
16
- Object.defineProperty(exports, "isObject", {
17
- enumerable: true,
18
- get: function () { return chunkIAWCLVUK_cjs.isObject; }
19
- });
20
- Object.defineProperty(exports, "parseRawMode", {
21
- enumerable: true,
22
- get: function () { return chunkIAWCLVUK_cjs.parseRawMode; }
23
- });
24
- Object.defineProperty(exports, "reflectionLevel", {
25
- enumerable: true,
26
- get: function () { return chunkIAWCLVUK_cjs.reflectionLevel; }
27
- });
28
- Object.defineProperty(exports, "reflectionModeMatcher", {
29
- enumerable: true,
30
- get: function () { return chunkIAWCLVUK_cjs.reflectionModeMatcher; }
31
- });
32
- Object.defineProperty(exports, "reflectionModes", {
33
- enumerable: true,
34
- get: function () { return chunkIAWCLVUK_cjs.reflectionModes; }
35
- });
4
+ exports.defaultExcluded = require_config.defaultExcluded;
5
+ exports.getConfigResolver = require_config.getConfigResolver;
6
+ exports.isObject = require_config.isObject;
7
+ exports.parseRawMode = require_config.parseRawMode;
8
+ exports.reflectionLevel = require_config.reflectionLevel;
9
+ exports.reflectionModeMatcher = require_config.reflectionModeMatcher;
10
+ exports.reflectionModes = require_config.reflectionModes;
@@ -1 +1,2 @@
1
- export * from '@deepkit/type-compiler/config';
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-B_cKkYZm.cjs";
2
+ export { ConfigResolver, CurrentConfig, Level, MatchResult, Matcher, Mode, RawMode, ReflectionConfig, ReflectionConfigCache, ResolvedConfig, TsConfigJson, defaultExcluded, getConfigResolver, isObject, parseRawMode, reflectionLevel, reflectionModeMatcher, reflectionModes };
@@ -0,0 +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 "./config-D9DM7Du_.mjs";
2
+ export { ConfigResolver, CurrentConfig, Level, MatchResult, Matcher, Mode, RawMode, ReflectionConfig, ReflectionConfigCache, ResolvedConfig, TsConfigJson, defaultExcluded, getConfigResolver, isObject, parseRawMode, reflectionLevel, reflectionModeMatcher, reflectionModes };
@@ -0,0 +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 "./config-y0HNkbCH.mjs";
2
+
3
+ export { defaultExcluded, getConfigResolver, isObject, parseRawMode, reflectionLevel, reflectionModeMatcher, reflectionModes };
@@ -1,134 +1,61 @@
1
- 'use strict';
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_config = require('./config-BEX924PC.cjs');
3
+ const require_compiler = require('./compiler-BUrWMhGi.cjs');
4
+ let typescript = require("typescript");
5
+ typescript = require_config.__toESM(typescript);
2
6
 
3
- var chunkUIWPG352_cjs = require('./chunk-UIWPG352.cjs');
4
- var chunkIAWCLVUK_cjs = require('./chunk-IAWCLVUK.cjs');
5
- var ts = require('typescript');
6
-
7
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
8
-
9
- var ts__default = /*#__PURE__*/_interopDefault(ts);
10
-
11
- // src/vendor/type-compiler/index.ts
12
- chunkIAWCLVUK_cjs.init_cjs_shims();
13
-
14
- // ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=2011488ea7d6bd63266ba61c0f89d16f9db840d58a9ba80_d52c3332bc2b1620fcb98585a3b45708/node_modules/@deepkit/type-compiler/dist/esm/index.js
15
- chunkIAWCLVUK_cjs.init_cjs_shims();
16
-
17
- // ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=2011488ea7d6bd63266ba61c0f89d16f9db840d58a9ba80_d52c3332bc2b1620fcb98585a3b45708/node_modules/@deepkit/type-compiler/dist/esm/src/loader.js
18
- chunkIAWCLVUK_cjs.init_cjs_shims();
7
+ //#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=439aa6e683a9a48c3ebbf3529be5811680c45c22d6a265d_be73b50bc43bac944747b8ca0498113a/node_modules/@deepkit/type-compiler/dist/esm/src/loader.js
19
8
  var DeepkitLoader = class {
20
- static {
21
- chunkIAWCLVUK_cjs.__name(this, "DeepkitLoader");
22
- }
23
- constructor() {
24
- this.options = {
25
- allowJs: true,
26
- declaration: false
27
- };
28
- this.host = ts__default.default.createCompilerHost(this.options);
29
- this.program = ts__default.default.createProgram([], this.options, this.host);
30
- this.printer = ts__default.default.createPrinter({
31
- newLine: ts__default.default.NewLineKind.LineFeed
32
- });
33
- this.cache = new chunkUIWPG352_cjs.Cache();
34
- this.knownFiles = {};
35
- this.sourceFiles = {};
36
- const originReadFile = this.host.readFile;
37
- this.host.readFile = (fileName) => {
38
- if (this.knownFiles[fileName]) return this.knownFiles[fileName];
39
- return originReadFile.call(this.host, fileName);
40
- };
41
- this.host.writeFile = () => {
42
- };
43
- const originalGetSourceFile = this.host.getSourceFile;
44
- this.host.getSourceFile = (fileName, languageVersion, onError, shouldCreateNewSourceFile) => {
45
- if (this.sourceFiles[fileName]) return this.sourceFiles[fileName];
46
- return originalGetSourceFile.call(this.host, fileName, languageVersion, onError, shouldCreateNewSourceFile);
47
- };
48
- }
49
- transform(source, path) {
50
- this.knownFiles[path] = source;
51
- const sourceFile = ts__default.default.createSourceFile(path, source, ts__default.default.ScriptTarget.ESNext, true, path.endsWith(".tsx") ? ts__default.default.ScriptKind.TSX : ts__default.default.ScriptKind.TS);
52
- let newSource = source;
53
- ts__default.default.transform(sourceFile, [
54
- (context) => {
55
- const transformer2 = new chunkUIWPG352_cjs.ReflectionTransformer(context, this.cache).forHost(this.host).withReflection({
56
- reflection: "default",
57
- reflectionLevel: "normal"
58
- });
59
- return (node) => {
60
- const sourceFile2 = transformer2.transformSourceFile(node);
61
- newSource = this.printer.printNode(ts__default.default.EmitHint.SourceFile, sourceFile2, sourceFile2);
62
- return sourceFile2;
63
- };
64
- }
65
- ], this.options);
66
- return newSource;
67
- }
9
+ constructor() {
10
+ this.options = {
11
+ allowJs: true,
12
+ declaration: false
13
+ };
14
+ this.host = typescript.default.createCompilerHost(this.options);
15
+ this.program = typescript.default.createProgram([], this.options, this.host);
16
+ this.printer = typescript.default.createPrinter({ newLine: typescript.default.NewLineKind.LineFeed });
17
+ this.cache = new require_compiler.Cache();
18
+ this.knownFiles = {};
19
+ this.sourceFiles = {};
20
+ const originReadFile = this.host.readFile;
21
+ this.host.readFile = (fileName) => {
22
+ if (this.knownFiles[fileName]) return this.knownFiles[fileName];
23
+ return originReadFile.call(this.host, fileName);
24
+ };
25
+ this.host.writeFile = () => {};
26
+ const originalGetSourceFile = this.host.getSourceFile;
27
+ this.host.getSourceFile = (fileName, languageVersion, onError, shouldCreateNewSourceFile) => {
28
+ if (this.sourceFiles[fileName]) return this.sourceFiles[fileName];
29
+ return originalGetSourceFile.call(this.host, fileName, languageVersion, onError, shouldCreateNewSourceFile);
30
+ };
31
+ }
32
+ transform(source, path) {
33
+ this.knownFiles[path] = source;
34
+ const sourceFile = typescript.default.createSourceFile(path, source, typescript.default.ScriptTarget.ESNext, true, path.endsWith(".tsx") ? typescript.default.ScriptKind.TSX : typescript.default.ScriptKind.TS);
35
+ let newSource = source;
36
+ typescript.default.transform(sourceFile, [(context) => {
37
+ const transformer = new require_compiler.ReflectionTransformer(context, this.cache).forHost(this.host).withReflection({
38
+ reflection: "default",
39
+ reflectionLevel: "normal"
40
+ });
41
+ return (node) => {
42
+ const sourceFile = transformer.transformSourceFile(node);
43
+ newSource = this.printer.printNode(typescript.default.EmitHint.SourceFile, sourceFile, sourceFile);
44
+ return sourceFile;
45
+ };
46
+ }], this.options);
47
+ return newSource;
48
+ }
68
49
  };
69
50
 
70
- Object.defineProperty(exports, "Cache", {
71
- enumerable: true,
72
- get: function () { return chunkUIWPG352_cjs.Cache; }
73
- });
74
- Object.defineProperty(exports, "DeclarationTransformer", {
75
- enumerable: true,
76
- get: function () { return chunkUIWPG352_cjs.DeclarationTransformer; }
77
- });
78
- Object.defineProperty(exports, "ReflectionTransformer", {
79
- enumerable: true,
80
- get: function () { return chunkUIWPG352_cjs.ReflectionTransformer; }
81
- });
82
- Object.defineProperty(exports, "debugPackStruct", {
83
- enumerable: true,
84
- get: function () { return chunkUIWPG352_cjs.debugPackStruct; }
85
- });
86
- Object.defineProperty(exports, "declarationTransformer", {
87
- enumerable: true,
88
- get: function () { return chunkUIWPG352_cjs.declarationTransformer; }
89
- });
90
- Object.defineProperty(exports, "encodeOps", {
91
- enumerable: true,
92
- get: function () { return chunkUIWPG352_cjs.encodeOps; }
93
- });
94
- Object.defineProperty(exports, "packSize", {
95
- enumerable: true,
96
- get: function () { return chunkUIWPG352_cjs.packSize; }
97
- });
98
- Object.defineProperty(exports, "packSizeByte", {
99
- enumerable: true,
100
- get: function () { return chunkUIWPG352_cjs.packSizeByte; }
101
- });
102
- Object.defineProperty(exports, "transformer", {
103
- enumerable: true,
104
- get: function () { return chunkUIWPG352_cjs.transformer; }
105
- });
106
- Object.defineProperty(exports, "defaultExcluded", {
107
- enumerable: true,
108
- get: function () { return chunkIAWCLVUK_cjs.defaultExcluded; }
109
- });
110
- Object.defineProperty(exports, "getConfigResolver", {
111
- enumerable: true,
112
- get: function () { return chunkIAWCLVUK_cjs.getConfigResolver; }
113
- });
114
- Object.defineProperty(exports, "isObject", {
115
- enumerable: true,
116
- get: function () { return chunkIAWCLVUK_cjs.isObject; }
117
- });
118
- Object.defineProperty(exports, "parseRawMode", {
119
- enumerable: true,
120
- get: function () { return chunkIAWCLVUK_cjs.parseRawMode; }
121
- });
122
- Object.defineProperty(exports, "reflectionLevel", {
123
- enumerable: true,
124
- get: function () { return chunkIAWCLVUK_cjs.reflectionLevel; }
125
- });
126
- Object.defineProperty(exports, "reflectionModeMatcher", {
127
- enumerable: true,
128
- get: function () { return chunkIAWCLVUK_cjs.reflectionModeMatcher; }
129
- });
130
- Object.defineProperty(exports, "reflectionModes", {
131
- enumerable: true,
132
- get: function () { return chunkIAWCLVUK_cjs.reflectionModes; }
133
- });
51
+ //#endregion
52
+ exports.Cache = require_compiler.Cache;
53
+ exports.DeclarationTransformer = require_compiler.DeclarationTransformer;
134
54
  exports.DeepkitLoader = DeepkitLoader;
55
+ exports.ReflectionTransformer = require_compiler.ReflectionTransformer;
56
+ exports.debugPackStruct = require_compiler.debugPackStruct;
57
+ exports.declarationTransformer = require_compiler.declarationTransformer;
58
+ exports.encodeOps = require_compiler.encodeOps;
59
+ exports.packSize = require_compiler.packSize;
60
+ exports.packSizeByte = require_compiler.packSizeByte;
61
+ exports.transformer = require_compiler.transformer;
@@ -1,3 +1,22 @@
1
- export * from '@deepkit/type-compiler';
2
- export * from '@deepkit/type-compiler/compiler';
3
- export * from '@deepkit/type-compiler/config';
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-D1z5h1MK.cjs";
2
+ import ts, { CompilerOptions, SourceFile } from "typescript";
3
+
4
+ //#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
5
+ declare class DeepkitLoader {
6
+ protected options: CompilerOptions;
7
+ protected host: ts.CompilerHost;
8
+ protected program: ts.Program;
9
+ protected printer: ts.Printer;
10
+ protected cache: Cache;
11
+ protected knownFiles: {
12
+ [path: string]: string;
13
+ };
14
+ protected sourceFiles: {
15
+ [path: string]: SourceFile;
16
+ };
17
+ constructor();
18
+ transform(source: string, path: string): string;
19
+ }
20
+ //#endregion
21
+ export { Cache, DeclarationTransformer, DeepkitLoader, ReflectionTransformer, TagsReflectionStruct, debugPackStruct, declarationTransformer, encodeOps, packSize, packSizeByte, transformer };
22
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1,22 @@
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-Nkxc4PLJ.mjs";
2
+ import ts, { CompilerOptions, SourceFile } from "typescript";
3
+
4
+ //#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
5
+ declare class DeepkitLoader {
6
+ protected options: CompilerOptions;
7
+ protected host: ts.CompilerHost;
8
+ protected program: ts.Program;
9
+ protected printer: ts.Printer;
10
+ protected cache: Cache;
11
+ protected knownFiles: {
12
+ [path: string]: string;
13
+ };
14
+ protected sourceFiles: {
15
+ [path: string]: SourceFile;
16
+ };
17
+ constructor();
18
+ transform(source: string, path: string): string;
19
+ }
20
+ //#endregion
21
+ export { Cache, DeclarationTransformer, DeepkitLoader, ReflectionTransformer, TagsReflectionStruct, debugPackStruct, declarationTransformer, encodeOps, packSize, packSizeByte, transformer };
22
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1,50 @@
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-Bg8jX6qU.mjs";
2
+ import ts from "typescript";
3
+
4
+ //#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=439aa6e683a9a48c3ebbf3529be5811680c45c22d6a265d_be73b50bc43bac944747b8ca0498113a/node_modules/@deepkit/type-compiler/dist/esm/src/loader.js
5
+ var DeepkitLoader = class {
6
+ constructor() {
7
+ this.options = {
8
+ allowJs: true,
9
+ declaration: false
10
+ };
11
+ this.host = ts.createCompilerHost(this.options);
12
+ this.program = ts.createProgram([], this.options, this.host);
13
+ this.printer = ts.createPrinter({ newLine: ts.NewLineKind.LineFeed });
14
+ this.cache = new Cache();
15
+ this.knownFiles = {};
16
+ this.sourceFiles = {};
17
+ const originReadFile = this.host.readFile;
18
+ this.host.readFile = (fileName) => {
19
+ if (this.knownFiles[fileName]) return this.knownFiles[fileName];
20
+ return originReadFile.call(this.host, fileName);
21
+ };
22
+ this.host.writeFile = () => {};
23
+ const originalGetSourceFile = this.host.getSourceFile;
24
+ this.host.getSourceFile = (fileName, languageVersion, onError, shouldCreateNewSourceFile) => {
25
+ if (this.sourceFiles[fileName]) return this.sourceFiles[fileName];
26
+ return originalGetSourceFile.call(this.host, fileName, languageVersion, onError, shouldCreateNewSourceFile);
27
+ };
28
+ }
29
+ transform(source, path) {
30
+ this.knownFiles[path] = source;
31
+ const sourceFile = ts.createSourceFile(path, source, ts.ScriptTarget.ESNext, true, path.endsWith(".tsx") ? ts.ScriptKind.TSX : ts.ScriptKind.TS);
32
+ let newSource = source;
33
+ ts.transform(sourceFile, [(context) => {
34
+ const transformer = new ReflectionTransformer(context, this.cache).forHost(this.host).withReflection({
35
+ reflection: "default",
36
+ reflectionLevel: "normal"
37
+ });
38
+ return (node) => {
39
+ const sourceFile = transformer.transformSourceFile(node);
40
+ newSource = this.printer.printNode(ts.EmitHint.SourceFile, sourceFile, sourceFile);
41
+ return sourceFile;
42
+ };
43
+ }], this.options);
44
+ return newSource;
45
+ }
46
+ };
47
+
48
+ //#endregion
49
+ export { Cache, DeclarationTransformer, DeepkitLoader, ReflectionTransformer, debugPackStruct, declarationTransformer, encodeOps, packSize, packSizeByte, transformer };
50
+ //# sourceMappingURL=index.mjs.map
@@ -1,16 +1,15 @@
1
- 'use strict';
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_type = require('./type-BMLjRtLY.cjs');
2
3
 
3
- var chunkSHDAXCXF_cjs = require('./chunk-SHDAXCXF.cjs');
4
- var chunkIFK6AU6M_cjs = require('./chunk-IFK6AU6M.cjs');
5
-
6
- // src/vendor/type-spec.ts
7
- chunkIFK6AU6M_cjs.init_cjs_shims();
8
-
9
- Object.defineProperty(exports, "ReflectionOp", {
4
+ Object.defineProperty(exports, 'ReflectionOp', {
10
5
  enumerable: true,
11
- get: function () { return chunkSHDAXCXF_cjs.ReflectionOp; }
6
+ get: function () {
7
+ return require_type.ReflectionOp;
8
+ }
12
9
  });
13
- Object.defineProperty(exports, "TypeNumberBrand", {
10
+ Object.defineProperty(exports, 'TypeNumberBrand', {
14
11
  enumerable: true,
15
- get: function () { return chunkSHDAXCXF_cjs.TypeNumberBrand; }
16
- });
12
+ get: function () {
13
+ return require_type.TypeNumberBrand;
14
+ }
15
+ });
@@ -0,0 +1,3 @@
1
+ import { n as TypeNumberBrand, t as ReflectionOp } from "./type-Dgeqs-rL.mjs";
2
+
3
+ export { ReflectionOp, TypeNumberBrand };