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

@graphile-contrib/pg-simplify-inflector

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphile-contrib/pg-simplify-inflector - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

CHANGELOG.md

8

index.js

@@ -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 @@ },

2

package.json
{
"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",

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