@loafmarkets/ui 0.1.32 → 0.1.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/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10357,8 +10357,12 @@ var formatCurrency5 = (value, opts) => {
|
|
|
10357
10357
|
var formatNumber2 = (value, maximumFractionDigits = 2) => value.toLocaleString("en-US", { minimumFractionDigits: 0, maximumFractionDigits });
|
|
10358
10358
|
var formatTimestamp = (unix) => {
|
|
10359
10359
|
if (!unix) return "\u2014";
|
|
10360
|
-
|
|
10361
|
-
|
|
10360
|
+
let sec;
|
|
10361
|
+
if (unix > 1e18) sec = Math.floor(unix / 1e9);
|
|
10362
|
+
else if (unix > 1e14) sec = Math.floor(unix / 1e6);
|
|
10363
|
+
else if (unix > 1e12) sec = Math.floor(unix / 1e3);
|
|
10364
|
+
else sec = unix;
|
|
10365
|
+
return new Date(sec * 1e3).toLocaleString("en-AU", {
|
|
10362
10366
|
day: "2-digit",
|
|
10363
10367
|
month: "short",
|
|
10364
10368
|
hour: "2-digit",
|