New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

intl-pluralrules

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

intl-pluralrules - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

19

package.json
{
"name": "intl-pluralrules",
"version": "1.2.1",
"version": "1.2.2",
"description": "Intl.PluralRules polyfill",

@@ -41,2 +41,5 @@ "keywords": [

},
"react-native": {
"./factory": "./factory.js"
},
"jest": {

@@ -62,12 +65,12 @@ "collectCoverage": true,

"devDependencies": {
"@babel/core": "^7.11.1",
"@babel/core": "^7.11.4",
"@babel/preset-env": "^7.11.0",
"@rollup/plugin-commonjs": "^11.1.0",
"@rollup/plugin-node-resolve": "^7.1.3",
"babel-jest": "^26.2.2",
"jest": "^26.2.2",
"@rollup/plugin-commonjs": "^15.0.0",
"@rollup/plugin-node-resolve": "^9.0.0",
"babel-jest": "^26.3.0",
"jest": "^26.4.2",
"make-plural": "^6.2.2",
"rollup": "^2.23.1",
"rollup": "^2.26.5",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-terser": "^6.1.0"
"rollup-plugin-terser": "^7.0.0"
},

@@ -74,0 +77,0 @@ "scripts": {

'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var getPluralRules = require('./factory');
var PseudoNumberFormat = require('./pseudo-number-format');
var getPluralRules = _interopDefault(require('./factory'));
var PseudoNumberFormat = _interopDefault(require('./pseudo-number-format'));
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var getPluralRules__default = /*#__PURE__*/_interopDefaultLegacy(getPluralRules);
var PseudoNumberFormat__default = /*#__PURE__*/_interopDefaultLegacy(PseudoNumberFormat);
function _typeof(obj) {

@@ -26,10 +29,20 @@ "@babel/helpers - typeof";

function unwrapExports (x) {
function getDefaultExportFromCjs (x) {
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
}
function createCommonjsModule(fn, module) {
return module = { exports: {} }, fn(module, module.exports), module.exports;
function createCommonjsModule(fn, basedir, module) {
return module = {
path: basedir,
exports: {},
require: function (path, base) {
return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
}
}, fn(module, module.exports), module.exports;
}
function commonjsRequire () {
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
}
var plurals = createCommonjsModule(function (module, exports) {

@@ -899,9 +912,7 @@ function a(n, ord) {

var plurals$1 = unwrapExports(plurals);
var plurals$1 = /*@__PURE__*/getDefaultExportFromCjs(plurals);
var P = /*#__PURE__*/Object.freeze({
__proto__: null,
'default': plurals$1,
__moduleExports: plurals
});
var P = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.assign(/*#__PURE__*/Object.create(null), plurals, {
'default': plurals$1
}));

@@ -1136,9 +1147,7 @@ var pluralCategories = createCommonjsModule(function (module, exports) {

var pluralCategories$1 = unwrapExports(pluralCategories);
var pluralCategories$1 = /*@__PURE__*/getDefaultExportFromCjs(pluralCategories);
var C = /*#__PURE__*/Object.freeze({
__proto__: null,
'default': pluralCategories$1,
__moduleExports: pluralCategories
});
var C = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.assign(/*#__PURE__*/Object.create(null), pluralCategories, {
'default': pluralCategories$1
}));

@@ -1152,3 +1161,3 @@ // using them here because with this many small functions, bundlers produce less

var NumberFormat = (typeof Intl === "undefined" ? "undefined" : _typeof(Intl)) === 'object' && Intl.NumberFormat || PseudoNumberFormat; // make-plural exports are cast with safe-identifier to be valid JS identifiers
var NumberFormat = (typeof Intl === "undefined" ? "undefined" : _typeof(Intl)) === 'object' && Intl.NumberFormat || PseudoNumberFormat__default['default']; // make-plural exports are cast with safe-identifier to be valid JS identifiers

@@ -1167,4 +1176,4 @@ var id = function id(lc) {

var PluralRules = getPluralRules(NumberFormat, getSelector, getCategories);
var PluralRules = getPluralRules__default['default'](NumberFormat, getSelector, getCategories);
module.exports = PluralRules;
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var PluralRules = require('./plural-rules');
var PluralRules = _interopDefault(require('./plural-rules'));
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var PluralRules__default = /*#__PURE__*/_interopDefaultLegacy(PluralRules);
if (typeof Intl === 'undefined') {
if (typeof global !== 'undefined') {
global.Intl = {
PluralRules: PluralRules
PluralRules: PluralRules__default['default']
};
} else if (typeof window !== 'undefined') {
window.Intl = {
PluralRules: PluralRules
PluralRules: PluralRules__default['default']
};
} else {
this.Intl = {
PluralRules: PluralRules
PluralRules: PluralRules__default['default']
};
}
PluralRules.polyfill = true;
PluralRules__default['default'].polyfill = true;
} else if (!Intl.PluralRules) {
Intl.PluralRules = PluralRules;
PluralRules.polyfill = true;
Intl.PluralRules = PluralRules__default['default'];
PluralRules__default['default'].polyfill = true;
} else {

@@ -31,5 +33,5 @@ var test = ['en', 'es', 'ru', 'zh'];

if (supported.length < test.length) {
Intl.PluralRules = PluralRules;
PluralRules.polyfill = true;
Intl.PluralRules = PluralRules__default['default'];
PluralRules__default['default'].polyfill = true;
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc