@pothos/plugin-relay
Advanced tools
Comparing version 3.30.0 to 3.30.1
# Change Log | ||
## 3.30.1 | ||
### Patch Changes | ||
- dbc32872: Fix a bug where `builder.node` crashed when the `interfaces` was provided as a function | ||
## 3.30.0 | ||
@@ -4,0 +10,0 @@ |
@@ -131,5 +131,5 @@ /* eslint-disable @typescript-eslint/no-unsafe-return */ /* eslint-disable @typescript-eslint/no-unsafe-member-access */ import { defaultTypeResolver } from 'graphql'; | ||
verifyRef(param); | ||
const interfacesWithNode = [ | ||
const interfacesWithNode = () => [ | ||
this.nodeInterfaceRef(), | ||
...interfaces !== null && interfaces !== void 0 ? interfaces : [] | ||
...typeof interfaces === "function" ? interfaces() : interfaces !== null && interfaces !== void 0 ? interfaces : [] | ||
]; | ||
@@ -136,0 +136,0 @@ let nodeName; |
@@ -183,6 +183,6 @@ /* eslint-disable @typescript-eslint/no-unsafe-return */ /* eslint-disable @typescript-eslint/no-unsafe-member-access */ "use strict"; | ||
(0, _core.verifyRef)(param); | ||
const interfacesWithNode = [ | ||
this.nodeInterfaceRef(), | ||
...interfaces !== null && interfaces !== void 0 ? interfaces : [] | ||
]; | ||
const interfacesWithNode = ()=>[ | ||
this.nodeInterfaceRef(), | ||
...typeof interfaces === 'function' ? interfaces() : interfaces !== null && interfaces !== void 0 ? interfaces : [] | ||
]; | ||
let nodeName; | ||
@@ -189,0 +189,0 @@ var _options_isTypeOf; |
{ | ||
"name": "@pothos/plugin-relay", | ||
"version": "3.30.0", | ||
"version": "3.30.1", | ||
"description": "A Pothos plugin for adding relay style connections, nodes, and cursor based pagination to your GraphQL schema", | ||
@@ -46,3 +46,3 @@ "main": "./lib/index.js", | ||
"graphql-tag": "^2.12.6", | ||
"@pothos/core": "3.23.0", | ||
"@pothos/core": "3.23.2", | ||
"@pothos/plugin-complexity": "3.11.7", | ||
@@ -49,0 +49,0 @@ "@pothos/test-utils": "1.4.7" |
@@ -221,5 +221,5 @@ /* eslint-disable @typescript-eslint/no-unsafe-return */ | ||
verifyRef(param); | ||
const interfacesWithNode: InterfaceParam<SchemaTypes>[] = [ | ||
const interfacesWithNode: () => InterfaceParam<SchemaTypes>[] = () => [ | ||
this.nodeInterfaceRef(), | ||
...((interfaces ?? []) as InterfaceParam<SchemaTypes>[]), | ||
...(typeof interfaces === 'function' ? interfaces() : interfaces ?? []), | ||
]; | ||
@@ -260,3 +260,3 @@ | ||
: undefined), | ||
interfaces: interfacesWithNode as [], | ||
interfaces: interfacesWithNode as () => [], | ||
}, | ||
@@ -263,0 +263,0 @@ fields, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
370958