@dpuse/dpuse-development 0.3.531 → 0.3.532
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.
|
@@ -6781,7 +6781,7 @@ function _i(e) {
|
|
|
6781
6781
|
if (e == null) return "";
|
|
6782
6782
|
let t = e.publishedDate ? vi(e.publishedDate.split("T", 1)[0]) : "";
|
|
6783
6783
|
if (!(e.latestVersion !== "" && e.latestVersion !== e.installedVersion)) return t === "" ? "" : ` — ${t}`;
|
|
6784
|
-
let n = e.latestPublishedDate ? vi(e.latestPublishedDate.split("T", 1)[0]) : "", r = n === "" ? `**latest**: ${e.latestVersion}
|
|
6784
|
+
let n = e.latestPublishedDate ? vi(e.latestPublishedDate.split("T", 1)[0]) : "", r = n === "" ? `**latest**: ${e.latestVersion} ❗` : `**latest**: ${e.latestVersion} — ${n} ❗`;
|
|
6785
6785
|
return t === "" ? ` — → ${r}` : ` — ${t} → ${r}`;
|
|
6786
6786
|
}
|
|
6787
6787
|
function vi(e) {
|
|
@@ -6789,7 +6789,7 @@ function vi(e) {
|
|
|
6789
6789
|
let t = e.split("T", 1)[0];
|
|
6790
6790
|
if (t == null || t === "") return "n/a";
|
|
6791
6791
|
let n = new Date(t), r = /* @__PURE__ */ new Date(), i = (r.getFullYear() - n.getFullYear()) * 12 + (r.getMonth() - n.getMonth());
|
|
6792
|
-
return r.getDate() < n.getDate() && --i, i === 0 ? `this month: ${t}` : i === 1 ? `1 month ago: ${t}` : i <= 6 ? `${String(i)} months ago: ${t}` :
|
|
6792
|
+
return r.getDate() < n.getDate() && --i, i === 0 ? `this month: ${t}` : i === 1 ? `1 month ago: ${t}` : i <= 6 ? `${String(i)} months ago: ${t}` : `${String(i)} months ago: ${t} ⚠️`;
|
|
6793
6793
|
}
|
|
6794
6794
|
//#endregion
|
|
6795
6795
|
//#region src/operations/formatCode.ts
|