@formatjs/intl-numberformat 4.2.6 → 4.2.10

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.
@@ -484,7 +484,7 @@
484
484
  var keyLocaleData = foundLocaleData[key];
485
485
  invariant(Array.isArray(keyLocaleData), "keyLocaleData for " + key + " must be an array");
486
486
  var value = keyLocaleData[0];
487
- invariant(typeof value === 'string' || value === null, 'value must be string or null');
487
+ invariant(typeof value === 'string' || value === null, "value must be string or null but got " + typeof value + " in key " + key);
488
488
  var supportedExtensionAddition = '';
489
489
  if (r.extension) {
490
490
  var requestedValue = unicodeExtensionValue(r.extension, key);
@@ -2151,7 +2151,7 @@
2151
2151
  configurable: true,
2152
2152
  enumerable: false,
2153
2153
  writable: false,
2154
- value: 'Object',
2154
+ value: 'Intl.NumberFormat',
2155
2155
  });
2156
2156
  }
2157
2157
  // https://github.com/tc39/test262/blob/master/test/intl402/NumberFormat/length.js