@formatjs/utils 1.2.0 → 1.2.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formatjs/utils",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Collection of useful intl utilities",
5
5
  "main": "index.js",
6
6
  "module": "lib/index.js",
@@ -21,6 +21,6 @@
21
21
  },
22
22
  "homepage": "https://github.com/formatjs/formatjs#readme",
23
23
  "dependencies": {
24
- "tslib": "^2.4.0"
24
+ "tslib": "^2.7.0"
25
25
  }
26
26
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.canonicalizeCountryCode = void 0;
3
+ exports.canonicalizeCountryCode = canonicalizeCountryCode;
4
4
  var tslib_1 = require("tslib");
5
5
  var alpha3CountryCodes = tslib_1.__importStar(require("./iso3166Alpha3CountryCodes.json"));
6
6
  var COUNTRY_CODE_ALPHA2 = new Set(Object.keys(alpha3CountryCodes).map(function (key) { return alpha3CountryCodes[key]; }));
@@ -20,4 +20,3 @@ function canonicalizeCountryCode(alpha3OrAlpha2) {
20
20
  }
21
21
  return alpha3CountryCodes[upper];
22
22
  }
23
- exports.canonicalizeCountryCode = canonicalizeCountryCode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.defaultCurrency = void 0;
3
+ exports.defaultCurrency = defaultCurrency;
4
4
  var tslib_1 = require("tslib");
5
5
  var countryCodes_1 = require("./countryCodes");
6
6
  var data = tslib_1.__importStar(require("./defaultCurrencyData.generated.json"));
@@ -13,4 +13,3 @@ function defaultCurrency(countryCode) {
13
13
  countryCode = (0, countryCodes_1.canonicalizeCountryCode)(countryCode);
14
14
  return ((countryCode && countryCode in data && data[countryCode]) || 'USD');
15
15
  }
16
- exports.defaultCurrency = defaultCurrency;