react-intl 8.1.0 → 8.1.2
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/package.json +5 -5
- package/react-intl.iife.js +0 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-intl",
|
|
3
3
|
"description": "Internationalize React apps. This library provides React components and an API to format dates, numbers, and strings, including pluralization and handling translations.",
|
|
4
|
-
"version": "8.1.
|
|
4
|
+
"version": "8.1.2",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"author": "Eric Ferraiuolo <edf@ericf.me>",
|
|
7
7
|
"type": "module",
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"@types/hoist-non-react-statics": "^3.3.1",
|
|
15
15
|
"hoist-non-react-statics": "^3.3.2",
|
|
16
16
|
"tslib": "^2.8.1",
|
|
17
|
-
"@formatjs/
|
|
18
|
-
"@formatjs/
|
|
19
|
-
"
|
|
20
|
-
"
|
|
17
|
+
"@formatjs/ecma402-abstract": "3.1.1",
|
|
18
|
+
"@formatjs/intl": "4.1.2",
|
|
19
|
+
"intl-messageformat": "11.1.2",
|
|
20
|
+
"@formatjs/icu-messageformat-parser": "3.5.1"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"@types/react": "^19.2.8",
|
package/react-intl.iife.js
CHANGED
|
@@ -9327,9 +9327,6 @@ to autofix this issue`);
|
|
|
9327
9327
|
if (Array.isArray(message) && message.length === 1 && message[0].type === TYPE.literal) {
|
|
9328
9328
|
return message[0].value;
|
|
9329
9329
|
}
|
|
9330
|
-
if (!values && message && typeof message === "string" && !defaultRichTextElements) {
|
|
9331
|
-
return message.replace(/'\{(.*?)\}'/gi, `{$1}`);
|
|
9332
|
-
}
|
|
9333
9330
|
values = __spreadValues(__spreadValues({}, defaultRichTextElements), values);
|
|
9334
9331
|
formats = deepMergeFormatsAndSetTimeZone(formats, timeZone);
|
|
9335
9332
|
defaultFormats = deepMergeFormatsAndSetTimeZone(defaultFormats, timeZone);
|