@jsenv/navi 0.26.40 → 0.26.41

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.
@@ -31459,7 +31459,7 @@ const formatTimeAgo = (
31459
31459
  unit = "year";
31460
31460
  }
31461
31461
 
31462
- if (!prefix || value >= 0) {
31462
+ if (prefix === undefined || prefix === null || value >= 0) {
31463
31463
  return rtf.format(value, unit);
31464
31464
  }
31465
31465
  // Drop the leading past-tense literal ("il y a ", "ago ") and prepend the custom prefix.
@@ -31471,6 +31471,9 @@ const formatTimeAgo = (
31471
31471
  .map((p) => p.value)
31472
31472
  .join("")
31473
31473
  .trim();
31474
+ if (prefix === "") {
31475
+ return withoutPrefix;
31476
+ }
31474
31477
  return `${prefix} ${withoutPrefix}`;
31475
31478
  };
31476
31479