@stryke/capnp 0.12.102 → 0.12.104

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/dist/compile.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_compile = require('./compile-zsPz1GJC.cjs');
2
+ const require_compile = require('./compile-BaKiSOxH.cjs');
3
3
 
4
4
  exports.capnpc = require_compile.capnpc;
5
5
  exports.compile = require_compile.compile;
package/dist/compile.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { n as compile, t as capnpc } from "./compile-tQXFOze7.mjs";
1
+ import { n as compile, t as capnpc } from "./compile-WsDhcWcc.mjs";
2
2
 
3
3
  export { capnpc, compile };
@@ -35,7 +35,7 @@ let _stryke_path_append = require("@stryke/path/append");
35
35
  let _stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
36
36
  let _stryke_path_join_paths = require("@stryke/path/join-paths");
37
37
 
38
- //#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.11_zod@4.4.3/node_modules/@storm-software/config-tools/dist/chunk-5DQF4GNF.js
38
+ //#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.33_zod@4.4.3/node_modules/@storm-software/config-tools/dist/chunk-5DQF4GNF.js
39
39
  var DEFAULT_COLOR_CONFIG = {
40
40
  light: {
41
41
  background: "#fafafa",
@@ -2214,7 +2214,7 @@ var require_source = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2214
2214
  }));
2215
2215
 
2216
2216
  //#endregion
2217
- //#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.11_zod@4.4.3/node_modules/@storm-software/config-tools/dist/chunk-HVVJHTFS.js
2217
+ //#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.33_zod@4.4.3/node_modules/@storm-software/config-tools/dist/chunk-HVVJHTFS.js
2218
2218
  var import_source = /* @__PURE__ */ __toESM(require_source(), 1);
2219
2219
  var chalkDefault = {
2220
2220
  hex: (_) => (message) => message,
@@ -2246,14 +2246,14 @@ var getChalk = () => {
2246
2246
  };
2247
2247
 
2248
2248
  //#endregion
2249
- //#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.11_zod@4.4.3/node_modules/@storm-software/config-tools/dist/chunk-G2MK47WL.js
2249
+ //#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.33_zod@4.4.3/node_modules/@storm-software/config-tools/dist/chunk-G2MK47WL.js
2250
2250
  function isUnicodeSupported() {
2251
2251
  if (process.platform !== "win32") return process.env.TERM !== "linux";
2252
2252
  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";
2253
2253
  }
2254
2254
 
2255
2255
  //#endregion
2256
- //#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.11_zod@4.4.3/node_modules/@storm-software/config-tools/dist/chunk-RALMUN5C.js
2256
+ //#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.33_zod@4.4.3/node_modules/@storm-software/config-tools/dist/chunk-RALMUN5C.js
2257
2257
  var LogLevel = {
2258
2258
  SILENT: 0,
2259
2259
  FATAL: 10,
@@ -2280,7 +2280,7 @@ var LogLevelLabel = {
2280
2280
  };
2281
2281
 
2282
2282
  //#endregion
2283
- //#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.11_zod@4.4.3/node_modules/@storm-software/config-tools/dist/chunk-ZFNAUMQS.js
2283
+ //#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.33_zod@4.4.3/node_modules/@storm-software/config-tools/dist/chunk-ZFNAUMQS.js
2284
2284
  var useIcon = (c, fallback) => isUnicodeSupported() ? c : fallback;
2285
2285
  var CONSOLE_ICONS = {
2286
2286
  [LogLevelLabel.ERROR]: useIcon("✘", "×"),
@@ -2295,13 +2295,13 @@ var CONSOLE_ICONS = {
2295
2295
  };
2296
2296
 
2297
2297
  //#endregion
2298
- //#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.11_zod@4.4.3/node_modules/@storm-software/config-tools/dist/chunk-JZAYHDV3.js
2298
+ //#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.33_zod@4.4.3/node_modules/@storm-software/config-tools/dist/chunk-JZAYHDV3.js
2299
2299
  var formatTimestamp = (fullDateTime = false, date = /* @__PURE__ */ new Date()) => {
2300
2300
  return fullDateTime ? `${date.toLocaleDateString()} ${date.toLocaleTimeString()}` : `${date.toLocaleTimeString()}`;
2301
2301
  };
2302
2302
 
2303
2303
  //#endregion
2304
- //#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.11_zod@4.4.3/node_modules/@storm-software/config-tools/dist/chunk-SXPH7ILL.js
2304
+ //#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.33_zod@4.4.3/node_modules/@storm-software/config-tools/dist/chunk-SXPH7ILL.js
2305
2305
  var getLogLevel = (label) => {
2306
2306
  switch (label) {
2307
2307
  case "all": return LogLevel.ALL;
@@ -2318,7 +2318,7 @@ var getLogLevel = (label) => {
2318
2318
  };
2319
2319
 
2320
2320
  //#endregion
2321
- //#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.11_zod@4.4.3/node_modules/@storm-software/config-tools/dist/chunk-TOMKPXJE.js
2321
+ //#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.33_zod@4.4.3/node_modules/@storm-software/config-tools/dist/chunk-H3L23WJP.js
2322
2322
  var daysInYear = 365.2425;
2323
2323
  -(Math.pow(10, 8) * 24 * 60 * 60 * 1e3);
2324
2324
  var secondsInDay = 3600 * 24;
@@ -2891,20 +2891,23 @@ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.
2891
2891
  var writeFatal = (message, config) => getLogFn(LogLevel.FATAL, config)(message);
2892
2892
  var writeWarning = (message, config) => getLogFn(LogLevel.WARN, config)(message);
2893
2893
  var writeInfo = (message, config) => getLogFn(LogLevel.INFO, config)(message);
2894
- var MAX_DEPTH = 6;
2894
+ var MAX_DEPTH = 10;
2895
2895
  var formatLogMessage = (message, options = {}, depth = 0) => {
2896
2896
  if (depth > MAX_DEPTH) return "<max depth>";
2897
- const prefix = options.prefix ?? "-";
2897
+ const prefix = options.prefix ?? "";
2898
2898
  const skip = options.skip ?? [];
2899
- return typeof message === "undefined" || message === null || !message && typeof message !== "boolean" ? "<none>" : typeof message === "string" ? message : Array.isArray(message) ? `
2900
- ${message.map((item, index) => ` ${prefix}> #${index} = ${formatLogMessage(item, {
2901
- prefix: `${prefix}-`,
2902
- skip
2903
- }, depth + 1)}`).join("\n")}` : typeof message === "object" ? `
2904
- ${Object.keys(message).filter((key) => !skip.includes(key)).map((key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(message[key], {
2905
- prefix: `${prefix}-`,
2906
- skip
2907
- }, depth + 1) : message[key]}`).join("\n")}` : message;
2899
+ const sort = options.sort ?? true;
2900
+ return typeof message === "undefined" || message === null ? "<empty>" : typeof message === "string" ? !message ? "<empty string>" : message : Array.isArray(message) ? `
2901
+ ${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, {
2902
+ prefix: `${prefix}--`,
2903
+ skip,
2904
+ sort
2905
+ }, depth + 1)}`).join("\n")}` : typeof message === "object" && message ? `
2906
+ ${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], {
2907
+ prefix: `${prefix}--`,
2908
+ skip,
2909
+ sort
2910
+ }, depth + 1) : message[key]}`).join("\n")}` : String(message);
2908
2911
  };
2909
2912
  var _isFunction = (value) => {
2910
2913
  try {
@@ -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.11_zod@4.4.3/node_modules/@storm-software/config-tools/dist/chunk-5DQF4GNF.js
40
+ //#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.33_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.11_zod@4.4.3/node_modules/@storm-software/config-tools/dist/chunk-HVVJHTFS.js
2219
+ //#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.33_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.11_zod@4.4.3/node_modules/@storm-software/config-tools/dist/chunk-G2MK47WL.js
2251
+ //#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.33_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.11_zod@4.4.3/node_modules/@storm-software/config-tools/dist/chunk-RALMUN5C.js
2258
+ //#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.33_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.11_zod@4.4.3/node_modules/@storm-software/config-tools/dist/chunk-ZFNAUMQS.js
2285
+ //#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.33_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.11_zod@4.4.3/node_modules/@storm-software/config-tools/dist/chunk-JZAYHDV3.js
2300
+ //#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.33_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.11_zod@4.4.3/node_modules/@storm-software/config-tools/dist/chunk-SXPH7ILL.js
2306
+ //#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.33_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.11_zod@4.4.3/node_modules/@storm-software/config-tools/dist/chunk-TOMKPXJE.js
2323
+ //#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.33_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 = 6;
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
- return typeof message === "undefined" || message === null || !message && typeof message !== "boolean" ? "<none>" : typeof message === "string" ? message : Array.isArray(message) ? `
2902
- ${message.map((item, index) => ` ${prefix}> #${index} = ${formatLogMessage(item, {
2903
- prefix: `${prefix}-`,
2904
- skip
2905
- }, depth + 1)}`).join("\n")}` : typeof message === "object" ? `
2906
- ${Object.keys(message).filter((key) => !skip.includes(key)).map((key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(message[key], {
2907
- prefix: `${prefix}-`,
2908
- skip
2909
- }, depth + 1) : message[key]}`).join("\n")}` : message;
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-B5XOREs9.mjs.map
3020
+ //# sourceMappingURL=helpers-CAjBYVF6.mjs.map