New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@graphile-contrib/pg-many-to-many

Package Overview
Dependencies
Maintainers
4
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphile-contrib/pg-many-to-many - npm Package Compare versions

Comparing version 2.0.0-beta.5 to 2.0.0-beta.6

28

dist/PgManyToManyRelationPlugin.js

@@ -38,11 +38,23 @@ "use strict";

pgManyToMany: {
override(behavior, relation, build) {
const { junctionTable, rightTable, rightRelationName } = relation;
const overrides = build.pgGetBehavior([
junctionTable.extensions,
junctionTable.getRelation(rightRelationName).extensions,
rightTable.extensions,
]);
return ["manyToMany", "connection", "list", behavior, overrides];
inferred: {
provides: ["default"],
before: ["inferred"],
callback(behavior) {
return ["manyToMany", "connection", "list", behavior];
},
},
override: {
provides: ["default"],
before: ["inferred", "override"],
callback(behavior, relation, build) {
const { junctionTable, rightTable, rightRelationName } = relation;
// Import overrides from the tables and relation related to this many-many
const overrides = build.pgGetBehavior([
junctionTable.extensions,
junctionTable.getRelation(rightRelationName).extensions,
rightTable.extensions,
]);
return [behavior, overrides];
},
},
},

@@ -49,0 +61,0 @@ },

{
"name": "@graphile-contrib/pg-many-to-many",
"version": "2.0.0-beta.5",
"version": "2.0.0-beta.6",
"description": "Add connection fields for many-to-many relations",

@@ -27,3 +27,3 @@ "main": "dist/index.js",

"@babel/preset-typescript": "^7.23.3",
"@dataplan/pg": "^0.0.1-beta.26",
"@dataplan/pg": "^0.0.1-beta.30",
"@tsconfig/node18": "^18.2.4",

@@ -38,9 +38,8 @@ "@typescript-eslint/eslint-plugin": "^6.13.1",

"eslint_d": "^12.2.1",
"grafast": "^0.1.1-beta.15",
"graphile-build-pg": "^5.0.0-beta.30",
"graphql": "16.1.0-experimental-stream-defer.6",
"grafast": "^0.1.1-beta.19",
"graphile-build-pg": "^5.0.0-beta.36",
"jest": "^29.3.1",
"jest-serializer-graphql-schema": "^5.0.0-beta.3",
"pg": ">=6.1.0 <9",
"postgraphile": "^5.0.0-beta.31",
"postgraphile": "^5.0.0-beta.37",
"prettier": "2.8.0",

@@ -47,0 +46,0 @@ "typescript": "^5.0.0"

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