@stryke/capnp 0.12.3 → 0.12.5

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
@@ -8143,13 +8143,14 @@ async function resolveOptions(options) {
8143
8143
  const output = options.output ? options.output.replace("{projectRoot}", options.projectRoot).replace("{workspaceRoot}", options.workspaceRoot) : joinPaths(options.projectRoot, relativePath(tsconfigPath ? findFilePath(tsconfigPath) : options.projectRoot, joinPaths(options.workspaceRoot, resolvedSchemas[0].endsWith(".capnp") ? findFilePath(resolvedSchemas[0]) : resolvedSchemas[0])));
8144
8144
  resolvedTsconfig.options.outDir = output;
8145
8145
  return {
8146
+ ...options,
8146
8147
  workspaceRoot: options.workspaceRoot,
8147
8148
  projectRoot: options.projectRoot,
8148
8149
  schemas: resolvedSchemas,
8149
8150
  output,
8150
- js: options.js ?? false,
8151
- ts: options.ts ?? (options.noTs !== void 0 ? !options.noTs : true),
8152
- dts: options.dts ?? (options.noDts !== void 0 ? !options.noDts : true),
8151
+ js: options.js === true,
8152
+ ts: options.noTs !== true,
8153
+ dts: options.dts ?? options.noDts !== true,
8153
8154
  tsconfig: resolvedTsconfig
8154
8155
  };
8155
8156
  }
@@ -8222,9 +8223,8 @@ function createProgram() {
8222
8223
  const program = new import_commander.Command("storm-capnpc");
8223
8224
  program.version("1.0.0", "-v --version", "display CLI version");
8224
8225
  const projectRootOption = new import_commander.Option("-p --project-root <path>", "The path to the project root directory");
8225
- const tsOption = new import_commander.Option("--ts", "An indicator to generate TypeScript files").default(true);
8226
8226
  const noTsOption = new import_commander.Option("--no-ts", "An indicator to disable generation of TypeScript files");
8227
- const jsOption = new import_commander.Option("--js", "An indicator to generate JavaScript files").default(false);
8227
+ const jsOption = new import_commander.Option("--js", "An indicator to generate JavaScript files");
8228
8228
  const dtsOption = new import_commander.Option("--dts", "An indicator to generate TypeScript declaration files");
8229
8229
  const noDtsOption = new import_commander.Option("--no-dts", "An indicator to disable generation of TypeScript declaration files");
8230
8230
  const ttyOption = new import_commander.Option("--tty", "An indicator to enable TTY mode for the compiler");
@@ -8236,15 +8236,15 @@ function createProgram() {
8236
8236
  val.trim()
8237
8237
  ];
8238
8238
  });
8239
- const generateId = new import_commander.Option("-i --generate-id", "Generate a new 64-bit unique ID for use in a Cap'n Proto schema").default(true);
8240
- const standardImportOption = new import_commander.Option("--standard-import", "Add default import paths; use only those specified by -I").default(true);
8239
+ const skipGenerateId = new import_commander.Option("--skip-generating-id", "Skip generating a new 64-bit unique ID for use in a Cap'n Proto schema");
8240
+ const skipStandardImportOption = new import_commander.Option("--no-standard-imports", "Skip adding default import paths; use only those specified by -I");
8241
8241
  const schemaOption = new import_commander.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)").default(joinPaths("{projectRoot}", "**/*.capnp"));
8242
8242
  const outputOption = new import_commander.Option("-o --output <path>", "The directory to output the generated files to");
8243
8243
  const tsconfigOption = new import_commander.Option("--tsconfig <path>", "The path to the TypeScript configuration file to use for compilation").default(joinPaths("{projectRoot}", "tsconfig.json"));
8244
8244
  const workspaceRootOption = new import_commander.Option("-w --workspace-root <path>", "The path to the workspace root directory").default(root);
8245
8245
  program.command("compile", {
8246
8246
  isDefault: true
8247
- }).description("Run the Storm Cap'n Proto compiler").addOption(projectRootOption).addOption(schemaOption).addOption(outputOption).addOption(importPathOption).addOption(tsconfigOption).addOption(generateId).addOption(standardImportOption).addOption(tsOption).addOption(noTsOption).addOption(jsOption).addOption(dtsOption).addOption(noDtsOption).addOption(workspaceRootOption).addOption(ttyOption).action(compileAction).showSuggestionAfterError(true).showHelpAfterError(true);
8247
+ }).description("Run the Storm Cap'n Proto compiler").addOption(projectRootOption).addOption(schemaOption).addOption(outputOption).addOption(importPathOption).addOption(tsconfigOption).addOption(skipGenerateId).addOption(skipStandardImportOption).addOption(noTsOption).addOption(jsOption).addOption(dtsOption).addOption(noDtsOption).addOption(workspaceRootOption).addOption(ttyOption).action(compileAction).showSuggestionAfterError(true).showHelpAfterError(true);
8248
8248
  return program;
8249
8249
  }
8250
8250
  __name(createProgram, "createProgram");
package/bin/capnpc.js CHANGED
@@ -8112,13 +8112,14 @@ async function resolveOptions(options) {
8112
8112
  const output = options.output ? options.output.replace("{projectRoot}", options.projectRoot).replace("{workspaceRoot}", options.workspaceRoot) : joinPaths(options.projectRoot, relativePath(tsconfigPath ? findFilePath(tsconfigPath) : options.projectRoot, joinPaths(options.workspaceRoot, resolvedSchemas[0].endsWith(".capnp") ? findFilePath(resolvedSchemas[0]) : resolvedSchemas[0])));
8113
8113
  resolvedTsconfig.options.outDir = output;
8114
8114
  return {
8115
+ ...options,
8115
8116
  workspaceRoot: options.workspaceRoot,
8116
8117
  projectRoot: options.projectRoot,
8117
8118
  schemas: resolvedSchemas,
8118
8119
  output,
8119
- js: options.js ?? false,
8120
- ts: options.ts ?? (options.noTs !== void 0 ? !options.noTs : true),
8121
- dts: options.dts ?? (options.noDts !== void 0 ? !options.noDts : true),
8120
+ js: options.js === true,
8121
+ ts: options.noTs !== true,
8122
+ dts: options.dts ?? options.noDts !== true,
8122
8123
  tsconfig: resolvedTsconfig
8123
8124
  };
8124
8125
  }
@@ -8191,9 +8192,8 @@ function createProgram() {
8191
8192
  const program = new Command("storm-capnpc");
8192
8193
  program.version("1.0.0", "-v --version", "display CLI version");
8193
8194
  const projectRootOption = new Option("-p --project-root <path>", "The path to the project root directory");
8194
- const tsOption = new Option("--ts", "An indicator to generate TypeScript files").default(true);
8195
8195
  const noTsOption = new Option("--no-ts", "An indicator to disable generation of TypeScript files");
8196
- const jsOption = new Option("--js", "An indicator to generate JavaScript files").default(false);
8196
+ const jsOption = new Option("--js", "An indicator to generate JavaScript files");
8197
8197
  const dtsOption = new Option("--dts", "An indicator to generate TypeScript declaration files");
8198
8198
  const noDtsOption = new Option("--no-dts", "An indicator to disable generation of TypeScript declaration files");
8199
8199
  const ttyOption = new Option("--tty", "An indicator to enable TTY mode for the compiler");
@@ -8205,15 +8205,15 @@ function createProgram() {
8205
8205
  val.trim()
8206
8206
  ];
8207
8207
  });
8208
- const generateId = new Option("-i --generate-id", "Generate a new 64-bit unique ID for use in a Cap'n Proto schema").default(true);
8209
- const standardImportOption = new Option("--standard-import", "Add default import paths; use only those specified by -I").default(true);
8208
+ const skipGenerateId = new Option("--skip-generating-id", "Skip generating a new 64-bit unique ID for use in a Cap'n Proto schema");
8209
+ const skipStandardImportOption = new Option("--no-standard-imports", "Skip adding default import paths; use only those specified by -I");
8210
8210
  const schemaOption = new 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)").default(joinPaths("{projectRoot}", "**/*.capnp"));
8211
8211
  const outputOption = new Option("-o --output <path>", "The directory to output the generated files to");
8212
8212
  const tsconfigOption = new Option("--tsconfig <path>", "The path to the TypeScript configuration file to use for compilation").default(joinPaths("{projectRoot}", "tsconfig.json"));
8213
8213
  const workspaceRootOption = new Option("-w --workspace-root <path>", "The path to the workspace root directory").default(root);
8214
8214
  program.command("compile", {
8215
8215
  isDefault: true
8216
- }).description("Run the Storm Cap'n Proto compiler").addOption(projectRootOption).addOption(schemaOption).addOption(outputOption).addOption(importPathOption).addOption(tsconfigOption).addOption(generateId).addOption(standardImportOption).addOption(tsOption).addOption(noTsOption).addOption(jsOption).addOption(dtsOption).addOption(noDtsOption).addOption(workspaceRootOption).addOption(ttyOption).action(compileAction).showSuggestionAfterError(true).showHelpAfterError(true);
8216
+ }).description("Run the Storm Cap'n Proto compiler").addOption(projectRootOption).addOption(schemaOption).addOption(outputOption).addOption(importPathOption).addOption(tsconfigOption).addOption(skipGenerateId).addOption(skipStandardImportOption).addOption(noTsOption).addOption(jsOption).addOption(dtsOption).addOption(noDtsOption).addOption(workspaceRootOption).addOption(ttyOption).action(compileAction).showSuggestionAfterError(true).showHelpAfterError(true);
8217
8217
  return program;
8218
8218
  }
8219
8219
  __name(createProgram, "createProgram");
@@ -1062,13 +1062,14 @@ async function resolveOptions(options) {
1062
1062
  const output = options.output ? options.output.replace("{projectRoot}", options.projectRoot).replace("{workspaceRoot}", options.workspaceRoot) : joinPaths(options.projectRoot, relativePath(tsconfigPath ? findFilePath(tsconfigPath) : options.projectRoot, joinPaths(options.workspaceRoot, resolvedSchemas[0].endsWith(".capnp") ? findFilePath(resolvedSchemas[0]) : resolvedSchemas[0])));
1063
1063
  resolvedTsconfig.options.outDir = output;
1064
1064
  return {
1065
+ ...options,
1065
1066
  workspaceRoot: options.workspaceRoot,
1066
1067
  projectRoot: options.projectRoot,
1067
1068
  schemas: resolvedSchemas,
1068
1069
  output,
1069
- js: _nullishCoalesce(options.js, () => ( false)),
1070
- ts: _nullishCoalesce(options.ts, () => ( (options.noTs !== void 0 ? !options.noTs : true))),
1071
- dts: _nullishCoalesce(options.dts, () => ( (options.noDts !== void 0 ? !options.noDts : true))),
1070
+ js: options.js === true,
1071
+ ts: options.noTs !== true,
1072
+ dts: _nullishCoalesce(options.dts, () => ( options.noDts !== true)),
1072
1073
  tsconfig: resolvedTsconfig
1073
1074
  };
1074
1075
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  existsSync,
3
3
  resolveOptions
4
- } from "./chunk-AUZTF4KQ.js";
4
+ } from "./chunk-HCR7DVXZ.js";
5
5
  import {
6
6
  CompositeList,
7
7
  Message,
@@ -1062,13 +1062,14 @@ async function resolveOptions(options) {
1062
1062
  const output = options.output ? options.output.replace("{projectRoot}", options.projectRoot).replace("{workspaceRoot}", options.workspaceRoot) : joinPaths(options.projectRoot, relativePath(tsconfigPath ? findFilePath(tsconfigPath) : options.projectRoot, joinPaths(options.workspaceRoot, resolvedSchemas[0].endsWith(".capnp") ? findFilePath(resolvedSchemas[0]) : resolvedSchemas[0])));
1063
1063
  resolvedTsconfig.options.outDir = output;
1064
1064
  return {
1065
+ ...options,
1065
1066
  workspaceRoot: options.workspaceRoot,
1066
1067
  projectRoot: options.projectRoot,
1067
1068
  schemas: resolvedSchemas,
1068
1069
  output,
1069
- js: options.js ?? false,
1070
- ts: options.ts ?? (options.noTs !== void 0 ? !options.noTs : true),
1071
- dts: options.dts ?? (options.noDts !== void 0 ? !options.noDts : true),
1070
+ js: options.js === true,
1071
+ ts: options.noTs !== true,
1072
+ dts: options.dts ?? options.noDts !== true,
1072
1073
  tsconfig: resolvedTsconfig
1073
1074
  };
1074
1075
  }
@@ -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 _chunk7VBE2BQVcjs = require('./chunk-7VBE2BQV.cjs');
4
+ var _chunk6GI4GFCFcjs = require('./chunk-6GI4GFCF.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 && _chunk7VBE2BQVcjs.existsSync.call(void 0, output)) {
4056
+ if (output && _chunk6GI4GFCFcjs.existsSync.call(void 0, output)) {
4057
4057
  opts.push(`-o-:${output}`);
4058
4058
  } else {
4059
- if (output && !_chunk7VBE2BQVcjs.existsSync.call(void 0, output)) {
4059
+ if (output && !_chunk6GI4GFCFcjs.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 _chunk7VBE2BQVcjs.resolveOptions.call(void 0, options);
4087
+ const resolvedOptions = await _chunk6GI4GFCFcjs.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"
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 _chunkHXIHATKVcjs = require('./chunk-HXIHATKV.cjs');
5
- require('./chunk-7VBE2BQV.cjs');
4
+ var _chunkOYUFUSVKcjs = require('./chunk-OYUFUSVK.cjs');
5
+ require('./chunk-6GI4GFCF.cjs');
6
6
  require('./chunk-KMCJ5MIQ.cjs');
7
7
  require('./chunk-USNT2KNT.cjs');
8
8
 
9
9
 
10
10
 
11
- exports.capnpc = _chunkHXIHATKVcjs.capnpc; exports.compile = _chunkHXIHATKVcjs.compile;
11
+ exports.capnpc = _chunkOYUFUSVKcjs.capnpc; exports.compile = _chunkOYUFUSVKcjs.compile;
package/dist/compile.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  capnpc,
3
3
  compile
4
- } from "./chunk-3OKG4TN7.js";
5
- import "./chunk-AUZTF4KQ.js";
4
+ } from "./chunk-BGCUMJYM.js";
5
+ import "./chunk-HCR7DVXZ.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 _chunk7VBE2BQVcjs = require('./chunk-7VBE2BQV.cjs');
3
+ var _chunk6GI4GFCFcjs = require('./chunk-6GI4GFCF.cjs');
4
4
  require('./chunk-USNT2KNT.cjs');
5
5
 
6
6
 
7
- exports.resolveOptions = _chunk7VBE2BQVcjs.resolveOptions;
7
+ exports.resolveOptions = _chunk6GI4GFCFcjs.resolveOptions;
package/dist/helpers.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveOptions
3
- } from "./chunk-AUZTF4KQ.js";
3
+ } from "./chunk-HCR7DVXZ.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 _chunkHXIHATKVcjs = require('./chunk-HXIHATKV.cjs');
5
- require('./chunk-7VBE2BQV.cjs');
4
+ var _chunkOYUFUSVKcjs = require('./chunk-OYUFUSVK.cjs');
5
+ require('./chunk-6GI4GFCF.cjs');
6
6
 
7
7
 
8
8
 
@@ -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 = _chunkHXIHATKVcjs.capnpc; exports.clientFromResolution = _chunkHF5CIG6Fcjs.clientFromResolution; exports.clientOrNull = _chunkKMCJ5MIQcjs.clientOrNull; exports.compile = _chunkHXIHATKVcjs.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 = _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 = _chunkOYUFUSVKcjs.capnpc; exports.clientFromResolution = _chunkHF5CIG6Fcjs.clientFromResolution; exports.clientOrNull = _chunkKMCJ5MIQcjs.clientOrNull; exports.compile = _chunkOYUFUSVKcjs.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;
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  capnpc,
3
3
  compile
4
- } from "./chunk-3OKG4TN7.js";
5
- import "./chunk-AUZTF4KQ.js";
4
+ } from "./chunk-BGCUMJYM.js";
5
+ import "./chunk-HCR7DVXZ.js";
6
6
  import {
7
7
  AnyPointerList,
8
8
  BoolList,
package/dist/types.d.cts CHANGED
@@ -16,7 +16,6 @@ declare class CodeGeneratorContext {
16
16
  files: CodeGeneratorFileContext[];
17
17
  }
18
18
  interface CapnpcCLIOptions {
19
- ts?: boolean;
20
19
  noTs?: boolean;
21
20
  js?: boolean;
22
21
  dts?: boolean;
@@ -25,8 +24,8 @@ interface CapnpcCLIOptions {
25
24
  output?: string;
26
25
  importPath?: string[];
27
26
  tsconfig: string;
28
- generateId?: boolean;
29
- standardImport?: boolean;
27
+ skipGenerateId?: boolean;
28
+ noStandardImport?: boolean;
30
29
  projectRoot: string;
31
30
  workspaceRoot: string;
32
31
  tty?: boolean;
@@ -41,6 +40,7 @@ type CapnpcOptions = Omit<CapnpcCLIOptions, "tsconfig" | "schema"> & {
41
40
  tsconfigPath: string;
42
41
  });
43
42
  type CapnpcResolvedOptions = Omit<CapnpcOptions, "noTs" | "noDts" | "schemas" | "tsconfigPath" | "output"> & Required<Pick<CapnpcOptions, "output">> & {
43
+ ts: boolean;
44
44
  schemas: string[];
45
45
  tsconfig: ParsedCommandLine;
46
46
  };
package/dist/types.d.ts CHANGED
@@ -16,7 +16,6 @@ declare class CodeGeneratorContext {
16
16
  files: CodeGeneratorFileContext[];
17
17
  }
18
18
  interface CapnpcCLIOptions {
19
- ts?: boolean;
20
19
  noTs?: boolean;
21
20
  js?: boolean;
22
21
  dts?: boolean;
@@ -25,8 +24,8 @@ interface CapnpcCLIOptions {
25
24
  output?: string;
26
25
  importPath?: string[];
27
26
  tsconfig: string;
28
- generateId?: boolean;
29
- standardImport?: boolean;
27
+ skipGenerateId?: boolean;
28
+ noStandardImport?: boolean;
30
29
  projectRoot: string;
31
30
  workspaceRoot: string;
32
31
  tty?: boolean;
@@ -41,6 +40,7 @@ type CapnpcOptions = Omit<CapnpcCLIOptions, "tsconfig" | "schema"> & {
41
40
  tsconfigPath: string;
42
41
  });
43
42
  type CapnpcResolvedOptions = Omit<CapnpcOptions, "noTs" | "noDts" | "schemas" | "tsconfigPath" | "output"> & Required<Pick<CapnpcOptions, "output">> & {
43
+ ts: boolean;
44
44
  schemas: string[];
45
45
  tsconfig: ParsedCommandLine;
46
46
  };
package/dts/index.d.cts CHANGED
@@ -4094,7 +4094,6 @@ export declare class CodeGeneratorContext {
4094
4094
  files: CodeGeneratorFileContext[];
4095
4095
  }
4096
4096
  export interface CapnpcCLIOptions {
4097
- ts?: boolean;
4098
4097
  noTs?: boolean;
4099
4098
  js?: boolean;
4100
4099
  dts?: boolean;
@@ -4103,8 +4102,8 @@ export interface CapnpcCLIOptions {
4103
4102
  output?: string;
4104
4103
  importPath?: string[];
4105
4104
  tsconfig: string;
4106
- generateId?: boolean;
4107
- standardImport?: boolean;
4105
+ skipGenerateId?: boolean;
4106
+ noStandardImport?: boolean;
4108
4107
  projectRoot: string;
4109
4108
  workspaceRoot: string;
4110
4109
  tty?: boolean;
@@ -4119,6 +4118,7 @@ export type CapnpcOptions = Omit<CapnpcCLIOptions, "tsconfig" | "schema"> & {
4119
4118
  tsconfigPath: string;
4120
4119
  });
4121
4120
  export type CapnpcResolvedOptions = Omit<CapnpcOptions, "noTs" | "noDts" | "schemas" | "tsconfigPath" | "output"> & Required<Pick<CapnpcOptions, "output">> & {
4121
+ ts: boolean;
4122
4122
  schemas: string[];
4123
4123
  tsconfig: ParsedCommandLine;
4124
4124
  };
package/dts/index.d.ts CHANGED
@@ -4094,7 +4094,6 @@ export declare class CodeGeneratorContext {
4094
4094
  files: CodeGeneratorFileContext[];
4095
4095
  }
4096
4096
  export interface CapnpcCLIOptions {
4097
- ts?: boolean;
4098
4097
  noTs?: boolean;
4099
4098
  js?: boolean;
4100
4099
  dts?: boolean;
@@ -4103,8 +4102,8 @@ export interface CapnpcCLIOptions {
4103
4102
  output?: string;
4104
4103
  importPath?: string[];
4105
4104
  tsconfig: string;
4106
- generateId?: boolean;
4107
- standardImport?: boolean;
4105
+ skipGenerateId?: boolean;
4106
+ noStandardImport?: boolean;
4108
4107
  projectRoot: string;
4109
4108
  workspaceRoot: string;
4110
4109
  tty?: boolean;
@@ -4119,6 +4118,7 @@ export type CapnpcOptions = Omit<CapnpcCLIOptions, "tsconfig" | "schema"> & {
4119
4118
  tsconfigPath: string;
4120
4119
  });
4121
4120
  export type CapnpcResolvedOptions = Omit<CapnpcOptions, "noTs" | "noDts" | "schemas" | "tsconfigPath" | "output"> & Required<Pick<CapnpcOptions, "output">> & {
4121
+ ts: boolean;
4122
4122
  schemas: string[];
4123
4123
  tsconfig: ParsedCommandLine;
4124
4124
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stryke/capnp",
3
- "version": "0.12.3",
3
+ "version": "0.12.5",
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,7 +129,7 @@
129
129
  "peerDependencies": { "typescript": ">=4.0.0" },
130
130
  "peerDependenciesMeta": { "typescript": { "optional": false } },
131
131
  "dependencies": {
132
- "@stryke/fs": "^0.32.2",
132
+ "@stryke/fs": "^0.32.3",
133
133
  "@stryke/path": "^0.17.0",
134
134
  "defu": "^6.1.4",
135
135
  "hex2dec": "^1.1.2",
@@ -148,5 +148,5 @@
148
148
  "tsx": "^4.20.1"
149
149
  },
150
150
  "publishConfig": { "access": "public" },
151
- "gitHead": "b7c19085be057c7a239682d125c26a6e468c8b9d"
151
+ "gitHead": "b3bc0a4183ca45705daeb5fa38ddbbdfe2012906"
152
152
  }