@common.js/icu-minify 4.13.1 → 4.13.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/README.md +1 -1
- package/dist/esm/development/format.js +4 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
|
|
3
3
|
The [icu-minify](https://www.npmjs.com/package/icu-minify) package exported as CommonJS modules.
|
|
4
4
|
|
|
5
|
-
Exported from [icu-minify@4.13.
|
|
5
|
+
Exported from [icu-minify@4.13.2](https://www.npmjs.com/package/icu-minify/v/4.13.2) using https://github.com/etienne-martin/common.js.
|
|
@@ -208,7 +208,8 @@ function formatSelect(name, options, locale, values, formatOptions, pluralCtx) {
|
|
|
208
208
|
var value = String(getValue(values, name));
|
|
209
209
|
var _value;
|
|
210
210
|
var branch = (_value = options[value]) !== null && _value !== void 0 ? _value : options.other;
|
|
211
|
-
|
|
211
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
212
|
+
if (branch === undefined) {
|
|
212
213
|
throw new Error('No matching branch for select "'.concat(name, '" with value "').concat(value, '"'));
|
|
213
214
|
}
|
|
214
215
|
return formatBranch(branch, locale, values, formatOptions, pluralCtx);
|
|
@@ -231,7 +232,8 @@ function formatPlural(name, options, locale, values, formatOptions, pluralType)
|
|
|
231
232
|
}).select(value);
|
|
232
233
|
var _category;
|
|
233
234
|
var branch = (_category = options[category]) !== null && _category !== void 0 ? _category : options.other;
|
|
234
|
-
|
|
235
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
236
|
+
if (branch === undefined) {
|
|
235
237
|
throw new Error('No matching branch for plural "'.concat(name, '" with category "').concat(category, '"'));
|
|
236
238
|
}
|
|
237
239
|
return formatBranch(branch, locale, values, formatOptions, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@common.js/icu-minify",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.2",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"funding": [
|
|
6
6
|
{
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@common.js/formatjs__icu-messageformat-parser": "^3.4.0"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "d14dd6f3600e7e7078c71bd8f2d17a60a9b09a12"
|
|
34
34
|
}
|