@formatjs/intl-listformat 2.2.3 → 2.2.8

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.
@@ -216,7 +216,7 @@
216
216
  var keyLocaleData = foundLocaleData[key];
217
217
  invariant(Array.isArray(keyLocaleData), "keyLocaleData for " + key + " must be an array");
218
218
  var value = keyLocaleData[0];
219
- invariant(typeof value === 'string' || value === null, 'value must be string or null');
219
+ invariant(typeof value === 'string' || value === null, "value must be string or null but got " + typeof value + " in key " + key);
220
220
  var supportedExtensionAddition = '';
221
221
  if (r.extension) {
222
222
  var requestedValue = unicodeExtensionValue(r.extension, key);