@formatjs/intl-locale 5.3.7 → 5.3.8
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.js.map +1 -1
- package/package.json +3 -3
- package/polyfill-force.js +18 -6
- package/polyfill-force.js.map +1 -1
- package/polyfill.iife.js +20 -7
- package/polyfill.js +20 -7
- package/polyfill.js.map +1 -1
- package/should-polyfill.js +1 -1
- package/should-polyfill.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formatjs/intl-locale",
|
|
3
3
|
"description": "Intl.Locale polyfill",
|
|
4
|
-
"version": "5.3.
|
|
4
|
+
"version": "5.3.8",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Long Ho <holevietlong@gmail.com>",
|
|
7
7
|
"type": "module",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"./should-polyfill.js": "./should-polyfill.js"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@formatjs/intl-getcanonicallocales": "3.2.
|
|
17
|
-
"@formatjs/intl-supportedvaluesof": "2.3.
|
|
16
|
+
"@formatjs/intl-getcanonicallocales": "3.2.9",
|
|
17
|
+
"@formatjs/intl-supportedvaluesof": "2.3.7"
|
|
18
18
|
},
|
|
19
19
|
"bugs": "https://github.com/formatjs/formatjs/issues",
|
|
20
20
|
"homepage": "https://github.com/formatjs/formatjs#readme",
|
package/polyfill-force.js
CHANGED
|
@@ -136,6 +136,23 @@ const strategies = {
|
|
|
136
136
|
};
|
|
137
137
|
//#endregion
|
|
138
138
|
//#region packages/ecma402-abstract/utils.js
|
|
139
|
+
function defineProperty(target, name, { value }) {
|
|
140
|
+
Object.defineProperty(target, name, {
|
|
141
|
+
configurable: true,
|
|
142
|
+
enumerable: false,
|
|
143
|
+
writable: true,
|
|
144
|
+
value
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
function ensureIntl() {
|
|
148
|
+
if (typeof Intl === "undefined") Object.defineProperty(globalThis, "Intl", {
|
|
149
|
+
configurable: true,
|
|
150
|
+
enumerable: false,
|
|
151
|
+
writable: true,
|
|
152
|
+
value: {}
|
|
153
|
+
});
|
|
154
|
+
return Intl;
|
|
155
|
+
}
|
|
139
156
|
/**
|
|
140
157
|
* 7.3.5 CreateDataProperty
|
|
141
158
|
* @param target
|
|
@@ -4664,12 +4681,7 @@ try {
|
|
|
4664
4681
|
} catch {}
|
|
4665
4682
|
//#endregion
|
|
4666
4683
|
//#region packages/intl-locale/polyfill-force.ts
|
|
4667
|
-
|
|
4668
|
-
value: Locale,
|
|
4669
|
-
writable: true,
|
|
4670
|
-
enumerable: false,
|
|
4671
|
-
configurable: true
|
|
4672
|
-
});
|
|
4684
|
+
defineProperty(ensureIntl(), "Locale", { value: Locale });
|
|
4673
4685
|
//#endregion
|
|
4674
4686
|
|
|
4675
4687
|
//# sourceMappingURL=polyfill-force.js.map
|