Socket
Socket
Sign inDemoInstall

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 6.0.0-beta.3 to 6.0.0

36

cardinals.js

@@ -41,2 +41,4 @@ function a(n) {

an: a,
ar: function ar(n) {

@@ -86,3 +88,3 @@ var s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);

bh: b,
bho: b,

@@ -122,2 +124,8 @@ bm: e,

ceb: function ceb(n) {
var s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i10 = i.slice(-1), f10 = f.slice(-1);
return (v0 && (i == 1 || i == 2 || i == 3) || v0 && i10 != 4 && i10 != 6 && i10 != 9
|| !v0 && f10 != 4 && f10 != 6 && f10 != 9) ? 'one' : 'other';
},
cgg: a,

@@ -368,3 +376,17 @@

kw: f,
kw: function kw(n) {
var s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2), n1000 = t0 && s[0].slice(-3),
n100000 = t0 && s[0].slice(-5), n1000000 = t0 && s[0].slice(-6);
return (n == 0) ? 'zero'
: (n == 1) ? 'one'
: ((n100 == 2 || n100 == 22 || n100 == 42 || n100 == 62 || n100 == 82)
|| t0 && n1000 == 0 && ((n100000 >= 1000 && n100000 <= 20000) || n100000 == 40000 || n100000 == 60000
|| n100000 == 80000)
|| n != 0 && n1000000 == 100000) ? 'two'
: ((n100 == 3 || n100 == 23 || n100 == 43 || n100 == 63
|| n100 == 83)) ? 'few'
: (n != 1 && (n100 == 1 || n100 == 21 || n100 == 41 || n100 == 61
|| n100 == 81)) ? 'many'
: 'other';
},

@@ -433,7 +455,7 @@ ky: a,

: (!v0 || n == 0
|| n != 1 && (n100 >= 1 && n100 <= 19)) ? 'few'
|| (n100 >= 2 && n100 <= 19)) ? 'few'
: 'other';
},
mr: c,
mr: a,

@@ -487,2 +509,4 @@ ms: e,

osa: e,
pa: b,

@@ -528,3 +552,3 @@

: (!v0 || n == 0
|| n != 1 && (n100 >= 1 && n100 <= 19)) ? 'few'
|| (n100 >= 2 && n100 <= 19)) ? 'few'
: 'other';

@@ -641,2 +665,4 @@ },

su: e,
sv: d,

@@ -643,0 +669,0 @@

@@ -6,2 +6,13 @@ # Change Log

# [6.0.0](https://github.com/eemeli/make-plural/compare/make-plural@6.0.0-beta.3...make-plural@6.0.0) (2019-10-17)
### Features
* Update cldr-core from 34 to 36 ([a9d2547](https://github.com/eemeli/make-plural/commit/a9d25474efde9b415dd5e4e63b825bcad06f7b07))
# [6.0.0-beta.3](https://github.com/eemeli/make-plural/compare/make-plural@6.0.0-beta.2...make-plural@6.0.0-beta.3) (2019-09-04)

@@ -8,0 +19,0 @@

@@ -23,2 +23,4 @@ function a(n) {

an: a,
ar: a,

@@ -206,2 +208,12 @@

kw: function kw(n) {
var s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
return ((t0 && n >= 1 && n <= 4) || ((n100 >= 1 && n100 <= 4) || (n100 >= 21 && n100 <= 24)
|| (n100 >= 41 && n100 <= 44) || (n100 >= 61 && n100 <= 64)
|| (n100 >= 81 && n100 <= 84))) ? 'one'
: (n == 5
|| n100 == 5) ? 'many'
: 'other';
},
ky: a,

@@ -208,0 +220,0 @@

4

package.json
{
"name": "make-plural",
"version": "6.0.0-beta.3",
"version": "6.0.0",
"description": "Unicode CLDR pluralization rules as JavaScript functions",

@@ -45,3 +45,3 @@ "keywords": [

},
"gitHead": "1d91669eb5496483ab4f6255feb2136050e3d824"
"gitHead": "6a9533a71067249aae9e8407e21bca18ae5eda31"
}

@@ -21,2 +21,3 @@ var z = "zero", o = "one", t = "two", f = "few", m = "many", x = "other";

am: a,
an: a,
ar: {cardinal:[z,o,t,f,m,x],ordinal:[x]},

@@ -32,3 +33,3 @@ ars: {cardinal:[z,o,t,f,m,x],ordinal:[x]},

bg: a,
bh: a,
bho: a,
bm: b,

@@ -42,2 +43,3 @@ bn: {cardinal:[o,x],ordinal:[o,t,f,m,x]},

ce: a,
ceb: a,
cgg: a,

@@ -115,3 +117,3 @@ chr: a,

ku: a,
kw: e,
kw: {cardinal:[z,o,t,f,m,x],ordinal:[o,m,x]},
ky: a,

@@ -154,2 +156,3 @@ lag: {cardinal:[z,o,x],ordinal:[x]},

os: a,
osa: b,
pa: a,

@@ -195,2 +198,3 @@ pap: a,

st: a,
su: b,
sv: d,

@@ -197,0 +201,0 @@ sw: a,

@@ -46,2 +46,4 @@ function a(n, ord) {

an: a,
ar: function ar(n, ord) {

@@ -116,3 +118,3 @@ var s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);

bh: b,
bho: b,

@@ -171,2 +173,9 @@ bm: d,

ceb: function ceb(n, ord) {
var s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i10 = i.slice(-1), f10 = f.slice(-1);
if (ord) return 'other';
return (v0 && (i == 1 || i == 2 || i == 3) || v0 && i10 != 4 && i10 != 6 && i10 != 9
|| !v0 && f10 != 4 && f10 != 6 && f10 != 9) ? 'one' : 'other';
},
cgg: a,

@@ -500,3 +509,23 @@

kw: e,
kw: function kw(n, ord) {
var s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2), n1000 = t0 && s[0].slice(-3),
n100000 = t0 && s[0].slice(-5), n1000000 = t0 && s[0].slice(-6);
if (ord) return ((t0 && n >= 1 && n <= 4) || ((n100 >= 1 && n100 <= 4) || (n100 >= 21 && n100 <= 24)
|| (n100 >= 41 && n100 <= 44) || (n100 >= 61 && n100 <= 64)
|| (n100 >= 81 && n100 <= 84))) ? 'one'
: (n == 5
|| n100 == 5) ? 'many'
: 'other';
return (n == 0) ? 'zero'
: (n == 1) ? 'one'
: ((n100 == 2 || n100 == 22 || n100 == 42 || n100 == 62 || n100 == 82)
|| t0 && n1000 == 0 && ((n100000 >= 1000 && n100000 <= 20000) || n100000 == 40000 || n100000 == 60000
|| n100000 == 80000)
|| n != 0 && n1000000 == 100000) ? 'two'
: ((n100 == 3 || n100 == 23 || n100 == 43 || n100 == 63
|| n100 == 83)) ? 'few'
: (n != 1 && (n100 == 1 || n100 == 21 || n100 == 41 || n100 == 61
|| n100 == 81)) ? 'many'
: 'other';
},

@@ -577,3 +606,3 @@ ky: a,

: (!v0 || n == 0
|| n != 1 && (n100 >= 1 && n100 <= 19)) ? 'few'
|| (n100 >= 2 && n100 <= 19)) ? 'few'
: 'other';

@@ -588,3 +617,3 @@ },

: 'other';
return (n >= 0 && n <= 1) ? 'one' : 'other';
return (n == 1) ? 'one' : 'other';
},

@@ -657,2 +686,4 @@

osa: d,
pa: b,

@@ -702,3 +733,3 @@

: (!v0 || n == 0
|| n != 1 && (n100 >= 1 && n100 <= 19)) ? 'few'
|| (n100 >= 2 && n100 <= 19)) ? 'few'
: 'other';

@@ -838,2 +869,4 @@ },

su: d,
sv: function sv(n, ord) {

@@ -840,0 +873,0 @@ var s = String(n).split('.'), v0 = !s[1], t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1),

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

Sorry, the diff of this file is not supported yet

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