@stryke/capnp 0.12.105 → 0.12.106

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 (73) hide show
  1. package/bin/capnpc.cjs +12 -12
  2. package/bin/capnpc.mjs +12 -12
  3. package/bin/capnpc.mjs.map +1 -1
  4. package/dist/{capnp-es.BHkXHvyK-B3-d8RNu.d.mts → capnp-es.BHkXHvyK-CDB5f6dc.d.mts} +1 -1
  5. package/dist/{capnp-es.BHkXHvyK-B3-d8RNu.d.mts.map → capnp-es.BHkXHvyK-CDB5f6dc.d.mts.map} +1 -1
  6. package/dist/{capnp-es.GpvEvMIK-CH8kq1KS.mjs → capnp-es.GpvEvMIK-DhNjvLVf.mjs} +1 -1
  7. package/dist/{capnp-es.GpvEvMIK-CH8kq1KS.mjs.map → capnp-es.GpvEvMIK-DhNjvLVf.mjs.map} +1 -1
  8. package/dist/chunk-DIR5cmvx.cjs +60 -0
  9. package/dist/chunk-DbXXkPD9.mjs +45 -0
  10. package/dist/{compile-BaKiSOxH.cjs → compile-B0IAAPCE.cjs} +15 -4
  11. package/dist/{compile-WsDhcWcc.mjs → compile-pokJNYrI.mjs} +9 -4
  12. package/dist/{compile-WsDhcWcc.mjs.map → compile-pokJNYrI.mjs.map} +1 -1
  13. package/dist/compile.cjs +1 -1
  14. package/dist/compile.d.mts +1 -1
  15. package/dist/compile.mjs +1 -1
  16. package/dist/compile.test.cjs +12 -0
  17. package/dist/compile.test.d.cts +1 -0
  18. package/dist/compile.test.d.mts +1 -0
  19. package/dist/compile.test.mjs +14 -0
  20. package/dist/compile.test.mjs.map +1 -0
  21. package/dist/{dist-VMGxvENY.cjs → dist-B4Hj5LOz.cjs} +1 -1
  22. package/dist/{dist-DQ7xmzRT.mjs → dist-DodkoxUk.mjs} +2 -2
  23. package/dist/{dist-DQ7xmzRT.mjs.map → dist-DodkoxUk.mjs.map} +1 -1
  24. package/dist/{helpers-CAjBYVF6.mjs → helpers-DGLnZDYv.mjs} +12 -40
  25. package/dist/{helpers-CAjBYVF6.mjs.map → helpers-DGLnZDYv.mjs.map} +1 -1
  26. package/dist/{helpers-BPRG71g-.cjs → helpers-DKdtJdpX.cjs} +23 -49
  27. package/dist/helpers.cjs +1 -1
  28. package/dist/helpers.d.mts +1 -1
  29. package/dist/helpers.mjs +1 -1
  30. package/dist/helpers.test.cjs +12 -0
  31. package/dist/helpers.test.d.cts +1 -0
  32. package/dist/helpers.test.d.mts +1 -0
  33. package/dist/helpers.test.mjs +14 -0
  34. package/dist/helpers.test.mjs.map +1 -0
  35. package/dist/{index-LYXu6eWz.d.mts → index-DLVKIbjL.d.mts} +2 -2
  36. package/dist/{index-LYXu6eWz.d.mts.map → index-DLVKIbjL.d.mts.map} +1 -1
  37. package/dist/index.cjs +76 -3
  38. package/dist/index.d.mts +3 -3
  39. package/dist/index.mjs +72 -4
  40. package/dist/index.mjs.map +1 -0
  41. package/dist/index.test.cjs +12 -0
  42. package/dist/index.test.d.cts +1 -0
  43. package/dist/index.test.d.mts +1 -0
  44. package/dist/index.test.mjs +14 -0
  45. package/dist/index.test.mjs.map +1 -0
  46. package/dist/magic-string.es-DNGukRib.cjs +1014 -0
  47. package/dist/magic-string.es-DgyxG5Z0.mjs +1014 -0
  48. package/dist/magic-string.es-DgyxG5Z0.mjs.map +1 -0
  49. package/dist/rpc-helpers.cjs +14 -4
  50. package/dist/rpc-helpers.d.mts +2 -2
  51. package/dist/rpc-helpers.mjs +8 -3
  52. package/dist/rpc-helpers.mjs.map +1 -1
  53. package/dist/rpc-helpers.test.cjs +12 -0
  54. package/dist/rpc-helpers.test.d.cts +1 -0
  55. package/dist/rpc-helpers.test.d.mts +1 -0
  56. package/dist/rpc-helpers.test.mjs +14 -0
  57. package/dist/rpc-helpers.test.mjs.map +1 -0
  58. package/dist/test.DNmyFkvJ-BEyBESND.mjs +13766 -0
  59. package/dist/test.DNmyFkvJ-BEyBESND.mjs.map +1 -0
  60. package/dist/test.DNmyFkvJ-NmRZglFv.cjs +13783 -0
  61. package/dist/{types-CVzMn-TI.d.mts → types-OZlfJNQI.d.mts} +2 -2
  62. package/dist/{types-CVzMn-TI.d.mts.map → types-OZlfJNQI.d.mts.map} +1 -1
  63. package/dist/types.cjs +9 -1
  64. package/dist/types.d.mts +1 -1
  65. package/dist/types.mjs +4 -1
  66. package/dist/types.mjs.map +1 -1
  67. package/dist/types.test.cjs +12 -0
  68. package/dist/types.test.d.cts +1 -0
  69. package/dist/types.test.d.mts +1 -0
  70. package/dist/types.test.mjs +14 -0
  71. package/dist/types.test.mjs.map +1 -0
  72. package/package.json +7 -7
  73. /package/dist/{capnp-es.GpvEvMIK-CZ5ZimCD.cjs → capnp-es.GpvEvMIK-ftrDCVpO.cjs} +0 -0
@@ -0,0 +1,60 @@
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), cb = null), mod.exports);
9
+ var __exportAll = (all, no_symbols) => {
10
+ let target = {};
11
+ for (var name in all) {
12
+ __defProp(target, name, {
13
+ get: all[name],
14
+ enumerable: true
15
+ });
16
+ }
17
+ if (!no_symbols) {
18
+ __defProp(target, Symbol.toStringTag, { value: "Module" });
19
+ }
20
+ return target;
21
+ };
22
+ var __copyProps = (to, from, except, desc) => {
23
+ if (from && typeof from === "object" || typeof from === "function") {
24
+ for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
25
+ key = keys[i];
26
+ if (!__hasOwnProp.call(to, key) && key !== except) {
27
+ __defProp(to, key, {
28
+ get: ((k) => from[k]).bind(null, key),
29
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
30
+ });
31
+ }
32
+ }
33
+ }
34
+ return to;
35
+ };
36
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
37
+ value: mod,
38
+ enumerable: true
39
+ }) : target, mod));
40
+
41
+ //#endregion
42
+
43
+ Object.defineProperty(exports, '__commonJSMin', {
44
+ enumerable: true,
45
+ get: function () {
46
+ return __commonJSMin;
47
+ }
48
+ });
49
+ Object.defineProperty(exports, '__exportAll', {
50
+ enumerable: true,
51
+ get: function () {
52
+ return __exportAll;
53
+ }
54
+ });
55
+ Object.defineProperty(exports, '__toESM', {
56
+ enumerable: true,
57
+ get: function () {
58
+ return __toESM;
59
+ }
60
+ });
@@ -0,0 +1,45 @@
1
+ import { createRequire } from "node:module";
2
+
3
+ //#region \0rolldown/runtime.js
4
+ var __create = Object.create;
5
+ var __defProp = Object.defineProperty;
6
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getProtoOf = Object.getPrototypeOf;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
11
+ var __exportAll = (all, no_symbols) => {
12
+ let target = {};
13
+ for (var name in all) {
14
+ __defProp(target, name, {
15
+ get: all[name],
16
+ enumerable: true
17
+ });
18
+ }
19
+ if (!no_symbols) {
20
+ __defProp(target, Symbol.toStringTag, { value: "Module" });
21
+ }
22
+ return target;
23
+ };
24
+ var __copyProps = (to, from, except, desc) => {
25
+ if (from && typeof from === "object" || typeof from === "function") {
26
+ for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
27
+ key = keys[i];
28
+ if (!__hasOwnProp.call(to, key) && key !== except) {
29
+ __defProp(to, key, {
30
+ get: ((k) => from[k]).bind(null, key),
31
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
32
+ });
33
+ }
34
+ }
35
+ }
36
+ return to;
37
+ };
38
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
39
+ value: mod,
40
+ enumerable: true
41
+ }) : target, mod));
42
+ var __require = /* @__PURE__ */ createRequire(import.meta.url);
43
+
44
+ //#endregion
45
+ export { __toESM as i, __exportAll as n, __require as r, __commonJSMin as t };
@@ -1,10 +1,11 @@
1
- const require_helpers = require('./helpers-BPRG71g-.cjs');
2
- const require_capnp_es_GpvEvMIK = require('./capnp-es.GpvEvMIK-CZ5ZimCD.cjs');
1
+ const require_chunk = require('./chunk-DIR5cmvx.cjs');
2
+ const require_helpers = require('./helpers-DKdtJdpX.cjs');
3
+ const require_capnp_es_GpvEvMIK = require('./capnp-es.GpvEvMIK-ftrDCVpO.cjs');
3
4
  let _stryke_fs_exists = require("@stryke/fs/exists");
4
5
  let typescript = require("typescript");
5
- typescript = require_helpers.__toESM(typescript, 1);
6
+ typescript = require_chunk.__toESM(typescript, 1);
6
7
  let defu = require("defu");
7
- defu = require_helpers.__toESM(defu, 1);
8
+ defu = require_chunk.__toESM(defu, 1);
8
9
  let node_buffer = require("node:buffer");
9
10
  let node_child_process = require("node:child_process");
10
11
 
@@ -3548,6 +3549,10 @@ function tsCompile(files, dts, js, tsconfig) {
3548
3549
 
3549
3550
  //#endregion
3550
3551
  //#region src/compile.ts
3552
+ var compile_exports = /* @__PURE__ */ require_chunk.__exportAll({
3553
+ capnpc: () => capnpc,
3554
+ compile: () => compile
3555
+ });
3551
3556
  /**
3552
3557
  * Compiles Cap'n Proto schemas into TypeScript files.
3553
3558
  *
@@ -3627,4 +3632,10 @@ Object.defineProperty(exports, 'compile', {
3627
3632
  get: function () {
3628
3633
  return compile;
3629
3634
  }
3635
+ });
3636
+ Object.defineProperty(exports, 'compile_exports', {
3637
+ enumerable: true,
3638
+ get: function () {
3639
+ return compile_exports;
3640
+ }
3630
3641
  });
@@ -1,5 +1,6 @@
1
- import { n as writeWarning, t as resolveOptions } from "./helpers-CAjBYVF6.mjs";
2
- import { $t as initData, Cn as setUint64, Ct as getInt8, Dt as getList, Jt as getText, Nt as getPointer, Qt as getUint8, Rt as getStruct, Sn as setUint32, St as getInt64, T as ObjectSize, Tn as testWhich, X as adopt, Xt as getUint32, Yt as getUint16, Zt as getUint64, an as isNull, bn as setText, bt as getInt16, d as getUint16Mask, dn as setFloat32, dt as getAs, en as initList, et as copyFrom, fn as setFloat64, ft as getBit, gn as setInt8, hn as setInt64, ht as getData, it as disown, ln as setBit, mn as setInt32, on as pad, pn as setInt16, q as Struct, r as CompositeList, rn as initStructAt, t as Message, ut as format, vt as getFloat32, wn as setUint8, xn as setUint16, xt as getInt32, yt as getFloat64 } from "./capnp-es.GpvEvMIK-CH8kq1KS.mjs";
1
+ import { n as __exportAll } from "./chunk-DbXXkPD9.mjs";
2
+ import { n as resolveOptions, r as writeWarning } from "./helpers-DGLnZDYv.mjs";
3
+ import { $t as initData, Cn as setUint64, Ct as getInt8, Dt as getList, Jt as getText, Nt as getPointer, Qt as getUint8, Rt as getStruct, Sn as setUint32, St as getInt64, T as ObjectSize, Tn as testWhich, X as adopt, Xt as getUint32, Yt as getUint16, Zt as getUint64, an as isNull, bn as setText, bt as getInt16, d as getUint16Mask, dn as setFloat32, dt as getAs, en as initList, et as copyFrom, fn as setFloat64, ft as getBit, gn as setInt8, hn as setInt64, ht as getData, it as disown, ln as setBit, mn as setInt32, on as pad, pn as setInt16, q as Struct, r as CompositeList, rn as initStructAt, t as Message, ut as format, vt as getFloat32, wn as setUint8, xn as setUint16, xt as getInt32, yt as getFloat64 } from "./capnp-es.GpvEvMIK-DhNjvLVf.mjs";
3
4
  import { existsSync } from "@stryke/fs/exists";
4
5
  import ts from "typescript";
5
6
  import defu from "defu";
@@ -3546,6 +3547,10 @@ function tsCompile(files, dts, js, tsconfig) {
3546
3547
 
3547
3548
  //#endregion
3548
3549
  //#region src/compile.ts
3550
+ var compile_exports = /* @__PURE__ */ __exportAll({
3551
+ capnpc: () => capnpc,
3552
+ compile: () => compile
3553
+ });
3549
3554
  /**
3550
3555
  * Compiles Cap'n Proto schemas into TypeScript files.
3551
3556
  *
@@ -3614,5 +3619,5 @@ async function compile(dataBuf, options) {
3614
3619
  }
3615
3620
 
3616
3621
  //#endregion
3617
- export { compile as n, capnpc as t };
3618
- //# sourceMappingURL=compile-WsDhcWcc.mjs.map
3622
+ export { compile as n, compile_exports as r, capnpc as t };
3623
+ //# sourceMappingURL=compile-pokJNYrI.mjs.map