intl-messageformat 10.5.10 → 10.5.12
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/intl-messageformat.esm.js +21 -0
- package/intl-messageformat.iife.js +21 -0
- package/package.json +5 -5
|
@@ -413,6 +413,27 @@ function parseNumberSkeleton(tokens) {
|
|
|
413
413
|
case "scale":
|
|
414
414
|
result.scale = parseFloat(token.options[0]);
|
|
415
415
|
continue;
|
|
416
|
+
case "rounding-mode-floor":
|
|
417
|
+
result.roundingMode = "floor";
|
|
418
|
+
continue;
|
|
419
|
+
case "rounding-mode-ceiling":
|
|
420
|
+
result.roundingMode = "ceil";
|
|
421
|
+
continue;
|
|
422
|
+
case "rounding-mode-down":
|
|
423
|
+
result.roundingMode = "trunc";
|
|
424
|
+
continue;
|
|
425
|
+
case "rounding-mode-up":
|
|
426
|
+
result.roundingMode = "expand";
|
|
427
|
+
continue;
|
|
428
|
+
case "rounding-mode-half-even":
|
|
429
|
+
result.roundingMode = "halfEven";
|
|
430
|
+
continue;
|
|
431
|
+
case "rounding-mode-half-down":
|
|
432
|
+
result.roundingMode = "halfTrunc";
|
|
433
|
+
continue;
|
|
434
|
+
case "rounding-mode-half-up":
|
|
435
|
+
result.roundingMode = "halfExpand";
|
|
436
|
+
continue;
|
|
416
437
|
case "integer-width":
|
|
417
438
|
if (token.options.length > 1) {
|
|
418
439
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
@@ -482,6 +482,27 @@ var IntlMessageFormat = (() => {
|
|
|
482
482
|
case "scale":
|
|
483
483
|
result.scale = parseFloat(token.options[0]);
|
|
484
484
|
continue;
|
|
485
|
+
case "rounding-mode-floor":
|
|
486
|
+
result.roundingMode = "floor";
|
|
487
|
+
continue;
|
|
488
|
+
case "rounding-mode-ceiling":
|
|
489
|
+
result.roundingMode = "ceil";
|
|
490
|
+
continue;
|
|
491
|
+
case "rounding-mode-down":
|
|
492
|
+
result.roundingMode = "trunc";
|
|
493
|
+
continue;
|
|
494
|
+
case "rounding-mode-up":
|
|
495
|
+
result.roundingMode = "expand";
|
|
496
|
+
continue;
|
|
497
|
+
case "rounding-mode-half-even":
|
|
498
|
+
result.roundingMode = "halfEven";
|
|
499
|
+
continue;
|
|
500
|
+
case "rounding-mode-half-down":
|
|
501
|
+
result.roundingMode = "halfTrunc";
|
|
502
|
+
continue;
|
|
503
|
+
case "rounding-mode-half-up":
|
|
504
|
+
result.roundingMode = "halfExpand";
|
|
505
|
+
continue;
|
|
485
506
|
case "integer-width":
|
|
486
507
|
if (token.options.length > 1) {
|
|
487
508
|
throw new RangeError("integer-width stems only accept a single optional option");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "intl-messageformat",
|
|
3
|
-
"version": "10.5.
|
|
3
|
+
"version": "10.5.12",
|
|
4
4
|
"description": "Formats ICU Message strings with number, date, plural, and select placeholders to create localized messages.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"i18n",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"Anthony Pipkin <a.pipkin@yahoo.com>",
|
|
19
19
|
"Caridy Patino <caridy@gmail.com>",
|
|
20
20
|
"Drew Folta <drew@folta.net>",
|
|
21
|
-
"Long Ho <holevietlong@gmail.com"
|
|
21
|
+
"Long Ho <holevietlong@gmail.com>"
|
|
22
22
|
],
|
|
23
23
|
"bugs": {
|
|
24
24
|
"url": "https://github.com/formatjs/formatjs/issues"
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"types": "index.d.ts",
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"tslib": "^2.4.0",
|
|
35
|
-
"@formatjs/
|
|
36
|
-
"@formatjs/icu-messageformat-parser": "2.7.
|
|
37
|
-
"@formatjs/
|
|
35
|
+
"@formatjs/fast-memoize": "2.2.0",
|
|
36
|
+
"@formatjs/icu-messageformat-parser": "2.7.6",
|
|
37
|
+
"@formatjs/ecma402-abstract": "1.18.2"
|
|
38
38
|
},
|
|
39
39
|
"sideEffects": false,
|
|
40
40
|
"homepage": "https://github.com/formatjs/formatjs",
|