@stryke/capnp 0.12.11 → 0.12.13

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.
package/bin/capnpc.cjs CHANGED
@@ -8279,7 +8279,7 @@ function createProgram() {
8279
8279
  program.name("storm-capnpc").description("Run the Storm Cap'n Proto compiler").version("1.0.0", "-v --version", "display CLI version");
8280
8280
  program.command("compile", {
8281
8281
  isDefault: true
8282
- }).option("-p --project-root <path>", "The path to the project root directory").option("-s --schema <path>", "The directory (or a glob to the directory) containing the Cap'n Proto schema files to compile (default: current working directory)").option("-o --output <path>", "The directory to output the generated files to").option("--tsconfig <path>", "The path to the TypeScript configuration file to use for compilation").option("--skip-generating-id", "Skip generating a new 64-bit unique ID for use in a Cap'n Proto schema").option("--no-standard-imports", "Skip adding default import paths; use only those specified by -I").option("--no-ts", "An indicator to disable generation of TypeScript files").option("--js", "An indicator to generate JavaScript files").option("--dts", "An indicator to generate TypeScript declaration files").option("--no-dts", "An indicator to disable generation of TypeScript declaration files").option("-w --workspace-root <path>", "The path to the workspace root directory", root || process.cwd()).option("--tty", "An indicator to enable TTY mode for the compiler").action(compileAction(root)).showHelpAfterError();
8282
+ }).option("-p --project-root <path>", "The path to the project root directory").option("-s --schema <path>", "The directory (or a glob to the directory) containing the Cap'n Proto schema files to compile (default: current working directory)").option("-o --output <path>", "The directory to output the generated files to").option("--tsconfig <path>", "The path to the TypeScript configuration file to use for compilation").option("--skip-generating-id", "Skip generating a new 64-bit unique ID for use in a Cap'n Proto schema").option("--no-standard-imports", "Skip adding default import paths; use only those specified by -I").option("--no-ts", "An indicator to disable generation of TypeScript files").option("--js", "An indicator to generate JavaScript files").option("--dts", "An indicator to generate TypeScript declaration files").option("--no-dts", "An indicator to disable generation of TypeScript declaration files").option("-w --workspace-root <path>", "The path to the workspace root directory", root || process.cwd()).option("--tty", "An indicator to enable TTY mode for the compiler").action(compileAction(root));
8283
8283
  return program;
8284
8284
  }
8285
8285
  __name(createProgram, "createProgram");
package/bin/capnpc.js CHANGED
@@ -7,8 +7,8 @@ import { writeFatal as writeFatal2, writeInfo, writeSuccess, writeWarning as wri
7
7
  import { exitWithError, exitWithSuccess, findWorkspaceRootSafe, handleProcess } from "@storm-software/config-tools/utilities";
8
8
 
9
9
  // ../fs/src/exists.ts
10
- import { existsSync as existsSyncFs } from "node:fs";
11
- import { access, constants } from "node:fs/promises";
10
+ import { existsSync as existsSyncFs } from "fs";
11
+ import { access, constants } from "fs/promises";
12
12
  function existsSync(filePath) {
13
13
  return existsSyncFs(filePath);
14
14
  }
@@ -454,7 +454,7 @@ __name(relativePath, "relativePath");
454
454
 
455
455
  // bin/capnpc.ts
456
456
  import { Command } from "commander";
457
- import { writeFile as writeFile2 } from "node:fs/promises";
457
+ import { writeFile as writeFile2 } from "fs/promises";
458
458
 
459
459
  // src/compile.ts
460
460
  import { writeWarning as writeWarning2 } from "@storm-software/config-tools/logger/console";
@@ -7495,8 +7495,8 @@ import "typescript";
7495
7495
 
7496
7496
  // src/compile.ts
7497
7497
  import defu2 from "defu";
7498
- import { Buffer as Buffer3 } from "node:buffer";
7499
- import { exec } from "node:child_process";
7498
+ import { Buffer as Buffer3 } from "buffer";
7499
+ import { exec } from "child_process";
7500
7500
 
7501
7501
  // src/helpers.ts
7502
7502
  import { writeFatal, writeWarning } from "@storm-software/config-tools/logger/console";
@@ -7512,7 +7512,7 @@ __name(toArray, "toArray");
7512
7512
 
7513
7513
  // ../json/src/storm-json.ts
7514
7514
  import { parse as parse2 } from "jsonc-parser";
7515
- import { Buffer as Buffer2 } from "node:buffer";
7515
+ import { Buffer as Buffer2 } from "buffer";
7516
7516
  import SuperJSON from "superjson";
7517
7517
 
7518
7518
  // ../json/src/utils/strip-comments.ts
@@ -8003,8 +8003,8 @@ StormJSON.instance.registerCustom({
8003
8003
  }, "Bytes");
8004
8004
 
8005
8005
  // ../fs/src/read-file.ts
8006
- import { existsSync as existsSync2, readFileSync as readFileSyncFs } from "node:fs";
8007
- import { readFile as readFileFs } from "node:fs/promises";
8006
+ import { existsSync as existsSync2, readFileSync as readFileSyncFs } from "fs";
8007
+ import { readFile as readFileFs } from "fs/promises";
8008
8008
  var readFile = /* @__PURE__ */ __name(async (filePath) => {
8009
8009
  if (!filePath) {
8010
8010
  throw new Error("No file path provided to read data");
@@ -8015,13 +8015,13 @@ var readFile = /* @__PURE__ */ __name(async (filePath) => {
8015
8015
  }, "readFile");
8016
8016
 
8017
8017
  // ../fs/src/write-file.ts
8018
- import { writeFileSync as writeFileSyncFs } from "node:fs";
8019
- import { writeFile as writeFileFs } from "node:fs/promises";
8018
+ import { writeFileSync as writeFileSyncFs } from "fs";
8019
+ import { writeFile as writeFileFs } from "fs/promises";
8020
8020
 
8021
8021
  // ../fs/src/helpers.ts
8022
8022
  import { parseTar, parseTarGzip } from "nanotar";
8023
- import { createWriteStream, mkdirSync, rmSync } from "node:fs";
8024
- import { mkdir, readFile as readFile2, rm } from "node:fs/promises";
8023
+ import { createWriteStream, mkdirSync, rmSync } from "fs";
8024
+ import { mkdir, readFile as readFile2, rm } from "fs/promises";
8025
8025
 
8026
8026
  // ../fs/src/json.ts
8027
8027
  async function readJsonFile(path, options) {
@@ -8248,7 +8248,7 @@ function createProgram() {
8248
8248
  program.name("storm-capnpc").description("Run the Storm Cap'n Proto compiler").version("1.0.0", "-v --version", "display CLI version");
8249
8249
  program.command("compile", {
8250
8250
  isDefault: true
8251
- }).option("-p --project-root <path>", "The path to the project root directory").option("-s --schema <path>", "The directory (or a glob to the directory) containing the Cap'n Proto schema files to compile (default: current working directory)").option("-o --output <path>", "The directory to output the generated files to").option("--tsconfig <path>", "The path to the TypeScript configuration file to use for compilation").option("--skip-generating-id", "Skip generating a new 64-bit unique ID for use in a Cap'n Proto schema").option("--no-standard-imports", "Skip adding default import paths; use only those specified by -I").option("--no-ts", "An indicator to disable generation of TypeScript files").option("--js", "An indicator to generate JavaScript files").option("--dts", "An indicator to generate TypeScript declaration files").option("--no-dts", "An indicator to disable generation of TypeScript declaration files").option("-w --workspace-root <path>", "The path to the workspace root directory", root || process.cwd()).option("--tty", "An indicator to enable TTY mode for the compiler").action(compileAction(root)).showHelpAfterError();
8251
+ }).option("-p --project-root <path>", "The path to the project root directory").option("-s --schema <path>", "The directory (or a glob to the directory) containing the Cap'n Proto schema files to compile (default: current working directory)").option("-o --output <path>", "The directory to output the generated files to").option("--tsconfig <path>", "The path to the TypeScript configuration file to use for compilation").option("--skip-generating-id", "Skip generating a new 64-bit unique ID for use in a Cap'n Proto schema").option("--no-standard-imports", "Skip adding default import paths; use only those specified by -I").option("--no-ts", "An indicator to disable generation of TypeScript files").option("--js", "An indicator to generate JavaScript files").option("--dts", "An indicator to generate TypeScript declaration files").option("--no-dts", "An indicator to disable generation of TypeScript declaration files").option("-w --workspace-root <path>", "The path to the workspace root directory", root || process.cwd()).option("--tty", "An indicator to enable TTY mode for the compiler").action(compileAction(root));
8252
8252
  return program;
8253
8253
  }
8254
8254
  __name(createProgram, "createProgram");
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class; var _class2; var _class3; var _class4; var _class5; var _class6; var _class7; var _class8; var _class9; var _class10; var _class11; var _class12; var _class13; var _class14; var _class15; var _class16; var _class17; var _class18; var _class19; var _class20; var _class21; var _class22; var _class23; var _class24; var _class25; var _class26; var _class27; var _class28; var _class29; var _class30; var _class31; var _class32; var _class33; var _class34; var _class35; var _class36; var _class37;
2
2
 
3
3
 
4
- var _chunkGZC57DK6cjs = require('./chunk-GZC57DK6.cjs');
4
+ var _chunkAXRD4JTBcjs = require('./chunk-AXRD4JTB.cjs');
5
5
 
6
6
 
7
7
 
@@ -4053,10 +4053,10 @@ async function capnpc(options) {
4053
4053
  }
4054
4054
  if (dataBuf.byteLength === 0) {
4055
4055
  const opts = [];
4056
- if (output && _chunkGZC57DK6cjs.existsSync.call(void 0, output)) {
4056
+ if (output && _chunkAXRD4JTBcjs.existsSync.call(void 0, output)) {
4057
4057
  opts.push(`-o-:${output}`);
4058
4058
  } else {
4059
- if (output && !_chunkGZC57DK6cjs.existsSync.call(void 0, output)) {
4059
+ if (output && !_chunkAXRD4JTBcjs.existsSync.call(void 0, output)) {
4060
4060
  _console.writeWarning.call(void 0, `Output directory "${output}" does not exist, will write to schema path...`);
4061
4061
  }
4062
4062
  opts.push("-o-");
@@ -4084,7 +4084,7 @@ async function capnpc(options) {
4084
4084
  }
4085
4085
  _chunkUSNT2KNTcjs.__name.call(void 0, capnpc, "capnpc");
4086
4086
  async function compile(dataBuf, options) {
4087
- const resolvedOptions = await _chunkGZC57DK6cjs.resolveOptions.call(void 0, options);
4087
+ const resolvedOptions = await _chunkAXRD4JTBcjs.resolveOptions.call(void 0, options);
4088
4088
  if (!resolvedOptions) {
4089
4089
  _console.writeWarning.call(void 0, "\u2716 Unable to resolve Cap'n Proto compiler options - the program will terminate", {
4090
4090
  logLevel: "all"
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class; var _class2; var _class3; var _class4; var _class5; var _class6; var _class7; var _class8; var _class9; var _class10; var _class11; var _class12; var _class13; var _class14; var _class15; var _class16; var _class17; var _class18; var _class19; var _class20; var _class21; var _class22; var _class23; var _class24; var _class25; var _class26; var _class27; var _class28; var _class29; var _class30; var _class31; var _class32; var _class33; var _class34; var _class35; var _class36; var _class37; var _class38; var _class39; var _class40; var _class41; var _class42; var _class43; var _class44; var _class45;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class; var _class2; var _class3; var _class4; var _class5; var _class6; var _class7; var _class8; var _class9; var _class10; var _class11; var _class12; var _class13; var _class14; var _class15; var _class16; var _class17; var _class18; var _class19; var _class20; var _class21; var _class22; var _class23; var _class24; var _class25; var _class26; var _class27; var _class28; var _class29; var _class30; var _class31; var _class32; var _class33; var _class34; var _class35; var _class36; var _class37; var _class38; var _class39; var _class40; var _class41; var _class42; var _class43; var _class44; var _class45; var _class46;
2
2
 
3
3
 
4
4
 
@@ -4725,24 +4725,24 @@ var DeferredTransport = (_class44 = class {constructor() { _class44.prototype.__
4725
4725
 
4726
4726
  // src/rpc.ts
4727
4727
  var _worker_threads = require('worker_threads');
4728
- var MessageChannelTransport = class extends DeferredTransport {
4728
+ var MessageChannelTransport = (_class45 = class extends DeferredTransport {
4729
4729
  static {
4730
4730
  _chunkUSNT2KNTcjs.__name.call(void 0, this, "MessageChannelTransport");
4731
4731
  }
4732
4732
 
4733
4733
  constructor(port) {
4734
- super(), this.port = port, this.close = () => {
4735
- this.port.off("message", this.resolve);
4736
- this.port.off("messageerror", this.reject);
4737
- this.port.off("close", this.close);
4738
- this.port.close();
4739
- super.close();
4740
- };
4734
+ super();_class45.prototype.__init27.call(this);, this.port = port;
4741
4735
  this.port.on("message", this.resolve);
4742
4736
  this.port.on("messageerror", this.reject);
4743
4737
  this.port.on("close", this.close);
4744
4738
  }
4745
-
4739
+ __init27() {this.close = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, () => {
4740
+ this.port.off("message", this.resolve);
4741
+ this.port.off("messageerror", this.reject);
4742
+ this.port.off("close", this.close);
4743
+ this.port.close();
4744
+ super.close();
4745
+ }, "close")}
4746
4746
  sendMessage(msg) {
4747
4747
  const m = new (0, _chunkKMCJ5MIQcjs.Message)();
4748
4748
  m.setRoot(msg);
@@ -4751,8 +4751,8 @@ var MessageChannelTransport = class extends DeferredTransport {
4751
4751
  buf
4752
4752
  ]);
4753
4753
  }
4754
- };
4755
- var CapnpRPC = (_class45 = class {constructor() { _class45.prototype.__init27.call(this);_class45.prototype.__init28.call(this);_class45.prototype.__init29.call(this); }
4754
+ }, _class45);
4755
+ var CapnpRPC = (_class46 = class {constructor() { _class46.prototype.__init28.call(this);_class46.prototype.__init29.call(this);_class46.prototype.__init30.call(this); }
4756
4756
  static {
4757
4757
  _chunkUSNT2KNTcjs.__name.call(void 0, this, "CapnpRPC");
4758
4758
  }
@@ -4762,21 +4762,21 @@ var CapnpRPC = (_class45 = class {constructor() { _class45.prototype.__init27.ca
4762
4762
  * @remarks
4763
4763
  * This is used to manage incoming connections when the accept method is called.
4764
4764
  */
4765
- __init27() {this.acceptQueue = new Array()}
4765
+ __init28() {this.acceptQueue = new Array()}
4766
4766
  /**
4767
4767
  * A map of connections by their ID.
4768
4768
  *
4769
4769
  * @remarks
4770
4770
  * This is used to manage multiple connections and allows for easy retrieval by ID.
4771
4771
  */
4772
- __init28() {this.connections = {}}
4772
+ __init29() {this.connections = {}}
4773
4773
  /**
4774
4774
  * A queue for connections that are waiting to be accepted.
4775
4775
  *
4776
4776
  * @remarks
4777
4777
  * This is used to manage incoming connections when the accept method is called.
4778
4778
  */
4779
- __init29() {this.connectQueue = new Array()}
4779
+ __init30() {this.connectQueue = new Array()}
4780
4780
  /**
4781
4781
  * Creates a new {@link Conn} instance.
4782
4782
  *
@@ -4836,7 +4836,7 @@ var CapnpRPC = (_class45 = class {constructor() { _class45.prototype.__init27.ca
4836
4836
  this.connectQueue.length = 0;
4837
4837
  this.connections = {};
4838
4838
  }
4839
- }, _class45);
4839
+ }, _class46);
4840
4840
 
4841
4841
 
4842
4842
 
@@ -4724,25 +4724,25 @@ var DeferredTransport = class {
4724
4724
  };
4725
4725
 
4726
4726
  // src/rpc.ts
4727
- import { MessageChannel } from "node:worker_threads";
4727
+ import { MessageChannel } from "worker_threads";
4728
4728
  var MessageChannelTransport = class extends DeferredTransport {
4729
4729
  static {
4730
4730
  __name(this, "MessageChannelTransport");
4731
4731
  }
4732
4732
  port;
4733
4733
  constructor(port) {
4734
- super(), this.port = port, this.close = () => {
4735
- this.port.off("message", this.resolve);
4736
- this.port.off("messageerror", this.reject);
4737
- this.port.off("close", this.close);
4738
- this.port.close();
4739
- super.close();
4740
- };
4734
+ super(), this.port = port;
4741
4735
  this.port.on("message", this.resolve);
4742
4736
  this.port.on("messageerror", this.reject);
4743
4737
  this.port.on("close", this.close);
4744
4738
  }
4745
- close;
4739
+ close = /* @__PURE__ */ __name(() => {
4740
+ this.port.off("message", this.resolve);
4741
+ this.port.off("messageerror", this.reject);
4742
+ this.port.off("close", this.close);
4743
+ this.port.close();
4744
+ super.close();
4745
+ }, "close");
4746
4746
  sendMessage(msg) {
4747
4747
  const m = new Message();
4748
4748
  m.setRoot(msg);
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  existsSync,
3
3
  resolveOptions
4
- } from "./chunk-JRYM3L2C.js";
4
+ } from "./chunk-ZOSZITDY.js";
5
5
  import {
6
6
  CompositeList,
7
7
  Message,
@@ -4030,8 +4030,8 @@ import "typescript";
4030
4030
 
4031
4031
  // src/compile.ts
4032
4032
  import defu from "defu";
4033
- import { Buffer } from "node:buffer";
4034
- import { exec } from "node:child_process";
4033
+ import { Buffer } from "buffer";
4034
+ import { exec } from "child_process";
4035
4035
  async function capnpc(options) {
4036
4036
  const { output, tsconfig, schemas = [], tty } = options;
4037
4037
  let dataBuf = Buffer.alloc(0);
@@ -15,8 +15,8 @@ function toArray(array) {
15
15
  __name(toArray, "toArray");
16
16
 
17
17
  // ../fs/src/exists.ts
18
- import { existsSync as existsSyncFs } from "node:fs";
19
- import { access, constants } from "node:fs/promises";
18
+ import { existsSync as existsSyncFs } from "fs";
19
+ import { access, constants } from "fs/promises";
20
20
  function existsSync(filePath) {
21
21
  return existsSyncFs(filePath);
22
22
  }
@@ -68,7 +68,7 @@ var isString = /* @__PURE__ */ __name((value) => {
68
68
 
69
69
  // ../json/src/storm-json.ts
70
70
  import { parse as parse2 } from "jsonc-parser";
71
- import { Buffer as Buffer2 } from "node:buffer";
71
+ import { Buffer as Buffer2 } from "buffer";
72
72
  import SuperJSON from "superjson";
73
73
 
74
74
  // ../types/src/base.ts
@@ -586,8 +586,8 @@ var isError = /* @__PURE__ */ __name((obj) => {
586
586
  }, "isError");
587
587
 
588
588
  // ../fs/src/read-file.ts
589
- import { existsSync as existsSync2, readFileSync as readFileSyncFs } from "node:fs";
590
- import { readFile as readFileFs } from "node:fs/promises";
589
+ import { existsSync as existsSync2, readFileSync as readFileSyncFs } from "fs";
590
+ import { readFile as readFileFs } from "fs/promises";
591
591
  var readFile = /* @__PURE__ */ __name(async (filePath) => {
592
592
  if (!filePath) {
593
593
  throw new Error("No file path provided to read data");
@@ -965,13 +965,13 @@ function relativePath(from, to, withEndSlash = false) {
965
965
  __name(relativePath, "relativePath");
966
966
 
967
967
  // ../fs/src/write-file.ts
968
- import { writeFileSync as writeFileSyncFs } from "node:fs";
969
- import { writeFile as writeFileFs } from "node:fs/promises";
968
+ import { writeFileSync as writeFileSyncFs } from "fs";
969
+ import { writeFile as writeFileFs } from "fs/promises";
970
970
 
971
971
  // ../fs/src/helpers.ts
972
972
  import { parseTar, parseTarGzip } from "nanotar";
973
- import { createWriteStream, mkdirSync, rmSync } from "node:fs";
974
- import { mkdir, readFile as readFile2, rm } from "node:fs/promises";
973
+ import { createWriteStream, mkdirSync, rmSync } from "fs";
974
+ import { mkdir, readFile as readFile2, rm } from "fs/promises";
975
975
 
976
976
  // ../fs/src/json.ts
977
977
  async function readJsonFile(path, options) {
package/dist/compile.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkEQ2QX2E5cjs = require('./chunk-EQ2QX2E5.cjs');
5
- require('./chunk-GZC57DK6.cjs');
4
+ var _chunkCU5PYCP7cjs = require('./chunk-CU5PYCP7.cjs');
5
+ require('./chunk-AXRD4JTB.cjs');
6
6
  require('./chunk-KMCJ5MIQ.cjs');
7
7
  require('./chunk-USNT2KNT.cjs');
8
8
 
9
9
 
10
10
 
11
- exports.capnpc = _chunkEQ2QX2E5cjs.capnpc; exports.compile = _chunkEQ2QX2E5cjs.compile;
11
+ exports.capnpc = _chunkCU5PYCP7cjs.capnpc; exports.compile = _chunkCU5PYCP7cjs.compile;
package/dist/compile.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  capnpc,
3
3
  compile
4
- } from "./chunk-PHGBDPXG.js";
5
- import "./chunk-JRYM3L2C.js";
4
+ } from "./chunk-NEQ3GNWN.js";
5
+ import "./chunk-ZOSZITDY.js";
6
6
  import "./chunk-GI42NGKQ.js";
7
7
  import "./chunk-SHUYVCID.js";
8
8
  export {
package/dist/helpers.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkGZC57DK6cjs = require('./chunk-GZC57DK6.cjs');
3
+ var _chunkAXRD4JTBcjs = require('./chunk-AXRD4JTB.cjs');
4
4
  require('./chunk-USNT2KNT.cjs');
5
5
 
6
6
 
7
- exports.resolveOptions = _chunkGZC57DK6cjs.resolveOptions;
7
+ exports.resolveOptions = _chunkAXRD4JTBcjs.resolveOptions;
package/dist/helpers.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveOptions
3
- } from "./chunk-JRYM3L2C.js";
3
+ } from "./chunk-ZOSZITDY.js";
4
4
  import "./chunk-SHUYVCID.js";
5
5
  export {
6
6
  resolveOptions
package/dist/index.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkEQ2QX2E5cjs = require('./chunk-EQ2QX2E5.cjs');
5
- require('./chunk-GZC57DK6.cjs');
4
+ var _chunkCU5PYCP7cjs = require('./chunk-CU5PYCP7.cjs');
5
+ require('./chunk-AXRD4JTB.cjs');
6
6
 
7
7
 
8
8
 
@@ -39,7 +39,7 @@ require('./chunk-GZC57DK6.cjs');
39
39
 
40
40
 
41
41
 
42
- var _chunkHF5CIG6Fcjs = require('./chunk-HF5CIG6F.cjs');
42
+ var _chunkCUP3M7JHcjs = require('./chunk-CUP3M7JH.cjs');
43
43
 
44
44
 
45
45
 
@@ -135,4 +135,4 @@ require('./chunk-USNT2KNT.cjs');
135
135
 
136
136
 
137
137
 
138
- exports.AnyPointerList = _chunkHF5CIG6Fcjs.AnyPointerList; exports.BoolList = _chunkHF5CIG6Fcjs.BoolList; exports.CapnpRPC = _chunkHF5CIG6Fcjs.CapnpRPC; exports.CodeGeneratorContext = _chunkR2JXWA7Qcjs.CodeGeneratorContext; exports.CompositeList = _chunkKMCJ5MIQcjs.CompositeList; exports.Conn = _chunkHF5CIG6Fcjs.Conn; exports.Data = _chunkKMCJ5MIQcjs.Data; exports.DataList = _chunkHF5CIG6Fcjs.DataList; exports.Deferred = _chunkHF5CIG6Fcjs.Deferred; exports.DeferredTransport = _chunkHF5CIG6Fcjs.DeferredTransport; exports.ErrorClient = _chunkKMCJ5MIQcjs.ErrorClient; exports.Float32List = _chunkHF5CIG6Fcjs.Float32List; exports.Float64List = _chunkHF5CIG6Fcjs.Float64List; exports.Int16List = _chunkHF5CIG6Fcjs.Int16List; exports.Int32List = _chunkHF5CIG6Fcjs.Int32List; exports.Int64List = _chunkHF5CIG6Fcjs.Int64List; exports.Int8List = _chunkHF5CIG6Fcjs.Int8List; exports.Interface = _chunkHF5CIG6Fcjs.Interface; exports.InterfaceList = _chunkHF5CIG6Fcjs.InterfaceList; exports.List = _chunkKMCJ5MIQcjs.List; exports.ListElementSize = _chunkKMCJ5MIQcjs.ListElementSize; exports.Message = _chunkKMCJ5MIQcjs.Message; exports.MessageChannelTransport = _chunkHF5CIG6Fcjs.MessageChannelTransport; exports.ObjectSize = _chunkKMCJ5MIQcjs.ObjectSize; exports.Orphan = _chunkKMCJ5MIQcjs.Orphan; exports.Pipeline = _chunkHF5CIG6Fcjs.Pipeline; exports.Pointer = _chunkKMCJ5MIQcjs.Pointer; exports.PointerList = _chunkHF5CIG6Fcjs.PointerList; exports.PointerType = _chunkKMCJ5MIQcjs.PointerType; exports.Registry = _chunkHF5CIG6Fcjs.Registry; exports.Server = _chunkHF5CIG6Fcjs.Server; exports.Struct = _chunkKMCJ5MIQcjs.Struct; exports.Text = _chunkKMCJ5MIQcjs.Text; exports.TextList = _chunkHF5CIG6Fcjs.TextList; exports.Uint16List = _chunkHF5CIG6Fcjs.Uint16List; exports.Uint32List = _chunkHF5CIG6Fcjs.Uint32List; exports.Uint64List = _chunkHF5CIG6Fcjs.Uint64List; exports.Uint8List = _chunkHF5CIG6Fcjs.Uint8List; exports.Void = _chunkHF5CIG6Fcjs.Void; exports.VoidList = _chunkHF5CIG6Fcjs.VoidList; exports.answerPipelineClient = _chunkHF5CIG6Fcjs.answerPipelineClient; exports.capnpc = _chunkEQ2QX2E5cjs.capnpc; exports.clientFromResolution = _chunkHF5CIG6Fcjs.clientFromResolution; exports.clientOrNull = _chunkKMCJ5MIQcjs.clientOrNull; exports.compile = _chunkEQ2QX2E5cjs.compile; exports.copyCall = _chunkHF5CIG6Fcjs.copyCall; exports.getBitMask = _chunkKMCJ5MIQcjs.getBitMask; exports.getFloat32Mask = _chunkKMCJ5MIQcjs.getFloat32Mask; exports.getFloat64Mask = _chunkKMCJ5MIQcjs.getFloat64Mask; exports.getInt16Mask = _chunkKMCJ5MIQcjs.getInt16Mask; exports.getInt32Mask = _chunkKMCJ5MIQcjs.getInt32Mask; exports.getInt64Mask = _chunkKMCJ5MIQcjs.getInt64Mask; exports.getInt8Mask = _chunkKMCJ5MIQcjs.getInt8Mask; exports.getUint16Mask = _chunkKMCJ5MIQcjs.getUint16Mask; exports.getUint32Mask = _chunkKMCJ5MIQcjs.getUint32Mask; exports.getUint64Mask = _chunkKMCJ5MIQcjs.getUint64Mask; exports.getUint8Mask = _chunkKMCJ5MIQcjs.getUint8Mask; exports.isDataCall = _chunkHF5CIG6Fcjs.isDataCall; exports.isFuncCall = _chunkHF5CIG6Fcjs.isFuncCall; exports.isSameClient = _chunkHF5CIG6Fcjs.isSameClient; exports.placeParams = _chunkHF5CIG6Fcjs.placeParams; exports.readRawPointer = _chunkKMCJ5MIQcjs.readRawPointer; exports.utils = _chunkHF5CIG6Fcjs.utils;
138
+ exports.AnyPointerList = _chunkCUP3M7JHcjs.AnyPointerList; exports.BoolList = _chunkCUP3M7JHcjs.BoolList; exports.CapnpRPC = _chunkCUP3M7JHcjs.CapnpRPC; exports.CodeGeneratorContext = _chunkR2JXWA7Qcjs.CodeGeneratorContext; exports.CompositeList = _chunkKMCJ5MIQcjs.CompositeList; exports.Conn = _chunkCUP3M7JHcjs.Conn; exports.Data = _chunkKMCJ5MIQcjs.Data; exports.DataList = _chunkCUP3M7JHcjs.DataList; exports.Deferred = _chunkCUP3M7JHcjs.Deferred; exports.DeferredTransport = _chunkCUP3M7JHcjs.DeferredTransport; exports.ErrorClient = _chunkKMCJ5MIQcjs.ErrorClient; exports.Float32List = _chunkCUP3M7JHcjs.Float32List; exports.Float64List = _chunkCUP3M7JHcjs.Float64List; exports.Int16List = _chunkCUP3M7JHcjs.Int16List; exports.Int32List = _chunkCUP3M7JHcjs.Int32List; exports.Int64List = _chunkCUP3M7JHcjs.Int64List; exports.Int8List = _chunkCUP3M7JHcjs.Int8List; exports.Interface = _chunkCUP3M7JHcjs.Interface; exports.InterfaceList = _chunkCUP3M7JHcjs.InterfaceList; exports.List = _chunkKMCJ5MIQcjs.List; exports.ListElementSize = _chunkKMCJ5MIQcjs.ListElementSize; exports.Message = _chunkKMCJ5MIQcjs.Message; exports.MessageChannelTransport = _chunkCUP3M7JHcjs.MessageChannelTransport; exports.ObjectSize = _chunkKMCJ5MIQcjs.ObjectSize; exports.Orphan = _chunkKMCJ5MIQcjs.Orphan; exports.Pipeline = _chunkCUP3M7JHcjs.Pipeline; exports.Pointer = _chunkKMCJ5MIQcjs.Pointer; exports.PointerList = _chunkCUP3M7JHcjs.PointerList; exports.PointerType = _chunkKMCJ5MIQcjs.PointerType; exports.Registry = _chunkCUP3M7JHcjs.Registry; exports.Server = _chunkCUP3M7JHcjs.Server; exports.Struct = _chunkKMCJ5MIQcjs.Struct; exports.Text = _chunkKMCJ5MIQcjs.Text; exports.TextList = _chunkCUP3M7JHcjs.TextList; exports.Uint16List = _chunkCUP3M7JHcjs.Uint16List; exports.Uint32List = _chunkCUP3M7JHcjs.Uint32List; exports.Uint64List = _chunkCUP3M7JHcjs.Uint64List; exports.Uint8List = _chunkCUP3M7JHcjs.Uint8List; exports.Void = _chunkCUP3M7JHcjs.Void; exports.VoidList = _chunkCUP3M7JHcjs.VoidList; exports.answerPipelineClient = _chunkCUP3M7JHcjs.answerPipelineClient; exports.capnpc = _chunkCU5PYCP7cjs.capnpc; exports.clientFromResolution = _chunkCUP3M7JHcjs.clientFromResolution; exports.clientOrNull = _chunkKMCJ5MIQcjs.clientOrNull; exports.compile = _chunkCU5PYCP7cjs.compile; exports.copyCall = _chunkCUP3M7JHcjs.copyCall; exports.getBitMask = _chunkKMCJ5MIQcjs.getBitMask; exports.getFloat32Mask = _chunkKMCJ5MIQcjs.getFloat32Mask; exports.getFloat64Mask = _chunkKMCJ5MIQcjs.getFloat64Mask; exports.getInt16Mask = _chunkKMCJ5MIQcjs.getInt16Mask; exports.getInt32Mask = _chunkKMCJ5MIQcjs.getInt32Mask; exports.getInt64Mask = _chunkKMCJ5MIQcjs.getInt64Mask; exports.getInt8Mask = _chunkKMCJ5MIQcjs.getInt8Mask; exports.getUint16Mask = _chunkKMCJ5MIQcjs.getUint16Mask; exports.getUint32Mask = _chunkKMCJ5MIQcjs.getUint32Mask; exports.getUint64Mask = _chunkKMCJ5MIQcjs.getUint64Mask; exports.getUint8Mask = _chunkKMCJ5MIQcjs.getUint8Mask; exports.isDataCall = _chunkCUP3M7JHcjs.isDataCall; exports.isFuncCall = _chunkCUP3M7JHcjs.isFuncCall; exports.isSameClient = _chunkCUP3M7JHcjs.isSameClient; exports.placeParams = _chunkCUP3M7JHcjs.placeParams; exports.readRawPointer = _chunkKMCJ5MIQcjs.readRawPointer; exports.utils = _chunkCUP3M7JHcjs.utils;
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  capnpc,
3
3
  compile
4
- } from "./chunk-PHGBDPXG.js";
5
- import "./chunk-JRYM3L2C.js";
4
+ } from "./chunk-NEQ3GNWN.js";
5
+ import "./chunk-ZOSZITDY.js";
6
6
  import {
7
7
  AnyPointerList,
8
8
  BoolList,
@@ -39,7 +39,7 @@ import {
39
39
  isSameClient,
40
40
  placeParams,
41
41
  utils
42
- } from "./chunk-VKWH2SH6.js";
42
+ } from "./chunk-MO4AXOIN.js";
43
43
  import {
44
44
  CompositeList,
45
45
  Data,
package/dist/rpc.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkHF5CIG6Fcjs = require('./chunk-HF5CIG6F.cjs');
4
+ var _chunkCUP3M7JHcjs = require('./chunk-CUP3M7JH.cjs');
5
5
  require('./chunk-KMCJ5MIQ.cjs');
6
6
  require('./chunk-USNT2KNT.cjs');
7
7
 
8
8
 
9
9
 
10
- exports.CapnpRPC = _chunkHF5CIG6Fcjs.CapnpRPC; exports.MessageChannelTransport = _chunkHF5CIG6Fcjs.MessageChannelTransport;
10
+ exports.CapnpRPC = _chunkCUP3M7JHcjs.CapnpRPC; exports.MessageChannelTransport = _chunkCUP3M7JHcjs.MessageChannelTransport;
package/dist/rpc.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CapnpRPC,
3
3
  MessageChannelTransport
4
- } from "./chunk-VKWH2SH6.js";
4
+ } from "./chunk-MO4AXOIN.js";
5
5
  import "./chunk-GI42NGKQ.js";
6
6
  import "./chunk-SHUYVCID.js";
7
7
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stryke/capnp",
3
- "version": "0.12.11",
3
+ "version": "0.12.13",
4
4
  "type": "module",
5
5
  "description": "A package to assist in running the Cap'n Proto compiler and creating Cap'n Proto serialization protocol schemas.",
6
6
  "repository": {
@@ -129,24 +129,24 @@
129
129
  "peerDependencies": { "typescript": ">=4.0.0" },
130
130
  "peerDependenciesMeta": { "typescript": { "optional": false } },
131
131
  "dependencies": {
132
- "@stryke/fs": "^0.32.3",
133
- "@stryke/path": "^0.17.0",
132
+ "@stryke/fs": "^0.32.5",
133
+ "@stryke/path": "^0.18.1",
134
134
  "defu": "^6.1.4",
135
135
  "hex2dec": "^1.1.2",
136
136
  "nanotar": "^0.2.0"
137
137
  },
138
138
  "devDependencies": {
139
- "@storm-software/config": "latest",
140
- "@storm-software/config-tools": "latest",
141
- "@storm-software/testing-tools": "latest",
142
- "@types/node": "^22.14.0",
139
+ "@storm-software/config": "^1.134.14",
140
+ "@storm-software/config-tools": "^1.188.14",
141
+ "@storm-software/testing-tools": "^1.119.14",
142
+ "@types/node": "^22.18.13",
143
143
  "capnp-es": "^0.0.11",
144
- "chalk": "^5.4.1",
145
- "commander": "^14.0.0",
144
+ "chalk": "^5.6.2",
145
+ "commander": "^14.0.2",
146
146
  "dts-bundle-generator": "^9.5.1",
147
- "tsup": "^8.3.5",
148
- "tsx": "^4.20.1"
147
+ "tsup": "^8.5.0",
148
+ "tsx": "^4.20.6"
149
149
  },
150
150
  "publishConfig": { "access": "public" },
151
- "gitHead": "e4dc7f3b3b21bb9c9688537d456aef53cb1c37dc"
151
+ "gitHead": "1764a8373c1db0b1c11bed7439292236edfd9e4e"
152
152
  }
@@ -4072,13 +4072,13 @@ var ConnWeakRefRegistry = globalThis.FinalizationRegistry ? new FinalizationRegi
4072
4072
  import { writeWarning as writeWarning2 } from "@storm-software/config-tools/logger/console";
4073
4073
 
4074
4074
  // ../fs/src/exists.ts
4075
- import { existsSync as existsSyncFs } from "node:fs";
4076
- import { access, constants } from "node:fs/promises";
4075
+ import { existsSync as existsSyncFs } from "fs";
4076
+ import { access, constants } from "fs/promises";
4077
4077
 
4078
4078
  // src/compile.ts
4079
4079
  import defu2 from "defu";
4080
- import { Buffer as Buffer3 } from "node:buffer";
4081
- import { exec } from "node:child_process";
4080
+ import { Buffer as Buffer3 } from "buffer";
4081
+ import { exec } from "child_process";
4082
4082
 
4083
4083
  // src/helpers.ts
4084
4084
  import { writeFatal, writeWarning } from "@storm-software/config-tools/logger/console";
@@ -4129,7 +4129,7 @@ var isString = /* @__PURE__ */ __name((value) => {
4129
4129
 
4130
4130
  // ../json/src/storm-json.ts
4131
4131
  import { parse as parse2 } from "jsonc-parser";
4132
- import { Buffer as Buffer2 } from "node:buffer";
4132
+ import { Buffer as Buffer2 } from "buffer";
4133
4133
  import SuperJSON from "superjson";
4134
4134
 
4135
4135
  // ../types/src/base.ts
@@ -4638,8 +4638,8 @@ StormJSON.instance.registerCustom({
4638
4638
  }, "Bytes");
4639
4639
 
4640
4640
  // ../fs/src/read-file.ts
4641
- import { existsSync, readFileSync as readFileSyncFs } from "node:fs";
4642
- import { readFile as readFileFs } from "node:fs/promises";
4641
+ import { existsSync, readFileSync as readFileSyncFs } from "fs";
4642
+ import { readFile as readFileFs } from "fs/promises";
4643
4643
 
4644
4644
  // ../type-checks/src/is-buffer.ts
4645
4645
  var isBufferExists = typeof Buffer !== "undefined";
@@ -4670,13 +4670,13 @@ var globalObject = ((Obj) => {
4670
4670
  })(Object.prototype);
4671
4671
 
4672
4672
  // ../fs/src/write-file.ts
4673
- import { writeFileSync as writeFileSyncFs } from "node:fs";
4674
- import { writeFile as writeFileFs } from "node:fs/promises";
4673
+ import { writeFileSync as writeFileSyncFs } from "fs";
4674
+ import { writeFile as writeFileFs } from "fs/promises";
4675
4675
 
4676
4676
  // ../fs/src/helpers.ts
4677
4677
  import { parseTar, parseTarGzip } from "nanotar";
4678
- import { createWriteStream, mkdirSync, rmSync } from "node:fs";
4679
- import { mkdir, readFile, rm } from "node:fs/promises";
4678
+ import { createWriteStream, mkdirSync, rmSync } from "fs";
4679
+ import { mkdir, readFile, rm } from "fs/promises";
4680
4680
 
4681
4681
  // ../fs/src/list-files.ts
4682
4682
  import defu from "defu";
@@ -4686,7 +4686,7 @@ import { glob } from "glob";
4686
4686
  import { parseJsonConfigFileContent, sys } from "typescript";
4687
4687
 
4688
4688
  // src/rpc.ts
4689
- import { MessageChannel } from "node:worker_threads";
4689
+ import { MessageChannel } from "worker_threads";
4690
4690
 
4691
4691
  export {
4692
4692
  ObjectSize,
@@ -6,7 +6,7 @@ import {
6
6
  Server,
7
7
  Struct,
8
8
  utils
9
- } from "./chunk-5C3DW7UF.js";
9
+ } from "./chunk-LJLSGP4R.js";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-SHUYVCID.js";
@@ -2,7 +2,7 @@ import {
2
2
  ObjectSize,
3
3
  Struct,
4
4
  utils
5
- } from "./chunk-5C3DW7UF.js";
5
+ } from "./chunk-LJLSGP4R.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-SHUYVCID.js";
package/schemas/rpc.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  getBitMask,
6
6
  getUint8Mask,
7
7
  utils
8
- } from "./chunk-5C3DW7UF.js";
8
+ } from "./chunk-LJLSGP4R.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-SHUYVCID.js";
package/schemas/schema.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  Struct,
5
5
  getUint16Mask,
6
6
  utils
7
- } from "./chunk-5C3DW7UF.js";
7
+ } from "./chunk-LJLSGP4R.js";
8
8
  import {
9
9
  __name
10
10
  } from "./chunk-SHUYVCID.js";
File without changes