@powerlines/deepkit 0.9.59 → 0.9.60

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 (59) hide show
  1. package/dist/{capnp-Be787Fo8.cjs → capnp-C64tcsYr.cjs} +54 -1
  2. package/dist/{capnp-DMIKW0SW.mjs → capnp-CBwWCAFI.mjs} +50 -2
  3. package/dist/capnp.cjs +1 -1
  4. package/dist/capnp.mjs +1 -1
  5. package/dist/capnp.test.cjs +15 -0
  6. package/dist/capnp.test.d.cts +1 -0
  7. package/dist/capnp.test.d.mts +1 -0
  8. package/dist/capnp.test.mjs +17 -0
  9. package/dist/{chunk-fl3r8ClO.cjs → chunk-BViLPvwy.cjs} +19 -0
  10. package/dist/chunk-wE0WeVzl.mjs +22 -0
  11. package/dist/esbuild-plugin.cjs +9 -1
  12. package/dist/esbuild-plugin.mjs +3 -1
  13. package/dist/esbuild-plugin.test.cjs +15 -0
  14. package/dist/esbuild-plugin.test.d.cts +1 -0
  15. package/dist/esbuild-plugin.test.d.mts +1 -0
  16. package/dist/esbuild-plugin.test.mjs +17 -0
  17. package/dist/index.cjs +2 -2
  18. package/dist/index.mjs +2 -2
  19. package/dist/magic-string.es-CTmOTfpb.cjs +1014 -0
  20. package/dist/magic-string.es-CTmgL_KE.mjs +1014 -0
  21. package/dist/resolve-reflections.cjs +9 -1
  22. package/dist/resolve-reflections.mjs +3 -1
  23. package/dist/resolve-reflections.test.cjs +15 -0
  24. package/dist/resolve-reflections.test.d.cts +1 -0
  25. package/dist/resolve-reflections.test.d.mts +1 -0
  26. package/dist/resolve-reflections.test.mjs +17 -0
  27. package/dist/rolldown-plugin.cjs +9 -1
  28. package/dist/rolldown-plugin.mjs +3 -1
  29. package/dist/rolldown-plugin.test.cjs +15 -0
  30. package/dist/rolldown-plugin.test.d.cts +1 -0
  31. package/dist/rolldown-plugin.test.d.mts +1 -0
  32. package/dist/rolldown-plugin.test.mjs +17 -0
  33. package/dist/test.DNmyFkvJ-B5Eqa5wB.mjs +13766 -0
  34. package/dist/test.DNmyFkvJ-Bj84cw-C.cjs +13783 -0
  35. package/dist/{transformer-BBFrHqHC.cjs → transformer-Bzko5OJ6.cjs} +11 -1
  36. package/dist/{transformer-BqC4_fMK.mjs → transformer-yf6V3L2u.mjs} +7 -8
  37. package/dist/transformer.cjs +1 -1
  38. package/dist/transformer.mjs +1 -1
  39. package/dist/transformer.test.cjs +15 -0
  40. package/dist/transformer.test.d.cts +1 -0
  41. package/dist/transformer.test.d.mts +1 -0
  42. package/dist/transformer.test.mjs +17 -0
  43. package/dist/transpile.cjs +10 -3
  44. package/dist/transpile.mjs +4 -2
  45. package/dist/transpile.test.cjs +15 -0
  46. package/dist/transpile.test.d.cts +1 -0
  47. package/dist/transpile.test.d.mts +1 -0
  48. package/dist/transpile.test.mjs +17 -0
  49. package/dist/types.cjs +13 -0
  50. package/dist/types.mjs +8 -1
  51. package/dist/types.test.cjs +15 -0
  52. package/dist/types.test.d.cts +1 -0
  53. package/dist/types.test.d.mts +1 -0
  54. package/dist/types.test.mjs +17 -0
  55. package/dist/utilities.test.cjs +34 -0
  56. package/dist/utilities.test.d.cts +1 -0
  57. package/dist/utilities.test.d.mts +1 -0
  58. package/dist/utilities.test.mjs +36 -0
  59. package/package.json +11 -11
@@ -1,4 +1,4 @@
1
- const require_chunk = require('./chunk-fl3r8ClO.cjs');
1
+ const require_chunk = require('./chunk-BViLPvwy.cjs');
2
2
  let typescript = require("typescript");
3
3
  typescript = require_chunk.__toESM(typescript);
4
4
  let _powerlines_deepkit_vendor_type_compiler = require("@powerlines/deepkit/vendor/type-compiler");
@@ -1309,6 +1309,10 @@ const cache$1 = new Cache();
1309
1309
 
1310
1310
  //#endregion
1311
1311
  //#region src/transformer.ts
1312
+ var transformer_exports = /* @__PURE__ */ require_chunk.__exportAll({
1313
+ createDeclarationTransformer: () => createDeclarationTransformer,
1314
+ createTransformer: () => createTransformer
1315
+ });
1312
1316
  let loaded = false;
1313
1317
  const cache = new Cache();
1314
1318
  /**
@@ -1364,4 +1368,10 @@ Object.defineProperty(exports, 'createTransformer', {
1364
1368
  get: function () {
1365
1369
  return createTransformer;
1366
1370
  }
1371
+ });
1372
+ Object.defineProperty(exports, 'transformer_exports', {
1373
+ enumerable: true,
1374
+ get: function () {
1375
+ return transformer_exports;
1376
+ }
1367
1377
  });
@@ -1,13 +1,8 @@
1
- import { createRequire } from "node:module";
1
+ import { n as __exportAll, r as __require, t as __commonJSMin } from "./chunk-wE0WeVzl.mjs";
2
2
  import ts from "typescript";
3
3
  import { DeclarationTransformer, ReflectionTransformer } from "@powerlines/deepkit/vendor/type-compiler";
4
4
  import defu from "defu";
5
5
 
6
- //#region \0rolldown/runtime.js
7
- var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
8
- var __require = /* @__PURE__ */ createRequire(import.meta.url);
9
-
10
- //#endregion
11
6
  //#region ../../../node_modules/.pnpm/@deepkit+type-spec@1.0.1_patch_hash=f3c3a4fd486751022d78f17d39a5a79f493bca20b185964ca1aba41fbfc93244/node_modules/@deepkit/type-spec/dist/esm/src/type.js
12
7
  /**
13
8
  * note: Checks are based on range checks (>, <, etc), so when adding
@@ -1312,6 +1307,10 @@ const cache$1 = new Cache();
1312
1307
 
1313
1308
  //#endregion
1314
1309
  //#region src/transformer.ts
1310
+ var transformer_exports = /* @__PURE__ */ __exportAll({
1311
+ createDeclarationTransformer: () => createDeclarationTransformer,
1312
+ createTransformer: () => createTransformer
1313
+ });
1315
1314
  let loaded = false;
1316
1315
  const cache = new Cache();
1317
1316
  /**
@@ -1356,5 +1355,5 @@ function createDeclarationTransformer(context, options = {}) {
1356
1355
  }
1357
1356
 
1358
1357
  //#endregion
1359
- export { createTransformer as n, createDeclarationTransformer as t };
1360
- //# sourceMappingURL=transformer-BqC4_fMK.mjs.map
1358
+ export { createTransformer as n, transformer_exports as r, createDeclarationTransformer as t };
1359
+ //# sourceMappingURL=transformer-yf6V3L2u.mjs.map
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_transformer = require('./transformer-BBFrHqHC.cjs');
2
+ const require_transformer = require('./transformer-Bzko5OJ6.cjs');
3
3
 
4
4
  exports.createDeclarationTransformer = require_transformer.createDeclarationTransformer;
5
5
  exports.createTransformer = require_transformer.createTransformer;
@@ -1,3 +1,3 @@
1
- import { n as createTransformer, t as createDeclarationTransformer } from "./transformer-BqC4_fMK.mjs";
1
+ import { n as createTransformer, t as createDeclarationTransformer } from "./transformer-yf6V3L2u.mjs";
2
2
 
3
3
  export { createDeclarationTransformer, createTransformer };
@@ -0,0 +1,15 @@
1
+ const require_test_DNmyFkvJ = require('./test.DNmyFkvJ-Bj84cw-C.cjs');
2
+ const require_transformer = require('./transformer-Bzko5OJ6.cjs');
3
+
4
+ //#region src/transformer.test.ts
5
+ require_test_DNmyFkvJ.describe("base/deepkit/src/transformer.ts", () => {
6
+ require_test_DNmyFkvJ.it("loads module exports", () => {
7
+ require_test_DNmyFkvJ.globalExpect(require_transformer.transformer_exports).toBeDefined();
8
+ require_test_DNmyFkvJ.globalExpect(typeof require_transformer.transformer_exports).toBe("object");
9
+ });
10
+ require_test_DNmyFkvJ.it("has at least one runtime export", () => {
11
+ require_test_DNmyFkvJ.globalExpect(Object.keys(require_transformer.transformer_exports).length).toBeGreaterThan(0);
12
+ });
13
+ });
14
+
15
+ //#endregion
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,17 @@
1
+ import { n as describe, r as it, t as globalExpect } from "./test.DNmyFkvJ-B5Eqa5wB.mjs";
2
+ import { r as transformer_exports } from "./transformer-yf6V3L2u.mjs";
3
+
4
+ //#region src/transformer.test.ts
5
+ describe("base/deepkit/src/transformer.ts", () => {
6
+ it("loads module exports", () => {
7
+ globalExpect(transformer_exports).toBeDefined();
8
+ globalExpect(typeof transformer_exports).toBe("object");
9
+ });
10
+ it("has at least one runtime export", () => {
11
+ globalExpect(Object.keys(transformer_exports).length).toBeGreaterThan(0);
12
+ });
13
+ });
14
+
15
+ //#endregion
16
+ export { };
17
+ //# sourceMappingURL=transformer.test.mjs.map
@@ -1,11 +1,12 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_chunk = require('./chunk-fl3r8ClO.cjs');
3
- const require_transformer = require('./transformer-BBFrHqHC.cjs');
2
+ const require_chunk = require('./chunk-BViLPvwy.cjs');
3
+ const require_transformer = require('./transformer-Bzko5OJ6.cjs');
4
4
  let typescript = require("typescript");
5
5
  typescript = require_chunk.__toESM(typescript, 1);
6
6
  let _powerlines_core_plugin_utils = require("@powerlines/core/plugin-utils");
7
7
 
8
8
  //#region src/transpile.ts
9
+ var transpile_exports = /* @__PURE__ */ require_chunk.__exportAll({ transpile: () => transpile });
9
10
  /**
10
11
  * Transpile TypeScript code using the provided context and options.
11
12
  *
@@ -33,4 +34,10 @@ function transpile(context, code, id, options = {}) {
33
34
  }
34
35
 
35
36
  //#endregion
36
- exports.transpile = transpile;
37
+ exports.transpile = transpile;
38
+ Object.defineProperty(exports, 'transpile_exports', {
39
+ enumerable: true,
40
+ get: function () {
41
+ return transpile_exports;
42
+ }
43
+ });
@@ -1,8 +1,10 @@
1
- import { n as createTransformer, t as createDeclarationTransformer } from "./transformer-BqC4_fMK.mjs";
1
+ import { n as __exportAll } from "./chunk-wE0WeVzl.mjs";
2
+ import { n as createTransformer, t as createDeclarationTransformer } from "./transformer-yf6V3L2u.mjs";
2
3
  import ts from "typescript";
3
4
  import { removeVirtualPrefix } from "@powerlines/core/plugin-utils";
4
5
 
5
6
  //#region src/transpile.ts
7
+ var transpile_exports = /* @__PURE__ */ __exportAll({ transpile: () => transpile });
6
8
  /**
7
9
  * Transpile TypeScript code using the provided context and options.
8
10
  *
@@ -30,5 +32,5 @@ function transpile(context, code, id, options = {}) {
30
32
  }
31
33
 
32
34
  //#endregion
33
- export { transpile };
35
+ export { transpile_exports as t, transpile };
34
36
  //# sourceMappingURL=transpile.mjs.map
@@ -0,0 +1,15 @@
1
+ const require_test_DNmyFkvJ = require('./test.DNmyFkvJ-Bj84cw-C.cjs');
2
+ const require_transpile = require('./transpile.cjs');
3
+
4
+ //#region src/transpile.test.ts
5
+ require_test_DNmyFkvJ.describe("base/deepkit/src/transpile.ts", () => {
6
+ require_test_DNmyFkvJ.it("loads module exports", () => {
7
+ require_test_DNmyFkvJ.globalExpect(require_transpile.transpile_exports).toBeDefined();
8
+ require_test_DNmyFkvJ.globalExpect(typeof require_transpile.transpile_exports).toBe("object");
9
+ });
10
+ require_test_DNmyFkvJ.it("has at least one runtime export", () => {
11
+ require_test_DNmyFkvJ.globalExpect(Object.keys(require_transpile.transpile_exports).length).toBeGreaterThan(0);
12
+ });
13
+ });
14
+
15
+ //#endregion
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,17 @@
1
+ import { n as describe, r as it, t as globalExpect } from "./test.DNmyFkvJ-B5Eqa5wB.mjs";
2
+ import { t as transpile_exports } from "./transpile.mjs";
3
+
4
+ //#region src/transpile.test.ts
5
+ describe("base/deepkit/src/transpile.ts", () => {
6
+ it("loads module exports", () => {
7
+ globalExpect(transpile_exports).toBeDefined();
8
+ globalExpect(typeof transpile_exports).toBe("object");
9
+ });
10
+ it("has at least one runtime export", () => {
11
+ globalExpect(Object.keys(transpile_exports).length).toBeGreaterThan(0);
12
+ });
13
+ });
14
+
15
+ //#endregion
16
+ export { };
17
+ //# sourceMappingURL=transpile.test.mjs.map
package/dist/types.cjs CHANGED
@@ -0,0 +1,13 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_chunk = require('./chunk-BViLPvwy.cjs');
3
+
4
+ //#region src/types.ts
5
+ var types_exports = /* @__PURE__ */ require_chunk.__exportAll({});
6
+
7
+ //#endregion
8
+ Object.defineProperty(exports, 'types_exports', {
9
+ enumerable: true,
10
+ get: function () {
11
+ return types_exports;
12
+ }
13
+ });
package/dist/types.mjs CHANGED
@@ -1 +1,8 @@
1
- export { };
1
+ import { n as __exportAll } from "./chunk-wE0WeVzl.mjs";
2
+
3
+ //#region src/types.ts
4
+ var types_exports = /* @__PURE__ */ __exportAll({});
5
+
6
+ //#endregion
7
+ export { types_exports as t };
8
+ //# sourceMappingURL=types.mjs.map
@@ -0,0 +1,15 @@
1
+ const require_test_DNmyFkvJ = require('./test.DNmyFkvJ-Bj84cw-C.cjs');
2
+ const require_types = require('./types.cjs');
3
+
4
+ //#region src/types.test.ts
5
+ require_test_DNmyFkvJ.describe("base/deepkit/src/types.ts", () => {
6
+ require_test_DNmyFkvJ.it("loads module exports", () => {
7
+ require_test_DNmyFkvJ.globalExpect(require_types.types_exports).toBeDefined();
8
+ require_test_DNmyFkvJ.globalExpect(typeof require_types.types_exports).toBe("object");
9
+ });
10
+ require_test_DNmyFkvJ.it("has at least one runtime export", () => {
11
+ require_test_DNmyFkvJ.globalExpect(Object.keys(require_types.types_exports).length).toBeGreaterThan(0);
12
+ });
13
+ });
14
+
15
+ //#endregion
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,17 @@
1
+ import { n as describe, r as it, t as globalExpect } from "./test.DNmyFkvJ-B5Eqa5wB.mjs";
2
+ import { t as types_exports } from "./types.mjs";
3
+
4
+ //#region src/types.test.ts
5
+ describe("base/deepkit/src/types.ts", () => {
6
+ it("loads module exports", () => {
7
+ globalExpect(types_exports).toBeDefined();
8
+ globalExpect(typeof types_exports).toBe("object");
9
+ });
10
+ it("has at least one runtime export", () => {
11
+ globalExpect(Object.keys(types_exports).length).toBeGreaterThan(0);
12
+ });
13
+ });
14
+
15
+ //#endregion
16
+ export { };
17
+ //# sourceMappingURL=types.test.mjs.map
@@ -0,0 +1,34 @@
1
+ const require_test_DNmyFkvJ = require('./test.DNmyFkvJ-Bj84cw-C.cjs');
2
+ const require_utilities = require('./utilities.cjs');
3
+
4
+ //#region src/utilities.test.ts
5
+ require_test_DNmyFkvJ.describe("stringifyStringValue", () => {
6
+ require_test_DNmyFkvJ.it("is a function", () => {
7
+ require_test_DNmyFkvJ.globalExpect(typeof require_utilities.stringifyStringValue).toBe("function");
8
+ });
9
+ require_test_DNmyFkvJ.it("wraps a string in double quotes", () => {
10
+ require_test_DNmyFkvJ.globalExpect(require_utilities.stringifyStringValue("hello")).toBe("\"hello\"");
11
+ });
12
+ require_test_DNmyFkvJ.it("returns undefined as the string 'undefined' in quotes", () => {
13
+ require_test_DNmyFkvJ.globalExpect(require_utilities.stringifyStringValue(void 0)).toBe("\"undefined\"");
14
+ });
15
+ require_test_DNmyFkvJ.it("escapes inner double quotes", () => {
16
+ require_test_DNmyFkvJ.globalExpect(require_utilities.stringifyStringValue("say \"hello\"")).toBe("\"say \\\"hello\\\"\"");
17
+ });
18
+ require_test_DNmyFkvJ.it("handles numbers by converting to string", () => {
19
+ require_test_DNmyFkvJ.globalExpect(require_utilities.stringifyStringValue(42)).toBe("\"42\"");
20
+ });
21
+ });
22
+ require_test_DNmyFkvJ.describe("stringifyValue", () => {
23
+ require_test_DNmyFkvJ.it("is a function", () => {
24
+ require_test_DNmyFkvJ.globalExpect(typeof require_utilities.stringifyValue).toBe("function");
25
+ });
26
+ require_test_DNmyFkvJ.it("returns 'undefined' for undefined value", () => {
27
+ require_test_DNmyFkvJ.globalExpect(require_utilities.stringifyValue({ kind: 5 }, void 0)).toBe("undefined");
28
+ });
29
+ require_test_DNmyFkvJ.it("returns 'null' for null value", () => {
30
+ require_test_DNmyFkvJ.globalExpect(require_utilities.stringifyValue({ kind: 5 }, null)).toBe("null");
31
+ });
32
+ });
33
+
34
+ //#endregion
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,36 @@
1
+ import { n as describe, r as it, t as globalExpect } from "./test.DNmyFkvJ-B5Eqa5wB.mjs";
2
+ import { stringifyStringValue, stringifyValue } from "./utilities.mjs";
3
+
4
+ //#region src/utilities.test.ts
5
+ describe("stringifyStringValue", () => {
6
+ it("is a function", () => {
7
+ globalExpect(typeof stringifyStringValue).toBe("function");
8
+ });
9
+ it("wraps a string in double quotes", () => {
10
+ globalExpect(stringifyStringValue("hello")).toBe("\"hello\"");
11
+ });
12
+ it("returns undefined as the string 'undefined' in quotes", () => {
13
+ globalExpect(stringifyStringValue(void 0)).toBe("\"undefined\"");
14
+ });
15
+ it("escapes inner double quotes", () => {
16
+ globalExpect(stringifyStringValue("say \"hello\"")).toBe("\"say \\\"hello\\\"\"");
17
+ });
18
+ it("handles numbers by converting to string", () => {
19
+ globalExpect(stringifyStringValue(42)).toBe("\"42\"");
20
+ });
21
+ });
22
+ describe("stringifyValue", () => {
23
+ it("is a function", () => {
24
+ globalExpect(typeof stringifyValue).toBe("function");
25
+ });
26
+ it("returns 'undefined' for undefined value", () => {
27
+ globalExpect(stringifyValue({ kind: 5 }, void 0)).toBe("undefined");
28
+ });
29
+ it("returns 'null' for null value", () => {
30
+ globalExpect(stringifyValue({ kind: 5 }, null)).toBe("null");
31
+ });
32
+ });
33
+
34
+ //#endregion
35
+ export { };
36
+ //# sourceMappingURL=utilities.test.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/deepkit",
3
- "version": "0.9.59",
3
+ "version": "0.9.60",
4
4
  "private": false,
5
5
  "description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
6
6
  "keywords": ["deepkit", "powerlines", "storm-software"],
@@ -114,15 +114,15 @@
114
114
  "bin": { "deepkit-install": "bin/deepkit-install.cjs" },
115
115
  "files": ["bin", "dist", "schemas"],
116
116
  "dependencies": {
117
- "@powerlines/core": "^0.48.27",
118
- "@storm-software/config-tools": "^1.190.36",
119
- "@stryke/capnp": "^0.12.105",
120
- "@stryke/fs": "^0.33.79",
121
- "@stryke/path": "^0.29.6",
122
- "@stryke/json": "^0.15.3",
123
- "@stryke/helpers": "^0.10.19",
124
- "@stryke/type-checks": "^0.6.12",
125
- "@stryke/types": "^0.12.7",
117
+ "@powerlines/core": "^0.48.28",
118
+ "@storm-software/config-tools": "^1.190.37",
119
+ "@stryke/capnp": "^0.12.106",
120
+ "@stryke/fs": "^0.33.80",
121
+ "@stryke/path": "^0.29.7",
122
+ "@stryke/json": "^0.15.4",
123
+ "@stryke/helpers": "^0.10.20",
124
+ "@stryke/type-checks": "^0.6.13",
125
+ "@stryke/types": "^0.12.8",
126
126
  "defu": "^6.1.7",
127
127
  "esbuild": "^0.27.7",
128
128
  "jiti": "^2.7.0",
@@ -144,5 +144,5 @@
144
144
  "rolldown": { "optional": true }
145
145
  },
146
146
  "publishConfig": { "access": "public" },
147
- "gitHead": "8712f695515d4d33d5bcfe8c460580d83f321c0e"
147
+ "gitHead": "0b8ebdde5e6e57b8a983e447e0fbb94469a5bd1a"
148
148
  }