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

@phensley/plurals

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@phensley/plurals - npm Package Compare versions

Comparing version 1.5.2 to 1.6.0

2

lib-es/autogen.ranges.js

@@ -129,3 +129,3 @@ //

gu: { 66: 1, 96: 5, 1056: 5 },
he: { 68: 5, 80: 4, 96: 5, 144: 5, 160: 5, 528: 4, 544: 4, 1026: 5, 1028: 5, 1040: 4, 1056: 5 },
he: 5,
hi: { 66: 1, 96: 5, 1056: 5 },

@@ -132,0 +132,0 @@ hr: { 66: 1, 72: 3, 96: 5, 258: 1, 264: 3, 288: 5, 1026: 1, 1032: 3, 1056: 5 },

@@ -63,3 +63,6 @@ //

],
ca: [[1, [[7, 8]]]],
ca: [
[1, [[7, 8]]],
[4, [[31, 32, 33, 8], [34]]]
],
ce: [[1, [[0]]]],

@@ -70,5 +73,5 @@ ceb: [

[
[8, 31],
[8, 32],
[33, 34]
[8, 35],
[8, 36],
[37, 38]
]

@@ -82,4 +85,4 @@ ]

[1, [[7, 8]]],
[3, [[35, 8]]],
[4, [[33]]]
[3, [[39, 8]]],
[4, [[37]]]
],

@@ -90,12 +93,12 @@ cy: [

[2, [[4]]],
[3, [[36]]],
[4, [[37]]]
[3, [[40]]],
[4, [[41]]]
],
da: [[1, [[0], [38, 39]]]],
da: [[1, [[0], [42, 43]]]],
de: [[1, [[7, 8]]]],
doi: [[1, [[2], [0]]]],
dsb: [
[1, [[8, 40], [41]]],
[2, [[8, 42], [43]]],
[3, [[8, 44], [45]]]
[1, [[8, 44], [45]]],
[2, [[8, 46], [47]]],
[3, [[8, 48], [49]]]
],

@@ -110,3 +113,3 @@ dv: [[1, [[0]]]],

[1, [[0]]],
[4, [[46, 47, 48, 8], [49]]]
[4, [[31, 32, 33, 8], [34]]]
],

@@ -116,3 +119,3 @@ et: [[1, [[7, 8]]]],

fa: [[1, [[2], [0]]]],
ff: [[1, [[39]]]],
ff: [[1, [[43]]]],
fi: [[1, [[7, 8]]]],

@@ -123,5 +126,5 @@ fil: [

[
[8, 31],
[8, 32],
[33, 34]
[8, 35],
[8, 36],
[37, 38]
]

@@ -132,4 +135,4 @@ ]

fr: [
[1, [[39]]],
[4, [[46, 47, 48, 8], [49]]]
[1, [[43]]],
[4, [[31, 32, 33, 8], [34]]]
],

@@ -157,3 +160,3 @@ fur: [[1, [[0]]]],

[3, [[8, 56]]],
[4, [[33]]]
[4, [[37]]]
],

@@ -163,5 +166,10 @@ ha: [[1, [[0]]]],

he: [
[1, [[7, 8]]],
[2, [[57, 8]]],
[4, [[8, 58, 13]]]
[
1,
[
[7, 8],
[2, 37]
]
],
[2, [[57, 8]]]
],

@@ -187,8 +195,8 @@ hi: [[1, [[2], [0]]]],

hsb: [
[1, [[8, 40], [41]]],
[2, [[8, 42], [43]]],
[3, [[8, 44], [45]]]
[1, [[8, 44], [45]]],
[2, [[8, 46], [47]]],
[3, [[8, 48], [49]]]
],
hu: [[1, [[0]]]],
hy: [[1, [[39]]]],
hy: [[1, [[43]]]],
ia: [[1, [[7, 8]]]],

@@ -199,6 +207,14 @@ id: [],

io: [[1, [[7, 8]]]],
is: [[1, [[59, 23, 24], [38]]]],
is: [
[
1,
[
[58, 23, 24],
[59, 60]
]
]
],
it: [
[1, [[7, 8]]],
[4, [[46, 47, 48, 8], [49]]]
[4, [[31, 32, 33, 8], [34]]]
],

@@ -216,3 +232,3 @@ iu: [

ka: [[1, [[0]]]],
kab: [[1, [[39]]]],
kab: [[1, [[43]]]],
kaj: [[1, [[0]]]],

@@ -238,5 +254,5 @@ kcg: [[1, [[0]]]],

[1, [[0]]],
[2, [[60], [61, 62], [21, 63]]],
[3, [[64]]],
[4, [[65, 66]]]
[2, [[61], [62, 63], [21, 64]]],
[3, [[65]]],
[4, [[66, 67]]]
],

@@ -246,3 +262,3 @@ ky: [[1, [[0]]]],

[0, [[3]]],
[1, [[39, 21]]]
[1, [[43, 21]]]
],

@@ -256,8 +272,8 @@ lb: [[1, [[0]]]],

lt: [
[1, [[9, 67]]],
[3, [[68, 67]]],
[4, [[69]]]
[1, [[9, 68]]],
[3, [[69, 68]]],
[4, [[70]]]
],
lv: [
[0, [[13], [70], [71, 72]]],
[0, [[13], [71], [72, 73]]],
[

@@ -267,4 +283,4 @@ 1,

[9, 10],
[71, 25, 26],
[73, 25]
[72, 25, 26],
[74, 25]
]

@@ -289,3 +305,3 @@ ]

[1, [[7, 8]]],
[3, [[33], [3], [74]]]
[3, [[37], [3], [66, 75]]]
],

@@ -296,4 +312,5 @@ mr: [[1, [[0]]]],

[1, [[0]]],
[3, [[3], [75]]],
[4, [[70]]]
[2, [[4]]],
[3, [[3], [5]]],
[4, [[71]]]
],

@@ -338,3 +355,3 @@ my: [],

prg: [
[0, [[13], [70], [71, 72]]],
[0, [[13], [71], [72, 73]]],
[

@@ -344,4 +361,4 @@ 1,

[9, 10],
[71, 25, 26],
[73, 25]
[72, 25, 26],
[74, 25]
]

@@ -353,7 +370,7 @@ ]

[1, [[80]]],
[4, [[46, 47, 48, 8], [49]]]
[4, [[31, 32, 33, 8], [34]]]
],
'pt-PT': [
[1, [[7, 8]]],
[4, [[46, 47, 48, 8], [49]]]
[4, [[31, 32, 33, 8], [34]]]
],

@@ -363,3 +380,3 @@ rm: [[1, [[0]]]],

[1, [[7, 8]]],
[3, [[33], [3], [74]]]
[3, [[37], [3], [66, 75]]]
],

@@ -420,9 +437,9 @@ rof: [[1, [[0]]]],

[1, [[7, 8]]],
[3, [[35, 8]]],
[4, [[33]]]
[3, [[39, 8]]],
[4, [[37]]]
],
sl: [
[1, [[8, 40]]],
[2, [[8, 42]]],
[3, [[8, 44], [33]]]
[1, [[8, 44]]],
[2, [[8, 46]]],
[3, [[8, 48], [37]]]
],

@@ -486,5 +503,5 @@ sma: [

[
[8, 31],
[8, 32],
[33, 34]
[8, 35],
[8, 36],
[37, 38]
]

@@ -516,2 +533,6 @@ ]

ve: [[1, [[0]]]],
vec: [
[1, [[7, 8]]],
[4, [[31, 32, 33, 8], [34]]]
],
vi: [],

@@ -540,4 +561,5 @@ vo: [[1, [[0]]]],

[3, [[89]]],
[4, [[37]]]
[4, [[41]]]
],
ast: [],
az: [

@@ -555,3 +577,3 @@ [1, [[90], [91]]],

[3, [[89]]],
[4, [[37]]]
[4, [[41]]]
],

@@ -602,3 +624,3 @@ bs: [],

[3, [[89]]],
[4, [[37]]]
[4, [[41]]]
],

@@ -610,3 +632,3 @@ he: [],

[3, [[89]]],
[4, [[37]]]
[4, [[41]]]
],

@@ -662,3 +684,3 @@ hr: [],

[3, [[89]]],
[4, [[37]]]
[4, [[41]]]
],

@@ -697,2 +719,3 @@ pa: [],

uz: [],
vec: [[4, [[107]]]],
vi: [[1, [[0]]]],

@@ -744,2 +767,6 @@ yue: [],

['f', 100, 0, [[12, 14]]],
['c', 0, 1, [0]],
['i', 0, 0, [0]],
['i', 1000000, 1, [0]],
['c', 0, 0, [[0, 5]]],
['i', 0, 1, [1, 2, 3]],

@@ -760,6 +787,2 @@ ['i', 10, 0, [4, 6, 9]],

['f', 100, 1, [[3, 4]]],
['c', 0, 1, [0]],
['i', 0, 0, [0]],
['i', 1000000, 1, [0]],
['c', 0, 0, [[0, 5]]],
['n', 0, 1, [[3, 6]]],

@@ -781,4 +804,5 @@ ['n', 0, 1, [[7, 10]]],

['i', 0, 1, [2]],
['n', 0, 0, [[0, 10]]],
['t', 0, 1, [0]],
['t', 10, 1, [1]],
['t', 100, 0, [11]],
['n', 100, 1, [2, 22, 42, 62, 82]],

@@ -798,4 +822,3 @@ ['n', 1000, 1, [0]],

['v', 0, 0, [2]],
['n', 100, 1, [[2, 19]]],
['n', 100, 1, [[2, 10]]],
['n', 100, 1, [[1, 19]]],
['i', 0, 0, [1]],

@@ -802,0 +825,0 @@ ['i', 10, 1, [[0, 1]]],

@@ -5,23 +5,23 @@ /**

export var digitCount = function (w) {
if (w < 10000 /* P4 */) {
if (w < 100 /* P2 */) {
return w < 10 /* P1 */ ? 1 : 2;
if (w < 10000 /* Constants.P4 */) {
if (w < 100 /* Constants.P2 */) {
return w < 10 /* Constants.P1 */ ? 1 : 2;
}
return w < 1000 /* P3 */ ? 3 : 4;
return w < 1000 /* Constants.P3 */ ? 3 : 4;
}
if (w < 1000000 /* P6 */) {
return w < 100000 /* P5 */ ? 5 : 6;
if (w < 1000000 /* Constants.P6 */) {
return w < 100000 /* Constants.P5 */ ? 5 : 6;
}
return w < 10000000 /* P7 */ ? 7 : 8;
return w < 10000000 /* Constants.P7 */ ? 7 : 8;
};
var POWERS10 = [
1 /* P0 */,
10 /* P1 */,
100 /* P2 */,
1000 /* P3 */,
10000 /* P4 */,
100000 /* P5 */,
1000000 /* P6 */,
10000000 /* P7 */,
100000000 /* P8 */,
1 /* Constants.P0 */,
10 /* Constants.P1 */,
100 /* Constants.P2 */,
1000 /* Constants.P3 */,
10000 /* Constants.P4 */,
100000 /* Constants.P5 */,
1000000 /* Constants.P6 */,
10000000 /* Constants.P7 */,
100000000 /* Constants.P8 */,
];

@@ -73,3 +73,3 @@ // When a number crosses this limit we reduce it to avoid overflow.

var last = len - 1;
var precision = last * 7 /* RDIGITS */ + digitCount(data[last]);
var precision = last * 7 /* Constants.RDIGITS */ + digitCount(data[last]);
// Local operands

@@ -100,3 +100,3 @@ var n = 0;

var r = data[x];
var count = x !== last ? 7 /* RDIGITS */ : digitCount(r);
var count = x !== last ? 7 /* Constants.RDIGITS */ : digitCount(r);
y = count - 1;

@@ -103,0 +103,0 @@ // Scan each decimal digit of the radix number from

@@ -132,3 +132,3 @@ "use strict";

gu: { 66: 1, 96: 5, 1056: 5 },
he: { 68: 5, 80: 4, 96: 5, 144: 5, 160: 5, 528: 4, 544: 4, 1026: 5, 1028: 5, 1040: 4, 1056: 5 },
he: 5,
hi: { 66: 1, 96: 5, 1056: 5 },

@@ -135,0 +135,0 @@ hr: { 66: 1, 72: 3, 96: 5, 258: 1, 264: 3, 288: 5, 1026: 1, 1032: 3, 1056: 5 },

@@ -66,3 +66,6 @@ "use strict";

],
ca: [[1, [[7, 8]]]],
ca: [
[1, [[7, 8]]],
[4, [[31, 32, 33, 8], [34]]]
],
ce: [[1, [[0]]]],

@@ -73,5 +76,5 @@ ceb: [

[
[8, 31],
[8, 32],
[33, 34]
[8, 35],
[8, 36],
[37, 38]
]

@@ -85,4 +88,4 @@ ]

[1, [[7, 8]]],
[3, [[35, 8]]],
[4, [[33]]]
[3, [[39, 8]]],
[4, [[37]]]
],

@@ -93,12 +96,12 @@ cy: [

[2, [[4]]],
[3, [[36]]],
[4, [[37]]]
[3, [[40]]],
[4, [[41]]]
],
da: [[1, [[0], [38, 39]]]],
da: [[1, [[0], [42, 43]]]],
de: [[1, [[7, 8]]]],
doi: [[1, [[2], [0]]]],
dsb: [
[1, [[8, 40], [41]]],
[2, [[8, 42], [43]]],
[3, [[8, 44], [45]]]
[1, [[8, 44], [45]]],
[2, [[8, 46], [47]]],
[3, [[8, 48], [49]]]
],

@@ -113,3 +116,3 @@ dv: [[1, [[0]]]],

[1, [[0]]],
[4, [[46, 47, 48, 8], [49]]]
[4, [[31, 32, 33, 8], [34]]]
],

@@ -119,3 +122,3 @@ et: [[1, [[7, 8]]]],

fa: [[1, [[2], [0]]]],
ff: [[1, [[39]]]],
ff: [[1, [[43]]]],
fi: [[1, [[7, 8]]]],

@@ -126,5 +129,5 @@ fil: [

[
[8, 31],
[8, 32],
[33, 34]
[8, 35],
[8, 36],
[37, 38]
]

@@ -135,4 +138,4 @@ ]

fr: [
[1, [[39]]],
[4, [[46, 47, 48, 8], [49]]]
[1, [[43]]],
[4, [[31, 32, 33, 8], [34]]]
],

@@ -160,3 +163,3 @@ fur: [[1, [[0]]]],

[3, [[8, 56]]],
[4, [[33]]]
[4, [[37]]]
],

@@ -166,5 +169,10 @@ ha: [[1, [[0]]]],

he: [
[1, [[7, 8]]],
[2, [[57, 8]]],
[4, [[8, 58, 13]]]
[
1,
[
[7, 8],
[2, 37]
]
],
[2, [[57, 8]]]
],

@@ -190,8 +198,8 @@ hi: [[1, [[2], [0]]]],

hsb: [
[1, [[8, 40], [41]]],
[2, [[8, 42], [43]]],
[3, [[8, 44], [45]]]
[1, [[8, 44], [45]]],
[2, [[8, 46], [47]]],
[3, [[8, 48], [49]]]
],
hu: [[1, [[0]]]],
hy: [[1, [[39]]]],
hy: [[1, [[43]]]],
ia: [[1, [[7, 8]]]],

@@ -202,6 +210,14 @@ id: [],

io: [[1, [[7, 8]]]],
is: [[1, [[59, 23, 24], [38]]]],
is: [
[
1,
[
[58, 23, 24],
[59, 60]
]
]
],
it: [
[1, [[7, 8]]],
[4, [[46, 47, 48, 8], [49]]]
[4, [[31, 32, 33, 8], [34]]]
],

@@ -219,3 +235,3 @@ iu: [

ka: [[1, [[0]]]],
kab: [[1, [[39]]]],
kab: [[1, [[43]]]],
kaj: [[1, [[0]]]],

@@ -241,5 +257,5 @@ kcg: [[1, [[0]]]],

[1, [[0]]],
[2, [[60], [61, 62], [21, 63]]],
[3, [[64]]],
[4, [[65, 66]]]
[2, [[61], [62, 63], [21, 64]]],
[3, [[65]]],
[4, [[66, 67]]]
],

@@ -249,3 +265,3 @@ ky: [[1, [[0]]]],

[0, [[3]]],
[1, [[39, 21]]]
[1, [[43, 21]]]
],

@@ -259,8 +275,8 @@ lb: [[1, [[0]]]],

lt: [
[1, [[9, 67]]],
[3, [[68, 67]]],
[4, [[69]]]
[1, [[9, 68]]],
[3, [[69, 68]]],
[4, [[70]]]
],
lv: [
[0, [[13], [70], [71, 72]]],
[0, [[13], [71], [72, 73]]],
[

@@ -270,4 +286,4 @@ 1,

[9, 10],
[71, 25, 26],
[73, 25]
[72, 25, 26],
[74, 25]
]

@@ -292,3 +308,3 @@ ]

[1, [[7, 8]]],
[3, [[33], [3], [74]]]
[3, [[37], [3], [66, 75]]]
],

@@ -299,4 +315,5 @@ mr: [[1, [[0]]]],

[1, [[0]]],
[3, [[3], [75]]],
[4, [[70]]]
[2, [[4]]],
[3, [[3], [5]]],
[4, [[71]]]
],

@@ -341,3 +358,3 @@ my: [],

prg: [
[0, [[13], [70], [71, 72]]],
[0, [[13], [71], [72, 73]]],
[

@@ -347,4 +364,4 @@ 1,

[9, 10],
[71, 25, 26],
[73, 25]
[72, 25, 26],
[74, 25]
]

@@ -356,7 +373,7 @@ ]

[1, [[80]]],
[4, [[46, 47, 48, 8], [49]]]
[4, [[31, 32, 33, 8], [34]]]
],
'pt-PT': [
[1, [[7, 8]]],
[4, [[46, 47, 48, 8], [49]]]
[4, [[31, 32, 33, 8], [34]]]
],

@@ -366,3 +383,3 @@ rm: [[1, [[0]]]],

[1, [[7, 8]]],
[3, [[33], [3], [74]]]
[3, [[37], [3], [66, 75]]]
],

@@ -423,9 +440,9 @@ rof: [[1, [[0]]]],

[1, [[7, 8]]],
[3, [[35, 8]]],
[4, [[33]]]
[3, [[39, 8]]],
[4, [[37]]]
],
sl: [
[1, [[8, 40]]],
[2, [[8, 42]]],
[3, [[8, 44], [33]]]
[1, [[8, 44]]],
[2, [[8, 46]]],
[3, [[8, 48], [37]]]
],

@@ -489,5 +506,5 @@ sma: [

[
[8, 31],
[8, 32],
[33, 34]
[8, 35],
[8, 36],
[37, 38]
]

@@ -519,2 +536,6 @@ ]

ve: [[1, [[0]]]],
vec: [
[1, [[7, 8]]],
[4, [[31, 32, 33, 8], [34]]]
],
vi: [],

@@ -543,4 +564,5 @@ vo: [[1, [[0]]]],

[3, [[89]]],
[4, [[37]]]
[4, [[41]]]
],
ast: [],
az: [

@@ -558,3 +580,3 @@ [1, [[90], [91]]],

[3, [[89]]],
[4, [[37]]]
[4, [[41]]]
],

@@ -605,3 +627,3 @@ bs: [],

[3, [[89]]],
[4, [[37]]]
[4, [[41]]]
],

@@ -613,3 +635,3 @@ he: [],

[3, [[89]]],
[4, [[37]]]
[4, [[41]]]
],

@@ -665,3 +687,3 @@ hr: [],

[3, [[89]]],
[4, [[37]]]
[4, [[41]]]
],

@@ -700,2 +722,3 @@ pa: [],

uz: [],
vec: [[4, [[107]]]],
vi: [[1, [[0]]]],

@@ -747,2 +770,6 @@ yue: [],

['f', 100, 0, [[12, 14]]],
['c', 0, 1, [0]],
['i', 0, 0, [0]],
['i', 1000000, 1, [0]],
['c', 0, 0, [[0, 5]]],
['i', 0, 1, [1, 2, 3]],

@@ -763,6 +790,2 @@ ['i', 10, 0, [4, 6, 9]],

['f', 100, 1, [[3, 4]]],
['c', 0, 1, [0]],
['i', 0, 0, [0]],
['i', 1000000, 1, [0]],
['c', 0, 0, [[0, 5]]],
['n', 0, 1, [[3, 6]]],

@@ -784,4 +807,5 @@ ['n', 0, 1, [[7, 10]]],

['i', 0, 1, [2]],
['n', 0, 0, [[0, 10]]],
['t', 0, 1, [0]],
['t', 10, 1, [1]],
['t', 100, 0, [11]],
['n', 100, 1, [2, 22, 42, 62, 82]],

@@ -801,4 +825,3 @@ ['n', 1000, 1, [0]],

['v', 0, 0, [2]],
['n', 100, 1, [[2, 19]]],
['n', 100, 1, [[2, 10]]],
['n', 100, 1, [[1, 19]]],
['i', 0, 0, [1]],

@@ -805,0 +828,0 @@ ['i', 10, 1, [[0, 1]]],

@@ -8,24 +8,24 @@ "use strict";

var digitCount = function (w) {
if (w < 10000 /* P4 */) {
if (w < 100 /* P2 */) {
return w < 10 /* P1 */ ? 1 : 2;
if (w < 10000 /* Constants.P4 */) {
if (w < 100 /* Constants.P2 */) {
return w < 10 /* Constants.P1 */ ? 1 : 2;
}
return w < 1000 /* P3 */ ? 3 : 4;
return w < 1000 /* Constants.P3 */ ? 3 : 4;
}
if (w < 1000000 /* P6 */) {
return w < 100000 /* P5 */ ? 5 : 6;
if (w < 1000000 /* Constants.P6 */) {
return w < 100000 /* Constants.P5 */ ? 5 : 6;
}
return w < 10000000 /* P7 */ ? 7 : 8;
return w < 10000000 /* Constants.P7 */ ? 7 : 8;
};
exports.digitCount = digitCount;
var POWERS10 = [
1 /* P0 */,
10 /* P1 */,
100 /* P2 */,
1000 /* P3 */,
10000 /* P4 */,
100000 /* P5 */,
1000000 /* P6 */,
10000000 /* P7 */,
100000000 /* P8 */,
1 /* Constants.P0 */,
10 /* Constants.P1 */,
100 /* Constants.P2 */,
1000 /* Constants.P3 */,
10000 /* Constants.P4 */,
100000 /* Constants.P5 */,
1000000 /* Constants.P6 */,
10000000 /* Constants.P7 */,
100000000 /* Constants.P8 */,
];

@@ -77,3 +77,3 @@ // When a number crosses this limit we reduce it to avoid overflow.

var last = len - 1;
var precision = last * 7 /* RDIGITS */ + (0, exports.digitCount)(data[last]);
var precision = last * 7 /* Constants.RDIGITS */ + (0, exports.digitCount)(data[last]);
// Local operands

@@ -104,3 +104,3 @@ var n = 0;

var r = data[x];
var count = x !== last ? 7 /* RDIGITS */ : (0, exports.digitCount)(r);
var count = x !== last ? 7 /* Constants.RDIGITS */ : (0, exports.digitCount)(r);
y = count - 1;

@@ -107,0 +107,0 @@ // Scan each decimal digit of the radix number from

{
"name": "@phensley/plurals",
"version": "1.5.2",
"version": "1.6.0",
"description": "Plural rules engine",

@@ -23,3 +23,3 @@ "main": "lib/index.js",

"dependencies": {
"@phensley/decimal": "~1.5.2",
"@phensley/decimal": "~1.6.0",
"tslib": "^2.4.0"

@@ -26,0 +26,0 @@ },

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

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