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

@pothos/plugin-relay

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pothos/plugin-relay - npm Package Compare versions

Comparing version 3.28.4 to 3.28.5

6

CHANGELOG.md
# Change Log
## 3.28.5
### Patch Changes
- b12f9122: Fix issue with esm build script
## 3.28.4

@@ -4,0 +10,0 @@

2

esm/input-field-builder.js

@@ -23,3 +23,3 @@ import { InputFieldBuilder } from '@pothos/core';

const { // TODO(breaking) make this default match other cursor fields
cursorType = "ID", beforeArgOptions = {}, afterArgOptions = {}, firstArgOptions = {}, lastArgOptions = {}, } = this.builder.options.relayOptions;
cursorType = "ID", beforeArgOptions = {}, afterArgOptions = {}, firstArgOptions = {}, lastArgOptions = {} } = this.builder.options.relayOptions;
return {

@@ -26,0 +26,0 @@ before: this.field({

@@ -15,3 +15,3 @@ /* eslint-disable @typescript-eslint/no-unsafe-return */ /* eslint-disable @typescript-eslint/no-unsafe-member-access */ import { defaultTypeResolver } from 'graphql';

pageInfoRefMap.set(this, ref);
const { cursorType = "String", hasNextPageFieldOptions = {}, hasPreviousPageFieldOptions = {}, startCursorFieldOptions = {}, endCursorFieldOptions = {}, } = this.options.relayOptions;
const { cursorType = "String", hasNextPageFieldOptions = {}, hasPreviousPageFieldOptions = {}, startCursorFieldOptions = {}, endCursorFieldOptions = {} } = this.options.relayOptions;
ref.implement({

@@ -198,3 +198,3 @@ ...this.options.relayOptions.pageInfoTypeOptions,

var ref;
const { relayOptions: { clientMutationIdInputOptions = {}, clientMutationIdFieldOptions = {}, mutationInputArgOptions = {}, }, } = this.options;
const { relayOptions: { clientMutationIdInputOptions = {}, clientMutationIdFieldOptions = {}, mutationInputArgOptions = {} } } = this.options;
const includeClientMutationId = this.options.relayOptions.clientMutationId !== "omit";

@@ -266,3 +266,3 @@ let inputRef;

list: false
}, ...edgesFieldOptions } = {}, pageInfoFieldOptions = {}, } = this.options.relayOptions;
}, ...edgesFieldOptions } = {}, pageInfoFieldOptions = {} } = this.options.relayOptions;
const connectionRef = this.objectRef(connectionName);

@@ -334,3 +334,3 @@ const edgeRef = edgeOptionsOrRef instanceof ObjectRef ? edgeOptionsOrRef : this.edgeObject({

verifyRef(type);
const { cursorType = "String", cursorFieldOptions = {}, nodeFieldOptions: { nullable: nodeNullable = false, ...nodeFieldOptions } = {}, } = this.options.relayOptions;
const { cursorType = "String", cursorFieldOptions = {}, nodeFieldOptions: { nullable: nodeNullable = false, ...nodeFieldOptions } = {} } = this.options.relayOptions;
const edgeRef = this.objectRef(edgeName);

@@ -337,0 +337,0 @@ const edgeFields = edgeOptions.fields;

@@ -27,3 +27,3 @@ "use strict";

const { // TODO(breaking) make this default match other cursor fields
cursorType ='ID' , beforeArgOptions ={} , afterArgOptions ={} , firstArgOptions ={} , lastArgOptions ={} , } = this.builder.options.relayOptions;
cursorType ='ID' , beforeArgOptions ={} , afterArgOptions ={} , firstArgOptions ={} , lastArgOptions ={} } = this.builder.options.relayOptions;
return {

@@ -30,0 +30,0 @@ before: this.field({

@@ -68,3 +68,3 @@ /* eslint-disable @typescript-eslint/no-unsafe-return */ /* eslint-disable @typescript-eslint/no-unsafe-member-access */ "use strict";

pageInfoRefMap.set(this, ref);
const { cursorType ='String' , hasNextPageFieldOptions ={} , hasPreviousPageFieldOptions ={} , startCursorFieldOptions ={} , endCursorFieldOptions ={} , } = this.options.relayOptions;
const { cursorType ='String' , hasNextPageFieldOptions ={} , hasPreviousPageFieldOptions ={} , startCursorFieldOptions ={} , endCursorFieldOptions ={} } = this.options.relayOptions;
ref.implement({

@@ -249,3 +249,3 @@ ...this.options.relayOptions.pageInfoTypeOptions,

var ref;
const { relayOptions: { clientMutationIdInputOptions ={} , clientMutationIdFieldOptions ={} , mutationInputArgOptions ={} , } , } = this.options;
const { relayOptions: { clientMutationIdInputOptions ={} , clientMutationIdFieldOptions ={} , mutationInputArgOptions ={} } } = this.options;
const includeClientMutationId = this.options.relayOptions.clientMutationId !== 'omit';

@@ -316,3 +316,3 @@ let inputRef;

list: false
} , ...edgesFieldOptions } = {} , pageInfoFieldOptions ={} , } = this.options.relayOptions;
} , ...edgesFieldOptions } = {} , pageInfoFieldOptions ={} } = this.options.relayOptions;
const connectionRef = this.objectRef(connectionName);

@@ -384,3 +384,3 @@ const edgeRef = edgeOptionsOrRef instanceof _core.ObjectRef ? edgeOptionsOrRef : this.edgeObject({

(0, _core.verifyRef)(type);
const { cursorType ='String' , cursorFieldOptions ={} , nodeFieldOptions: { nullable: nodeNullable = false , ...nodeFieldOptions } = {} , } = this.options.relayOptions;
const { cursorType ='String' , cursorFieldOptions ={} , nodeFieldOptions: { nullable: nodeNullable = false , ...nodeFieldOptions } = {} } = this.options.relayOptions;
const edgeRef = this.objectRef(edgeName);

@@ -387,0 +387,0 @@ const edgeFields = edgeOptions.fields;

{
"name": "@pothos/plugin-relay",
"version": "3.28.4",
"version": "3.28.5",
"description": "A Pothos plugin for adding relay style connections, nodes, and cursor based pagination to your GraphQL schema",

@@ -43,5 +43,5 @@ "main": "./lib/index.js",

"devDependencies": {
"@pothos/core": "3.22.5",
"@pothos/plugin-complexity": "3.11.4",
"@pothos/test-utils": "1.4.3",
"@pothos/core": "3.22.7",
"@pothos/plugin-complexity": "3.11.5",
"@pothos/test-utils": "1.4.5",
"graphql": "16.6.0",

@@ -48,0 +48,0 @@ "graphql-subscriptions": "^2.0.0",

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

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

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

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

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