intl-messageformat 9.11.4 → 9.12.0

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.
@@ -1449,7 +1449,7 @@ function formatToParts(els, locales, formatters, formats, values, currentPluralV
1449
1449
  continue;
1450
1450
  }
1451
1451
  if (isTimeElement(el)) {
1452
- const style = typeof el.style === "string" ? formats.time[el.style] : isDateTimeSkeleton(el.style) ? el.style.parsedOptions : void 0;
1452
+ const style = typeof el.style === "string" ? formats.time[el.style] : isDateTimeSkeleton(el.style) ? el.style.parsedOptions : formats.time.medium;
1453
1453
  result.push({
1454
1454
  type: PART_TYPE.literal,
1455
1455
  value: formatters.getDateTimeFormat(locales, style).format(value)
@@ -1544,7 +1544,7 @@ var IntlMessageFormat = (function() {
1544
1544
  continue;
1545
1545
  }
1546
1546
  if (isTimeElement(el)) {
1547
- var style = typeof el.style === "string" ? formats.time[el.style] : isDateTimeSkeleton(el.style) ? el.style.parsedOptions : void 0;
1547
+ var style = typeof el.style === "string" ? formats.time[el.style] : isDateTimeSkeleton(el.style) ? el.style.parsedOptions : formats.time.medium;
1548
1548
  result.push({
1549
1549
  type: PART_TYPE.literal,
1550
1550
  value: formatters.getDateTimeFormat(locales, style).format(value)
@@ -101,7 +101,7 @@ originalMessage) {
101
101
  ? formats.time[el.style]
102
102
  : isDateTimeSkeleton(el.style)
103
103
  ? el.style.parsedOptions
104
- : undefined;
104
+ : formats.time.medium;
105
105
  result.push({
106
106
  type: PART_TYPE.literal,
107
107
  value: formatters
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intl-messageformat",
3
- "version": "9.11.4",
3
+ "version": "9.12.0",
4
4
  "description": "Formats ICU Message strings with number, date, plural, and select placeholders to create localized messages.",
5
5
  "keywords": [
6
6
  "i18n",
@@ -31,9 +31,9 @@
31
31
  "module": "lib/index.js",
32
32
  "types": "index.d.ts",
33
33
  "dependencies": {
34
- "@formatjs/ecma402-abstract": "1.11.3",
34
+ "@formatjs/ecma402-abstract": "1.11.4",
35
35
  "@formatjs/fast-memoize": "1.2.1",
36
- "@formatjs/icu-messageformat-parser": "2.0.18",
36
+ "@formatjs/icu-messageformat-parser": "2.0.19",
37
37
  "tslib": "^2.1.0"
38
38
  },
39
39
  "sideEffects": false,
package/src/formatters.js CHANGED
@@ -105,7 +105,7 @@ originalMessage) {
105
105
  ? formats.time[el.style]
106
106
  : (0, icu_messageformat_parser_1.isDateTimeSkeleton)(el.style)
107
107
  ? el.style.parsedOptions
108
- : undefined;
108
+ : formats.time.medium;
109
109
  result.push({
110
110
  type: PART_TYPE.literal,
111
111
  value: formatters