@stacksjs/env 0.61.20 → 0.61.21
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/index.js +26 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10533,7 +10533,7 @@ class ErrorHandler {
|
|
|
10533
10533
|
}
|
|
10534
10534
|
}
|
|
10535
10535
|
static writeErrorToConsole(err) {
|
|
10536
|
-
if (err === "Failed to execute command: bunx biome check --
|
|
10536
|
+
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")
|
|
10537
10537
|
console.error(err);
|
|
10538
10538
|
process.exit(ExitCode.FatalError);
|
|
10539
10539
|
console.error(err);
|
|
@@ -10747,10 +10747,32 @@ var errAsync = (err) => new ResultAsync(Promise.resolve(new Err(err)));
|
|
|
10747
10747
|
var fromPromise = ResultAsync.fromPromise;
|
|
10748
10748
|
var fromSafePromise = ResultAsync.fromSafePromise;
|
|
10749
10749
|
var fromAsyncThrowable = ResultAsync.fromThrowable;
|
|
10750
|
-
var
|
|
10751
|
-
|
|
10750
|
+
var combineResultList = (resultList) => {
|
|
10751
|
+
let acc = ok([]);
|
|
10752
|
+
for (const result of resultList) {
|
|
10753
|
+
if (result.isErr()) {
|
|
10754
|
+
acc = err(result.error);
|
|
10755
|
+
break;
|
|
10756
|
+
} else {
|
|
10757
|
+
acc.map((list) => list.push(result.value));
|
|
10758
|
+
}
|
|
10759
|
+
}
|
|
10760
|
+
return acc;
|
|
10761
|
+
};
|
|
10752
10762
|
var combineResultAsyncList = (asyncResultList) => ResultAsync.fromSafePromise(Promise.all(asyncResultList)).andThen(combineResultList);
|
|
10753
|
-
var combineResultListWithAllErrors = (resultList) =>
|
|
10763
|
+
var combineResultListWithAllErrors = (resultList) => {
|
|
10764
|
+
let acc = ok([]);
|
|
10765
|
+
for (const result of resultList) {
|
|
10766
|
+
if (result.isErr() && acc.isErr()) {
|
|
10767
|
+
acc.error.push(result.error);
|
|
10768
|
+
} else if (result.isErr() && acc.isOk()) {
|
|
10769
|
+
acc = err([result.error]);
|
|
10770
|
+
} else if (result.isOk() && acc.isOk()) {
|
|
10771
|
+
acc.value.push(result.value);
|
|
10772
|
+
}
|
|
10773
|
+
}
|
|
10774
|
+
return acc;
|
|
10775
|
+
};
|
|
10754
10776
|
var combineResultAsyncListWithAllErrors = (asyncResultList) => ResultAsync.fromSafePromise(Promise.all(asyncResultList)).andThen(combineResultListWithAllErrors);
|
|
10755
10777
|
var Result;
|
|
10756
10778
|
(function(Result2) {
|