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