@stryke/capnp 0.12.87 → 0.12.88
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 +17 -14
- package/bin/capnpc.mjs +17 -14
- package/bin/capnpc.mjs.map +1 -1
- package/dist/{compile-DBZMJ5P8.mjs → compile-DwHB9xBy.mjs} +2 -2
- package/dist/{compile-DBZMJ5P8.mjs.map → compile-DwHB9xBy.mjs.map} +1 -1
- package/dist/{compile-DeNcAQWn.cjs → compile-GRO1_ka5.cjs} +1 -1
- package/dist/compile.cjs +2 -2
- package/dist/compile.mjs +2 -2
- package/dist/{helpers-BdCa_OGa.mjs → helpers-jlhgVQPM.mjs} +14 -11
- package/dist/{helpers-BdCa_OGa.mjs.map → helpers-jlhgVQPM.mjs.map} +1 -1
- package/dist/{helpers-CQMD8SU-.cjs → helpers-nWE-SpSm.cjs} +13 -10
- package/dist/helpers.cjs +1 -1
- package/dist/helpers.d.cts.map +1 -1
- package/dist/helpers.d.mts.map +1 -1
- package/dist/helpers.mjs +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/rpc-helpers.cjs +1 -1
- package/package.json +7 -7
- package/schemas/persistent.cjs +1 -1
- package/schemas/persistent.mjs +1 -1
- package/schemas/rpc-twoparty.cjs +1 -1
- package/schemas/rpc-twoparty.mjs +1 -1
- package/schemas/rpc.cjs +1 -1
- package/schemas/rpc.mjs +1 -1
- package/schemas/schema.cjs +1 -1
- package/schemas/schema.mjs +1 -1
- package/schemas/{src-B-8ZXmr4.mjs → src-DLOZdE-O.mjs} +2 -1
- package/schemas/{src-B-8ZXmr4.mjs.map → src-DLOZdE-O.mjs.map} +1 -1
- package/schemas/{src-DsF0a8FH.cjs → src-rXFz6bX_.cjs} +1 -0
|
@@ -31,10 +31,11 @@ let typescript = require("typescript");
|
|
|
31
31
|
let __stryke_fs = require("@stryke/fs");
|
|
32
32
|
let __stryke_fs_json = require("@stryke/fs/json");
|
|
33
33
|
let __stryke_fs_list_files = require("@stryke/fs/list-files");
|
|
34
|
+
let __stryke_path_append = require("@stryke/path/append");
|
|
34
35
|
let __stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
|
|
35
36
|
let __stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
36
37
|
|
|
37
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
38
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.32/node_modules/@storm-software/config-tools/dist/chunk-DJB7XLHA.js
|
|
38
39
|
var DEFAULT_COLOR_CONFIG = {
|
|
39
40
|
light: {
|
|
40
41
|
background: "#fafafa",
|
|
@@ -2211,7 +2212,7 @@ var require_source = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2211
2212
|
}));
|
|
2212
2213
|
|
|
2213
2214
|
//#endregion
|
|
2214
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2215
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.32/node_modules/@storm-software/config-tools/dist/chunk-HVVJHTFS.js
|
|
2215
2216
|
var import_source = /* @__PURE__ */ __toESM(require_source(), 1);
|
|
2216
2217
|
var chalkDefault = {
|
|
2217
2218
|
hex: (_) => (message) => message,
|
|
@@ -2243,14 +2244,14 @@ var getChalk = () => {
|
|
|
2243
2244
|
};
|
|
2244
2245
|
|
|
2245
2246
|
//#endregion
|
|
2246
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2247
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.32/node_modules/@storm-software/config-tools/dist/chunk-G2MK47WL.js
|
|
2247
2248
|
function isUnicodeSupported() {
|
|
2248
2249
|
if (process.platform !== "win32") return process.env.TERM !== "linux";
|
|
2249
2250
|
return Boolean(process.env.WT_SESSION) || Boolean(process.env.TERMINUS_SUBLIME) || process.env.ConEmuTask === "{cmd::Cmder}" || process.env.TERM_PROGRAM === "Terminus-Sublime" || process.env.TERM_PROGRAM === "vscode" || process.env.TERM === "xterm-256color" || process.env.TERM === "alacritty" || process.env.TERM === "rxvt-unicode" || process.env.TERM === "rxvt-unicode-256color" || process.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
2250
2251
|
}
|
|
2251
2252
|
|
|
2252
2253
|
//#endregion
|
|
2253
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2254
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.32/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.js
|
|
2254
2255
|
var LogLevel = {
|
|
2255
2256
|
SILENT: 0,
|
|
2256
2257
|
FATAL: 10,
|
|
@@ -2275,7 +2276,7 @@ var LogLevelLabel = {
|
|
|
2275
2276
|
};
|
|
2276
2277
|
|
|
2277
2278
|
//#endregion
|
|
2278
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2279
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.32/node_modules/@storm-software/config-tools/dist/chunk-AITAR5W5.js
|
|
2279
2280
|
var useIcon = (c, fallback) => isUnicodeSupported() ? c : fallback;
|
|
2280
2281
|
var CONSOLE_ICONS = {
|
|
2281
2282
|
[LogLevelLabel.ERROR]: useIcon("✘", "×"),
|
|
@@ -2289,13 +2290,13 @@ var CONSOLE_ICONS = {
|
|
|
2289
2290
|
};
|
|
2290
2291
|
|
|
2291
2292
|
//#endregion
|
|
2292
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2293
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.32/node_modules/@storm-software/config-tools/dist/chunk-CZ4IE2QN.js
|
|
2293
2294
|
var formatTimestamp = (date = /* @__PURE__ */ new Date()) => {
|
|
2294
2295
|
return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
|
|
2295
2296
|
};
|
|
2296
2297
|
|
|
2297
2298
|
//#endregion
|
|
2298
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2299
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.32/node_modules/@storm-software/config-tools/dist/chunk-K4CDYUQR.js
|
|
2299
2300
|
var getLogLevel = (label) => {
|
|
2300
2301
|
switch (label) {
|
|
2301
2302
|
case "all": return LogLevel.ALL;
|
|
@@ -2311,7 +2312,7 @@ var getLogLevel = (label) => {
|
|
|
2311
2312
|
};
|
|
2312
2313
|
|
|
2313
2314
|
//#endregion
|
|
2314
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2315
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.32/node_modules/@storm-software/config-tools/dist/chunk-SPHE3YEH.js
|
|
2315
2316
|
var daysInYear = 365.2425;
|
|
2316
2317
|
-(Math.pow(10, 8) * 24 * 60 * 60 * 1e3);
|
|
2317
2318
|
var secondsInDay = 3600 * 24;
|
|
@@ -2938,10 +2939,12 @@ async function resolveOptions(options) {
|
|
|
2938
2939
|
(0, __stryke_path_join_paths.joinPaths)(options.projectRoot, "tsconfig.lib.json"),
|
|
2939
2940
|
(0, __stryke_path_join_paths.joinPaths)(options.projectRoot, "tsconfig.app.json"),
|
|
2940
2941
|
(0, __stryke_path_join_paths.joinPaths)(options.projectRoot, "tsconfig.capnp.json"),
|
|
2942
|
+
(0, __stryke_path_join_paths.joinPaths)(options.projectRoot, "tsconfig.schema.json"),
|
|
2941
2943
|
(0, __stryke_path_join_paths.joinPaths)(options.workspaceRoot, "tsconfig.json"),
|
|
2942
2944
|
(0, __stryke_path_join_paths.joinPaths)(options.workspaceRoot, "tsconfig.lib.json"),
|
|
2943
2945
|
(0, __stryke_path_join_paths.joinPaths)(options.workspaceRoot, "tsconfig.app.json"),
|
|
2944
|
-
(0, __stryke_path_join_paths.joinPaths)(options.workspaceRoot, "tsconfig.capnp.json")
|
|
2946
|
+
(0, __stryke_path_join_paths.joinPaths)(options.workspaceRoot, "tsconfig.capnp.json"),
|
|
2947
|
+
(0, __stryke_path_join_paths.joinPaths)(options.workspaceRoot, "tsconfig.schema.json")
|
|
2945
2948
|
].find((path) => (0, __stryke_fs_exists.existsSync)(path));
|
|
2946
2949
|
if (found) resolvedTsconfigPath = found;
|
|
2947
2950
|
}
|
|
@@ -2971,7 +2974,7 @@ async function resolveOptions(options) {
|
|
|
2971
2974
|
writeWarning(`✖ No Cap'n Proto schema files found in the specified source paths: ${schemas.join(", ")}. As a result, the Cap'n Proto compiler will not be able to generate any output files. Please ensure that the paths are correct and contain .capnp files.`, { logLevel: "all" });
|
|
2972
2975
|
return null;
|
|
2973
2976
|
}
|
|
2974
|
-
const output = options.output ? options.output.replace("{projectRoot}", options.projectRoot).replace("{workspaceRoot}", options.workspaceRoot) : (0,
|
|
2977
|
+
const output = options.output ? options.output.replace("{projectRoot}", options.projectRoot).replace("{workspaceRoot}", options.workspaceRoot) : (0, __stryke_path_append.appendPath)((0, __stryke_path_file_path_fns.relativePath)(tsconfigPath ? (0, __stryke_path_file_path_fns.findFilePath)(tsconfigPath) : options.projectRoot, (0, __stryke_path_join_paths.joinPaths)(options.workspaceRoot, resolvedSchemas[0].endsWith(".capnp") ? (0, __stryke_path_file_path_fns.findFilePath)(resolvedSchemas[0]) : resolvedSchemas[0])), options.projectRoot);
|
|
2975
2978
|
if (!(0, __stryke_fs_exists.existsSync)(output)) {
|
|
2976
2979
|
if ((0, __stryke_fs.isFile)(output)) {
|
|
2977
2980
|
const errorMessage = `✖ The specified output path "${output}" is a file. Please provide a valid directory path.`;
|
package/dist/helpers.cjs
CHANGED
package/dist/helpers.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.cts","names":[],"sources":["../../src/helpers.ts"],"sourcesContent":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"helpers.d.cts","names":[],"sources":["../../src/helpers.ts"],"sourcesContent":[],"mappings":";;;;;;AA0CA;;;;AAEa,iBAFS,cAAA,CAET,OAAA,EADF,IACE,CADG,aACH,EAAA,eAAA,GAAA,aAAA,CAAA,GAAT,QAAS,CAAA,IAAA,CAAK,aAAL,EAAA,eAAA,GAAA,aAAA,CAAA,CAAA,CAAA,EACV,OADU,CACF,qBADE,GAAA,IAAA,CAAA"}
|
package/dist/helpers.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.mts","names":[],"sources":["../../src/helpers.ts"],"sourcesContent":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"helpers.d.mts","names":[],"sources":["../../src/helpers.ts"],"sourcesContent":[],"mappings":";;;;;;AA0CA;;;;AAEa,iBAFS,cAAA,CAET,OAAA,EADF,IACE,CADG,aACH,EAAA,eAAA,GAAA,aAAA,CAAA,GAAT,QAAS,CAAA,IAAA,CAAK,aAAL,EAAA,eAAA,GAAA,aAAA,CAAA,CAAA,CAAA,EACV,OADU,CACF,qBADE,GAAA,IAAA,CAAA"}
|
package/dist/helpers.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
require('./helpers-
|
|
1
|
+
require('./helpers-nWE-SpSm.cjs');
|
|
2
2
|
const require_capnp_es_GpvEvMIK = require('./capnp-es.GpvEvMIK-BY4gHyC5.cjs');
|
|
3
|
-
const require_compile = require('./compile-
|
|
3
|
+
const require_compile = require('./compile-GRO1_ka5.cjs');
|
|
4
4
|
const require_types = require('./types-DHrjS-69.cjs');
|
|
5
5
|
const require_dist = require('./dist-BZ3g4lB8.cjs');
|
|
6
6
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./helpers-
|
|
1
|
+
import "./helpers-jlhgVQPM.mjs";
|
|
2
2
|
import { $ as clientOrNull, D as Pointer, E as Orphan, J as Text, S as ListElementSize, T as ObjectSize, a as getFloat32Mask, c as getInt32Mask, d as getUint16Mask, f as getUint32Mask, g as Data, i as getBitMask, k as PointerType, l as getInt64Mask, m as getUint8Mask, n as readRawPointer, o as getFloat64Mask, p as getUint64Mask, q as Struct, r as CompositeList, s as getInt16Mask, t as Message, u as getInt8Mask, v as ErrorClient, x as List } from "./capnp-es.GpvEvMIK-BH8YrftV.mjs";
|
|
3
|
-
import { n as compile, t as capnpc } from "./compile-
|
|
3
|
+
import { n as compile, t as capnpc } from "./compile-DwHB9xBy.mjs";
|
|
4
4
|
import { t as CodeGeneratorContext } from "./types-Cuj2daUE.mjs";
|
|
5
5
|
import { A as copyCall, C as isSameClient, D as Pipeline, E as Interface, M as isFuncCall, N as placeParams, O as Registry, S as clientFromResolution, T as Deferred, _ as Uint64List, a as DeferredTransport, b as VoidList, c as Int16List, d as Int8List, f as InterfaceList, g as Uint32List, h as Uint16List, i as DataList, j as isDataCall, k as Server, l as Int32List, m as TextList, n as BoolList, o as Float32List, p as PointerList, r as Conn, s as Float64List, t as AnyPointerList, u as Int64List, v as Uint8List, w as utils, x as answerPipelineClient, y as Void } from "./dist-Qno9L0HI.mjs";
|
|
6
6
|
|
package/dist/rpc-helpers.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_helpers = require('./helpers-
|
|
1
|
+
const require_helpers = require('./helpers-nWE-SpSm.cjs');
|
|
2
2
|
const require_capnp_es_GpvEvMIK = require('./capnp-es.GpvEvMIK-BY4gHyC5.cjs');
|
|
3
3
|
const require_dist = require('./dist-BZ3g4lB8.cjs');
|
|
4
4
|
let node_worker_threads = require("node:worker_threads");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stryke/capnp",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.88",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package to assist in running the Cap'n Proto compiler and creating Cap'n Proto serialization protocol schemas.",
|
|
6
6
|
"keywords": [
|
|
@@ -104,16 +104,16 @@
|
|
|
104
104
|
},
|
|
105
105
|
"files": ["bin/**/*", "dist/**/*", "dts/**/*", "schemas/**/*", "vendor/**/*"],
|
|
106
106
|
"dependencies": {
|
|
107
|
-
"@stryke/fs": "^0.33.
|
|
108
|
-
"@stryke/path": "^0.27.
|
|
107
|
+
"@stryke/fs": "^0.33.62",
|
|
108
|
+
"@stryke/path": "^0.27.1",
|
|
109
109
|
"defu": "^6.1.4",
|
|
110
110
|
"hex2dec": "^1.1.2",
|
|
111
111
|
"nanotar": "^0.2.1"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
|
-
"@storm-software/config": "^1.135.
|
|
115
|
-
"@storm-software/config-tools": "^1.189.
|
|
116
|
-
"@storm-software/testing-tools": "^1.119.
|
|
114
|
+
"@storm-software/config": "^1.135.33",
|
|
115
|
+
"@storm-software/config-tools": "^1.189.32",
|
|
116
|
+
"@storm-software/testing-tools": "^1.119.107",
|
|
117
117
|
"@types/node": "^24.12.0",
|
|
118
118
|
"@types/semver": "^7.7.1",
|
|
119
119
|
"capnp-es": "^0.0.11",
|
|
@@ -126,5 +126,5 @@
|
|
|
126
126
|
"peerDependencies": { "typescript": ">=4.0.0" },
|
|
127
127
|
"peerDependenciesMeta": { "typescript": { "optional": false } },
|
|
128
128
|
"publishConfig": { "access": "public" },
|
|
129
|
-
"gitHead": "
|
|
129
|
+
"gitHead": "f8d7b1bf4c1ab0e4fa10189d82e8993dba27207a"
|
|
130
130
|
}
|
package/schemas/persistent.cjs
CHANGED
package/schemas/persistent.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Server, d as Struct, i as Registry, n as Interface, r as Pipeline, t as utils, u as ObjectSize } from "./src-
|
|
1
|
+
import { a as Server, d as Struct, i as Registry, n as Interface, r as Pipeline, t as utils, u as ObjectSize } from "./src-DLOZdE-O.mjs";
|
|
2
2
|
|
|
3
3
|
//#region schemas/persistent.ts
|
|
4
4
|
const _capnpFileId = BigInt("0xb8630836983feed7");
|
package/schemas/rpc-twoparty.cjs
CHANGED
package/schemas/rpc-twoparty.mjs
CHANGED
package/schemas/rpc.cjs
CHANGED
package/schemas/rpc.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as Struct, l as getUint8Mask, o as CompositeList, s as getBitMask, t as utils, u as ObjectSize } from "./src-
|
|
1
|
+
import { d as Struct, l as getUint8Mask, o as CompositeList, s as getBitMask, t as utils, u as ObjectSize } from "./src-DLOZdE-O.mjs";
|
|
2
2
|
|
|
3
3
|
//#region schemas/rpc.ts
|
|
4
4
|
const _capnpFileId = BigInt("0xb312981b2552a250");
|
package/schemas/schema.cjs
CHANGED
package/schemas/schema.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as getUint16Mask, d as Struct, o as CompositeList, t as utils, u as ObjectSize } from "./src-
|
|
1
|
+
import { c as getUint16Mask, d as Struct, o as CompositeList, t as utils, u as ObjectSize } from "./src-DLOZdE-O.mjs";
|
|
2
2
|
|
|
3
3
|
//#region schemas/schema.ts
|
|
4
4
|
const _capnpFileId = BigInt("0xa93fc509624c72d9");
|
|
@@ -5,6 +5,7 @@ import { Buffer } from "node:buffer";
|
|
|
5
5
|
import "@stryke/fs";
|
|
6
6
|
import "@stryke/fs/json";
|
|
7
7
|
import "@stryke/fs/list-files";
|
|
8
|
+
import "@stryke/path/append";
|
|
8
9
|
import "@stryke/path/file-path-fns";
|
|
9
10
|
import "@stryke/path/join-paths";
|
|
10
11
|
|
|
@@ -3065,4 +3066,4 @@ const ConnWeakRefRegistry = globalThis.FinalizationRegistry ? new FinalizationRe
|
|
|
3065
3066
|
|
|
3066
3067
|
//#endregion
|
|
3067
3068
|
export { Server as a, getUint16Mask as c, Struct as d, Registry as i, getUint8Mask as l, Interface as n, CompositeList as o, Pipeline as r, getBitMask as s, utils as t, ObjectSize as u };
|
|
3068
|
-
//# sourceMappingURL=src-
|
|
3069
|
+
//# sourceMappingURL=src-DLOZdE-O.mjs.map
|