fluncle 0.268.0 → 0.269.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.
- package/bin/fluncle.mjs +7 -7
- package/package.json +1 -1
package/bin/fluncle.mjs
CHANGED
|
@@ -651,7 +651,7 @@ function parseVersion(version) {
|
|
|
651
651
|
var currentVersion;
|
|
652
652
|
var init_version = __esm(() => {
|
|
653
653
|
init_output();
|
|
654
|
-
currentVersion = "0.
|
|
654
|
+
currentVersion = "0.269.0".trim() ? "0.269.0".trim() : "0.1.0";
|
|
655
655
|
});
|
|
656
656
|
|
|
657
657
|
// src/update-notifier.ts
|
|
@@ -2364,7 +2364,7 @@ function parseVersion2(version) {
|
|
|
2364
2364
|
var currentVersion2, latestReleaseUrl = "https://api.github.com/repos/mauricekleine/fluncle/releases/latest";
|
|
2365
2365
|
var init_version2 = __esm(() => {
|
|
2366
2366
|
init_output();
|
|
2367
|
-
currentVersion2 = "0.
|
|
2367
|
+
currentVersion2 = "0.269.0".trim() ? "0.269.0".trim() : "0.1.0";
|
|
2368
2368
|
});
|
|
2369
2369
|
|
|
2370
2370
|
// ../../packages/registry/src/index.ts
|
|
@@ -11694,7 +11694,7 @@ var init_admin_artists = __esm(() => {
|
|
|
11694
11694
|
method: "POST",
|
|
11695
11695
|
operationId: "backfillArtistImages",
|
|
11696
11696
|
path: "/admin/backfill/artist-images",
|
|
11697
|
-
summary: "Back-fill artist
|
|
11697
|
+
summary: "Back-fill artist avatars (image_url) for existing artists (bounded)",
|
|
11698
11698
|
tags: ["Admin"]
|
|
11699
11699
|
}).input(object({
|
|
11700
11700
|
query: object({
|
|
@@ -25079,7 +25079,7 @@ JSON field reference:
|
|
|
25079
25079
|
await Promise.resolve().then(() => init_admin_artists2());
|
|
25080
25080
|
await runBackfillArtists(options, backfillArtistsCommand);
|
|
25081
25081
|
});
|
|
25082
|
-
backfill.command("artist-images").description("Back-fill artist
|
|
25082
|
+
backfill.command("artist-images").description("Back-fill artist avatars (image_url) for existing artists").option("--dry-run", "Report which artists would be filled without touching the DB", false).option("--limit <limit>", "Max artists to check", "20").option("--json", "Print JSON", false).action(async (options) => {
|
|
25083
25083
|
await Promise.resolve().then(() => init_admin_artists2());
|
|
25084
25084
|
await runBackfillArtistImages(options, backfillArtistImagesCommand);
|
|
25085
25085
|
});
|
|
@@ -26171,8 +26171,8 @@ async function runBackfillArtistImages(options, backfillArtistImagesCommand) {
|
|
|
26171
26171
|
let dryRun = options.dryRun;
|
|
26172
26172
|
let queueDepth = 0;
|
|
26173
26173
|
let rateLimited = false;
|
|
26174
|
-
while (
|
|
26175
|
-
const remaining = limit -
|
|
26174
|
+
while (checkedCount < limit) {
|
|
26175
|
+
const remaining = limit - checkedCount;
|
|
26176
26176
|
const result = await backfillArtistImagesCommand(remaining, options.dryRun, cursor);
|
|
26177
26177
|
budgetLimited ||= result.budgetLimited;
|
|
26178
26178
|
checkedCount += result.checkedCount;
|
|
@@ -26207,7 +26207,7 @@ async function runBackfillArtistImages(options, backfillArtistImagesCommand) {
|
|
|
26207
26207
|
return;
|
|
26208
26208
|
}
|
|
26209
26209
|
const verb = dryRun ? "Would fill" : "Filled";
|
|
26210
|
-
console.log(`${verb} ${filled.length} artist avatar(s); checked ${checkedCount}; ${failed.length} failed; ${skipped.length} without
|
|
26210
|
+
console.log(`${verb} ${filled.length} artist avatar(s); checked ${checkedCount}; ${failed.length} failed; ${skipped.length} without an image; ${queueDepth} queued.`);
|
|
26211
26211
|
for (const artistId of filled) {
|
|
26212
26212
|
console.log(` ${artistId}`);
|
|
26213
26213
|
}
|
package/package.json
CHANGED