react-intl 5.24.5 → 5.24.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/package.json +7 -7
- package/react-intl.iife.js +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-intl",
|
|
3
|
-
"version": "5.24.
|
|
3
|
+
"version": "5.24.8",
|
|
4
4
|
"description": "Internationalize React apps. This library provides React components and an API to format dates, numbers, and strings, including pluralization and handling translations.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"intl",
|
|
@@ -128,15 +128,15 @@
|
|
|
128
128
|
"types": "index.d.ts",
|
|
129
129
|
"sideEffects": false,
|
|
130
130
|
"dependencies": {
|
|
131
|
-
"@formatjs/ecma402-abstract": "1.11.
|
|
132
|
-
"@formatjs/icu-messageformat-parser": "2.0.
|
|
133
|
-
"@formatjs/intl": "1.
|
|
134
|
-
"@formatjs/intl-displaynames": "5.4.
|
|
135
|
-
"@formatjs/intl-listformat": "6.5.
|
|
131
|
+
"@formatjs/ecma402-abstract": "1.11.4",
|
|
132
|
+
"@formatjs/icu-messageformat-parser": "2.0.19",
|
|
133
|
+
"@formatjs/intl": "2.1.1",
|
|
134
|
+
"@formatjs/intl-displaynames": "5.4.3",
|
|
135
|
+
"@formatjs/intl-listformat": "6.5.3",
|
|
136
136
|
"@types/hoist-non-react-statics": "^3.3.1",
|
|
137
137
|
"@types/react": "16 || 17",
|
|
138
138
|
"hoist-non-react-statics": "^3.3.2",
|
|
139
|
-
"intl-messageformat": "9.
|
|
139
|
+
"intl-messageformat": "9.12.0",
|
|
140
140
|
"tslib": "^2.1.0"
|
|
141
141
|
},
|
|
142
142
|
"peerDependencies": {
|
package/react-intl.iife.js
CHANGED
|
@@ -1913,7 +1913,7 @@ var ReactIntl = (function() {
|
|
|
1913
1913
|
continue;
|
|
1914
1914
|
}
|
|
1915
1915
|
if (isTimeElement(el)) {
|
|
1916
|
-
var style = typeof el.style === "string" ? formats.time[el.style] : isDateTimeSkeleton(el.style) ? el.style.parsedOptions :
|
|
1916
|
+
var style = typeof el.style === "string" ? formats.time[el.style] : isDateTimeSkeleton(el.style) ? el.style.parsedOptions : formats.time.medium;
|
|
1917
1917
|
result.push({
|
|
1918
1918
|
type: PART_TYPE.literal,
|
|
1919
1919
|
value: formatters.getDateTimeFormat(locales, style).format(value)
|
|
@@ -2258,11 +2258,11 @@ var ReactIntl = (function() {
|
|
|
2258
2258
|
}(IntlError);
|
|
2259
2259
|
|
|
2260
2260
|
// bazel-out/darwin-fastbuild/bin/packages/intl/lib/src/utils.js
|
|
2261
|
-
function filterProps(props,
|
|
2261
|
+
function filterProps(props, allowlist, defaults) {
|
|
2262
2262
|
if (defaults === void 0) {
|
|
2263
2263
|
defaults = {};
|
|
2264
2264
|
}
|
|
2265
|
-
return
|
|
2265
|
+
return allowlist.reduce(function(filtered, name) {
|
|
2266
2266
|
if (name in props) {
|
|
2267
2267
|
filtered[name] = props[name];
|
|
2268
2268
|
} else if (name in defaults) {
|
|
@@ -2805,7 +2805,7 @@ var ReactIntl = (function() {
|
|
|
2805
2805
|
onError(new MissingDataError('Missing locale data for locale: "'.concat(locale, '" in Intl.DateTimeFormat. Using default locale: "').concat(defaultLocale, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')));
|
|
2806
2806
|
}
|
|
2807
2807
|
verifyConfigMessages(resolvedConfig);
|
|
2808
|
-
return __assign(__assign({}, resolvedConfig), { formatters: formatters, formatNumber: formatNumber.bind(null, resolvedConfig, formatters.getNumberFormat), formatNumberToParts: formatNumberToParts.bind(null, resolvedConfig, formatters.getNumberFormat), formatRelativeTime: formatRelativeTime.bind(null, resolvedConfig, formatters.getRelativeTimeFormat), formatDate: formatDate.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatDateToParts: formatDateToParts.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatTime: formatTime.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatDateTimeRange: formatDateTimeRange.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatTimeToParts: formatTimeToParts.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatPlural: formatPlural.bind(null, resolvedConfig, formatters.getPluralRules), formatMessage: formatMessage.bind(null, resolvedConfig, formatters), formatList: formatList.bind(null, resolvedConfig, formatters.getListFormat), formatListToParts: formatListToParts.bind(null, resolvedConfig, formatters.getListFormat), formatDisplayName: formatDisplayName.bind(null, resolvedConfig, formatters.getDisplayNames) });
|
|
2808
|
+
return __assign(__assign({}, resolvedConfig), { formatters: formatters, formatNumber: formatNumber.bind(null, resolvedConfig, formatters.getNumberFormat), formatNumberToParts: formatNumberToParts.bind(null, resolvedConfig, formatters.getNumberFormat), formatRelativeTime: formatRelativeTime.bind(null, resolvedConfig, formatters.getRelativeTimeFormat), formatDate: formatDate.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatDateToParts: formatDateToParts.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatTime: formatTime.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatDateTimeRange: formatDateTimeRange.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatTimeToParts: formatTimeToParts.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatPlural: formatPlural.bind(null, resolvedConfig, formatters.getPluralRules), formatMessage: formatMessage.bind(null, resolvedConfig, formatters), $t: formatMessage.bind(null, resolvedConfig, formatters), formatList: formatList.bind(null, resolvedConfig, formatters.getListFormat), formatListToParts: formatListToParts.bind(null, resolvedConfig, formatters.getListFormat), formatDisplayName: formatDisplayName.bind(null, resolvedConfig, formatters.getDisplayNames) });
|
|
2809
2809
|
}
|
|
2810
2810
|
|
|
2811
2811
|
// bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/utils.js
|