@finema/core 1.3.16 → 1.3.17
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/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/utils/TimeHelper.mjs +6 -6
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as dayjs from "dayjs";
|
|
2
|
-
import relativeTime from "dayjs/plugin/relativeTime";
|
|
3
|
-
import utc from "dayjs/plugin/utc";
|
|
4
|
-
import duration from "dayjs/plugin/duration";
|
|
5
|
-
dayjs.extend(relativeTime);
|
|
6
|
-
dayjs.extend(utc);
|
|
7
|
-
dayjs.extend(duration);
|
|
2
|
+
import * as relativeTime from "dayjs/plugin/relativeTime";
|
|
3
|
+
import * as utc from "dayjs/plugin/utc";
|
|
4
|
+
import * as duration from "dayjs/plugin/duration";
|
|
5
|
+
dayjs.extend(relativeTime.default);
|
|
6
|
+
dayjs.extend(utc.default);
|
|
7
|
+
dayjs.extend(duration.default);
|
|
8
8
|
const isTimeError = (time) => time === "Invalid Date";
|
|
9
9
|
const timeWrapper = (time, defaultTime) => isTimeError(time) ? defaultTime : time;
|
|
10
10
|
const dateFormat = "YYYY-MM-DD";
|