fluncle 0.208.0 → 0.209.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/bin/fluncle.mjs +7 -9
  2. package/package.json +1 -1
package/bin/fluncle.mjs CHANGED
@@ -610,7 +610,7 @@ function parseVersion(version) {
610
610
  var currentVersion;
611
611
  var init_version = __esm(() => {
612
612
  init_output();
613
- currentVersion = "0.208.0".trim() ? "0.208.0".trim() : "0.1.0";
613
+ currentVersion = "0.209.0".trim() ? "0.209.0".trim() : "0.1.0";
614
614
  });
615
615
 
616
616
  // src/update-notifier.ts
@@ -2452,7 +2452,7 @@ function parseVersion2(version) {
2452
2452
  var currentVersion2, latestReleaseUrl = "https://api.github.com/repos/mauricekleine/fluncle/releases/latest";
2453
2453
  var init_version2 = __esm(() => {
2454
2454
  init_output();
2455
- currentVersion2 = "0.208.0".trim() ? "0.208.0".trim() : "0.1.0";
2455
+ currentVersion2 = "0.209.0".trim() ? "0.209.0".trim() : "0.1.0";
2456
2456
  });
2457
2457
 
2458
2458
  // ../../packages/registry/src/index.ts
@@ -10845,6 +10845,7 @@ async function runBackfillDiscogs(options, backfillDiscogsCommand2) {
10845
10845
  let cursor;
10846
10846
  let dryRun = options.dryRun;
10847
10847
  let throttled = false;
10848
+ let rateLimitedBy = null;
10848
10849
  while (resolved.length + unresolved.length < limit) {
10849
10850
  const remaining = limit - (resolved.length + unresolved.length);
10850
10851
  const result = await backfillDiscogsCommand2(remaining, options.dryRun, cursor);
@@ -10858,6 +10859,7 @@ async function runBackfillDiscogs(options, backfillDiscogsCommand2) {
10858
10859
  }
10859
10860
  if (result.rateLimited) {
10860
10861
  throttled = true;
10862
+ rateLimitedBy = result.rateLimitedBy;
10861
10863
  break;
10862
10864
  }
10863
10865
  if (result.nextCursor === null) {
@@ -10870,6 +10872,7 @@ async function runBackfillDiscogs(options, backfillDiscogsCommand2) {
10870
10872
  dryRun,
10871
10873
  ok: true,
10872
10874
  rateLimited: throttled,
10875
+ rateLimitedBy,
10873
10876
  resolved,
10874
10877
  resolvedCount: resolved.length,
10875
10878
  skipped,
@@ -11268,20 +11271,15 @@ async function runBackfillLabelImages(options, backfillLabelImagesCommand2) {
11268
11271
  cursor = result.nextCursor;
11269
11272
  }
11270
11273
  if (options.json) {
11271
- printJson({
11274
+ printSweepJson({
11272
11275
  dryRun,
11273
11276
  failed,
11274
- failedCount: failed.length,
11275
11277
  none,
11276
11278
  noneCount: none.length,
11277
- ok: true,
11278
11279
  rateLimited: throttled,
11279
11280
  resolved,
11280
11281
  resolvedCount: resolved.length
11281
- });
11282
- if (failed.length > 0) {
11283
- process.exitCode = 1;
11284
- }
11282
+ }, failed.length);
11285
11283
  return;
11286
11284
  }
11287
11285
  const verb = dryRun ? "Would resolve" : "Resolved";
package/package.json CHANGED
@@ -31,5 +31,5 @@
31
31
  "url": "git+https://github.com/mauricekleine/fluncle.git"
32
32
  },
33
33
  "type": "module",
34
- "version": "0.208.0"
34
+ "version": "0.209.0"
35
35
  }