@formatjs/icu-skeleton-parser
Advanced tools
Comparing version 1.7.2 to 1.8.0
@@ -219,2 +219,23 @@ import { __assign } from "tslib"; | ||
continue; | ||
case 'rounding-mode-floor': | ||
result.roundingMode = 'floor'; | ||
continue; | ||
case 'rounding-mode-ceiling': | ||
result.roundingMode = 'ceil'; | ||
continue; | ||
case 'rounding-mode-down': | ||
result.roundingMode = 'trunc'; | ||
continue; | ||
case 'rounding-mode-up': | ||
result.roundingMode = 'expand'; | ||
continue; | ||
case 'rounding-mode-half-even': | ||
result.roundingMode = 'halfEven'; | ||
continue; | ||
case 'rounding-mode-half-down': | ||
result.roundingMode = 'halfTrunc'; | ||
continue; | ||
case 'rounding-mode-half-up': | ||
result.roundingMode = 'halfExpand'; | ||
continue; | ||
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width | ||
@@ -221,0 +242,0 @@ case 'integer-width': |
@@ -223,2 +223,23 @@ "use strict"; | ||
continue; | ||
case 'rounding-mode-floor': | ||
result.roundingMode = 'floor'; | ||
continue; | ||
case 'rounding-mode-ceiling': | ||
result.roundingMode = 'ceil'; | ||
continue; | ||
case 'rounding-mode-down': | ||
result.roundingMode = 'trunc'; | ||
continue; | ||
case 'rounding-mode-up': | ||
result.roundingMode = 'expand'; | ||
continue; | ||
case 'rounding-mode-half-even': | ||
result.roundingMode = 'halfEven'; | ||
continue; | ||
case 'rounding-mode-half-down': | ||
result.roundingMode = 'halfTrunc'; | ||
continue; | ||
case 'rounding-mode-half-up': | ||
result.roundingMode = 'halfExpand'; | ||
continue; | ||
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width | ||
@@ -225,0 +246,0 @@ case 'integer-width': |
{ | ||
"name": "@formatjs/icu-skeleton-parser", | ||
"version": "1.7.2", | ||
"version": "1.8.0", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "module": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38305
943