@stryke/capnp 0.12.102 → 0.12.103
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 +26 -23
- package/bin/capnpc.mjs +26 -23
- package/bin/capnpc.mjs.map +1 -1
- package/dist/{compile-zsPz1GJC.cjs → compile-5oQexRKA.cjs} +1 -1
- package/dist/{compile-tQXFOze7.mjs → compile-BnxZ7lXr.mjs} +2 -2
- package/dist/{compile-tQXFOze7.mjs.map → compile-BnxZ7lXr.mjs.map} +1 -1
- package/dist/compile.cjs +1 -1
- package/dist/compile.mjs +1 -1
- package/dist/{helpers-B5XOREs9.mjs → helpers-CWrUTzkP.mjs} +23 -20
- package/dist/{helpers-B5XOREs9.mjs.map → helpers-CWrUTzkP.mjs.map} +1 -1
- package/dist/{helpers-sd5NP7sr.cjs → helpers-Ch489o2Q.cjs} +22 -19
- package/dist/helpers.cjs +1 -1
- package/dist/helpers.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/rpc-helpers.cjs +1 -1
- package/package.json +8 -8
package/dist/compile.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_compile = require('./compile-
|
|
2
|
+
const require_compile = require('./compile-5oQexRKA.cjs');
|
|
3
3
|
|
|
4
4
|
exports.capnpc = require_compile.capnpc;
|
|
5
5
|
exports.compile = require_compile.compile;
|
package/dist/compile.mjs
CHANGED
|
@@ -37,7 +37,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
37
37
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
38
38
|
|
|
39
39
|
//#endregion
|
|
40
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.
|
|
40
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.30_zod@4.4.3/node_modules/@storm-software/config-tools/dist/chunk-5DQF4GNF.js
|
|
41
41
|
var DEFAULT_COLOR_CONFIG = {
|
|
42
42
|
light: {
|
|
43
43
|
background: "#fafafa",
|
|
@@ -2216,7 +2216,7 @@ var require_source = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2216
2216
|
}));
|
|
2217
2217
|
|
|
2218
2218
|
//#endregion
|
|
2219
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.
|
|
2219
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.30_zod@4.4.3/node_modules/@storm-software/config-tools/dist/chunk-HVVJHTFS.js
|
|
2220
2220
|
var import_source = /* @__PURE__ */ __toESM(require_source(), 1);
|
|
2221
2221
|
var chalkDefault = {
|
|
2222
2222
|
hex: (_) => (message) => message,
|
|
@@ -2248,14 +2248,14 @@ var getChalk = () => {
|
|
|
2248
2248
|
};
|
|
2249
2249
|
|
|
2250
2250
|
//#endregion
|
|
2251
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.
|
|
2251
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.30_zod@4.4.3/node_modules/@storm-software/config-tools/dist/chunk-G2MK47WL.js
|
|
2252
2252
|
function isUnicodeSupported() {
|
|
2253
2253
|
if (process.platform !== "win32") return process.env.TERM !== "linux";
|
|
2254
2254
|
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";
|
|
2255
2255
|
}
|
|
2256
2256
|
|
|
2257
2257
|
//#endregion
|
|
2258
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.
|
|
2258
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.30_zod@4.4.3/node_modules/@storm-software/config-tools/dist/chunk-RALMUN5C.js
|
|
2259
2259
|
var LogLevel = {
|
|
2260
2260
|
SILENT: 0,
|
|
2261
2261
|
FATAL: 10,
|
|
@@ -2282,7 +2282,7 @@ var LogLevelLabel = {
|
|
|
2282
2282
|
};
|
|
2283
2283
|
|
|
2284
2284
|
//#endregion
|
|
2285
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.
|
|
2285
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.30_zod@4.4.3/node_modules/@storm-software/config-tools/dist/chunk-ZFNAUMQS.js
|
|
2286
2286
|
var useIcon = (c, fallback) => isUnicodeSupported() ? c : fallback;
|
|
2287
2287
|
var CONSOLE_ICONS = {
|
|
2288
2288
|
[LogLevelLabel.ERROR]: useIcon("✘", "×"),
|
|
@@ -2297,13 +2297,13 @@ var CONSOLE_ICONS = {
|
|
|
2297
2297
|
};
|
|
2298
2298
|
|
|
2299
2299
|
//#endregion
|
|
2300
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.
|
|
2300
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.30_zod@4.4.3/node_modules/@storm-software/config-tools/dist/chunk-JZAYHDV3.js
|
|
2301
2301
|
var formatTimestamp = (fullDateTime = false, date = /* @__PURE__ */ new Date()) => {
|
|
2302
2302
|
return fullDateTime ? `${date.toLocaleDateString()} ${date.toLocaleTimeString()}` : `${date.toLocaleTimeString()}`;
|
|
2303
2303
|
};
|
|
2304
2304
|
|
|
2305
2305
|
//#endregion
|
|
2306
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.
|
|
2306
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.30_zod@4.4.3/node_modules/@storm-software/config-tools/dist/chunk-SXPH7ILL.js
|
|
2307
2307
|
var getLogLevel = (label) => {
|
|
2308
2308
|
switch (label) {
|
|
2309
2309
|
case "all": return LogLevel.ALL;
|
|
@@ -2320,7 +2320,7 @@ var getLogLevel = (label) => {
|
|
|
2320
2320
|
};
|
|
2321
2321
|
|
|
2322
2322
|
//#endregion
|
|
2323
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.
|
|
2323
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.30_zod@4.4.3/node_modules/@storm-software/config-tools/dist/chunk-H3L23WJP.js
|
|
2324
2324
|
var daysInYear = 365.2425;
|
|
2325
2325
|
-(Math.pow(10, 8) * 24 * 60 * 60 * 1e3);
|
|
2326
2326
|
var secondsInDay = 3600 * 24;
|
|
@@ -2893,20 +2893,23 @@ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.
|
|
|
2893
2893
|
var writeFatal = (message, config) => getLogFn(LogLevel.FATAL, config)(message);
|
|
2894
2894
|
var writeWarning = (message, config) => getLogFn(LogLevel.WARN, config)(message);
|
|
2895
2895
|
var writeInfo = (message, config) => getLogFn(LogLevel.INFO, config)(message);
|
|
2896
|
-
var MAX_DEPTH =
|
|
2896
|
+
var MAX_DEPTH = 10;
|
|
2897
2897
|
var formatLogMessage = (message, options = {}, depth = 0) => {
|
|
2898
2898
|
if (depth > MAX_DEPTH) return "<max depth>";
|
|
2899
|
-
const prefix = options.prefix ?? "
|
|
2899
|
+
const prefix = options.prefix ?? "";
|
|
2900
2900
|
const skip = options.skip ?? [];
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2901
|
+
const sort = options.sort ?? true;
|
|
2902
|
+
return typeof message === "undefined" || message === null ? "<empty>" : typeof message === "string" ? !message ? "<empty string>" : message : Array.isArray(message) ? `
|
|
2903
|
+
${message.sort(sort ? (a, b) => !a && !b ? 0 : !a ? 1 : !b ? -1 : String(a).localeCompare(String(b)) : void 0).map((item, index) => ` ${prefix}> #${index} = ${formatLogMessage(item, {
|
|
2904
|
+
prefix: `${prefix}--`,
|
|
2905
|
+
skip,
|
|
2906
|
+
sort
|
|
2907
|
+
}, depth + 1)}`).join("\n")}` : typeof message === "object" && message ? `
|
|
2908
|
+
${Object.keys(message).filter((key) => typeof key !== "string" || !skip.map((k) => k.toLowerCase().trim()).includes(key.toLowerCase().trim())).sort(sort ? (a, b) => !a && !b ? 0 : !a ? 1 : !b ? -1 : String(a).localeCompare(String(b)) : void 0).map((key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" && message[key] ? Object.keys(message[key]).filter((key2) => typeof key2 !== "string" || !skip.map((k) => k.toLowerCase().trim()).includes(key2.toLowerCase().trim())).length === 0 ? "{}" : formatLogMessage(message[key], {
|
|
2909
|
+
prefix: `${prefix}--`,
|
|
2910
|
+
skip,
|
|
2911
|
+
sort
|
|
2912
|
+
}, depth + 1) : message[key]}`).join("\n")}` : String(message);
|
|
2910
2913
|
};
|
|
2911
2914
|
var _isFunction = (value) => {
|
|
2912
2915
|
try {
|
|
@@ -3014,4 +3017,4 @@ async function resolveOptions(options) {
|
|
|
3014
3017
|
|
|
3015
3018
|
//#endregion
|
|
3016
3019
|
export { writeWarning as n, resolveOptions as t };
|
|
3017
|
-
//# sourceMappingURL=helpers-
|
|
3020
|
+
//# sourceMappingURL=helpers-CWrUTzkP.mjs.map
|