@powerlines/deepkit 0.7.4 → 0.7.6

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 (86) hide show
  1. package/dist/{capnp-BLx1WTBU.cjs → capnp-BLCHrDSY.cjs} +42 -42
  2. package/dist/{capnp-BiGNkOmV.mjs → capnp-BqAglxrS.mjs} +265 -265
  3. package/dist/capnp.cjs +1 -1
  4. package/dist/capnp.d.cts +42 -44
  5. package/dist/capnp.d.mts +42 -44
  6. package/dist/capnp.mjs +1 -1
  7. package/dist/{chunk-C0xms8kb.cjs → chunk-BmvPcxpV.cjs} +7 -0
  8. package/dist/chunk-CgI6uo-e.mjs +32 -0
  9. package/dist/{vendor/type-compiler/compiler-D1z5h1MK.d.cts → compiler-B-zwyGQf.d.cts} +3 -201
  10. package/dist/{vendor/type-compiler/compiler-Bg8jX6qU.mjs → compiler-CoBHJbw6.mjs} +4 -191
  11. package/dist/{vendor/type-compiler/compiler-Nkxc4PLJ.d.mts → compiler-DLeSXEon.d.mts} +3 -201
  12. package/dist/{vendor/type-compiler/compiler-BUrWMhGi.cjs → compiler-TYAnj4GK.cjs} +207 -394
  13. package/dist/{vendor/type-compiler/config-B_cKkYZm.d.cts → config-DCmu3CV2.d.cts} +1 -1
  14. package/dist/config-DDRKbv_W.d.mts +1 -0
  15. package/dist/config-GPeRZeGl.d.cts +1 -0
  16. package/dist/{vendor/type-compiler/config-D9DM7Du_.d.mts → config-SjpQNPJf.d.mts} +1 -1
  17. package/dist/{vendor/type-compiler/config-BEX924PC.cjs → config-V3ttv0UZ.cjs} +20 -59
  18. package/dist/{vendor/type-compiler/config-y0HNkbCH.mjs → config-ldWMxkkM.mjs} +3 -32
  19. package/dist/esbuild-plugin.cjs +1 -1
  20. package/dist/esbuild-plugin.d.cts +18 -4
  21. package/dist/esbuild-plugin.d.mts +18 -4
  22. package/dist/index.cjs +1 -1
  23. package/dist/index.d.cts +4 -4
  24. package/dist/index.d.mts +4 -4
  25. package/dist/index.mjs +1 -1
  26. package/dist/reflect-type.cjs +3 -3
  27. package/dist/reflect-type.d.cts +1 -1
  28. package/dist/reflect-type.d.mts +1 -1
  29. package/dist/reflect-type.mjs +1 -1
  30. package/dist/{reflection-C4IlLDrv.d.cts → reflection-DGOuMF8F.d.cts} +2 -2
  31. package/dist/{reflection-BB3pXP5l.d.mts → reflection-lA4jBKKP.d.mts} +2 -2
  32. package/dist/resolve-reflections.cjs +1 -1
  33. package/dist/rolldown-plugin.cjs +1 -1
  34. package/dist/{vendor/string-BuMgdahD.mjs → string-CjkshhTG.mjs} +2 -28
  35. package/dist/{vendor/string-BoXo0wS7.cjs → string-CpVz34Gv.cjs} +6 -39
  36. package/dist/transformer.cjs +6 -7
  37. package/dist/transformer.d.cts +1 -1
  38. package/dist/transformer.d.mts +1 -1
  39. package/dist/transformer.mjs +2 -3
  40. package/dist/transpile.cjs +6 -2
  41. package/dist/transpile.d.cts +1 -1
  42. package/dist/transpile.d.mts +1 -1
  43. package/dist/transpile.mjs +5 -1
  44. package/dist/type-8AL5U7vn.d.cts +2969 -0
  45. package/dist/{vendor/type-Dgeqs-rL.mjs → type-BWm74eaQ.mjs} +1 -1
  46. package/dist/{vendor/type-2yMJb9Mw.d.cts → type-C4eOl66J.d.mts} +1 -1
  47. package/dist/type-C7UXbXfx.cjs +10688 -0
  48. package/dist/{vendor/type-DEpHWwMt.d.mts → type-DR66Hepn.d.cts} +1 -1
  49. package/dist/type-SyDc32SL.d.mts +2969 -0
  50. package/dist/type-ma8o4dJG.mjs +9110 -0
  51. package/dist/{vendor/types-Ur6a2Srw.d.mts → types-Bb6lL3KL.d.cts} +1 -1
  52. package/dist/{vendor/types-exLGvFgG.d.cts → types-DYGcIrk3.d.mts} +1 -1
  53. package/dist/types.d.cts +4 -7
  54. package/dist/types.d.mts +4 -7
  55. package/dist/utilities.cjs +43 -43
  56. package/dist/utilities.d.cts +1 -1
  57. package/dist/utilities.d.mts +1 -1
  58. package/dist/utilities.mjs +1 -1
  59. package/dist/vendor/core.cjs +1 -1
  60. package/dist/vendor/core.d.cts +1 -1
  61. package/dist/vendor/core.d.mts +1 -1
  62. package/dist/vendor/core.mjs +1 -1
  63. package/dist/vendor/type-compiler/compiler.cjs +1 -1
  64. package/dist/vendor/type-compiler/compiler.d.cts +1 -1
  65. package/dist/vendor/type-compiler/compiler.d.mts +1 -1
  66. package/dist/vendor/type-compiler/compiler.mjs +1 -1
  67. package/dist/vendor/type-compiler/config.cjs +1 -1
  68. package/dist/vendor/type-compiler/config.d.cts +1 -1
  69. package/dist/vendor/type-compiler/config.d.mts +1 -1
  70. package/dist/vendor/type-compiler/config.mjs +1 -1
  71. package/dist/vendor/type-compiler/index.cjs +11 -3
  72. package/dist/vendor/type-compiler/index.d.cts +3 -2
  73. package/dist/vendor/type-compiler/index.d.mts +3 -2
  74. package/dist/vendor/type-compiler/index.mjs +3 -2
  75. package/dist/vendor/type-spec.cjs +1 -1
  76. package/dist/vendor/type-spec.d.cts +1 -1
  77. package/dist/vendor/type-spec.d.mts +1 -1
  78. package/dist/vendor/type-spec.mjs +1 -1
  79. package/dist/vendor/type.cjs +268 -9374
  80. package/dist/vendor/type.d.cts +3 -2969
  81. package/dist/vendor/type.d.mts +3 -2969
  82. package/dist/vendor/type.mjs +3 -9109
  83. package/package.json +13 -26
  84. package/schemas/reflection.d.cts +1 -6
  85. package/schemas/reflection.d.mts +1 -6
  86. /package/dist/{vendor/type-BMLjRtLY.cjs → type-DhqntM0q.cjs} +0 -0
@@ -1,34 +1,7 @@
1
- //#region \0rolldown/runtime.js
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
12
- key = keys[i];
13
- if (!__hasOwnProp.call(to, key) && key !== except) {
14
- __defProp(to, key, {
15
- get: ((k) => from[k]).bind(null, key),
16
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
- });
18
- }
19
- }
20
- }
21
- return to;
22
- };
23
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
24
- value: mod,
25
- enumerable: true
26
- }) : target, mod));
27
-
28
- //#endregion
1
+ const require_chunk = require('./chunk-BmvPcxpV.cjs');
29
2
 
30
3
  //#region ../../node_modules/.pnpm/is-obj@2.0.0/node_modules/is-obj/index.js
31
- var require_is_obj = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4
+ var require_is_obj = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
32
5
  module.exports = (value) => {
33
6
  const type = typeof value;
34
7
  return value !== null && (type === "object" || type === "function");
@@ -37,7 +10,7 @@ var require_is_obj = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37
10
 
38
11
  //#endregion
39
12
  //#region ../../node_modules/.pnpm/dot-prop@5.3.0/node_modules/dot-prop/index.js
40
- var require_dot_prop = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13
+ var require_dot_prop = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
41
14
  const isObj = require_is_obj();
42
15
  const disallowedKeys = [
43
16
  "__proto__",
@@ -247,7 +220,7 @@ eachPair.__type = [
247
220
 
248
221
  //#endregion
249
222
  //#region ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/core.js
250
- var import_dot_prop = /* @__PURE__ */ __toESM(require_dot_prop(), 1);
223
+ var import_dot_prop = /* @__PURE__ */ require_chunk.__toESM(require_dot_prop(), 1);
251
224
  const __ΩObject = [
252
225
  () => Function,
253
226
  "constructor",
@@ -1481,7 +1454,7 @@ assertDefined.__type = [
1481
1454
 
1482
1455
  //#endregion
1483
1456
  //#region ../../node_modules/.pnpm/to-fast-properties@3.0.1/node_modules/to-fast-properties/index.js
1484
- var require_to_fast_properties = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1457
+ var require_to_fast_properties = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
1485
1458
  let fastProto = null;
1486
1459
  function FastObject(o) {
1487
1460
  if (fastProto !== null && typeof fastProto.property) {
@@ -1501,7 +1474,7 @@ var require_to_fast_properties = /* @__PURE__ */ __commonJSMin(((exports, module
1501
1474
 
1502
1475
  //#endregion
1503
1476
  //#region ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/perf.js
1504
- var import_to_fast_properties = /* @__PURE__ */ __toESM(require_to_fast_properties(), 1);
1477
+ var import_to_fast_properties = /* @__PURE__ */ require_chunk.__toESM(require_to_fast_properties(), 1);
1505
1478
  function toFastProperties(obj) {
1506
1479
  (0, import_to_fast_properties.default)(obj);
1507
1480
  }
@@ -2483,12 +2456,6 @@ Object.defineProperty(exports, 'CustomError', {
2483
2456
  return CustomError;
2484
2457
  }
2485
2458
  });
2486
- Object.defineProperty(exports, '__toESM', {
2487
- enumerable: true,
2488
- get: function () {
2489
- return __toESM;
2490
- }
2491
- });
2492
2459
  Object.defineProperty(exports, '__ΩAbstractClassType', {
2493
2460
  enumerable: true,
2494
2461
  get: function () {
@@ -1,13 +1,12 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_chunk = require('./chunk-C0xms8kb.cjs');
3
- let _powerlines_deepkit_vendor_type_compiler = require("@powerlines/deepkit/vendor/type-compiler");
4
- let _powerlines_deepkit_vendor_type_compiler_compiler = require("@powerlines/deepkit/vendor/type-compiler/compiler");
2
+ const require_chunk = require('./chunk-BmvPcxpV.cjs');
3
+ const require_compiler = require('./compiler-TYAnj4GK.cjs');
5
4
  let defu = require("defu");
6
5
  defu = require_chunk.__toESM(defu);
7
6
 
8
7
  //#region src/transformer.ts
9
8
  let loaded = false;
10
- const cache = new _powerlines_deepkit_vendor_type_compiler_compiler.Cache();
9
+ const cache = new require_compiler.Cache();
11
10
  /**
12
11
  * Creates a Deepkit TypeScript transformer.
13
12
  *
@@ -19,7 +18,7 @@ function createTransformer(context, options = {}) {
19
18
  return function transformer(ctx) {
20
19
  if (!loaded) loaded = true;
21
20
  cache.tick();
22
- return new _powerlines_deepkit_vendor_type_compiler.ReflectionTransformer(ctx, cache).withReflection((0, defu.default)(options, {
21
+ return new require_compiler.ReflectionTransformer(ctx, cache).withReflection((0, defu.default)(options, {
23
22
  reflection: context.tsconfig.tsconfigJson.compilerOptions?.reflection || context.tsconfig.tsconfigJson.reflection,
24
23
  reflectionLevel: context.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel || context.tsconfig.tsconfigJson.reflectionLevel
25
24
  }, {
@@ -38,13 +37,13 @@ function createTransformer(context, options = {}) {
38
37
  */
39
38
  function createDeclarationTransformer(context, options = {}) {
40
39
  return function declarationTransformer(ctx) {
41
- return new _powerlines_deepkit_vendor_type_compiler.DeclarationTransformer(ctx, cache).withReflection((0, defu.default)(options, {
40
+ return new require_compiler.DeclarationTransformer(ctx, cache).withReflection((0, defu.default)(options, {
42
41
  reflection: context.tsconfig.tsconfigJson.compilerOptions?.reflection || context.tsconfig.tsconfigJson.reflection,
43
42
  reflectionLevel: context.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel || context.tsconfig.tsconfigJson.reflectionLevel
44
43
  }, {
45
44
  exclude: [],
46
45
  reflection: "default",
47
- reflectionLevel: "minimal"
46
+ reflectionLevel: "normal"
48
47
  }));
49
48
  };
50
49
  }
@@ -1,5 +1,5 @@
1
+ import { c as ReflectionConfig } from "./config-DCmu3CV2.cjs";
1
2
  import { Context } from "@powerlines/core";
2
- import { ReflectionConfig } from "@powerlines/deepkit/vendor/type-compiler/config";
3
3
  import ts from "typescript";
4
4
 
5
5
  //#region src/transformer.d.ts
@@ -1,6 +1,6 @@
1
+ import { c as ReflectionConfig } from "./config-SjpQNPJf.mjs";
1
2
  import ts from "typescript";
2
3
  import { Context } from "@powerlines/core";
3
- import { ReflectionConfig } from "@powerlines/deepkit/vendor/type-compiler/config";
4
4
 
5
5
  //#region src/transformer.d.ts
6
6
  /**
@@ -1,5 +1,4 @@
1
- import { DeclarationTransformer, ReflectionTransformer } from "@powerlines/deepkit/vendor/type-compiler";
2
- import { Cache } from "@powerlines/deepkit/vendor/type-compiler/compiler";
1
+ import { n as DeclarationTransformer, r as ReflectionTransformer, t as Cache } from "./compiler-CoBHJbw6.mjs";
3
2
  import defu from "defu";
4
3
 
5
4
  //#region src/transformer.ts
@@ -41,7 +40,7 @@ function createDeclarationTransformer(context, options = {}) {
41
40
  }, {
42
41
  exclude: [],
43
42
  reflection: "default",
44
- reflectionLevel: "minimal"
43
+ reflectionLevel: "normal"
45
44
  }));
46
45
  };
47
46
  }
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_chunk = require('./chunk-C0xms8kb.cjs');
2
+ const require_chunk = require('./chunk-BmvPcxpV.cjs');
3
3
  const require_transformer = require('./transformer.cjs');
4
4
  let typescript = require("typescript");
5
5
  typescript = require_chunk.__toESM(typescript);
@@ -18,7 +18,11 @@ function transpile(context, code, id, options = {}) {
18
18
  const transformer = require_transformer.createTransformer(context, options);
19
19
  const declarationTransformer = require_transformer.createDeclarationTransformer(context, options);
20
20
  return typescript.default.transpileModule(code, {
21
- compilerOptions: { ...context.tsconfig.options },
21
+ compilerOptions: {
22
+ ...context.tsconfig.options,
23
+ reflection: options.reflection ?? context.tsconfig.tsconfigJson.compilerOptions?.reflection ?? context.tsconfig.tsconfigJson.reflection,
24
+ reflectionLevel: options.reflectionLevel ?? context.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel ?? context.tsconfig.tsconfigJson.reflectionLevel
25
+ },
22
26
  fileName: id,
23
27
  transformers: {
24
28
  before: [transformer],
@@ -1,5 +1,5 @@
1
+ import { c as ReflectionConfig } from "./config-DCmu3CV2.cjs";
1
2
  import { Context } from "@powerlines/core";
2
- import { ReflectionConfig } from "@powerlines/deepkit/vendor/type-compiler/config";
3
3
  import ts from "typescript";
4
4
 
5
5
  //#region src/transpile.d.ts
@@ -1,6 +1,6 @@
1
+ import { c as ReflectionConfig } from "./config-SjpQNPJf.mjs";
1
2
  import ts from "typescript";
2
3
  import { Context } from "@powerlines/core";
3
- import { ReflectionConfig } from "@powerlines/deepkit/vendor/type-compiler/config";
4
4
 
5
5
  //#region src/transpile.d.ts
6
6
  /**
@@ -15,7 +15,11 @@ function transpile(context, code, id, options = {}) {
15
15
  const transformer = createTransformer(context, options);
16
16
  const declarationTransformer = createDeclarationTransformer(context, options);
17
17
  return ts.transpileModule(code, {
18
- compilerOptions: { ...context.tsconfig.options },
18
+ compilerOptions: {
19
+ ...context.tsconfig.options,
20
+ reflection: options.reflection ?? context.tsconfig.tsconfigJson.compilerOptions?.reflection ?? context.tsconfig.tsconfigJson.reflection,
21
+ reflectionLevel: options.reflectionLevel ?? context.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel ?? context.tsconfig.tsconfigJson.reflectionLevel
22
+ },
19
23
  fileName: id,
20
24
  transformers: {
21
25
  before: [transformer],