@trackunit/date-and-time-utils 1.6.25 → 1.6.27
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/index.cjs.js +1 -3
- package/index.esm.js +1 -3
- package/package.json +2 -2
package/index.cjs.js
CHANGED
|
@@ -49,10 +49,8 @@ const getHourCycle = (locale) => {
|
|
|
49
49
|
if (intl.hourCycle) {
|
|
50
50
|
return intl.hourCycle;
|
|
51
51
|
}
|
|
52
|
-
// Some browser e.g. apparently the latest chrome have a cycle defined here,
|
|
53
|
-
// but not in intl.hourCycle
|
|
54
52
|
const hourCycles =
|
|
55
|
-
// @ts-
|
|
53
|
+
// @ts-expect-error — Some browser e.g. apparently the latest chrome have a cycle defined here, but not in intl.hourCycle
|
|
56
54
|
intl.hourCycles || (typeof intl.getHourCycles === "function" && intl.getHourCycles());
|
|
57
55
|
if (Array.isArray(hourCycles) && hourCycles[0]) {
|
|
58
56
|
return hourCycles[0];
|
package/index.esm.js
CHANGED
|
@@ -47,10 +47,8 @@ const getHourCycle = (locale) => {
|
|
|
47
47
|
if (intl.hourCycle) {
|
|
48
48
|
return intl.hourCycle;
|
|
49
49
|
}
|
|
50
|
-
// Some browser e.g. apparently the latest chrome have a cycle defined here,
|
|
51
|
-
// but not in intl.hourCycle
|
|
52
50
|
const hourCycles =
|
|
53
|
-
// @ts-
|
|
51
|
+
// @ts-expect-error — Some browser e.g. apparently the latest chrome have a cycle defined here, but not in intl.hourCycle
|
|
54
52
|
intl.hourCycles || (typeof intl.getHourCycles === "function" && intl.getHourCycles());
|
|
55
53
|
if (Array.isArray(hourCycles) && hourCycles[0]) {
|
|
56
54
|
return hourCycles[0];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/date-and-time-utils",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.27",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"@formatjs/intl-enumerator": "^1.8.1",
|
|
11
11
|
"@js-temporal/polyfill": "^0.5.1",
|
|
12
12
|
"@formatjs/intl-durationformat": "^0.6.1",
|
|
13
|
-
"@trackunit/react-test-setup": "1.3.
|
|
13
|
+
"@trackunit/react-test-setup": "1.3.27"
|
|
14
14
|
},
|
|
15
15
|
"module": "./index.esm.js",
|
|
16
16
|
"main": "./index.cjs.js",
|