@stryke/capnp 0.12.68 → 0.12.69
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 +531 -12
- package/bin/capnpc.mjs +531 -12
- package/bin/capnpc.mjs.map +1 -1
- package/dist/{compile-DiTc51Q-.cjs → compile-B3XqBhBE.cjs} +1 -1
- package/dist/{compile-DBdcp5DD.mjs → compile-CwHohn4j.mjs} +2 -2
- package/dist/{compile-DBdcp5DD.mjs.map → compile-CwHohn4j.mjs.map} +1 -1
- package/dist/compile.cjs +2 -2
- package/dist/compile.mjs +2 -2
- package/dist/{helpers-DwX18sWU.cjs → helpers-DjSYmEPx.cjs} +527 -8
- package/dist/{helpers-DdetET6R.mjs → helpers-DoFLy1C-.mjs} +528 -9
- package/dist/helpers-DoFLy1C-.mjs.map +1 -0
- package/dist/helpers.cjs +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 +9 -9
- package/dist/helpers-DdetET6R.mjs.map +0 -1
package/bin/capnpc.cjs
CHANGED
|
@@ -41,7 +41,7 @@ let node_buffer = require("node:buffer");
|
|
|
41
41
|
let __stryke_fs_json = require("@stryke/fs/json");
|
|
42
42
|
let __stryke_fs_list_files = require("@stryke/fs/list-files");
|
|
43
43
|
|
|
44
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
44
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.11/node_modules/@storm-software/config-tools/dist/chunk-DJB7XLHA.js
|
|
45
45
|
var DEFAULT_COLOR_CONFIG = {
|
|
46
46
|
light: {
|
|
47
47
|
background: "#fafafa",
|
|
@@ -2218,7 +2218,7 @@ var require_source = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2218
2218
|
}));
|
|
2219
2219
|
|
|
2220
2220
|
//#endregion
|
|
2221
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2221
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.11/node_modules/@storm-software/config-tools/dist/chunk-HVVJHTFS.js
|
|
2222
2222
|
var import_source = /* @__PURE__ */ __toESM(require_source(), 1);
|
|
2223
2223
|
var chalkDefault = {
|
|
2224
2224
|
hex: (_) => (message) => message,
|
|
@@ -2250,14 +2250,14 @@ var getChalk = () => {
|
|
|
2250
2250
|
};
|
|
2251
2251
|
|
|
2252
2252
|
//#endregion
|
|
2253
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2253
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.11/node_modules/@storm-software/config-tools/dist/chunk-G2MK47WL.js
|
|
2254
2254
|
function isUnicodeSupported() {
|
|
2255
2255
|
if (process.platform !== "win32") return process.env.TERM !== "linux";
|
|
2256
2256
|
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";
|
|
2257
2257
|
}
|
|
2258
2258
|
|
|
2259
2259
|
//#endregion
|
|
2260
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2260
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.11/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.js
|
|
2261
2261
|
var LogLevel = {
|
|
2262
2262
|
SILENT: 0,
|
|
2263
2263
|
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.189.
|
|
2285
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.11/node_modules/@storm-software/config-tools/dist/chunk-AITAR5W5.js
|
|
2286
2286
|
var useIcon = (c, fallback) => isUnicodeSupported() ? c : fallback;
|
|
2287
2287
|
var CONSOLE_ICONS = {
|
|
2288
2288
|
[LogLevelLabel.ERROR]: useIcon("✘", "×"),
|
|
@@ -2296,13 +2296,13 @@ var CONSOLE_ICONS = {
|
|
|
2296
2296
|
};
|
|
2297
2297
|
|
|
2298
2298
|
//#endregion
|
|
2299
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2299
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.11/node_modules/@storm-software/config-tools/dist/chunk-CZ4IE2QN.js
|
|
2300
2300
|
var formatTimestamp = (date = /* @__PURE__ */ new Date()) => {
|
|
2301
2301
|
return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
|
|
2302
2302
|
};
|
|
2303
2303
|
|
|
2304
2304
|
//#endregion
|
|
2305
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2305
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.11/node_modules/@storm-software/config-tools/dist/chunk-K4CDYUQR.js
|
|
2306
2306
|
var getLogLevel = (label) => {
|
|
2307
2307
|
switch (label) {
|
|
2308
2308
|
case "all": return LogLevel.ALL;
|
|
@@ -2318,7 +2318,526 @@ var getLogLevel = (label) => {
|
|
|
2318
2318
|
};
|
|
2319
2319
|
|
|
2320
2320
|
//#endregion
|
|
2321
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2321
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.11/node_modules/@storm-software/config-tools/dist/chunk-SPHE3YEH.js
|
|
2322
|
+
var daysInYear = 365.2425;
|
|
2323
|
+
-(Math.pow(10, 8) * 24 * 60 * 60 * 1e3);
|
|
2324
|
+
var secondsInDay = 3600 * 24;
|
|
2325
|
+
secondsInDay * 7;
|
|
2326
|
+
secondsInDay * daysInYear / 12 * 3;
|
|
2327
|
+
var constructFromSymbol = Symbol.for("constructDateFrom");
|
|
2328
|
+
var formatDistanceLocale = {
|
|
2329
|
+
lessThanXSeconds: {
|
|
2330
|
+
one: "less than a second",
|
|
2331
|
+
other: "less than {{count}} seconds"
|
|
2332
|
+
},
|
|
2333
|
+
xSeconds: {
|
|
2334
|
+
one: "1 second",
|
|
2335
|
+
other: "{{count}} seconds"
|
|
2336
|
+
},
|
|
2337
|
+
halfAMinute: "half a minute",
|
|
2338
|
+
lessThanXMinutes: {
|
|
2339
|
+
one: "less than a minute",
|
|
2340
|
+
other: "less than {{count}} minutes"
|
|
2341
|
+
},
|
|
2342
|
+
xMinutes: {
|
|
2343
|
+
one: "1 minute",
|
|
2344
|
+
other: "{{count}} minutes"
|
|
2345
|
+
},
|
|
2346
|
+
aboutXHours: {
|
|
2347
|
+
one: "about 1 hour",
|
|
2348
|
+
other: "about {{count}} hours"
|
|
2349
|
+
},
|
|
2350
|
+
xHours: {
|
|
2351
|
+
one: "1 hour",
|
|
2352
|
+
other: "{{count}} hours"
|
|
2353
|
+
},
|
|
2354
|
+
xDays: {
|
|
2355
|
+
one: "1 day",
|
|
2356
|
+
other: "{{count}} days"
|
|
2357
|
+
},
|
|
2358
|
+
aboutXWeeks: {
|
|
2359
|
+
one: "about 1 week",
|
|
2360
|
+
other: "about {{count}} weeks"
|
|
2361
|
+
},
|
|
2362
|
+
xWeeks: {
|
|
2363
|
+
one: "1 week",
|
|
2364
|
+
other: "{{count}} weeks"
|
|
2365
|
+
},
|
|
2366
|
+
aboutXMonths: {
|
|
2367
|
+
one: "about 1 month",
|
|
2368
|
+
other: "about {{count}} months"
|
|
2369
|
+
},
|
|
2370
|
+
xMonths: {
|
|
2371
|
+
one: "1 month",
|
|
2372
|
+
other: "{{count}} months"
|
|
2373
|
+
},
|
|
2374
|
+
aboutXYears: {
|
|
2375
|
+
one: "about 1 year",
|
|
2376
|
+
other: "about {{count}} years"
|
|
2377
|
+
},
|
|
2378
|
+
xYears: {
|
|
2379
|
+
one: "1 year",
|
|
2380
|
+
other: "{{count}} years"
|
|
2381
|
+
},
|
|
2382
|
+
overXYears: {
|
|
2383
|
+
one: "over 1 year",
|
|
2384
|
+
other: "over {{count}} years"
|
|
2385
|
+
},
|
|
2386
|
+
almostXYears: {
|
|
2387
|
+
one: "almost 1 year",
|
|
2388
|
+
other: "almost {{count}} years"
|
|
2389
|
+
}
|
|
2390
|
+
};
|
|
2391
|
+
var formatDistance = (token, count, options) => {
|
|
2392
|
+
let result;
|
|
2393
|
+
const tokenValue = formatDistanceLocale[token];
|
|
2394
|
+
if (typeof tokenValue === "string") result = tokenValue;
|
|
2395
|
+
else if (count === 1) result = tokenValue.one;
|
|
2396
|
+
else result = tokenValue.other.replace("{{count}}", count.toString());
|
|
2397
|
+
if (options?.addSuffix) if (options.comparison && options.comparison > 0) return "in " + result;
|
|
2398
|
+
else return result + " ago";
|
|
2399
|
+
return result;
|
|
2400
|
+
};
|
|
2401
|
+
function buildFormatLongFn(args) {
|
|
2402
|
+
return (options = {}) => {
|
|
2403
|
+
const width = options.width ? String(options.width) : args.defaultWidth;
|
|
2404
|
+
return args.formats[width] || args.formats[args.defaultWidth];
|
|
2405
|
+
};
|
|
2406
|
+
}
|
|
2407
|
+
var formatLong = {
|
|
2408
|
+
date: buildFormatLongFn({
|
|
2409
|
+
formats: {
|
|
2410
|
+
full: "EEEE, MMMM do, y",
|
|
2411
|
+
long: "MMMM do, y",
|
|
2412
|
+
medium: "MMM d, y",
|
|
2413
|
+
short: "MM/dd/yyyy"
|
|
2414
|
+
},
|
|
2415
|
+
defaultWidth: "full"
|
|
2416
|
+
}),
|
|
2417
|
+
time: buildFormatLongFn({
|
|
2418
|
+
formats: {
|
|
2419
|
+
full: "h:mm:ss a zzzz",
|
|
2420
|
+
long: "h:mm:ss a z",
|
|
2421
|
+
medium: "h:mm:ss a",
|
|
2422
|
+
short: "h:mm a"
|
|
2423
|
+
},
|
|
2424
|
+
defaultWidth: "full"
|
|
2425
|
+
}),
|
|
2426
|
+
dateTime: buildFormatLongFn({
|
|
2427
|
+
formats: {
|
|
2428
|
+
full: "{{date}} 'at' {{time}}",
|
|
2429
|
+
long: "{{date}} 'at' {{time}}",
|
|
2430
|
+
medium: "{{date}}, {{time}}",
|
|
2431
|
+
short: "{{date}}, {{time}}"
|
|
2432
|
+
},
|
|
2433
|
+
defaultWidth: "full"
|
|
2434
|
+
})
|
|
2435
|
+
};
|
|
2436
|
+
var formatRelativeLocale = {
|
|
2437
|
+
lastWeek: "'last' eeee 'at' p",
|
|
2438
|
+
yesterday: "'yesterday at' p",
|
|
2439
|
+
today: "'today at' p",
|
|
2440
|
+
tomorrow: "'tomorrow at' p",
|
|
2441
|
+
nextWeek: "eeee 'at' p",
|
|
2442
|
+
other: "P"
|
|
2443
|
+
};
|
|
2444
|
+
var formatRelative = (token, _date, _baseDate, _options) => formatRelativeLocale[token];
|
|
2445
|
+
function buildLocalizeFn(args) {
|
|
2446
|
+
return (value, options) => {
|
|
2447
|
+
const context = options?.context ? String(options.context) : "standalone";
|
|
2448
|
+
let valuesArray;
|
|
2449
|
+
if (context === "formatting" && args.formattingValues) {
|
|
2450
|
+
const defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
|
|
2451
|
+
const width = options?.width ? String(options.width) : defaultWidth;
|
|
2452
|
+
valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
|
|
2453
|
+
} else {
|
|
2454
|
+
const defaultWidth = args.defaultWidth;
|
|
2455
|
+
const width = options?.width ? String(options.width) : args.defaultWidth;
|
|
2456
|
+
valuesArray = args.values[width] || args.values[defaultWidth];
|
|
2457
|
+
}
|
|
2458
|
+
const index = args.argumentCallback ? args.argumentCallback(value) : value;
|
|
2459
|
+
return valuesArray[index];
|
|
2460
|
+
};
|
|
2461
|
+
}
|
|
2462
|
+
var eraValues = {
|
|
2463
|
+
narrow: ["B", "A"],
|
|
2464
|
+
abbreviated: ["BC", "AD"],
|
|
2465
|
+
wide: ["Before Christ", "Anno Domini"]
|
|
2466
|
+
};
|
|
2467
|
+
var quarterValues = {
|
|
2468
|
+
narrow: [
|
|
2469
|
+
"1",
|
|
2470
|
+
"2",
|
|
2471
|
+
"3",
|
|
2472
|
+
"4"
|
|
2473
|
+
],
|
|
2474
|
+
abbreviated: [
|
|
2475
|
+
"Q1",
|
|
2476
|
+
"Q2",
|
|
2477
|
+
"Q3",
|
|
2478
|
+
"Q4"
|
|
2479
|
+
],
|
|
2480
|
+
wide: [
|
|
2481
|
+
"1st quarter",
|
|
2482
|
+
"2nd quarter",
|
|
2483
|
+
"3rd quarter",
|
|
2484
|
+
"4th quarter"
|
|
2485
|
+
]
|
|
2486
|
+
};
|
|
2487
|
+
var monthValues = {
|
|
2488
|
+
narrow: [
|
|
2489
|
+
"J",
|
|
2490
|
+
"F",
|
|
2491
|
+
"M",
|
|
2492
|
+
"A",
|
|
2493
|
+
"M",
|
|
2494
|
+
"J",
|
|
2495
|
+
"J",
|
|
2496
|
+
"A",
|
|
2497
|
+
"S",
|
|
2498
|
+
"O",
|
|
2499
|
+
"N",
|
|
2500
|
+
"D"
|
|
2501
|
+
],
|
|
2502
|
+
abbreviated: [
|
|
2503
|
+
"Jan",
|
|
2504
|
+
"Feb",
|
|
2505
|
+
"Mar",
|
|
2506
|
+
"Apr",
|
|
2507
|
+
"May",
|
|
2508
|
+
"Jun",
|
|
2509
|
+
"Jul",
|
|
2510
|
+
"Aug",
|
|
2511
|
+
"Sep",
|
|
2512
|
+
"Oct",
|
|
2513
|
+
"Nov",
|
|
2514
|
+
"Dec"
|
|
2515
|
+
],
|
|
2516
|
+
wide: [
|
|
2517
|
+
"January",
|
|
2518
|
+
"February",
|
|
2519
|
+
"March",
|
|
2520
|
+
"April",
|
|
2521
|
+
"May",
|
|
2522
|
+
"June",
|
|
2523
|
+
"July",
|
|
2524
|
+
"August",
|
|
2525
|
+
"September",
|
|
2526
|
+
"October",
|
|
2527
|
+
"November",
|
|
2528
|
+
"December"
|
|
2529
|
+
]
|
|
2530
|
+
};
|
|
2531
|
+
var dayValues = {
|
|
2532
|
+
narrow: [
|
|
2533
|
+
"S",
|
|
2534
|
+
"M",
|
|
2535
|
+
"T",
|
|
2536
|
+
"W",
|
|
2537
|
+
"T",
|
|
2538
|
+
"F",
|
|
2539
|
+
"S"
|
|
2540
|
+
],
|
|
2541
|
+
short: [
|
|
2542
|
+
"Su",
|
|
2543
|
+
"Mo",
|
|
2544
|
+
"Tu",
|
|
2545
|
+
"We",
|
|
2546
|
+
"Th",
|
|
2547
|
+
"Fr",
|
|
2548
|
+
"Sa"
|
|
2549
|
+
],
|
|
2550
|
+
abbreviated: [
|
|
2551
|
+
"Sun",
|
|
2552
|
+
"Mon",
|
|
2553
|
+
"Tue",
|
|
2554
|
+
"Wed",
|
|
2555
|
+
"Thu",
|
|
2556
|
+
"Fri",
|
|
2557
|
+
"Sat"
|
|
2558
|
+
],
|
|
2559
|
+
wide: [
|
|
2560
|
+
"Sunday",
|
|
2561
|
+
"Monday",
|
|
2562
|
+
"Tuesday",
|
|
2563
|
+
"Wednesday",
|
|
2564
|
+
"Thursday",
|
|
2565
|
+
"Friday",
|
|
2566
|
+
"Saturday"
|
|
2567
|
+
]
|
|
2568
|
+
};
|
|
2569
|
+
var dayPeriodValues = {
|
|
2570
|
+
narrow: {
|
|
2571
|
+
am: "a",
|
|
2572
|
+
pm: "p",
|
|
2573
|
+
midnight: "mi",
|
|
2574
|
+
noon: "n",
|
|
2575
|
+
morning: "morning",
|
|
2576
|
+
afternoon: "afternoon",
|
|
2577
|
+
evening: "evening",
|
|
2578
|
+
night: "night"
|
|
2579
|
+
},
|
|
2580
|
+
abbreviated: {
|
|
2581
|
+
am: "AM",
|
|
2582
|
+
pm: "PM",
|
|
2583
|
+
midnight: "midnight",
|
|
2584
|
+
noon: "noon",
|
|
2585
|
+
morning: "morning",
|
|
2586
|
+
afternoon: "afternoon",
|
|
2587
|
+
evening: "evening",
|
|
2588
|
+
night: "night"
|
|
2589
|
+
},
|
|
2590
|
+
wide: {
|
|
2591
|
+
am: "a.m.",
|
|
2592
|
+
pm: "p.m.",
|
|
2593
|
+
midnight: "midnight",
|
|
2594
|
+
noon: "noon",
|
|
2595
|
+
morning: "morning",
|
|
2596
|
+
afternoon: "afternoon",
|
|
2597
|
+
evening: "evening",
|
|
2598
|
+
night: "night"
|
|
2599
|
+
}
|
|
2600
|
+
};
|
|
2601
|
+
var formattingDayPeriodValues = {
|
|
2602
|
+
narrow: {
|
|
2603
|
+
am: "a",
|
|
2604
|
+
pm: "p",
|
|
2605
|
+
midnight: "mi",
|
|
2606
|
+
noon: "n",
|
|
2607
|
+
morning: "in the morning",
|
|
2608
|
+
afternoon: "in the afternoon",
|
|
2609
|
+
evening: "in the evening",
|
|
2610
|
+
night: "at night"
|
|
2611
|
+
},
|
|
2612
|
+
abbreviated: {
|
|
2613
|
+
am: "AM",
|
|
2614
|
+
pm: "PM",
|
|
2615
|
+
midnight: "midnight",
|
|
2616
|
+
noon: "noon",
|
|
2617
|
+
morning: "in the morning",
|
|
2618
|
+
afternoon: "in the afternoon",
|
|
2619
|
+
evening: "in the evening",
|
|
2620
|
+
night: "at night"
|
|
2621
|
+
},
|
|
2622
|
+
wide: {
|
|
2623
|
+
am: "a.m.",
|
|
2624
|
+
pm: "p.m.",
|
|
2625
|
+
midnight: "midnight",
|
|
2626
|
+
noon: "noon",
|
|
2627
|
+
morning: "in the morning",
|
|
2628
|
+
afternoon: "in the afternoon",
|
|
2629
|
+
evening: "in the evening",
|
|
2630
|
+
night: "at night"
|
|
2631
|
+
}
|
|
2632
|
+
};
|
|
2633
|
+
var ordinalNumber = (dirtyNumber, _options) => {
|
|
2634
|
+
const number = Number(dirtyNumber);
|
|
2635
|
+
const rem100 = number % 100;
|
|
2636
|
+
if (rem100 > 20 || rem100 < 10) switch (rem100 % 10) {
|
|
2637
|
+
case 1: return number + "st";
|
|
2638
|
+
case 2: return number + "nd";
|
|
2639
|
+
case 3: return number + "rd";
|
|
2640
|
+
}
|
|
2641
|
+
return number + "th";
|
|
2642
|
+
};
|
|
2643
|
+
var localize = {
|
|
2644
|
+
ordinalNumber,
|
|
2645
|
+
era: buildLocalizeFn({
|
|
2646
|
+
values: eraValues,
|
|
2647
|
+
defaultWidth: "wide"
|
|
2648
|
+
}),
|
|
2649
|
+
quarter: buildLocalizeFn({
|
|
2650
|
+
values: quarterValues,
|
|
2651
|
+
defaultWidth: "wide",
|
|
2652
|
+
argumentCallback: (quarter) => quarter - 1
|
|
2653
|
+
}),
|
|
2654
|
+
month: buildLocalizeFn({
|
|
2655
|
+
values: monthValues,
|
|
2656
|
+
defaultWidth: "wide"
|
|
2657
|
+
}),
|
|
2658
|
+
day: buildLocalizeFn({
|
|
2659
|
+
values: dayValues,
|
|
2660
|
+
defaultWidth: "wide"
|
|
2661
|
+
}),
|
|
2662
|
+
dayPeriod: buildLocalizeFn({
|
|
2663
|
+
values: dayPeriodValues,
|
|
2664
|
+
defaultWidth: "wide",
|
|
2665
|
+
formattingValues: formattingDayPeriodValues,
|
|
2666
|
+
defaultFormattingWidth: "wide"
|
|
2667
|
+
})
|
|
2668
|
+
};
|
|
2669
|
+
function buildMatchFn(args) {
|
|
2670
|
+
return (string, options = {}) => {
|
|
2671
|
+
const width = options.width;
|
|
2672
|
+
const matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
|
|
2673
|
+
const matchResult = string.match(matchPattern);
|
|
2674
|
+
if (!matchResult) return null;
|
|
2675
|
+
const matchedString = matchResult[0];
|
|
2676
|
+
const parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
|
|
2677
|
+
const key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, (pattern) => pattern.test(matchedString)) : findKey(parsePatterns, (pattern) => pattern.test(matchedString));
|
|
2678
|
+
let value;
|
|
2679
|
+
value = args.valueCallback ? args.valueCallback(key) : key;
|
|
2680
|
+
value = options.valueCallback ? options.valueCallback(value) : value;
|
|
2681
|
+
const rest = string.slice(matchedString.length);
|
|
2682
|
+
return {
|
|
2683
|
+
value,
|
|
2684
|
+
rest
|
|
2685
|
+
};
|
|
2686
|
+
};
|
|
2687
|
+
}
|
|
2688
|
+
function findKey(object, predicate) {
|
|
2689
|
+
for (const key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key;
|
|
2690
|
+
}
|
|
2691
|
+
function findIndex(array, predicate) {
|
|
2692
|
+
for (let key = 0; key < array.length; key++) if (predicate(array[key])) return key;
|
|
2693
|
+
}
|
|
2694
|
+
function buildMatchPatternFn(args) {
|
|
2695
|
+
return (string, options = {}) => {
|
|
2696
|
+
const matchResult = string.match(args.matchPattern);
|
|
2697
|
+
if (!matchResult) return null;
|
|
2698
|
+
const matchedString = matchResult[0];
|
|
2699
|
+
const parseResult = string.match(args.parsePattern);
|
|
2700
|
+
if (!parseResult) return null;
|
|
2701
|
+
let value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
|
|
2702
|
+
value = options.valueCallback ? options.valueCallback(value) : value;
|
|
2703
|
+
const rest = string.slice(matchedString.length);
|
|
2704
|
+
return {
|
|
2705
|
+
value,
|
|
2706
|
+
rest
|
|
2707
|
+
};
|
|
2708
|
+
};
|
|
2709
|
+
}
|
|
2710
|
+
var enUS = {
|
|
2711
|
+
code: "en-US",
|
|
2712
|
+
formatDistance,
|
|
2713
|
+
formatLong,
|
|
2714
|
+
formatRelative,
|
|
2715
|
+
localize,
|
|
2716
|
+
match: {
|
|
2717
|
+
ordinalNumber: buildMatchPatternFn({
|
|
2718
|
+
matchPattern: /^(\d+)(th|st|nd|rd)?/i,
|
|
2719
|
+
parsePattern: /\d+/i,
|
|
2720
|
+
valueCallback: (value) => parseInt(value, 10)
|
|
2721
|
+
}),
|
|
2722
|
+
era: buildMatchFn({
|
|
2723
|
+
matchPatterns: {
|
|
2724
|
+
narrow: /^(b|a)/i,
|
|
2725
|
+
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
2726
|
+
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
2727
|
+
},
|
|
2728
|
+
defaultMatchWidth: "wide",
|
|
2729
|
+
parsePatterns: { any: [/^b/i, /^(a|c)/i] },
|
|
2730
|
+
defaultParseWidth: "any"
|
|
2731
|
+
}),
|
|
2732
|
+
quarter: buildMatchFn({
|
|
2733
|
+
matchPatterns: {
|
|
2734
|
+
narrow: /^[1234]/i,
|
|
2735
|
+
abbreviated: /^q[1234]/i,
|
|
2736
|
+
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
2737
|
+
},
|
|
2738
|
+
defaultMatchWidth: "wide",
|
|
2739
|
+
parsePatterns: { any: [
|
|
2740
|
+
/1/i,
|
|
2741
|
+
/2/i,
|
|
2742
|
+
/3/i,
|
|
2743
|
+
/4/i
|
|
2744
|
+
] },
|
|
2745
|
+
defaultParseWidth: "any",
|
|
2746
|
+
valueCallback: (index) => index + 1
|
|
2747
|
+
}),
|
|
2748
|
+
month: buildMatchFn({
|
|
2749
|
+
matchPatterns: {
|
|
2750
|
+
narrow: /^[jfmasond]/i,
|
|
2751
|
+
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
2752
|
+
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
2753
|
+
},
|
|
2754
|
+
defaultMatchWidth: "wide",
|
|
2755
|
+
parsePatterns: {
|
|
2756
|
+
narrow: [
|
|
2757
|
+
/^j/i,
|
|
2758
|
+
/^f/i,
|
|
2759
|
+
/^m/i,
|
|
2760
|
+
/^a/i,
|
|
2761
|
+
/^m/i,
|
|
2762
|
+
/^j/i,
|
|
2763
|
+
/^j/i,
|
|
2764
|
+
/^a/i,
|
|
2765
|
+
/^s/i,
|
|
2766
|
+
/^o/i,
|
|
2767
|
+
/^n/i,
|
|
2768
|
+
/^d/i
|
|
2769
|
+
],
|
|
2770
|
+
any: [
|
|
2771
|
+
/^ja/i,
|
|
2772
|
+
/^f/i,
|
|
2773
|
+
/^mar/i,
|
|
2774
|
+
/^ap/i,
|
|
2775
|
+
/^may/i,
|
|
2776
|
+
/^jun/i,
|
|
2777
|
+
/^jul/i,
|
|
2778
|
+
/^au/i,
|
|
2779
|
+
/^s/i,
|
|
2780
|
+
/^o/i,
|
|
2781
|
+
/^n/i,
|
|
2782
|
+
/^d/i
|
|
2783
|
+
]
|
|
2784
|
+
},
|
|
2785
|
+
defaultParseWidth: "any"
|
|
2786
|
+
}),
|
|
2787
|
+
day: buildMatchFn({
|
|
2788
|
+
matchPatterns: {
|
|
2789
|
+
narrow: /^[smtwf]/i,
|
|
2790
|
+
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
2791
|
+
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
2792
|
+
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
2793
|
+
},
|
|
2794
|
+
defaultMatchWidth: "wide",
|
|
2795
|
+
parsePatterns: {
|
|
2796
|
+
narrow: [
|
|
2797
|
+
/^s/i,
|
|
2798
|
+
/^m/i,
|
|
2799
|
+
/^t/i,
|
|
2800
|
+
/^w/i,
|
|
2801
|
+
/^t/i,
|
|
2802
|
+
/^f/i,
|
|
2803
|
+
/^s/i
|
|
2804
|
+
],
|
|
2805
|
+
any: [
|
|
2806
|
+
/^su/i,
|
|
2807
|
+
/^m/i,
|
|
2808
|
+
/^tu/i,
|
|
2809
|
+
/^w/i,
|
|
2810
|
+
/^th/i,
|
|
2811
|
+
/^f/i,
|
|
2812
|
+
/^sa/i
|
|
2813
|
+
]
|
|
2814
|
+
},
|
|
2815
|
+
defaultParseWidth: "any"
|
|
2816
|
+
}),
|
|
2817
|
+
dayPeriod: buildMatchFn({
|
|
2818
|
+
matchPatterns: {
|
|
2819
|
+
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
2820
|
+
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
2821
|
+
},
|
|
2822
|
+
defaultMatchWidth: "any",
|
|
2823
|
+
parsePatterns: { any: {
|
|
2824
|
+
am: /^a/i,
|
|
2825
|
+
pm: /^p/i,
|
|
2826
|
+
midnight: /^mi/i,
|
|
2827
|
+
noon: /^no/i,
|
|
2828
|
+
morning: /morning/i,
|
|
2829
|
+
afternoon: /afternoon/i,
|
|
2830
|
+
evening: /evening/i,
|
|
2831
|
+
night: /night/i
|
|
2832
|
+
} },
|
|
2833
|
+
defaultParseWidth: "any"
|
|
2834
|
+
})
|
|
2835
|
+
},
|
|
2836
|
+
options: {
|
|
2837
|
+
weekStartsOn: 0,
|
|
2838
|
+
firstWeekContainsDate: 1
|
|
2839
|
+
}
|
|
2840
|
+
};
|
|
2322
2841
|
var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
|
|
2323
2842
|
const colors = !config.colors?.dark && !config.colors?.["base"] && !config.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config.colors?.dark && typeof config.colors.dark === "string" ? config.colors : config.colors?.["base"]?.dark && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : config.colors?.["base"] ? config.colors?.["base"] : DEFAULT_COLOR_CONFIG;
|
|
2324
2843
|
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
@@ -2394,7 +2913,7 @@ var _isFunction = (value) => {
|
|
|
2394
2913
|
};
|
|
2395
2914
|
|
|
2396
2915
|
//#endregion
|
|
2397
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2916
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.11/node_modules/@storm-software/config-tools/dist/chunk-T4YVVO6G.js
|
|
2398
2917
|
var exitWithError = (config) => {
|
|
2399
2918
|
writeFatal("Exiting script with an error status...", config);
|
|
2400
2919
|
process.exit(1);
|
|
@@ -2429,7 +2948,7 @@ Stacktrace: ${error.stack}`, config);
|
|
|
2429
2948
|
};
|
|
2430
2949
|
|
|
2431
2950
|
//#endregion
|
|
2432
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2951
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.11/node_modules/@storm-software/config-tools/dist/chunk-RUKM6FCF.js
|
|
2433
2952
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
2434
2953
|
var depth = 0;
|
|
2435
2954
|
function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
|
|
@@ -2440,7 +2959,7 @@ function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
|
|
|
2440
2959
|
}
|
|
2441
2960
|
|
|
2442
2961
|
//#endregion
|
|
2443
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2962
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.11/node_modules/@storm-software/config-tools/dist/chunk-V3GMJ4TX.js
|
|
2444
2963
|
var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
2445
2964
|
function normalizeWindowsPath(input = "") {
|
|
2446
2965
|
if (!input) return input;
|
|
@@ -2522,7 +3041,7 @@ var isAbsolute = function(p) {
|
|
|
2522
3041
|
};
|
|
2523
3042
|
|
|
2524
3043
|
//#endregion
|
|
2525
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
3044
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.11/node_modules/@storm-software/config-tools/dist/chunk-LF3SAK2O.js
|
|
2526
3045
|
var rootFiles = [
|
|
2527
3046
|
"storm-workspace.json",
|
|
2528
3047
|
"storm-workspace.yaml",
|