intl-pluralrules
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -14,3 +14,3 @@ "use strict"; | ||
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
@@ -58,3 +58,6 @@ // does not check for duplicate subtags | ||
var defaultLocale = function defaultLocale() { | ||
return typeof navigator !== 'undefined' && navigator && (navigator.userLanguage || navigator.language) || 'en-US'; | ||
return ( | ||
/* istanbul ignore next */ | ||
typeof navigator !== 'undefined' && navigator && (navigator.userLanguage || navigator.language) || 'en-US' | ||
); | ||
}; | ||
@@ -89,5 +92,3 @@ | ||
var PluralRules = | ||
/*#__PURE__*/ | ||
function () { | ||
var PluralRules = /*#__PURE__*/function () { | ||
_createClass(PluralRules, null, [{ | ||
@@ -94,0 +95,0 @@ key: "supportedLocalesOf", |
{ | ||
"name": "intl-pluralrules", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Intl.PluralRules polyfill", | ||
@@ -24,2 +24,3 @@ "keywords": [ | ||
"jest": { | ||
"collectCoverage": true, | ||
"moduleFileExtensions": [ | ||
@@ -43,10 +44,10 @@ "mjs", | ||
"dependencies": { | ||
"make-plural": "^6.0.1" | ||
"make-plural": "^6.1.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.4.4", | ||
"@babel/core": "^7.4.5", | ||
"@babel/preset-env": "^7.4.5", | ||
"babel-jest": "^24.9.0", | ||
"jest": "^24.9.0" | ||
"@babel/cli": "^7.8.4", | ||
"@babel/core": "^7.8.7", | ||
"@babel/preset-env": "^7.8.7", | ||
"babel-jest": "^25.1.0", | ||
"jest": "^25.1.0" | ||
}, | ||
@@ -57,2 +58,3 @@ "scripts": { | ||
"build": "npm run build:mjs && npm run build:cjs", | ||
"clean": "git clean -fdxe node_modules -e examples/node_modules", | ||
"prepublishOnly": "npm test && npm run build", | ||
@@ -59,0 +61,0 @@ "test": "jest" |
@@ -8,5 +8,5 @@ "use strict"; | ||
var Plurals = _interopRequireDefault(require("make-plural/plurals")); | ||
var P = _interopRequireDefault(require("make-plural/plurals.js")); | ||
var Categories = _interopRequireDefault(require("make-plural/pluralCategories")); | ||
var C = _interopRequireDefault(require("make-plural/pluralCategories.js")); | ||
@@ -19,4 +19,11 @@ var _factory = _interopRequireDefault(require("./factory")); | ||
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
// In a .mjs context, CommonJS imports only expose the default endpoint. We're | ||
// using them here because with this many small functions, Webpack produces less | ||
// cruft than for ES module exports. | ||
var Plurals = P.default || P; | ||
var Categories = C.default || C; | ||
/* istanbul ignore next */ | ||
var NumberFormat = (typeof Intl === "undefined" ? "undefined" : _typeof(Intl)) === 'object' && Intl.NumberFormat || _pseudoNumberFormat.default; // make-plural exports are cast with safe-identifier to be valid JS identifiers | ||
@@ -23,0 +30,0 @@ |
@@ -14,5 +14,3 @@ "use strict"; | ||
var PseudoNumberFormat = | ||
/*#__PURE__*/ | ||
function () { | ||
var PseudoNumberFormat = /*#__PURE__*/function () { | ||
function PseudoNumberFormat(lc, // locale is ignored; always use 'en' | ||
@@ -19,0 +17,0 @@ _ref) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
26933
454
Updatedmake-plural@^6.1.0