@graphile-contrib/pg-simplify-inflector
Advanced tools
Comparing version 1.0.0 to 2.0.0
@@ -20,2 +20,10 @@ /* | ||
} | ||
if (detailedKeys.length === 1) { | ||
const key = detailedKeys[0]; | ||
const columnName = this._columnName(key); | ||
const matches = columnName.match(/^(.*)(_id|_uuid|Id|Uuid)$/); | ||
if (matches) { | ||
return this.camelCase(matches[1]); | ||
} | ||
} | ||
return this.camelCase(`${this._singularizedTableName(table)}`); | ||
@@ -22,0 +30,0 @@ }, |
{ | ||
"name": "@graphile-contrib/pg-simplify-inflector", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"description": "Simplifies the graphile-build-pg inflector to trim the `ByFooIdAndBarId` from relations", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
4006
4
46