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.30.0 to 3.30.1

6

CHANGELOG.md
# 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 @@

4

esm/schema-builder.js

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

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