@wavy/fn 0.0.20 → 0.0.21
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/main.cjs +1 -1
- package/dist/main.d.cts +1 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +1 -1
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -472,7 +472,7 @@ var TimeManager = class _TimeManager {
|
|
|
472
472
|
return takeLastWhile(fmtDate.split(""), (char) => char !== ",").join("").trim();
|
|
473
473
|
if (format2 === "MMM dd, yyyy | hh:mm A" || format2 === "MMM dd, yyyy at hh:mm A") {
|
|
474
474
|
const delimiter = format2 === "MMM dd, yyyy at hh:mm A" ? "at" : "|";
|
|
475
|
-
const time2 =
|
|
475
|
+
const time2 = new _TimeManager().format(convertedDate, "hh:mm A");
|
|
476
476
|
return [fmtDate, time2].join(` ${delimiter} `);
|
|
477
477
|
}
|
|
478
478
|
return fmtDate;
|
package/dist/main.d.cts
CHANGED
|
@@ -50,6 +50,7 @@ declare const dateFormat: (time: number | Date | "now", format?: DateFormat) =>
|
|
|
50
50
|
declare const timeDuration: (from: number | "now" | Date, to: number | "now" | Date, options?: {
|
|
51
51
|
disableRemainder?: boolean;
|
|
52
52
|
abvUnits?: boolean;
|
|
53
|
+
round?: boolean;
|
|
53
54
|
}) => string;
|
|
54
55
|
declare const upperFirst: typeof StringFormatter.upperFirst;
|
|
55
56
|
declare const camelCaseToLetter: (camelCase: string) => string;
|
package/dist/main.d.ts
CHANGED
|
@@ -50,6 +50,7 @@ declare const dateFormat: (time: number | Date | "now", format?: DateFormat) =>
|
|
|
50
50
|
declare const timeDuration: (from: number | "now" | Date, to: number | "now" | Date, options?: {
|
|
51
51
|
disableRemainder?: boolean;
|
|
52
52
|
abvUnits?: boolean;
|
|
53
|
+
round?: boolean;
|
|
53
54
|
}) => string;
|
|
54
55
|
declare const upperFirst: typeof StringFormatter.upperFirst;
|
|
55
56
|
declare const camelCaseToLetter: (camelCase: string) => string;
|
package/dist/main.js
CHANGED
|
@@ -377,7 +377,7 @@ var TimeManager = class _TimeManager {
|
|
|
377
377
|
return takeLastWhile(fmtDate.split(""), (char) => char !== ",").join("").trim();
|
|
378
378
|
if (format2 === "MMM dd, yyyy | hh:mm A" || format2 === "MMM dd, yyyy at hh:mm A") {
|
|
379
379
|
const delimiter = format2 === "MMM dd, yyyy at hh:mm A" ? "at" : "|";
|
|
380
|
-
const time2 =
|
|
380
|
+
const time2 = new _TimeManager().format(convertedDate, "hh:mm A");
|
|
381
381
|
return [fmtDate, time2].join(` ${delimiter} `);
|
|
382
382
|
}
|
|
383
383
|
return fmtDate;
|