@stryke/capnp 0.11.22 → 0.11.24
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 +1 -1
- package/bin/capnpc.js +1 -1
- package/dist/{chunk-6MPNCSA5.cjs → chunk-5KZAK7UN.cjs} +1 -1
- package/dist/{chunk-DKT5V34N.js → chunk-GFUEEMHO.js} +1 -1
- package/dist/{chunk-O7W5SCN2.cjs → chunk-PLWXCKLN.cjs} +4 -4
- package/dist/{chunk-QRUIZKWT.js → chunk-Z34FDI3A.js} +1 -1
- 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 +3 -3
package/bin/capnpc.cjs
CHANGED
|
@@ -8083,7 +8083,7 @@ var DEFAULT_OPTIONS = {
|
|
|
8083
8083
|
dot: true
|
|
8084
8084
|
};
|
|
8085
8085
|
async function list(filesGlob, options) {
|
|
8086
|
-
return (0, import_glob.glob)(isString(filesGlob) ? filesGlob : filesGlob.input ? joinPaths(filesGlob.input, filesGlob.glob) : filesGlob.glob, (0, import_defu.default)(isString(filesGlob) ? {} : {
|
|
8086
|
+
return (0, import_glob.glob)(isString(filesGlob) ? filesGlob.includes("*") ? filesGlob : joinPaths(filesGlob, "**/*") : filesGlob.input ? joinPaths(filesGlob.input, filesGlob.glob) : filesGlob.glob, (0, import_defu.default)(isString(filesGlob) ? {} : {
|
|
8087
8087
|
dot: filesGlob.dot,
|
|
8088
8088
|
ignore: filesGlob.ignore
|
|
8089
8089
|
}, options ?? {}, DEFAULT_OPTIONS));
|
package/bin/capnpc.js
CHANGED
|
@@ -8052,7 +8052,7 @@ var DEFAULT_OPTIONS = {
|
|
|
8052
8052
|
dot: true
|
|
8053
8053
|
};
|
|
8054
8054
|
async function list(filesGlob, options) {
|
|
8055
|
-
return glob(isString(filesGlob) ? filesGlob : filesGlob.input ? joinPaths(filesGlob.input, filesGlob.glob) : filesGlob.glob, defu(isString(filesGlob) ? {} : {
|
|
8055
|
+
return glob(isString(filesGlob) ? filesGlob.includes("*") ? filesGlob : joinPaths(filesGlob, "**/*") : filesGlob.input ? joinPaths(filesGlob.input, filesGlob.glob) : filesGlob.glob, defu(isString(filesGlob) ? {} : {
|
|
8056
8056
|
dot: filesGlob.dot,
|
|
8057
8057
|
ignore: filesGlob.ignore
|
|
8058
8058
|
}, options ?? {}, DEFAULT_OPTIONS));
|
|
@@ -1002,7 +1002,7 @@ var DEFAULT_OPTIONS = {
|
|
|
1002
1002
|
dot: true
|
|
1003
1003
|
};
|
|
1004
1004
|
async function list(filesGlob, options) {
|
|
1005
|
-
return _glob.glob.call(void 0, isString(filesGlob) ? filesGlob : filesGlob.input ? joinPaths(filesGlob.input, filesGlob.glob) : filesGlob.glob, _defu2.default.call(void 0, isString(filesGlob) ? {} : {
|
|
1005
|
+
return _glob.glob.call(void 0, isString(filesGlob) ? filesGlob.includes("*") ? filesGlob : joinPaths(filesGlob, "**/*") : filesGlob.input ? joinPaths(filesGlob.input, filesGlob.glob) : filesGlob.glob, _defu2.default.call(void 0, isString(filesGlob) ? {} : {
|
|
1006
1006
|
dot: filesGlob.dot,
|
|
1007
1007
|
ignore: filesGlob.ignore
|
|
1008
1008
|
}, _nullishCoalesce(options, () => ( {})), DEFAULT_OPTIONS));
|
|
@@ -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 _chunk5KZAK7UNcjs = require('./chunk-5KZAK7UN.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 && _chunk5KZAK7UNcjs.existsSync.call(void 0, output)) {
|
|
4057
4057
|
opts.push(`-o-:${output}`);
|
|
4058
4058
|
} else {
|
|
4059
|
-
if (output && !
|
|
4059
|
+
if (output && !_chunk5KZAK7UNcjs.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 _chunk5KZAK7UNcjs.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"
|
|
@@ -1002,7 +1002,7 @@ var DEFAULT_OPTIONS = {
|
|
|
1002
1002
|
dot: true
|
|
1003
1003
|
};
|
|
1004
1004
|
async function list(filesGlob, options) {
|
|
1005
|
-
return glob(isString(filesGlob) ? filesGlob : filesGlob.input ? joinPaths(filesGlob.input, filesGlob.glob) : filesGlob.glob, defu(isString(filesGlob) ? {} : {
|
|
1005
|
+
return glob(isString(filesGlob) ? filesGlob.includes("*") ? filesGlob : joinPaths(filesGlob, "**/*") : filesGlob.input ? joinPaths(filesGlob.input, filesGlob.glob) : filesGlob.glob, defu(isString(filesGlob) ? {} : {
|
|
1006
1006
|
dot: filesGlob.dot,
|
|
1007
1007
|
ignore: filesGlob.ignore
|
|
1008
1008
|
}, options ?? {}, DEFAULT_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
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var _chunkPLWXCKLNcjs = require('./chunk-PLWXCKLN.cjs');
|
|
5
|
+
require('./chunk-5KZAK7UN.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 = _chunkPLWXCKLNcjs.capnpc; exports.compile = _chunkPLWXCKLNcjs.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 _chunk5KZAK7UNcjs = require('./chunk-5KZAK7UN.cjs');
|
|
4
4
|
require('./chunk-USNT2KNT.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
exports.resolveOptions =
|
|
7
|
+
exports.resolveOptions = _chunk5KZAK7UNcjs.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 _chunkPLWXCKLNcjs = require('./chunk-PLWXCKLN.cjs');
|
|
5
|
+
require('./chunk-5KZAK7UN.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 = _chunkPLWXCKLNcjs.capnpc; exports.clientFromResolution = _chunkHF5CIG6Fcjs.clientFromResolution; exports.clientOrNull = _chunkKMCJ5MIQcjs.clientOrNull; exports.compile = _chunkPLWXCKLNcjs.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.11.
|
|
3
|
+
"version": "0.11.24",
|
|
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.31.
|
|
132
|
+
"@stryke/fs": "^0.31.4",
|
|
133
133
|
"@stryke/path": "^0.15.5",
|
|
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": "
|
|
151
|
+
"gitHead": "478f04ad91e1e4bdf67652ee74a2aba07bcffadf"
|
|
152
152
|
}
|