schemalint
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -30,6 +30,6 @@ "use strict"; | ||
exports.nameInflection = void 0; | ||
const irregular_plurals_1 = __importDefault(require("irregular-plurals")); | ||
const irregular_plurals_json_1 = __importDefault(require("irregular-plurals/irregular-plurals.json")); | ||
const R = __importStar(require("ramda")); | ||
const singulars = R.keys(irregular_plurals_1.default); | ||
const plurals = R.values(irregular_plurals_1.default); | ||
const singulars = R.keys(irregular_plurals_json_1.default); | ||
const plurals = R.values(irregular_plurals_json_1.default); | ||
const trimSeparators = (s) => s.replaceAll(/^(-|_)+|(-|_)+$/g, ""); | ||
@@ -45,4 +45,4 @@ const detectInflection = (word) => { | ||
} | ||
if (lastWord in irregular_plurals_1.default && | ||
irregular_plurals_1.default.get(lastWord) === lastWord) { | ||
if (lastWord in irregular_plurals_json_1.default && | ||
irregular_plurals_json_1.default[lastWord] === lastWord) { | ||
// Irregular and singular = plural. | ||
@@ -49,0 +49,0 @@ return "unknown"; |
{ | ||
"name": "schemalint", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"keywords": [ | ||
@@ -38,3 +38,3 @@ "postgresql", | ||
"extract-pg-schema": "^5.0.0", | ||
"irregular-plurals": "^4.0.0", | ||
"irregular-plurals": "^3.2.0", | ||
"optionator": "^0.9.1", | ||
@@ -41,0 +41,0 @@ "pg": "^8.3.3", |
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
108725
+ Addedirregular-plurals@3.5.0(transitive)
- Removedirregular-plurals@4.0.0(transitive)
Updatedirregular-plurals@^3.2.0