@powerlines/deepkit 0.4.89 → 0.4.90

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 (117) hide show
  1. package/dist/capnp.cjs +187 -0
  2. package/dist/capnp.d.cts +169 -0
  3. package/dist/capnp.d.ts +169 -0
  4. package/dist/capnp.js +2 -0
  5. package/dist/chunk-2V4ET57D.js +6954 -0
  6. package/dist/chunk-4WJJKR53.js +3731 -0
  7. package/dist/chunk-55HOZO7D.cjs +33 -0
  8. package/dist/chunk-6ETLMANX.js +3472 -0
  9. package/dist/chunk-6OXPIOZY.cjs +43 -0
  10. package/dist/chunk-7WAH4JD3.js +115 -0
  11. package/dist/chunk-B4PTD5KQ.js +4 -0
  12. package/dist/chunk-BTXPY3B4.js +27 -0
  13. package/dist/chunk-DGXATHAN.js +5185 -0
  14. package/dist/chunk-FEBG7WWO.js +11 -0
  15. package/dist/chunk-FX2P4HL7.cjs +14 -0
  16. package/dist/chunk-ITQKPDCW.cjs +3859 -0
  17. package/dist/chunk-JHEBLHYK.cjs +13 -0
  18. package/dist/chunk-LBHO5BRF.js +2251 -0
  19. package/dist/chunk-MERFAWZE.js +12 -0
  20. package/dist/chunk-OYRIJX67.cjs +3487 -0
  21. package/dist/chunk-PANPZ6S6.cjs +6 -0
  22. package/dist/chunk-QPSZUUB6.cjs +2259 -0
  23. package/dist/chunk-QQ7GKXIS.js +43 -0
  24. package/dist/chunk-SA3DCC4M.cjs +6968 -0
  25. package/dist/chunk-SKYW5GV2.cjs +5251 -0
  26. package/dist/chunk-U4JSDAXK.js +36 -0
  27. package/dist/chunk-WVKPC33H.cjs +49 -0
  28. package/dist/{vendor/chunk-KC74I2LN.cjs → chunk-YKFG2BZQ.cjs} +3 -5
  29. package/dist/index.cjs +242 -0
  30. package/dist/index.d.cts +15 -0
  31. package/dist/index.d.ts +15 -0
  32. package/dist/index.js +11 -0
  33. package/dist/reflect-type.cjs +11 -0
  34. package/dist/reflect-type.d.cts +16 -0
  35. package/dist/reflect-type.d.ts +16 -0
  36. package/dist/reflect-type.js +2 -0
  37. package/dist/reflection-DTM1oT21.d.cts +1559 -0
  38. package/dist/reflection-DTM1oT21.d.ts +1559 -0
  39. package/dist/resolve-reflections.cjs +11 -0
  40. package/dist/resolve-reflections.d.cts +11 -0
  41. package/dist/resolve-reflections.d.ts +11 -0
  42. package/dist/resolve-reflections.js +2 -0
  43. package/dist/transformer.cjs +15 -0
  44. package/dist/transformer.d.cts +22 -0
  45. package/dist/transformer.d.ts +22 -0
  46. package/dist/transformer.js +2 -0
  47. package/dist/transpile.cjs +12 -0
  48. package/dist/transpile.d.cts +14 -0
  49. package/dist/transpile.d.ts +14 -0
  50. package/dist/transpile.js +3 -0
  51. package/dist/types.cjs +5 -0
  52. package/dist/types.d.cts +16 -0
  53. package/dist/types.d.ts +16 -0
  54. package/dist/types.js +2 -0
  55. package/dist/utilities.cjs +35 -0
  56. package/dist/utilities.d.cts +49 -0
  57. package/dist/utilities.d.ts +49 -0
  58. package/dist/utilities.js +2 -0
  59. package/dist/vendor/{chunk-6PEHRAEP.js → chunk-5BKT4CS5.js} +0 -2
  60. package/dist/vendor/{chunk-W6QNYN5U.cjs → chunk-BDXVTHBY.cjs} +176 -178
  61. package/dist/vendor/{chunk-AXYJRGEC.js → chunk-BLN7QVCP.js} +1 -3
  62. package/dist/vendor/{chunk-ORGCWC7F.js → chunk-BR2FK5K7.js} +0 -2
  63. package/dist/vendor/chunk-EQXMWOHO.cjs +115 -0
  64. package/dist/vendor/{chunk-6ARUMLA5.js → chunk-MCNMRQDT.js} +0 -2
  65. package/dist/vendor/{chunk-3QJYIKMR.cjs → chunk-MO4O4UYI.cjs} +0 -2
  66. package/dist/vendor/{chunk-M6ZTTT3A.js → chunk-RH4YMONA.js} +1 -3
  67. package/dist/vendor/{chunk-VUVWVXGY.cjs → chunk-RZKB5IQZ.cjs} +0 -2
  68. package/dist/vendor/{chunk-WZXSRPYO.cjs → chunk-WOXMCJJU.cjs} +505 -507
  69. package/dist/vendor/compiler.cjs +12 -14
  70. package/dist/vendor/compiler.js +2 -4
  71. package/dist/vendor/config.cjs +9 -11
  72. package/dist/vendor/config.js +2 -4
  73. package/dist/vendor/core.cjs +130 -132
  74. package/dist/vendor/core.d.cts +0 -2
  75. package/dist/vendor/core.d.ts +0 -2
  76. package/dist/vendor/core.js +5 -4
  77. package/dist/vendor/index.cjs +17 -19
  78. package/dist/vendor/index.js +3 -5
  79. package/dist/vendor/type-compiler/compiler.cjs +46 -0
  80. package/dist/vendor/type-compiler/compiler.d.cts +1 -0
  81. package/dist/vendor/type-compiler/compiler.d.ts +1 -0
  82. package/dist/vendor/type-compiler/compiler.js +7 -0
  83. package/dist/vendor/type-compiler/config.cjs +36 -0
  84. package/dist/vendor/type-compiler/config.d.cts +6 -0
  85. package/dist/vendor/type-compiler/config.d.ts +6 -0
  86. package/dist/vendor/type-compiler/config.js +5 -0
  87. package/dist/vendor/type-compiler/index.cjs +108 -0
  88. package/dist/vendor/type-compiler/index.d.cts +1 -0
  89. package/dist/vendor/type-compiler/index.d.ts +1 -0
  90. package/dist/vendor/type-compiler/index.js +67 -0
  91. package/dist/vendor/type-spec.cjs +5 -7
  92. package/dist/vendor/type-spec.js +5 -4
  93. package/dist/vendor/type.cjs +691 -2271
  94. package/dist/vendor/type.js +92 -1609
  95. package/package.json +4 -4
  96. package/dist/vendor/chunk-3QJYIKMR.cjs.map +0 -1
  97. package/dist/vendor/chunk-6ARUMLA5.js.map +0 -1
  98. package/dist/vendor/chunk-6PEHRAEP.js.map +0 -1
  99. package/dist/vendor/chunk-AXYJRGEC.js.map +0 -1
  100. package/dist/vendor/chunk-KC74I2LN.cjs.map +0 -1
  101. package/dist/vendor/chunk-M6ZTTT3A.js.map +0 -1
  102. package/dist/vendor/chunk-ORGCWC7F.js.map +0 -1
  103. package/dist/vendor/chunk-VUVWVXGY.cjs.map +0 -1
  104. package/dist/vendor/chunk-W6QNYN5U.cjs.map +0 -1
  105. package/dist/vendor/chunk-WZXSRPYO.cjs.map +0 -1
  106. package/dist/vendor/compiler.cjs.map +0 -1
  107. package/dist/vendor/compiler.js.map +0 -1
  108. package/dist/vendor/config.cjs.map +0 -1
  109. package/dist/vendor/config.js.map +0 -1
  110. package/dist/vendor/core.cjs.map +0 -1
  111. package/dist/vendor/core.js.map +0 -1
  112. package/dist/vendor/index.cjs.map +0 -1
  113. package/dist/vendor/index.js.map +0 -1
  114. package/dist/vendor/type-spec.cjs.map +0 -1
  115. package/dist/vendor/type-spec.js.map +0 -1
  116. package/dist/vendor/type.cjs.map +0 -1
  117. package/dist/vendor/type.js.map +0 -1
@@ -1,4 +1,5 @@
1
- export { AsyncEventEmitter, AsyncFunction, CompilerContext, CustomError, EmitterEvent, EventEmitter, Mutex, ParsedHost, ProcessLock, ProcessLocker, Timer, __ΩAbstractClassType, __ΩAsyncEventSubscription, __ΩClassType, __ΩCustomError, __ΩEventSubscription, __ΩExtractClassType, __ΩInject, __ΩInjectMeta, __ΩTypeAnnotation, appendObject, applyDefaults, arrayClear, arrayHasItem, arrayMoveItem, arrayRemoveItem, assertDefined, assertInstanceOf, asyncOperation, average, base64ToUint8Array, bufferConcat, bufferToString, bufferedGate, capitalize, changeClass, clearTick, collectForMicrotask, copy, createBuffer, createDynamicClass, createStack, deletePathValue, each, eachKey, eachPair, empty, ensureError, escapeRegExp, extractMethodBody, extractParameters, first, firstKey, fixAsyncOperation, formatError, forwardTypeArguments, getClassName, getClassPropertyName, getClassTypeFromInstance, getCurrentFileName, getEnumKeyLabelMap, getEnumLabel, getEnumLabels, getEnumValues, getInheritanceChain, getObjectKeysSize, getParentClass, getPathValue, getValidEnumValue, hasProperty, humanBytes, identifyType, inDebugMode, indent, indexOf, isArray, isAsyncFunction, isClass, isClassInstance, isConstructable, isFunction, isGlobalClass, isInteger, isIterable, isNull, isNumber, isNumeric, isObject, isObjectLiteral, isPlainObject, isPromise, isPrototypeOfBase, isSet, isString, isUndefined, isValidEnumValue, iterableSize, last, lastKey, log, mergePromiseStack, mergeStack, nativeBase64ToUint8Array, nextTick, parseHost, pathBasename, pathDirectory, pathExtension, pathJoin, pathNormalize, prependObjectKeys, prettyPrintObject, range, rangeArray, removeStrings, setPathValue, singleStack, size, sleep, stack, stringifyValueWithType, throttleTime, time, toFastProperties, uint8ArrayToUtf8, urlJoin, zip } from './chunk-AXYJRGEC.js';
2
- import './chunk-6PEHRAEP.js';
3
- //# sourceMappingURL=core.js.map
4
- //# sourceMappingURL=core.js.map
1
+ export { AsyncEventEmitter, AsyncFunction, CompilerContext, CustomError, EmitterEvent, EventEmitter, Mutex, ParsedHost, ProcessLock, ProcessLocker, Timer, __ΩAbstractClassType, __ΩAsyncEventSubscription, __ΩClassType, __ΩCustomError, __ΩEventSubscription, __ΩExtractClassType, __ΩInject, __ΩInjectMeta, __ΩTypeAnnotation, appendObject, applyDefaults, arrayClear, arrayHasItem, arrayMoveItem, arrayRemoveItem, assertDefined, assertInstanceOf, asyncOperation, average, base64ToUint8Array, bufferConcat, bufferToString, bufferedGate, capitalize, changeClass, clearTick, collectForMicrotask, copy, createBuffer, createDynamicClass, createStack, deletePathValue, each, eachKey, eachPair, empty, ensureError, escapeRegExp, extractMethodBody, extractParameters, first, firstKey, fixAsyncOperation, formatError, forwardTypeArguments, getClassName, getClassPropertyName, getClassTypeFromInstance, getCurrentFileName, getEnumKeyLabelMap, getEnumLabel, getEnumLabels, getEnumValues, getInheritanceChain, getObjectKeysSize, getParentClass, getPathValue, getValidEnumValue, hasProperty, humanBytes, identifyType, inDebugMode, indent, indexOf, isArray, isAsyncFunction, isClass, isClassInstance, isConstructable, isFunction, isGlobalClass, isInteger, isIterable, isNull, isNumber, isNumeric, isObject, isObjectLiteral, isPlainObject, isPromise, isPrototypeOfBase, isSet, isString, isUndefined, isValidEnumValue, iterableSize, last, lastKey, log, mergePromiseStack, mergeStack, nativeBase64ToUint8Array, nextTick, parseHost, pathBasename, pathDirectory, pathExtension, pathJoin, pathNormalize, prependObjectKeys, prettyPrintObject, range, rangeArray, removeStrings, setPathValue, singleStack, size, sleep, stack, stringifyValueWithType, throttleTime, time, toFastProperties, uint8ArrayToUtf8, urlJoin, zip } from '../chunk-4WJJKR53.js';
2
+ import { init_esm_shims } from '../chunk-QQ7GKXIS.js';
3
+
4
+ // src/vendor/core.ts
5
+ init_esm_shims();
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkWZXSRPYO_cjs = require('./chunk-WZXSRPYO.cjs');
4
- var chunkVUVWVXGY_cjs = require('./chunk-VUVWVXGY.cjs');
3
+ var chunkWOXMCJJU_cjs = require('./chunk-WOXMCJJU.cjs');
4
+ var chunkRZKB5IQZ_cjs = require('./chunk-RZKB5IQZ.cjs');
5
5
  var ts = require('typescript');
6
6
 
7
7
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
@@ -9,16 +9,16 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
9
9
  var ts__default = /*#__PURE__*/_interopDefault(ts);
10
10
 
11
11
  // src/vendor/type-compiler/index.ts
12
- chunkVUVWVXGY_cjs.init_cjs_shims();
12
+ chunkRZKB5IQZ_cjs.init_cjs_shims();
13
13
 
14
14
  // ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=88e8267ac73f46799c551ae3696181dc1f272895f490f8c_ef8b874d406bec4900e1fddc1ea375be/node_modules/@deepkit/type-compiler/dist/esm/index.js
15
- chunkVUVWVXGY_cjs.init_cjs_shims();
15
+ chunkRZKB5IQZ_cjs.init_cjs_shims();
16
16
 
17
17
  // ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=88e8267ac73f46799c551ae3696181dc1f272895f490f8c_ef8b874d406bec4900e1fddc1ea375be/node_modules/@deepkit/type-compiler/dist/esm/src/loader.js
18
- chunkVUVWVXGY_cjs.init_cjs_shims();
18
+ chunkRZKB5IQZ_cjs.init_cjs_shims();
19
19
  var DeepkitLoader = class {
20
20
  static {
21
- chunkVUVWVXGY_cjs.__name(this, "DeepkitLoader");
21
+ chunkRZKB5IQZ_cjs.__name(this, "DeepkitLoader");
22
22
  }
23
23
  constructor() {
24
24
  this.options = {
@@ -30,7 +30,7 @@ var DeepkitLoader = class {
30
30
  this.printer = ts__default.default.createPrinter({
31
31
  newLine: ts__default.default.NewLineKind.LineFeed
32
32
  });
33
- this.cache = new chunkWZXSRPYO_cjs.Cache();
33
+ this.cache = new chunkWOXMCJJU_cjs.Cache();
34
34
  this.knownFiles = {};
35
35
  this.sourceFiles = {};
36
36
  const originReadFile = this.host.readFile;
@@ -52,7 +52,7 @@ var DeepkitLoader = class {
52
52
  let newSource = source;
53
53
  ts__default.default.transform(sourceFile, [
54
54
  (context) => {
55
- const transformer2 = new chunkWZXSRPYO_cjs.ReflectionTransformer(context, this.cache).forHost(this.host).withReflection({
55
+ const transformer2 = new chunkWOXMCJJU_cjs.ReflectionTransformer(context, this.cache).forHost(this.host).withReflection({
56
56
  reflection: "default",
57
57
  reflectionLevel: "normal"
58
58
  });
@@ -69,40 +69,38 @@ var DeepkitLoader = class {
69
69
 
70
70
  Object.defineProperty(exports, "Cache", {
71
71
  enumerable: true,
72
- get: function () { return chunkWZXSRPYO_cjs.Cache; }
72
+ get: function () { return chunkWOXMCJJU_cjs.Cache; }
73
73
  });
74
74
  Object.defineProperty(exports, "DeclarationTransformer", {
75
75
  enumerable: true,
76
- get: function () { return chunkWZXSRPYO_cjs.DeclarationTransformer; }
76
+ get: function () { return chunkWOXMCJJU_cjs.DeclarationTransformer; }
77
77
  });
78
78
  Object.defineProperty(exports, "ReflectionTransformer", {
79
79
  enumerable: true,
80
- get: function () { return chunkWZXSRPYO_cjs.ReflectionTransformer; }
80
+ get: function () { return chunkWOXMCJJU_cjs.ReflectionTransformer; }
81
81
  });
82
82
  Object.defineProperty(exports, "debugPackStruct", {
83
83
  enumerable: true,
84
- get: function () { return chunkWZXSRPYO_cjs.debugPackStruct; }
84
+ get: function () { return chunkWOXMCJJU_cjs.debugPackStruct; }
85
85
  });
86
86
  Object.defineProperty(exports, "declarationTransformer", {
87
87
  enumerable: true,
88
- get: function () { return chunkWZXSRPYO_cjs.declarationTransformer; }
88
+ get: function () { return chunkWOXMCJJU_cjs.declarationTransformer; }
89
89
  });
90
90
  Object.defineProperty(exports, "encodeOps", {
91
91
  enumerable: true,
92
- get: function () { return chunkWZXSRPYO_cjs.encodeOps; }
92
+ get: function () { return chunkWOXMCJJU_cjs.encodeOps; }
93
93
  });
94
94
  Object.defineProperty(exports, "packSize", {
95
95
  enumerable: true,
96
- get: function () { return chunkWZXSRPYO_cjs.packSize; }
96
+ get: function () { return chunkWOXMCJJU_cjs.packSize; }
97
97
  });
98
98
  Object.defineProperty(exports, "packSizeByte", {
99
99
  enumerable: true,
100
- get: function () { return chunkWZXSRPYO_cjs.packSizeByte; }
100
+ get: function () { return chunkWOXMCJJU_cjs.packSizeByte; }
101
101
  });
102
102
  Object.defineProperty(exports, "transformer", {
103
103
  enumerable: true,
104
- get: function () { return chunkWZXSRPYO_cjs.transformer; }
104
+ get: function () { return chunkWOXMCJJU_cjs.transformer; }
105
105
  });
106
106
  exports.DeepkitLoader = DeepkitLoader;
107
- //# sourceMappingURL=index.cjs.map
108
- //# sourceMappingURL=index.cjs.map
@@ -1,6 +1,6 @@
1
- import { Cache, ReflectionTransformer } from './chunk-M6ZTTT3A.js';
2
- export { Cache, DeclarationTransformer, ReflectionTransformer, debugPackStruct, declarationTransformer, encodeOps, packSize, packSizeByte, transformer } from './chunk-M6ZTTT3A.js';
3
- import { init_esm_shims, __name } from './chunk-6ARUMLA5.js';
1
+ import { Cache, ReflectionTransformer } from './chunk-RH4YMONA.js';
2
+ export { Cache, DeclarationTransformer, ReflectionTransformer, debugPackStruct, declarationTransformer, encodeOps, packSize, packSizeByte, transformer } from './chunk-RH4YMONA.js';
3
+ import { init_esm_shims, __name } from './chunk-MCNMRQDT.js';
4
4
  import ts from 'typescript';
5
5
 
6
6
  // src/vendor/type-compiler/index.ts
@@ -63,5 +63,3 @@ var DeepkitLoader = class {
63
63
  };
64
64
 
65
65
  export { DeepkitLoader };
66
- //# sourceMappingURL=index.js.map
67
- //# sourceMappingURL=index.js.map
@@ -0,0 +1,46 @@
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
+ });
@@ -0,0 +1 @@
1
+ export * from '@deepkit/type-compiler/compiler';
@@ -0,0 +1 @@
1
+ export * from '@deepkit/type-compiler/compiler';
@@ -0,0 +1,7 @@
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();
@@ -0,0 +1,36 @@
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
+ });
@@ -0,0 +1,6 @@
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';
@@ -0,0 +1,6 @@
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';
@@ -0,0 +1,5 @@
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();
@@ -0,0 +1,108 @@
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;
@@ -0,0 +1 @@
1
+ export * from '@deepkit/type-compiler';
@@ -0,0 +1 @@
1
+ export * from '@deepkit/type-compiler';
@@ -0,0 +1,67 @@
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 };
@@ -1,18 +1,16 @@
1
1
  'use strict';
2
2
 
3
- var chunkKC74I2LN_cjs = require('./chunk-KC74I2LN.cjs');
4
- var chunk3QJYIKMR_cjs = require('./chunk-3QJYIKMR.cjs');
3
+ var chunkYKFG2BZQ_cjs = require('../chunk-YKFG2BZQ.cjs');
4
+ var chunkWVKPC33H_cjs = require('../chunk-WVKPC33H.cjs');
5
5
 
6
6
  // src/vendor/type-spec.ts
7
- chunk3QJYIKMR_cjs.init_cjs_shims();
7
+ chunkWVKPC33H_cjs.init_cjs_shims();
8
8
 
9
9
  Object.defineProperty(exports, "ReflectionOp", {
10
10
  enumerable: true,
11
- get: function () { return chunkKC74I2LN_cjs.ReflectionOp; }
11
+ get: function () { return chunkYKFG2BZQ_cjs.ReflectionOp; }
12
12
  });
13
13
  Object.defineProperty(exports, "TypeNumberBrand", {
14
14
  enumerable: true,
15
- get: function () { return chunkKC74I2LN_cjs.TypeNumberBrand; }
15
+ get: function () { return chunkYKFG2BZQ_cjs.TypeNumberBrand; }
16
16
  });
17
- //# sourceMappingURL=type-spec.cjs.map
18
- //# sourceMappingURL=type-spec.cjs.map
@@ -1,4 +1,5 @@
1
- export { ReflectionOp, TypeNumberBrand } from './chunk-ORGCWC7F.js';
2
- import './chunk-6PEHRAEP.js';
3
- //# sourceMappingURL=type-spec.js.map
4
- //# sourceMappingURL=type-spec.js.map
1
+ export { ReflectionOp, TypeNumberBrand } from '../chunk-7WAH4JD3.js';
2
+ import { init_esm_shims } from '../chunk-QQ7GKXIS.js';
3
+
4
+ // src/vendor/type-spec.ts
5
+ init_esm_shims();