@stacksjs/error-handling 0.61.23 → 0.62.0

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -46
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -685,11 +685,7 @@ var init_utils = __esm(() => {
685
685
  // ../../../../node_modules/consola/dist/chunks/prompt.mjs
686
686
  var exports_prompt = {};
687
687
  __export(exports_prompt, {
688
- prompt: () => {
689
- {
690
- return prompt;
691
- }
692
- }
688
+ prompt: () => prompt
693
689
  });
694
690
  import {stdin, stdout} from "node:process";
695
691
  import f from "node:readline";
@@ -3331,7 +3327,7 @@ var require_copy = __commonJS((exports, module) => {
3331
3327
  opts.clobber = "clobber" in opts ? !!opts.clobber : true;
3332
3328
  opts.overwrite = "overwrite" in opts ? !!opts.overwrite : opts.clobber;
3333
3329
  if (opts.preserveTimestamps && process.arch === "ia32") {
3334
- process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n\tsee https://github.com/jprichardson/node-fs-extra/issues/269", "Warning", "fs-extra-WARN0001");
3330
+ process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n" + "\tsee https://github.com/jprichardson/node-fs-extra/issues/269", "Warning", "fs-extra-WARN0001");
3335
3331
  }
3336
3332
  const { srcStat, destStat } = await stat.checkPaths(src2, dest, "copy", opts);
3337
3333
  await stat.checkParentPaths(src2, srcStat, dest, "copy");
@@ -3458,7 +3454,7 @@ var require_copy_sync = __commonJS((exports, module) => {
3458
3454
  opts.clobber = "clobber" in opts ? !!opts.clobber : true;
3459
3455
  opts.overwrite = "overwrite" in opts ? !!opts.overwrite : opts.clobber;
3460
3456
  if (opts.preserveTimestamps && process.arch === "ia32") {
3461
- process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n\tsee https://github.com/jprichardson/node-fs-extra/issues/269", "Warning", "fs-extra-WARN0002");
3457
+ process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n" + "\tsee https://github.com/jprichardson/node-fs-extra/issues/269", "Warning", "fs-extra-WARN0002");
3462
3458
  }
3463
3459
  const { srcStat, destStat } = stat.checkPathsSync(src2, dest, "copy", opts);
3464
3460
  stat.checkParentPathsSync(src2, srcStat, dest, "copy");
@@ -4618,44 +4614,6 @@ var require_index_cjs = __commonJS((exports) => {
4618
4614
 
4619
4615
  // src/handler.ts
4620
4616
  import * as path from "@stacksjs/path";
4621
- // ../types/src/cron-jobs.ts
4622
- var Every;
4623
- (function(Every2) {
4624
- Every2["Minute"] = "* * * * *";
4625
- Every2["TwoMinutes"] = "*/2 * * * *";
4626
- Every2["FiveMinutes"] = "*/5 * * * *";
4627
- Every2["TenMinutes"] = "*/10 * * * *";
4628
- Every2["FifteenMinutes"] = "*/15 * * * *";
4629
- Every2["ThirtyMinutes"] = "*/30 * * * *";
4630
- Every2["Hour"] = "0 * * * *";
4631
- Every2["HalfHour"] = "0,30 * * * *";
4632
- Every2["Day"] = "0 0 * * *";
4633
- Every2["Week"] = "0 0 * * 0";
4634
- Every2["Weekday"] = "0 0 * * 1-5";
4635
- Every2["Weekend"] = "0 0 * * 0,6";
4636
- Every2["Month"] = "0 0 1 * *";
4637
- Every2["Year"] = "0 0 1 1 *";
4638
- })(Every || (Every = {}));
4639
- // ../types/src/docs.ts
4640
- var SocialLinkIcon;
4641
- (function(SocialLinkIcon2) {
4642
- SocialLinkIcon2["Discord"] = "discord";
4643
- SocialLinkIcon2["Facebook"] = "facebook";
4644
- SocialLinkIcon2["GitHub"] = "github";
4645
- SocialLinkIcon2["Instagram"] = "instagram";
4646
- SocialLinkIcon2["LinkedIn"] = "linkedin";
4647
- SocialLinkIcon2["Mastodon"] = "mastodon";
4648
- SocialLinkIcon2["Slack"] = "slack";
4649
- SocialLinkIcon2["Twitter"] = "twitter";
4650
- SocialLinkIcon2["YouTube"] = "youtube";
4651
- })(SocialLinkIcon || (SocialLinkIcon = {}));
4652
- // ../types/src/exit-code.ts
4653
- var ExitCode;
4654
- (function(ExitCode2) {
4655
- ExitCode2[ExitCode2["Success"] = 0] = "Success";
4656
- ExitCode2[ExitCode2["FatalError"] = 1] = "FatalError";
4657
- ExitCode2[ExitCode2["InvalidArgument"] = 9] = "InvalidArgument";
4658
- })(ExitCode || (ExitCode = {}));
4659
4617
  // ../../../../node_modules/consola/dist/index.mjs
4660
4618
  init_consola_36c0034f();
4661
4619
  init_core();
@@ -4750,7 +4708,7 @@ class ErrorHandler {
4750
4708
  static writeErrorToConsole(err) {
4751
4709
  if (err === "Failed to execute command: bunx biome check --fix" || err === "Failed to execute command: bun --bun storage/framework/core/actions/src/lint/fix.ts")
4752
4710
  console.error(err);
4753
- process.exit(ExitCode.FatalError);
4711
+ process.exit(1 /* FatalError */);
4754
4712
  console.error(err);
4755
4713
  }
4756
4714
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/error-handling",
3
3
  "type": "module",
4
- "version": "0.61.23",
4
+ "version": "0.62.0",
5
5
  "description": "Type safe error handling.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",