@arbidocs/cli 0.3.142 → 0.3.144

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.144
4
+
5
+ [compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.3.143...HEAD)
6
+
7
+ ### 🏡 Chore
8
+
9
+ - Release v0.3.143 [skip ci] ([90e7112ea](https://github.com/arbicity/ARBI-frontend/commit/90e7112ea))
10
+
3
11
  ## v0.3.142
4
12
 
5
13
  [compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.3.141...HEAD)
package/dist/index.js CHANGED
@@ -3694,7 +3694,7 @@ function getLatestVersion(skipCache = false) {
3694
3694
  }
3695
3695
  }
3696
3696
  function getCurrentVersion() {
3697
- return "0.3.142";
3697
+ return "0.3.144";
3698
3698
  }
3699
3699
  function readChangelog(fromVersion, toVersion) {
3700
3700
  try {
@@ -3747,17 +3747,17 @@ function showChangelog(fromVersion, toVersion) {
3747
3747
  async function checkForUpdates(autoUpdate) {
3748
3748
  try {
3749
3749
  const latest = getLatestVersion();
3750
- if (!latest || latest === "0.3.142") return;
3750
+ if (!latest || latest === "0.3.144") return;
3751
3751
  if (autoUpdate) {
3752
3752
  warn(`
3753
- Your arbi version is out of date (${"0.3.142"} \u2192 ${latest}). Updating...`);
3753
+ Your arbi version is out of date (${"0.3.144"} \u2192 ${latest}). Updating...`);
3754
3754
  child_process.execSync("npm install -g @arbidocs/cli@latest", { stdio: "inherit" });
3755
- showChangelog("0.3.142", latest);
3755
+ showChangelog("0.3.144", latest);
3756
3756
  console.log(`Updated to ${latest}.`);
3757
3757
  } else {
3758
3758
  warn(
3759
3759
  `
3760
- Your arbi version is out of date (${"0.3.142"} \u2192 ${latest}).
3760
+ Your arbi version is out of date (${"0.3.144"} \u2192 ${latest}).
3761
3761
  Run "arbi update" to upgrade, or "arbi update auto" to always stay up to date.`
3762
3762
  );
3763
3763
  }
@@ -3789,10 +3789,10 @@ function markNagShown(latest) {
3789
3789
  function hintUpdateOnError() {
3790
3790
  try {
3791
3791
  const cached = readCache();
3792
- if (!cached || cached.latest === "0.3.142") return;
3792
+ if (!cached || cached.latest === "0.3.144") return;
3793
3793
  if (!shouldShowNag(cached.latest)) return;
3794
3794
  warn(
3795
- `Your arbi version is out of date (${"0.3.142"} \u2192 ${cached.latest}). Run "arbi update".`
3795
+ `Your arbi version is out of date (${"0.3.144"} \u2192 ${cached.latest}). Run "arbi update".`
3796
3796
  );
3797
3797
  markNagShown(cached.latest);
3798
3798
  } catch {
@@ -8199,9 +8199,10 @@ function formatSpan(startIso, endIso) {
8199
8199
  const sameDay = start.toISOString().slice(0, 10) === end.toISOString().slice(0, 10);
8200
8200
  if (sameDay) return start.toISOString().slice(0, 10);
8201
8201
  const firstOfMonth = start.getUTCDate() === 1;
8202
+ const lastOfMonth = end.getUTCDate() === new Date(Date.UTC(end.getUTCFullYear(), end.getUTCMonth() + 1, 0)).getUTCDate();
8202
8203
  const sameMonth = start.toISOString().slice(0, 7) === end.toISOString().slice(0, 7);
8203
- if (firstOfMonth && sameMonth) return start.toISOString().slice(0, 7);
8204
- const wholeYear = firstOfMonth && start.getUTCMonth() === 0 && end.getUTCMonth() === 11;
8204
+ if (firstOfMonth && lastOfMonth && sameMonth) return start.toISOString().slice(0, 7);
8205
+ const wholeYear = firstOfMonth && lastOfMonth && start.getUTCMonth() === 0 && end.getUTCMonth() === 11;
8205
8206
  if (wholeYear) return String(start.getUTCFullYear());
8206
8207
  return `${start.toISOString().slice(0, 10)} \u2192 ${end.toISOString().slice(0, 10)}`;
8207
8208
  }
@@ -10652,7 +10653,7 @@ console.info = (...args) => {
10652
10653
  _origInfo(...args);
10653
10654
  };
10654
10655
  var program = new commander.Command();
10655
- program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.3.142").showHelpAfterError(true).showSuggestionAfterError(true);
10656
+ program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.3.144").showHelpAfterError(true).showSuggestionAfterError(true);
10656
10657
  registerConfigCommand(program);
10657
10658
  registerLoginCommand(program);
10658
10659
  registerRegisterCommand(program);