intl-messageformat 9.9.4 → 9.9.5
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.
|
@@ -1426,7 +1426,7 @@ function formatToParts(els, locales, formatters, formats, values, currentPluralV
|
|
|
1426
1426
|
continue;
|
|
1427
1427
|
}
|
|
1428
1428
|
const { value: varName } = el;
|
|
1429
|
-
if (!(values && varName
|
|
1429
|
+
if (!(values && values[varName] != null)) {
|
|
1430
1430
|
throw new MissingValueError(varName, originalMessage);
|
|
1431
1431
|
}
|
|
1432
1432
|
let value = values[varName];
|
|
@@ -1503,7 +1503,7 @@ var IntlMessageFormat = (function() {
|
|
|
1503
1503
|
continue;
|
|
1504
1504
|
}
|
|
1505
1505
|
var varName = el.value;
|
|
1506
|
-
if (!(values && varName
|
|
1506
|
+
if (!(values && values[varName] != null)) {
|
|
1507
1507
|
throw new MissingValueError(varName, originalMessage);
|
|
1508
1508
|
}
|
|
1509
1509
|
var value = values[varName];
|
package/lib/src/formatters.js
CHANGED
|
@@ -62,7 +62,7 @@ originalMessage) {
|
|
|
62
62
|
}
|
|
63
63
|
var varName = el.value;
|
|
64
64
|
// Enforce that all required values are provided by the caller.
|
|
65
|
-
if (!(values && varName
|
|
65
|
+
if (!(values && values[varName] != null)) {
|
|
66
66
|
throw new MissingValueError(varName, originalMessage);
|
|
67
67
|
}
|
|
68
68
|
var value = values[varName];
|
package/package.json
CHANGED
package/src/formatters.js
CHANGED
|
@@ -66,7 +66,7 @@ originalMessage) {
|
|
|
66
66
|
}
|
|
67
67
|
var varName = el.value;
|
|
68
68
|
// Enforce that all required values are provided by the caller.
|
|
69
|
-
if (!(values && varName
|
|
69
|
+
if (!(values && values[varName] != null)) {
|
|
70
70
|
throw new error_1.MissingValueError(varName, originalMessage);
|
|
71
71
|
}
|
|
72
72
|
var value = values[varName];
|