@phensley/plurals
Advanced tools
Comparing version 1.4.1 to 1.5.0
@@ -5,3 +5,3 @@ import { cardinalRules, expressions, ordinalRules } from './autogen.rules'; | ||
var resolve = function (r, language, region) { | ||
return (region ? r[language + "-" + region] : undefined) || r[language] || r.root; | ||
return (region ? r["".concat(language, "-").concat(region)] : undefined) || r[language] || r.root; | ||
}; | ||
@@ -8,0 +8,0 @@ /** |
@@ -167,3 +167,3 @@ /** | ||
var _this = this; | ||
return FIELDS.map(function (f) { return f + ": " + _this[f]; }).join(', '); | ||
return FIELDS.map(function (f) { return "".concat(f, ": ").concat(_this[f]); }).join(', '); | ||
}; | ||
@@ -170,0 +170,0 @@ return NumberOperands; |
@@ -8,3 +8,3 @@ "use strict"; | ||
var resolve = function (r, language, region) { | ||
return (region ? r[language + "-" + region] : undefined) || r[language] || r.root; | ||
return (region ? r["".concat(language, "-").concat(region)] : undefined) || r[language] || r.root; | ||
}; | ||
@@ -11,0 +11,0 @@ /** |
@@ -76,3 +76,3 @@ "use strict"; | ||
var last = len - 1; | ||
var precision = last * 7 /* RDIGITS */ + exports.digitCount(data[last]); | ||
var precision = last * 7 /* RDIGITS */ + (0, exports.digitCount)(data[last]); | ||
// Local operands | ||
@@ -103,3 +103,3 @@ var n = 0; | ||
var r = data[x]; | ||
var count = x !== last ? 7 /* RDIGITS */ : exports.digitCount(r); | ||
var count = x !== last ? 7 /* RDIGITS */ : (0, exports.digitCount)(r); | ||
y = count - 1; | ||
@@ -173,3 +173,3 @@ // Scan each decimal digit of the radix number from | ||
var _this = this; | ||
return FIELDS.map(function (f) { return f + ": " + _this[f]; }).join(', '); | ||
return FIELDS.map(function (f) { return "".concat(f, ": ").concat(_this[f]); }).join(', '); | ||
}; | ||
@@ -176,0 +176,0 @@ return NumberOperands; |
@@ -10,3 +10,3 @@ "use strict"; | ||
if (c === void 0) { c = 0; } | ||
return new operands_1.NumberOperands(decimal_1.coerceDecimal(n), c); | ||
return new operands_1.NumberOperands((0, decimal_1.coerceDecimal)(n), c); | ||
}; | ||
@@ -65,3 +65,3 @@ /** | ||
var expr = this.expressions[cond[j]]; | ||
res = res && exports.evaluateExpr(operands, expr); | ||
res = res && (0, exports.evaluateExpr)(operands, expr); | ||
if (!res) { | ||
@@ -68,0 +68,0 @@ break; |
{ | ||
"name": "@phensley/plurals", | ||
"version": "1.4.1", | ||
"version": "1.5.0", | ||
"description": "Plural rules engine", | ||
@@ -39,22 +39,22 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@phensley/decimal": "~1.4.1", | ||
"@phensley/decimal": "~1.5.0", | ||
"tslib": "^2.3.1" | ||
}, | ||
"devDependencies": { | ||
"@microsoft/api-extractor": "^7.18.5", | ||
"@types/jest": "^27.0.1", | ||
"@types/node": "^16.6.1", | ||
"@typescript-eslint/eslint-plugin": "^4.29.1", | ||
"@typescript-eslint/parser": "^4.29.1", | ||
"@microsoft/api-extractor": "~7.18.5", | ||
"@types/jest": "^27.4.1", | ||
"@types/node": "^17.0.23", | ||
"@typescript-eslint/eslint-plugin": "^5.19.0", | ||
"@typescript-eslint/parser": "^5.19.0", | ||
"beautify-benchmark": "^0.2.4", | ||
"benchmark": "^2.1.4", | ||
"chalk": "^4.1.2", | ||
"eslint": "^7.32.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-prettier": "^3.4.0", | ||
"jest": "^27.0.6", | ||
"prettier": "^2.3.2", | ||
"chalk": "^5.0.1", | ||
"eslint": "^8.13.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"jest": "^27.5.1", | ||
"prettier": "^2.6.2", | ||
"rimraf": "^3.0.2", | ||
"ts-jest": "^27.0.4", | ||
"typescript": "~4.3.5" | ||
"ts-jest": "^27.1.4", | ||
"typescript": "~4.6.3" | ||
}, | ||
@@ -74,3 +74,3 @@ "jest": { | ||
}, | ||
"gitHead": "a76ab6b597cc7f56f26d0632100b3f378f3e4e1c" | ||
"gitHead": "44c782abcf427752159541ea330cfb19db529c0a" | ||
} |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
257695
+ Added@phensley/decimal@1.5.2(transitive)
- Removed@phensley/decimal@1.4.1(transitive)
Updated@phensley/decimal@~1.5.0