@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 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 = this.format(convertedDate, "hh:mm A");
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 = this.format(convertedDate, "hh:mm A");
380
+ const time2 = new _TimeManager().format(convertedDate, "hh:mm A");
381
381
  return [fmtDate, time2].join(` ${delimiter} `);
382
382
  }
383
383
  return fmtDate;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavy/fn",
3
- "version": "0.0.20",
3
+ "version": "0.0.21",
4
4
  "main": "./dist/main.js",
5
5
  "module": "./dist/main.cjs",
6
6
  "types": "./dist/main.d.ts",