@stryke/capnp 0.12.23 → 0.12.25
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 +9 -9
- package/bin/capnpc.js +9 -9
- package/dist/{chunk-7JOFTCPG.cjs → chunk-AMZ24T7E.cjs} +4 -4
- package/dist/{chunk-627655CV.js → chunk-Q54MIVU3.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 +4 -4
- package/dist/{chunk-AVGQAS6B.cjs → chunk-GXACFEXR.cjs} +9 -9
- package/dist/{chunk-JNOQ32JO.js → chunk-QEC3PYMT.js} +9 -9
package/bin/capnpc.cjs
CHANGED
|
@@ -151,15 +151,6 @@ var ABSOLUTE_PATH_REGEX = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^~[/\\]|^[A-Z]:[/\\]/
|
|
|
151
151
|
var ROOT_FOLDER_REGEX = /^\/([A-Z]:)?$/i;
|
|
152
152
|
var FILE_EXTENSION_REGEX = /\.[0-9a-z]+$/i;
|
|
153
153
|
|
|
154
|
-
// ../path/src/slash.ts
|
|
155
|
-
function slash(path) {
|
|
156
|
-
if (path.startsWith("\\\\?\\")) {
|
|
157
|
-
return path;
|
|
158
|
-
}
|
|
159
|
-
return path.replace(/\\/g, "/");
|
|
160
|
-
}
|
|
161
|
-
__name(slash, "slash");
|
|
162
|
-
|
|
163
154
|
// ../path/src/is-type.ts
|
|
164
155
|
function isAbsolutePath(path) {
|
|
165
156
|
return ABSOLUTE_PATH_REGEX.test(slash(path));
|
|
@@ -170,6 +161,15 @@ function isAbsolute(path) {
|
|
|
170
161
|
}
|
|
171
162
|
__name(isAbsolute, "isAbsolute");
|
|
172
163
|
|
|
164
|
+
// ../path/src/slash.ts
|
|
165
|
+
function slash(path) {
|
|
166
|
+
if (path.startsWith("\\\\?\\")) {
|
|
167
|
+
return path;
|
|
168
|
+
}
|
|
169
|
+
return path.replace(/\\/g, "/");
|
|
170
|
+
}
|
|
171
|
+
__name(slash, "slash");
|
|
172
|
+
|
|
173
173
|
// ../path/src/join-paths.ts
|
|
174
174
|
function normalizeWindowsPath(input = "") {
|
|
175
175
|
if (!input) {
|
package/bin/capnpc.js
CHANGED
|
@@ -120,15 +120,6 @@ var ABSOLUTE_PATH_REGEX = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^~[/\\]|^[A-Z]:[/\\]/
|
|
|
120
120
|
var ROOT_FOLDER_REGEX = /^\/([A-Z]:)?$/i;
|
|
121
121
|
var FILE_EXTENSION_REGEX = /\.[0-9a-z]+$/i;
|
|
122
122
|
|
|
123
|
-
// ../path/src/slash.ts
|
|
124
|
-
function slash(path) {
|
|
125
|
-
if (path.startsWith("\\\\?\\")) {
|
|
126
|
-
return path;
|
|
127
|
-
}
|
|
128
|
-
return path.replace(/\\/g, "/");
|
|
129
|
-
}
|
|
130
|
-
__name(slash, "slash");
|
|
131
|
-
|
|
132
123
|
// ../path/src/is-type.ts
|
|
133
124
|
function isAbsolutePath(path) {
|
|
134
125
|
return ABSOLUTE_PATH_REGEX.test(slash(path));
|
|
@@ -139,6 +130,15 @@ function isAbsolute(path) {
|
|
|
139
130
|
}
|
|
140
131
|
__name(isAbsolute, "isAbsolute");
|
|
141
132
|
|
|
133
|
+
// ../path/src/slash.ts
|
|
134
|
+
function slash(path) {
|
|
135
|
+
if (path.startsWith("\\\\?\\")) {
|
|
136
|
+
return path;
|
|
137
|
+
}
|
|
138
|
+
return path.replace(/\\/g, "/");
|
|
139
|
+
}
|
|
140
|
+
__name(slash, "slash");
|
|
141
|
+
|
|
142
142
|
// ../path/src/join-paths.ts
|
|
143
143
|
function normalizeWindowsPath(input = "") {
|
|
144
144
|
if (!input) {
|
|
@@ -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 _chunkGXACFEXRcjs = require('./chunk-GXACFEXR.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 && _chunkGXACFEXRcjs.existsSync.call(void 0, output)) {
|
|
4057
4057
|
opts.push(`-o-:${output}`);
|
|
4058
4058
|
} else {
|
|
4059
|
-
if (output && !
|
|
4059
|
+
if (output && !_chunkGXACFEXRcjs.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 _chunkGXACFEXRcjs.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
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var _chunkAMZ24T7Ecjs = require('./chunk-AMZ24T7E.cjs');
|
|
5
|
+
require('./chunk-GXACFEXR.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 = _chunkAMZ24T7Ecjs.capnpc; exports.compile = _chunkAMZ24T7Ecjs.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 _chunkGXACFEXRcjs = require('./chunk-GXACFEXR.cjs');
|
|
4
4
|
require('./chunk-USNT2KNT.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
exports.resolveOptions =
|
|
7
|
+
exports.resolveOptions = _chunkGXACFEXRcjs.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 _chunkAMZ24T7Ecjs = require('./chunk-AMZ24T7E.cjs');
|
|
5
|
+
require('./chunk-GXACFEXR.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 = _chunkAMZ24T7Ecjs.capnpc; exports.clientFromResolution = _chunkLFP6TIPQcjs.clientFromResolution; exports.clientOrNull = _chunkKMCJ5MIQcjs.clientOrNull; exports.compile = _chunkAMZ24T7Ecjs.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.25",
|
|
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.
|
|
133
|
-
"@stryke/path": "^0.
|
|
132
|
+
"@stryke/fs": "^0.33.1",
|
|
133
|
+
"@stryke/path": "^0.20.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.20.6"
|
|
149
149
|
},
|
|
150
150
|
"publishConfig": { "access": "public" },
|
|
151
|
-
"gitHead": "
|
|
151
|
+
"gitHead": "3cf741f324ff7f8e7bad04b543c84ce374c15481"
|
|
152
152
|
}
|
|
@@ -614,15 +614,6 @@ var ABSOLUTE_PATH_REGEX = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^~[/\\]|^[A-Z]:[/\\]/
|
|
|
614
614
|
var ROOT_FOLDER_REGEX = /^\/([A-Z]:)?$/i;
|
|
615
615
|
var FILE_EXTENSION_REGEX = /\.[0-9a-z]+$/i;
|
|
616
616
|
|
|
617
|
-
// ../path/src/slash.ts
|
|
618
|
-
function slash(path) {
|
|
619
|
-
if (path.startsWith("\\\\?\\")) {
|
|
620
|
-
return path;
|
|
621
|
-
}
|
|
622
|
-
return path.replace(/\\/g, "/");
|
|
623
|
-
}
|
|
624
|
-
_chunkUSNT2KNTcjs.__name.call(void 0, slash, "slash");
|
|
625
|
-
|
|
626
617
|
// ../path/src/is-type.ts
|
|
627
618
|
function isAbsolutePath(path) {
|
|
628
619
|
return ABSOLUTE_PATH_REGEX.test(slash(path));
|
|
@@ -633,6 +624,15 @@ function isAbsolute(path) {
|
|
|
633
624
|
}
|
|
634
625
|
_chunkUSNT2KNTcjs.__name.call(void 0, isAbsolute, "isAbsolute");
|
|
635
626
|
|
|
627
|
+
// ../path/src/slash.ts
|
|
628
|
+
function slash(path) {
|
|
629
|
+
if (path.startsWith("\\\\?\\")) {
|
|
630
|
+
return path;
|
|
631
|
+
}
|
|
632
|
+
return path.replace(/\\/g, "/");
|
|
633
|
+
}
|
|
634
|
+
_chunkUSNT2KNTcjs.__name.call(void 0, slash, "slash");
|
|
635
|
+
|
|
636
636
|
// ../path/src/join-paths.ts
|
|
637
637
|
function normalizeWindowsPath(input = "") {
|
|
638
638
|
if (!input) {
|
|
@@ -614,15 +614,6 @@ var ABSOLUTE_PATH_REGEX = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^~[/\\]|^[A-Z]:[/\\]/
|
|
|
614
614
|
var ROOT_FOLDER_REGEX = /^\/([A-Z]:)?$/i;
|
|
615
615
|
var FILE_EXTENSION_REGEX = /\.[0-9a-z]+$/i;
|
|
616
616
|
|
|
617
|
-
// ../path/src/slash.ts
|
|
618
|
-
function slash(path) {
|
|
619
|
-
if (path.startsWith("\\\\?\\")) {
|
|
620
|
-
return path;
|
|
621
|
-
}
|
|
622
|
-
return path.replace(/\\/g, "/");
|
|
623
|
-
}
|
|
624
|
-
__name(slash, "slash");
|
|
625
|
-
|
|
626
617
|
// ../path/src/is-type.ts
|
|
627
618
|
function isAbsolutePath(path) {
|
|
628
619
|
return ABSOLUTE_PATH_REGEX.test(slash(path));
|
|
@@ -633,6 +624,15 @@ function isAbsolute(path) {
|
|
|
633
624
|
}
|
|
634
625
|
__name(isAbsolute, "isAbsolute");
|
|
635
626
|
|
|
627
|
+
// ../path/src/slash.ts
|
|
628
|
+
function slash(path) {
|
|
629
|
+
if (path.startsWith("\\\\?\\")) {
|
|
630
|
+
return path;
|
|
631
|
+
}
|
|
632
|
+
return path.replace(/\\/g, "/");
|
|
633
|
+
}
|
|
634
|
+
__name(slash, "slash");
|
|
635
|
+
|
|
636
636
|
// ../path/src/join-paths.ts
|
|
637
637
|
function normalizeWindowsPath(input = "") {
|
|
638
638
|
if (!input) {
|