@asteroidai/cli 1.9.105 → 1.9.106
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/asteroid.js +6 -2
- package/dist/core.js +5 -1
- package/package.json +1 -1
package/dist/asteroid.js
CHANGED
|
@@ -6816,7 +6816,7 @@ var ApiError = class extends Error {
|
|
|
6816
6816
|
status;
|
|
6817
6817
|
body;
|
|
6818
6818
|
};
|
|
6819
|
-
var VERSION = "1.9.
|
|
6819
|
+
var VERSION = "1.9.106";
|
|
6820
6820
|
function problem(status, body, fallback) {
|
|
6821
6821
|
if (body && typeof body === "object") {
|
|
6822
6822
|
const record2 = body;
|
|
@@ -7969,7 +7969,11 @@ function wantedEntries(options, tree, skipped) {
|
|
|
7969
7969
|
}
|
|
7970
7970
|
async function inBatches(items, each) {
|
|
7971
7971
|
for (let i = 0; i < items.length; i += CONCURRENCY) {
|
|
7972
|
-
|
|
7972
|
+
const results = await Promise.allSettled(
|
|
7973
|
+
items.slice(i, i + CONCURRENCY).map(each)
|
|
7974
|
+
);
|
|
7975
|
+
const failed = results.find((r) => r.status === "rejected");
|
|
7976
|
+
if (failed) throw failed.reason;
|
|
7973
7977
|
}
|
|
7974
7978
|
}
|
|
7975
7979
|
async function writeEntries(sync, options, tree, dir) {
|
package/dist/core.js
CHANGED
|
@@ -6967,7 +6967,11 @@ function wantedEntries(options, tree, skipped) {
|
|
|
6967
6967
|
}
|
|
6968
6968
|
async function inBatches(items, each) {
|
|
6969
6969
|
for (let i = 0; i < items.length; i += CONCURRENCY) {
|
|
6970
|
-
|
|
6970
|
+
const results = await Promise.allSettled(
|
|
6971
|
+
items.slice(i, i + CONCURRENCY).map(each)
|
|
6972
|
+
);
|
|
6973
|
+
const failed = results.find((r) => r.status === "rejected");
|
|
6974
|
+
if (failed) throw failed.reason;
|
|
6971
6975
|
}
|
|
6972
6976
|
}
|
|
6973
6977
|
async function writeEntries(sync, options, tree, dir) {
|