@stryke/capnp 0.12.5 → 0.12.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/capnpc.cjs +2 -1
- package/bin/capnpc.js +2 -1
- package/dist/{chunk-OYUFUSVK.cjs → chunk-3SRHLQJQ.cjs} +4 -4
- package/dist/{chunk-BGCUMJYM.js → chunk-672JVU4M.js} +1 -1
- package/dist/{chunk-HCR7DVXZ.js → chunk-AIT6OPBM.js} +1 -0
- package/dist/{chunk-6GI4GFCF.cjs → chunk-WHITFR3H.cjs} +1 -0
- package/dist/compile.cjs +3 -3
- package/dist/compile.js +2 -2
- package/dist/helpers.cjs +2 -2
- package/dist/helpers.js +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/bin/capnpc.cjs
CHANGED
|
@@ -8143,6 +8143,7 @@ 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
|
+
importPath: [],
|
|
8146
8147
|
...options,
|
|
8147
8148
|
workspaceRoot: options.workspaceRoot,
|
|
8148
8149
|
projectRoot: options.projectRoot,
|
|
@@ -8228,7 +8229,7 @@ function createProgram() {
|
|
|
8228
8229
|
const dtsOption = new import_commander.Option("--dts", "An indicator to generate TypeScript declaration files");
|
|
8229
8230
|
const noDtsOption = new import_commander.Option("--no-dts", "An indicator to disable generation of TypeScript declaration files");
|
|
8230
8231
|
const ttyOption = new import_commander.Option("--tty", "An indicator to enable TTY mode for the compiler");
|
|
8231
|
-
const importPathOption = new import_commander.Option("-I --import-path <dir...>", "Add <dir> to the list of directories searched for non-relative imports").
|
|
8232
|
+
const importPathOption = new import_commander.Option("-I --import-path <dir...>", "Add <dir> to the list of directories searched for non-relative imports").argParser((val) => {
|
|
8232
8233
|
if (val.startsWith("-I") || val.startsWith("--import-path")) {
|
|
8233
8234
|
return val.split(",").map((dir) => dir.trim());
|
|
8234
8235
|
}
|
package/bin/capnpc.js
CHANGED
|
@@ -8112,6 +8112,7 @@ 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
|
+
importPath: [],
|
|
8115
8116
|
...options,
|
|
8116
8117
|
workspaceRoot: options.workspaceRoot,
|
|
8117
8118
|
projectRoot: options.projectRoot,
|
|
@@ -8197,7 +8198,7 @@ function createProgram() {
|
|
|
8197
8198
|
const dtsOption = new Option("--dts", "An indicator to generate TypeScript declaration files");
|
|
8198
8199
|
const noDtsOption = new Option("--no-dts", "An indicator to disable generation of TypeScript declaration files");
|
|
8199
8200
|
const ttyOption = new Option("--tty", "An indicator to enable TTY mode for the compiler");
|
|
8200
|
-
const importPathOption = new Option("-I --import-path <dir...>", "Add <dir> to the list of directories searched for non-relative imports").
|
|
8201
|
+
const importPathOption = new Option("-I --import-path <dir...>", "Add <dir> to the list of directories searched for non-relative imports").argParser((val) => {
|
|
8201
8202
|
if (val.startsWith("-I") || val.startsWith("--import-path")) {
|
|
8202
8203
|
return val.split(",").map((dir) => dir.trim());
|
|
8203
8204
|
}
|
|
@@ -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
|
|
4
|
+
var _chunkWHITFR3Hcjs = require('./chunk-WHITFR3H.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 &&
|
|
4056
|
+
if (output && _chunkWHITFR3Hcjs.existsSync.call(void 0, output)) {
|
|
4057
4057
|
opts.push(`-o-:${output}`);
|
|
4058
4058
|
} else {
|
|
4059
|
-
if (output && !
|
|
4059
|
+
if (output && !_chunkWHITFR3Hcjs.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
|
|
4087
|
+
const resolvedOptions = await _chunkWHITFR3Hcjs.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"
|
|
@@ -1062,6 +1062,7 @@ 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
|
+
importPath: [],
|
|
1065
1066
|
...options,
|
|
1066
1067
|
workspaceRoot: options.workspaceRoot,
|
|
1067
1068
|
projectRoot: options.projectRoot,
|
|
@@ -1062,6 +1062,7 @@ 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
|
+
importPath: [],
|
|
1065
1066
|
...options,
|
|
1066
1067
|
workspaceRoot: options.workspaceRoot,
|
|
1067
1068
|
projectRoot: options.projectRoot,
|
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
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var _chunk3SRHLQJQcjs = require('./chunk-3SRHLQJQ.cjs');
|
|
5
|
+
require('./chunk-WHITFR3H.cjs');
|
|
6
6
|
require('./chunk-KMCJ5MIQ.cjs');
|
|
7
7
|
require('./chunk-USNT2KNT.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.capnpc =
|
|
11
|
+
exports.capnpc = _chunk3SRHLQJQcjs.capnpc; exports.compile = _chunk3SRHLQJQcjs.compile;
|
package/dist/compile.js
CHANGED
package/dist/helpers.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkWHITFR3Hcjs = require('./chunk-WHITFR3H.cjs');
|
|
4
4
|
require('./chunk-USNT2KNT.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
exports.resolveOptions =
|
|
7
|
+
exports.resolveOptions = _chunkWHITFR3Hcjs.resolveOptions;
|
package/dist/helpers.js
CHANGED
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
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var _chunk3SRHLQJQcjs = require('./chunk-3SRHLQJQ.cjs');
|
|
5
|
+
require('./chunk-WHITFR3H.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 =
|
|
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 = _chunk3SRHLQJQcjs.capnpc; exports.clientFromResolution = _chunkHF5CIG6Fcjs.clientFromResolution; exports.clientOrNull = _chunkKMCJ5MIQcjs.clientOrNull; exports.compile = _chunk3SRHLQJQcjs.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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stryke/capnp",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.6",
|
|
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": {
|
|
@@ -148,5 +148,5 @@
|
|
|
148
148
|
"tsx": "^4.20.1"
|
|
149
149
|
},
|
|
150
150
|
"publishConfig": { "access": "public" },
|
|
151
|
-
"gitHead": "
|
|
151
|
+
"gitHead": "58e411694d56047311d812ced47712027c86b625"
|
|
152
152
|
}
|