@stryke/capnp 0.12.32 → 0.12.33
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 +3 -2
- package/bin/capnpc.js +3 -2
- package/dist/{chunk-KO6NZLWH.cjs → chunk-CR6KAGBK.cjs} +3 -2
- package/dist/{chunk-NN62B5Z3.cjs → chunk-KZJ47RES.cjs} +4 -4
- package/dist/{chunk-H32XGT26.js → chunk-PLGAFYIA.js} +1 -1
- package/dist/{chunk-JREA5Q77.js → chunk-UGPSEAIJ.js} +3 -2
- 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 +4 -4
package/bin/capnpc.cjs
CHANGED
|
@@ -375,10 +375,11 @@ function findFileName(filePath, options = {}) {
|
|
|
375
375
|
return result;
|
|
376
376
|
}
|
|
377
377
|
__name(findFileName, "findFileName");
|
|
378
|
-
function findFilePath(filePath) {
|
|
378
|
+
function findFilePath(filePath, options = {}) {
|
|
379
379
|
const normalizedPath = normalizeWindowsPath2(filePath);
|
|
380
380
|
const result = normalizedPath.replace(findFileName(normalizedPath, {
|
|
381
|
-
requireExtension:
|
|
381
|
+
requireExtension: false,
|
|
382
|
+
...options
|
|
382
383
|
}), "");
|
|
383
384
|
return result === "/" ? result : result.replace(/\/$/, "");
|
|
384
385
|
}
|
package/bin/capnpc.js
CHANGED
|
@@ -344,10 +344,11 @@ function findFileName(filePath, options = {}) {
|
|
|
344
344
|
return result;
|
|
345
345
|
}
|
|
346
346
|
__name(findFileName, "findFileName");
|
|
347
|
-
function findFilePath(filePath) {
|
|
347
|
+
function findFilePath(filePath, options = {}) {
|
|
348
348
|
const normalizedPath = normalizeWindowsPath2(filePath);
|
|
349
349
|
const result = normalizedPath.replace(findFileName(normalizedPath, {
|
|
350
|
-
requireExtension:
|
|
350
|
+
requireExtension: false,
|
|
351
|
+
...options
|
|
351
352
|
}), "");
|
|
352
353
|
return result === "/" ? result : result.replace(/\/$/, "");
|
|
353
354
|
}
|
|
@@ -874,10 +874,11 @@ function findFileName(filePath, options = {}) {
|
|
|
874
874
|
return result;
|
|
875
875
|
}
|
|
876
876
|
_chunkUSNT2KNTcjs.__name.call(void 0, findFileName, "findFileName");
|
|
877
|
-
function findFilePath(filePath) {
|
|
877
|
+
function findFilePath(filePath, options = {}) {
|
|
878
878
|
const normalizedPath = normalizeWindowsPath2(filePath);
|
|
879
879
|
const result = normalizedPath.replace(findFileName(normalizedPath, {
|
|
880
|
-
requireExtension:
|
|
880
|
+
requireExtension: false,
|
|
881
|
+
...options
|
|
881
882
|
}), "");
|
|
882
883
|
return result === "/" ? result : result.replace(/\/$/, "");
|
|
883
884
|
}
|
|
@@ -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 _chunkCR6KAGBKcjs = require('./chunk-CR6KAGBK.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 && _chunkCR6KAGBKcjs.existsSync.call(void 0, output)) {
|
|
4057
4057
|
opts.push(`-o-:${output}`);
|
|
4058
4058
|
} else {
|
|
4059
|
-
if (output && !
|
|
4059
|
+
if (output && !_chunkCR6KAGBKcjs.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 _chunkCR6KAGBKcjs.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"
|
|
@@ -874,10 +874,11 @@ function findFileName(filePath, options = {}) {
|
|
|
874
874
|
return result;
|
|
875
875
|
}
|
|
876
876
|
__name(findFileName, "findFileName");
|
|
877
|
-
function findFilePath(filePath) {
|
|
877
|
+
function findFilePath(filePath, options = {}) {
|
|
878
878
|
const normalizedPath = normalizeWindowsPath2(filePath);
|
|
879
879
|
const result = normalizedPath.replace(findFileName(normalizedPath, {
|
|
880
|
-
requireExtension:
|
|
880
|
+
requireExtension: false,
|
|
881
|
+
...options
|
|
881
882
|
}), "");
|
|
882
883
|
return result === "/" ? result : result.replace(/\/$/, "");
|
|
883
884
|
}
|
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 _chunkKZJ47REScjs = require('./chunk-KZJ47RES.cjs');
|
|
5
|
+
require('./chunk-CR6KAGBK.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 = _chunkKZJ47REScjs.capnpc; exports.compile = _chunkKZJ47REScjs.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 _chunkCR6KAGBKcjs = require('./chunk-CR6KAGBK.cjs');
|
|
4
4
|
require('./chunk-USNT2KNT.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
exports.resolveOptions =
|
|
7
|
+
exports.resolveOptions = _chunkCR6KAGBKcjs.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 _chunkKZJ47REScjs = require('./chunk-KZJ47RES.cjs');
|
|
5
|
+
require('./chunk-CR6KAGBK.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -131,4 +131,4 @@ require('./chunk-USNT2KNT.cjs');
|
|
|
131
131
|
|
|
132
132
|
|
|
133
133
|
|
|
134
|
-
exports.AnyPointerList = _chunkLFP6TIPQcjs.AnyPointerList; exports.BoolList = _chunkLFP6TIPQcjs.BoolList; exports.CodeGeneratorContext = _chunkR2JXWA7Qcjs.CodeGeneratorContext; exports.CompositeList = _chunkKMCJ5MIQcjs.CompositeList; exports.Conn = _chunkLFP6TIPQcjs.Conn; exports.Data = _chunkKMCJ5MIQcjs.Data; exports.DataList = _chunkLFP6TIPQcjs.DataList; exports.Deferred = _chunkLFP6TIPQcjs.Deferred; exports.DeferredTransport = _chunkLFP6TIPQcjs.DeferredTransport; exports.ErrorClient = _chunkKMCJ5MIQcjs.ErrorClient; exports.Float32List = _chunkLFP6TIPQcjs.Float32List; exports.Float64List = _chunkLFP6TIPQcjs.Float64List; exports.Int16List = _chunkLFP6TIPQcjs.Int16List; exports.Int32List = _chunkLFP6TIPQcjs.Int32List; exports.Int64List = _chunkLFP6TIPQcjs.Int64List; exports.Int8List = _chunkLFP6TIPQcjs.Int8List; exports.Interface = _chunkLFP6TIPQcjs.Interface; exports.InterfaceList = _chunkLFP6TIPQcjs.InterfaceList; exports.List = _chunkKMCJ5MIQcjs.List; exports.ListElementSize = _chunkKMCJ5MIQcjs.ListElementSize; exports.Message = _chunkKMCJ5MIQcjs.Message; exports.ObjectSize = _chunkKMCJ5MIQcjs.ObjectSize; exports.Orphan = _chunkKMCJ5MIQcjs.Orphan; exports.Pipeline = _chunkLFP6TIPQcjs.Pipeline; exports.Pointer = _chunkKMCJ5MIQcjs.Pointer; exports.PointerList = _chunkLFP6TIPQcjs.PointerList; exports.PointerType = _chunkKMCJ5MIQcjs.PointerType; exports.Registry = _chunkLFP6TIPQcjs.Registry; exports.Server = _chunkLFP6TIPQcjs.Server; exports.Struct = _chunkKMCJ5MIQcjs.Struct; exports.Text = _chunkKMCJ5MIQcjs.Text; exports.TextList = _chunkLFP6TIPQcjs.TextList; exports.Uint16List = _chunkLFP6TIPQcjs.Uint16List; exports.Uint32List = _chunkLFP6TIPQcjs.Uint32List; exports.Uint64List = _chunkLFP6TIPQcjs.Uint64List; exports.Uint8List = _chunkLFP6TIPQcjs.Uint8List; exports.Void = _chunkLFP6TIPQcjs.Void; exports.VoidList = _chunkLFP6TIPQcjs.VoidList; exports.answerPipelineClient = _chunkLFP6TIPQcjs.answerPipelineClient; exports.capnpc =
|
|
134
|
+
exports.AnyPointerList = _chunkLFP6TIPQcjs.AnyPointerList; exports.BoolList = _chunkLFP6TIPQcjs.BoolList; exports.CodeGeneratorContext = _chunkR2JXWA7Qcjs.CodeGeneratorContext; exports.CompositeList = _chunkKMCJ5MIQcjs.CompositeList; exports.Conn = _chunkLFP6TIPQcjs.Conn; exports.Data = _chunkKMCJ5MIQcjs.Data; exports.DataList = _chunkLFP6TIPQcjs.DataList; exports.Deferred = _chunkLFP6TIPQcjs.Deferred; exports.DeferredTransport = _chunkLFP6TIPQcjs.DeferredTransport; exports.ErrorClient = _chunkKMCJ5MIQcjs.ErrorClient; exports.Float32List = _chunkLFP6TIPQcjs.Float32List; exports.Float64List = _chunkLFP6TIPQcjs.Float64List; exports.Int16List = _chunkLFP6TIPQcjs.Int16List; exports.Int32List = _chunkLFP6TIPQcjs.Int32List; exports.Int64List = _chunkLFP6TIPQcjs.Int64List; exports.Int8List = _chunkLFP6TIPQcjs.Int8List; exports.Interface = _chunkLFP6TIPQcjs.Interface; exports.InterfaceList = _chunkLFP6TIPQcjs.InterfaceList; exports.List = _chunkKMCJ5MIQcjs.List; exports.ListElementSize = _chunkKMCJ5MIQcjs.ListElementSize; exports.Message = _chunkKMCJ5MIQcjs.Message; exports.ObjectSize = _chunkKMCJ5MIQcjs.ObjectSize; exports.Orphan = _chunkKMCJ5MIQcjs.Orphan; exports.Pipeline = _chunkLFP6TIPQcjs.Pipeline; exports.Pointer = _chunkKMCJ5MIQcjs.Pointer; exports.PointerList = _chunkLFP6TIPQcjs.PointerList; exports.PointerType = _chunkKMCJ5MIQcjs.PointerType; exports.Registry = _chunkLFP6TIPQcjs.Registry; exports.Server = _chunkLFP6TIPQcjs.Server; exports.Struct = _chunkKMCJ5MIQcjs.Struct; exports.Text = _chunkKMCJ5MIQcjs.Text; exports.TextList = _chunkLFP6TIPQcjs.TextList; exports.Uint16List = _chunkLFP6TIPQcjs.Uint16List; exports.Uint32List = _chunkLFP6TIPQcjs.Uint32List; exports.Uint64List = _chunkLFP6TIPQcjs.Uint64List; exports.Uint8List = _chunkLFP6TIPQcjs.Uint8List; exports.Void = _chunkLFP6TIPQcjs.Void; exports.VoidList = _chunkLFP6TIPQcjs.VoidList; exports.answerPipelineClient = _chunkLFP6TIPQcjs.answerPipelineClient; exports.capnpc = _chunkKZJ47REScjs.capnpc; exports.clientFromResolution = _chunkLFP6TIPQcjs.clientFromResolution; exports.clientOrNull = _chunkKMCJ5MIQcjs.clientOrNull; exports.compile = _chunkKZJ47REScjs.compile; exports.copyCall = _chunkLFP6TIPQcjs.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 = _chunkLFP6TIPQcjs.isDataCall; exports.isFuncCall = _chunkLFP6TIPQcjs.isFuncCall; exports.isSameClient = _chunkLFP6TIPQcjs.isSameClient; exports.placeParams = _chunkLFP6TIPQcjs.placeParams; exports.readRawPointer = _chunkKMCJ5MIQcjs.readRawPointer; exports.utils = _chunkLFP6TIPQcjs.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.33",
|
|
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,8 +129,8 @@
|
|
|
129
129
|
"peerDependencies": { "typescript": ">=4.0.0" },
|
|
130
130
|
"peerDependenciesMeta": { "typescript": { "optional": false } },
|
|
131
131
|
"dependencies": {
|
|
132
|
-
"@stryke/fs": "^0.33.
|
|
133
|
-
"@stryke/path": "^0.
|
|
132
|
+
"@stryke/fs": "^0.33.9",
|
|
133
|
+
"@stryke/path": "^0.22.0",
|
|
134
134
|
"defu": "^6.1.4",
|
|
135
135
|
"hex2dec": "^1.1.2",
|
|
136
136
|
"nanotar": "^0.2.0"
|
|
@@ -148,5 +148,5 @@
|
|
|
148
148
|
"tsx": "^4.21.0"
|
|
149
149
|
},
|
|
150
150
|
"publishConfig": { "access": "public" },
|
|
151
|
-
"gitHead": "
|
|
151
|
+
"gitHead": "eb28313b3230b7ea654c87586ca07773e2e57f52"
|
|
152
152
|
}
|