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