@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,46 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkSA3DCC4M_cjs = require('../../chunk-SA3DCC4M.cjs');
4
- require('../../chunk-YKFG2BZQ.cjs');
5
- require('../../chunk-OYRIJX67.cjs');
6
- var chunkWVKPC33H_cjs = require('../../chunk-WVKPC33H.cjs');
7
-
8
- // src/vendor/type-compiler/compiler.ts
9
- chunkWVKPC33H_cjs.init_cjs_shims();
10
-
11
- Object.defineProperty(exports, "Cache", {
12
- enumerable: true,
13
- get: function () { return chunkSA3DCC4M_cjs.Cache; }
14
- });
15
- Object.defineProperty(exports, "DeclarationTransformer", {
16
- enumerable: true,
17
- get: function () { return chunkSA3DCC4M_cjs.DeclarationTransformer; }
18
- });
19
- Object.defineProperty(exports, "ReflectionTransformer", {
20
- enumerable: true,
21
- get: function () { return chunkSA3DCC4M_cjs.ReflectionTransformer; }
22
- });
23
- Object.defineProperty(exports, "debugPackStruct", {
24
- enumerable: true,
25
- get: function () { return chunkSA3DCC4M_cjs.debugPackStruct; }
26
- });
27
- Object.defineProperty(exports, "declarationTransformer", {
28
- enumerable: true,
29
- get: function () { return chunkSA3DCC4M_cjs.declarationTransformer; }
30
- });
31
- Object.defineProperty(exports, "encodeOps", {
32
- enumerable: true,
33
- get: function () { return chunkSA3DCC4M_cjs.encodeOps; }
34
- });
35
- Object.defineProperty(exports, "packSize", {
36
- enumerable: true,
37
- get: function () { return chunkSA3DCC4M_cjs.packSize; }
38
- });
39
- Object.defineProperty(exports, "packSizeByte", {
40
- enumerable: true,
41
- get: function () { return chunkSA3DCC4M_cjs.packSizeByte; }
42
- });
43
- Object.defineProperty(exports, "transformer", {
44
- enumerable: true,
45
- get: function () { return chunkSA3DCC4M_cjs.transformer; }
46
- });
@@ -1 +0,0 @@
1
- export * from '@deepkit/type-compiler/compiler';
@@ -1 +0,0 @@
1
- export * from '@deepkit/type-compiler/compiler';
@@ -1,7 +0,0 @@
1
- export { Cache, DeclarationTransformer, ReflectionTransformer, debugPackStruct, declarationTransformer, encodeOps, packSize, packSizeByte, transformer } from '../../chunk-2V4ET57D.js';
2
- import '../../chunk-7WAH4JD3.js';
3
- import '../../chunk-6ETLMANX.js';
4
- import { init_esm_shims } from '../../chunk-QQ7GKXIS.js';
5
-
6
- // src/vendor/type-compiler/compiler.ts
7
- init_esm_shims();
@@ -1,36 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkOYRIJX67_cjs = require('../../chunk-OYRIJX67.cjs');
4
- var chunkWVKPC33H_cjs = require('../../chunk-WVKPC33H.cjs');
5
-
6
- // src/vendor/type-compiler/config.ts
7
- chunkWVKPC33H_cjs.init_cjs_shims();
8
-
9
- Object.defineProperty(exports, "defaultExcluded", {
10
- enumerable: true,
11
- get: function () { return chunkOYRIJX67_cjs.defaultExcluded; }
12
- });
13
- Object.defineProperty(exports, "getConfigResolver", {
14
- enumerable: true,
15
- get: function () { return chunkOYRIJX67_cjs.getConfigResolver; }
16
- });
17
- Object.defineProperty(exports, "isObject", {
18
- enumerable: true,
19
- get: function () { return chunkOYRIJX67_cjs.isObject; }
20
- });
21
- Object.defineProperty(exports, "parseRawMode", {
22
- enumerable: true,
23
- get: function () { return chunkOYRIJX67_cjs.parseRawMode; }
24
- });
25
- Object.defineProperty(exports, "reflectionLevel", {
26
- enumerable: true,
27
- get: function () { return chunkOYRIJX67_cjs.reflectionLevel; }
28
- });
29
- Object.defineProperty(exports, "reflectionModeMatcher", {
30
- enumerable: true,
31
- get: function () { return chunkOYRIJX67_cjs.reflectionModeMatcher; }
32
- });
33
- Object.defineProperty(exports, "reflectionModes", {
34
- enumerable: true,
35
- get: function () { return chunkOYRIJX67_cjs.reflectionModes; }
36
- });
@@ -1,6 +0,0 @@
1
- export * from '@deepkit/type-compiler/config';
2
- import '@deepkit/core';
3
- import '@deepkit/type-spec';
4
- import '@deepkit/type';
5
- import '@deepkit/type-compiler/compiler';
6
- import '@deepkit/type-compiler';
@@ -1,6 +0,0 @@
1
- export * from '@deepkit/type-compiler/config';
2
- import '@deepkit/core';
3
- import '@deepkit/type-spec';
4
- import '@deepkit/type';
5
- import '@deepkit/type-compiler/compiler';
6
- import '@deepkit/type-compiler';
@@ -1,5 +0,0 @@
1
- export { defaultExcluded, getConfigResolver, isObject, parseRawMode, reflectionLevel, reflectionModeMatcher, reflectionModes } from '../../chunk-6ETLMANX.js';
2
- import { init_esm_shims } from '../../chunk-QQ7GKXIS.js';
3
-
4
- // src/vendor/type-compiler/config.ts
5
- init_esm_shims();
@@ -1,108 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkSA3DCC4M_cjs = require('../../chunk-SA3DCC4M.cjs');
4
- require('../../chunk-YKFG2BZQ.cjs');
5
- require('../../chunk-OYRIJX67.cjs');
6
- var chunkWVKPC33H_cjs = require('../../chunk-WVKPC33H.cjs');
7
- var ts = require('typescript');
8
-
9
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
10
-
11
- var ts__default = /*#__PURE__*/_interopDefault(ts);
12
-
13
- // src/vendor/type-compiler/index.ts
14
- chunkWVKPC33H_cjs.init_cjs_shims();
15
-
16
- // ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=88e8267ac73f46799c551ae3696181dc1f272895f490f8c_ef8b874d406bec4900e1fddc1ea375be/node_modules/@deepkit/type-compiler/dist/esm/index.js
17
- chunkWVKPC33H_cjs.init_cjs_shims();
18
-
19
- // ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=88e8267ac73f46799c551ae3696181dc1f272895f490f8c_ef8b874d406bec4900e1fddc1ea375be/node_modules/@deepkit/type-compiler/dist/esm/src/loader.js
20
- chunkWVKPC33H_cjs.init_cjs_shims();
21
- var DeepkitLoader = class {
22
- static {
23
- chunkWVKPC33H_cjs.__name(this, "DeepkitLoader");
24
- }
25
- constructor() {
26
- this.options = {
27
- allowJs: true,
28
- declaration: false
29
- };
30
- this.host = ts__default.default.createCompilerHost(this.options);
31
- this.program = ts__default.default.createProgram([], this.options, this.host);
32
- this.printer = ts__default.default.createPrinter({
33
- newLine: ts__default.default.NewLineKind.LineFeed
34
- });
35
- this.cache = new chunkSA3DCC4M_cjs.Cache();
36
- this.knownFiles = {};
37
- this.sourceFiles = {};
38
- const originReadFile = this.host.readFile;
39
- this.host.readFile = (fileName) => {
40
- if (this.knownFiles[fileName]) return this.knownFiles[fileName];
41
- return originReadFile.call(this.host, fileName);
42
- };
43
- this.host.writeFile = () => {
44
- };
45
- const originalGetSourceFile = this.host.getSourceFile;
46
- this.host.getSourceFile = (fileName, languageVersion, onError, shouldCreateNewSourceFile) => {
47
- if (this.sourceFiles[fileName]) return this.sourceFiles[fileName];
48
- return originalGetSourceFile.call(this.host, fileName, languageVersion, onError, shouldCreateNewSourceFile);
49
- };
50
- }
51
- transform(source, path) {
52
- this.knownFiles[path] = source;
53
- 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);
54
- let newSource = source;
55
- ts__default.default.transform(sourceFile, [
56
- (context) => {
57
- const transformer2 = new chunkSA3DCC4M_cjs.ReflectionTransformer(context, this.cache).forHost(this.host).withReflection({
58
- reflection: "default",
59
- reflectionLevel: "normal"
60
- });
61
- return (node) => {
62
- const sourceFile2 = transformer2.transformSourceFile(node);
63
- newSource = this.printer.printNode(ts__default.default.EmitHint.SourceFile, sourceFile2, sourceFile2);
64
- return sourceFile2;
65
- };
66
- }
67
- ], this.options);
68
- return newSource;
69
- }
70
- };
71
-
72
- Object.defineProperty(exports, "Cache", {
73
- enumerable: true,
74
- get: function () { return chunkSA3DCC4M_cjs.Cache; }
75
- });
76
- Object.defineProperty(exports, "DeclarationTransformer", {
77
- enumerable: true,
78
- get: function () { return chunkSA3DCC4M_cjs.DeclarationTransformer; }
79
- });
80
- Object.defineProperty(exports, "ReflectionTransformer", {
81
- enumerable: true,
82
- get: function () { return chunkSA3DCC4M_cjs.ReflectionTransformer; }
83
- });
84
- Object.defineProperty(exports, "debugPackStruct", {
85
- enumerable: true,
86
- get: function () { return chunkSA3DCC4M_cjs.debugPackStruct; }
87
- });
88
- Object.defineProperty(exports, "declarationTransformer", {
89
- enumerable: true,
90
- get: function () { return chunkSA3DCC4M_cjs.declarationTransformer; }
91
- });
92
- Object.defineProperty(exports, "encodeOps", {
93
- enumerable: true,
94
- get: function () { return chunkSA3DCC4M_cjs.encodeOps; }
95
- });
96
- Object.defineProperty(exports, "packSize", {
97
- enumerable: true,
98
- get: function () { return chunkSA3DCC4M_cjs.packSize; }
99
- });
100
- Object.defineProperty(exports, "packSizeByte", {
101
- enumerable: true,
102
- get: function () { return chunkSA3DCC4M_cjs.packSizeByte; }
103
- });
104
- Object.defineProperty(exports, "transformer", {
105
- enumerable: true,
106
- get: function () { return chunkSA3DCC4M_cjs.transformer; }
107
- });
108
- exports.DeepkitLoader = DeepkitLoader;
@@ -1 +0,0 @@
1
- export * from '@deepkit/type-compiler';
@@ -1 +0,0 @@
1
- export * from '@deepkit/type-compiler';
@@ -1,67 +0,0 @@
1
- import { Cache, ReflectionTransformer } from '../../chunk-2V4ET57D.js';
2
- export { Cache, DeclarationTransformer, ReflectionTransformer, debugPackStruct, declarationTransformer, encodeOps, packSize, packSizeByte, transformer } from '../../chunk-2V4ET57D.js';
3
- import '../../chunk-7WAH4JD3.js';
4
- import '../../chunk-6ETLMANX.js';
5
- import { init_esm_shims, __name } from '../../chunk-QQ7GKXIS.js';
6
- import ts from 'typescript';
7
-
8
- // src/vendor/type-compiler/index.ts
9
- init_esm_shims();
10
-
11
- // ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=88e8267ac73f46799c551ae3696181dc1f272895f490f8c_ef8b874d406bec4900e1fddc1ea375be/node_modules/@deepkit/type-compiler/dist/esm/index.js
12
- init_esm_shims();
13
-
14
- // ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=88e8267ac73f46799c551ae3696181dc1f272895f490f8c_ef8b874d406bec4900e1fddc1ea375be/node_modules/@deepkit/type-compiler/dist/esm/src/loader.js
15
- init_esm_shims();
16
- var DeepkitLoader = class {
17
- static {
18
- __name(this, "DeepkitLoader");
19
- }
20
- constructor() {
21
- this.options = {
22
- allowJs: true,
23
- declaration: false
24
- };
25
- this.host = ts.createCompilerHost(this.options);
26
- this.program = ts.createProgram([], this.options, this.host);
27
- this.printer = ts.createPrinter({
28
- newLine: ts.NewLineKind.LineFeed
29
- });
30
- this.cache = new Cache();
31
- this.knownFiles = {};
32
- this.sourceFiles = {};
33
- const originReadFile = this.host.readFile;
34
- this.host.readFile = (fileName) => {
35
- if (this.knownFiles[fileName]) return this.knownFiles[fileName];
36
- return originReadFile.call(this.host, fileName);
37
- };
38
- this.host.writeFile = () => {
39
- };
40
- const originalGetSourceFile = this.host.getSourceFile;
41
- this.host.getSourceFile = (fileName, languageVersion, onError, shouldCreateNewSourceFile) => {
42
- if (this.sourceFiles[fileName]) return this.sourceFiles[fileName];
43
- return originalGetSourceFile.call(this.host, fileName, languageVersion, onError, shouldCreateNewSourceFile);
44
- };
45
- }
46
- transform(source, path) {
47
- this.knownFiles[path] = source;
48
- const sourceFile = ts.createSourceFile(path, source, ts.ScriptTarget.ESNext, true, path.endsWith(".tsx") ? ts.ScriptKind.TSX : ts.ScriptKind.TS);
49
- let newSource = source;
50
- ts.transform(sourceFile, [
51
- (context) => {
52
- const transformer2 = new ReflectionTransformer(context, this.cache).forHost(this.host).withReflection({
53
- reflection: "default",
54
- reflectionLevel: "normal"
55
- });
56
- return (node) => {
57
- const sourceFile2 = transformer2.transformSourceFile(node);
58
- newSource = this.printer.printNode(ts.EmitHint.SourceFile, sourceFile2, sourceFile2);
59
- return sourceFile2;
60
- };
61
- }
62
- ], this.options);
63
- return newSource;
64
- }
65
- };
66
-
67
- export { DeepkitLoader };