@formatjs/intl-locale 4.0.1 → 4.0.2

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.
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getWeekDataForRegion = exports.getTimeZonePreferenceForRegion = exports.getHourCyclesPreferenceDataForLocaleOrRegion = exports.getCalendarPreferenceDataForRegion = void 0;
3
+ exports.getCalendarPreferenceDataForRegion = getCalendarPreferenceDataForRegion;
4
+ exports.getHourCyclesPreferenceDataForLocaleOrRegion = getHourCyclesPreferenceDataForLocaleOrRegion;
5
+ exports.getTimeZonePreferenceForRegion = getTimeZonePreferenceForRegion;
6
+ exports.getWeekDataForRegion = getWeekDataForRegion;
4
7
  var tslib_1 = require("tslib");
5
8
  var timezones_generated_1 = require("./timezones.generated");
6
9
  var hour_cycles_generated_1 = require("./hour-cycles.generated");
@@ -27,7 +30,6 @@ function getCalendarPreferenceDataForRegion(region) {
27
30
  return c;
28
31
  });
29
32
  }
30
- exports.getCalendarPreferenceDataForRegion = getCalendarPreferenceDataForRegion;
31
33
  function getHourCyclesPreferenceDataForLocaleOrRegion(locale, region) {
32
34
  var _locale = locale.toLowerCase();
33
35
  var _region = (region ? region.toUpperCase() : '');
@@ -37,7 +39,6 @@ function getHourCyclesPreferenceDataForLocaleOrRegion(locale, region) {
37
39
  hour_cycles_generated_1.hourCycles['001'];
38
40
  return tslib_1.__spreadArray([], hourCyclesPreference, true);
39
41
  }
40
- exports.getHourCyclesPreferenceDataForLocaleOrRegion = getHourCyclesPreferenceDataForLocaleOrRegion;
41
42
  function getTimeZonePreferenceForRegion(region) {
42
43
  var territory = region.toLowerCase();
43
44
  if (timezones_generated_1.timezones[territory]) {
@@ -45,9 +46,7 @@ function getTimeZonePreferenceForRegion(region) {
45
46
  }
46
47
  return [];
47
48
  }
48
- exports.getTimeZonePreferenceForRegion = getTimeZonePreferenceForRegion;
49
49
  function getWeekDataForRegion(region) {
50
50
  var _region = (region ? region.toUpperCase() : '');
51
51
  return week_data_generated_1.weekData[_region || '001'] || week_data_generated_1.weekData['001'];
52
52
  }
53
- exports.getWeekDataForRegion = getWeekDataForRegion;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.shouldPolyfill = void 0;
3
+ exports.shouldPolyfill = shouldPolyfill;
4
4
  /**
5
5
  * https://bugs.chromium.org/p/v8/issues/detail?id=10682
6
6
  */
@@ -15,4 +15,3 @@ function hasIntlGetCanonicalLocalesBug() {
15
15
  function shouldPolyfill() {
16
16
  return !('Locale' in Intl) || hasIntlGetCanonicalLocalesBug();
17
17
  }
18
- exports.shouldPolyfill = shouldPolyfill;