@formatjs/intl-relativetimeformat 4.5.10 → 4.5.11

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.
@@ -124,7 +124,10 @@
124
124
  if (typeof getCanonicalLocales === 'function') {
125
125
  return getCanonicalLocales(locales);
126
126
  }
127
- return Intl.NumberFormat.supportedLocalesOf(locales || '');
127
+ // NOTE: we must NOT call `supportedLocalesOf` of a formatjs polyfill, or their implementation
128
+ // will even eventually call this method recursively. Here we use `Intl.DateTimeFormat` since it
129
+ // is not polyfilled by `@formatjs`.
130
+ return Intl.DateTimeFormat.supportedLocalesOf(locales || '');
128
131
  }
129
132
 
130
133
  var __extends = (undefined && undefined.__extends) || (function () {