@wastedondestiny/destiny-library 1.7.4 → 1.7.5

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/dist/index.js CHANGED
@@ -1122,7 +1122,7 @@ function XA(j) {
1122
1122
  return A > 1 ? `${Math.floor(A)} ${U(Math.floor(A), "year")} ago` : (A = M / 2592e3, A > 1 ? `${Math.floor(A)} ${U(Math.floor(A), "month")} ago` : (A = M / 86400, A > 1 ? `${Math.floor(A)} ${U(Math.floor(A), "day")} ago` : (A = M / 3600, A > 1 ? `${Math.floor(A)} ${U(Math.floor(A), "hour")} ago` : (A = M / 60, A > 1 ? `${Math.floor(A)} ${U(Math.floor(A), "minute")} ago` : `${Math.floor(M)} ${U(Math.floor(M), "second")} ago`))));
1123
1123
  }
1124
1124
  function $A(j) {
1125
- if (!j)
1125
+ if (!j || j < 60)
1126
1126
  return "0h";
1127
1127
  const M = Math.floor(j / 3600), A = Math.floor(j / 60 % 60);
1128
1128
  return (M ? `${rA(M)}h ` : "") + `${A}m`.padStart(3, "0");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wastedondestiny/destiny-library",
3
- "version": "1.7.4",
3
+ "version": "1.7.5",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"