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