Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

make-plural

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

make-plural - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

17

lib/make-plural.js

@@ -18,2 +18,4 @@ /**

(function (global) {
function parse(cond, symbols) {

@@ -106,5 +108,5 @@ if (cond == 'i = 0 or n = 1') return 'n >= 0 && n <= 1';

var rules;
var rules, Plurals = {}
exports.set_rules = function(cldr) {
Plurals.set_rules = function(cldr) {
if (!cldr) cldr = require('../data/unicode-cldr-plural-rules.json');

@@ -115,3 +117,3 @@ else if (typeof cldr == 'string') cldr = require(cldr);

exports.build = function(lc, opt) {
Plurals.build = function(lc, opt) {
var fn, fn_str, lines = [], symbols = {}, tests = {};

@@ -137,1 +139,10 @@ if (!opt) opt = {};

};
if (typeof exports !== 'undefined') {
exports.set_rules = Plurals.set_rules;
exports.build = Plurals.build;
} else {
global.Plurals = Plurals;
}
})(this);

2

package.json
{
"name": "make-plural",
"version": "1.1.3",
"version": "1.1.4",
"description": "Translates Unicode CLDR pluralization rules to executable JavaScript",

@@ -5,0 +5,0 @@ "keywords": ["unicode", "cldr", "i18n", "internationalization", "pluralization"],

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