@trackunit/date-and-time-utils 1.14.5 → 1.14.7
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 +2 -2
- package/index.esm.js +2 -2
- package/package.json +1 -1
- package/migrations/entry.js.map +0 -1
package/index.cjs.js
CHANGED
|
@@ -14,7 +14,7 @@ const getTimeZone = (timeZoneId) => {
|
|
|
14
14
|
return {
|
|
15
15
|
id: tzId,
|
|
16
16
|
offset: offset,
|
|
17
|
-
name: `${tzId} ${offset.length > 0 ?
|
|
17
|
+
name: `${tzId} ${offset.length > 0 ? `(${offset})` : ""}`,
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
/**
|
|
@@ -941,7 +941,7 @@ const localeScript = (locale) => {
|
|
|
941
941
|
*/
|
|
942
942
|
const narrowUnitIsDelocalisedCache = new Map();
|
|
943
943
|
const narrowUnitIsDelocalised = (locale, unit) => {
|
|
944
|
-
const key =
|
|
944
|
+
const key = `${locale ?? ""}|${unit}`;
|
|
945
945
|
const cached = narrowUnitIsDelocalisedCache.get(key);
|
|
946
946
|
if (cached !== undefined)
|
|
947
947
|
return cached;
|
package/index.esm.js
CHANGED
|
@@ -13,7 +13,7 @@ const getTimeZone = (timeZoneId) => {
|
|
|
13
13
|
return {
|
|
14
14
|
id: tzId,
|
|
15
15
|
offset: offset,
|
|
16
|
-
name: `${tzId} ${offset.length > 0 ?
|
|
16
|
+
name: `${tzId} ${offset.length > 0 ? `(${offset})` : ""}`,
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
19
|
/**
|
|
@@ -940,7 +940,7 @@ const localeScript = (locale) => {
|
|
|
940
940
|
*/
|
|
941
941
|
const narrowUnitIsDelocalisedCache = new Map();
|
|
942
942
|
const narrowUnitIsDelocalised = (locale, unit) => {
|
|
943
|
-
const key =
|
|
943
|
+
const key = `${locale ?? ""}|${unit}`;
|
|
944
944
|
const cached = narrowUnitIsDelocalisedCache.get(key);
|
|
945
945
|
if (cached !== undefined)
|
|
946
946
|
return cached;
|
package/package.json
CHANGED
package/migrations/entry.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entry.js","sourceRoot":"","sources":["../../../../../libs/date-and-time/utils/migrations/entry.ts"],"names":[],"mappings":"","sourcesContent":["export {};\n"]}
|