@storm-software/unbuild 0.57.274 → 0.57.275

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/unbuild.cjs CHANGED
@@ -1353,15 +1353,16 @@ var handleProcess = (config) => {
1353
1353
  );
1354
1354
  process.on("unhandledRejection", (error) => {
1355
1355
  writeError(
1356
- `An Unhandled Rejection occurred while running the program: ${error}`,
1356
+ `An Unhandled Rejection occurred while running the program: ${error && typeof error === "object" && "message" in error && error?.message ? error.message : typeof error === "string" ? error : "Unknown error"}
1357
+ Stacktrace: ${error && typeof error === "object" && "stack" in error && error?.stack ? error.stack : ""}`,
1357
1358
  config
1358
1359
  );
1359
1360
  exitWithError(config);
1360
1361
  });
1361
1362
  process.on("uncaughtException", (error) => {
1362
1363
  writeError(
1363
- `An Uncaught Exception occurred while running the program: ${error.message}
1364
- Stacktrace: ${error.stack}`,
1364
+ `An Uncaught Exception occurred while running the program: ${error && typeof error === "object" && "message" in error && error?.message ? error.message : typeof error === "string" ? error : "Unknown error"}
1365
+ Stacktrace: ${error && typeof error === "object" && "stack" in error && error?.stack ? error.stack : ""}`,
1365
1366
  config
1366
1367
  );
1367
1368
  exitWithError(config);
package/bin/unbuild.js CHANGED
@@ -1331,15 +1331,16 @@ var handleProcess = (config) => {
1331
1331
  );
1332
1332
  process.on("unhandledRejection", (error) => {
1333
1333
  writeError(
1334
- `An Unhandled Rejection occurred while running the program: ${error}`,
1334
+ `An Unhandled Rejection occurred while running the program: ${error && typeof error === "object" && "message" in error && error?.message ? error.message : typeof error === "string" ? error : "Unknown error"}
1335
+ Stacktrace: ${error && typeof error === "object" && "stack" in error && error?.stack ? error.stack : ""}`,
1335
1336
  config
1336
1337
  );
1337
1338
  exitWithError(config);
1338
1339
  });
1339
1340
  process.on("uncaughtException", (error) => {
1340
1341
  writeError(
1341
- `An Uncaught Exception occurred while running the program: ${error.message}
1342
- Stacktrace: ${error.stack}`,
1342
+ `An Uncaught Exception occurred while running the program: ${error && typeof error === "object" && "message" in error && error?.message ? error.message : typeof error === "string" ? error : "Unknown error"}
1343
+ Stacktrace: ${error && typeof error === "object" && "stack" in error && error?.stack ? error.stack : ""}`,
1343
1344
  config
1344
1345
  );
1345
1346
  exitWithError(config);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/unbuild",
3
- "version": "0.57.274",
3
+ "version": "0.57.275",
4
4
  "private": false,
5
5
  "description": "A package containing `unbuild` utilities for building Storm Software libraries and applications",
6
6
  "keywords": [
@@ -132,9 +132,9 @@
132
132
  },
133
133
  "files": ["dist/**/*"],
134
134
  "dependencies": {
135
- "@storm-software/build-tools": "0.158.273",
136
- "@storm-software/config": "1.138.50",
137
- "@storm-software/config-tools": "1.190.113",
135
+ "@storm-software/build-tools": "0.158.274",
136
+ "@storm-software/config": "1.138.51",
137
+ "@storm-software/config-tools": "1.190.114",
138
138
  "commander": "^12.1.0",
139
139
  "defu": "^6.1.7",
140
140
  "esbuild": "^0.25.12",
@@ -172,5 +172,5 @@
172
172
  "typescript": { "optional": false }
173
173
  },
174
174
  "publishConfig": { "access": "public" },
175
- "gitHead": "c11ae2436e44e83c82a6562d0a8fc18cef58c475"
175
+ "gitHead": "37e2a4dcb02f87727a9de4428f910ba4d9c4524f"
176
176
  }