@arbidocs/cli 0.3.32 → 0.3.33

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.3.33
4
+
5
+ [compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.3.32...HEAD)
6
+
7
+ ### 🩹 Fixes
8
+
9
+ - **cli:** Per-doc fanout honours --interval and stops at one attempt ([#577](https://github.com/arbicity/ARBI-frontend/pull/577))
10
+
3
11
  ## v0.3.32
4
12
 
5
13
  [compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.3.31...HEAD)
package/dist/index.js CHANGED
@@ -3637,7 +3637,7 @@ function getLatestVersion(skipCache = false) {
3637
3637
  }
3638
3638
  }
3639
3639
  function getCurrentVersion() {
3640
- return "0.3.32";
3640
+ return "0.3.33";
3641
3641
  }
3642
3642
  function readChangelog(fromVersion, toVersion) {
3643
3643
  try {
@@ -3690,17 +3690,17 @@ function showChangelog(fromVersion, toVersion) {
3690
3690
  async function checkForUpdates(autoUpdate) {
3691
3691
  try {
3692
3692
  const latest = getLatestVersion();
3693
- if (!latest || latest === "0.3.32") return;
3693
+ if (!latest || latest === "0.3.33") return;
3694
3694
  if (autoUpdate) {
3695
3695
  warn(`
3696
- Your arbi version is out of date (${"0.3.32"} \u2192 ${latest}). Updating...`);
3696
+ Your arbi version is out of date (${"0.3.33"} \u2192 ${latest}). Updating...`);
3697
3697
  child_process.execSync("npm install -g @arbidocs/cli@latest", { stdio: "inherit" });
3698
- showChangelog("0.3.32", latest);
3698
+ showChangelog("0.3.33", latest);
3699
3699
  console.log(`Updated to ${latest}.`);
3700
3700
  } else {
3701
3701
  warn(
3702
3702
  `
3703
- Your arbi version is out of date (${"0.3.32"} \u2192 ${latest}).
3703
+ Your arbi version is out of date (${"0.3.33"} \u2192 ${latest}).
3704
3704
  Run "arbi update" to upgrade, or "arbi update auto" to always stay up to date.`
3705
3705
  );
3706
3706
  }
@@ -3710,9 +3710,9 @@ Run "arbi update" to upgrade, or "arbi update auto" to always stay up to date.`
3710
3710
  function hintUpdateOnError() {
3711
3711
  try {
3712
3712
  const cached = readCache();
3713
- if (cached && cached.latest !== "0.3.32") {
3713
+ if (cached && cached.latest !== "0.3.33") {
3714
3714
  warn(
3715
- `Your arbi version is out of date (${"0.3.32"} \u2192 ${cached.latest}). Run "arbi update".`
3715
+ `Your arbi version is out of date (${"0.3.33"} \u2192 ${cached.latest}). Run "arbi update".`
3716
3716
  );
3717
3717
  }
3718
3718
  } catch {
@@ -5060,12 +5060,9 @@ function registerDocsCommand(program2) {
5060
5060
  ` batch of ${batch.length} failed after ${maxRetries} retries, falling back to per-doc`
5061
5061
  )
5062
5062
  );
5063
- for (const id of batch) {
5064
- let docOk = await submitBatch([id]);
5065
- if (!docOk) {
5066
- await sleep(500);
5067
- docOk = await submitBatch([id]);
5068
- }
5063
+ for (let j = 0; j < batch.length; j++) {
5064
+ const id = batch[j];
5065
+ const docOk = await submitBatch([id]);
5069
5066
  if (docOk) {
5070
5067
  succeeded += 1;
5071
5068
  } else {
@@ -5073,6 +5070,9 @@ function registerDocsCommand(program2) {
5073
5070
  failedIds.push(id);
5074
5071
  }
5075
5072
  submitted += 1;
5073
+ if (intervalMs > 0 && j < batch.length - 1) {
5074
+ await sleep(intervalMs);
5075
+ }
5076
5076
  }
5077
5077
  }
5078
5078
  if (intervalMs > 0 && i + batchSize < docIds.length) {
@@ -7880,7 +7880,7 @@ console.info = (...args) => {
7880
7880
  _origInfo(...args);
7881
7881
  };
7882
7882
  var program = new commander.Command();
7883
- program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.3.32");
7883
+ program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.3.33");
7884
7884
  registerConfigCommand(program);
7885
7885
  registerLoginCommand(program);
7886
7886
  registerRegisterCommand(program);