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

@pothos/core

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pothos/core - npm Package Compare versions

Comparing version 3.31.1 to 3.31.2

6

CHANGELOG.md
# Change Log
## 3.31.2
### Patch Changes
- bd22a282: revert improved inference for inputRef.implement
## 3.31.1

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

4

dts/refs/input-object.d.ts

@@ -1,2 +0,2 @@

import { InputFieldsFromShape, InputRef, InputShapeFromFields, inputShapeKey, RecursivelyNormalizeNullableFields, SchemaTypes } from '../types';
import { InputFieldsFromShape, InputRef, inputShapeKey, RecursivelyNormalizeNullableFields, SchemaTypes } from '../types';
import BaseTypeRef from './base';

@@ -11,4 +11,4 @@ export default class InputObjectRef<T> extends BaseTypeRef implements InputRef<T>, PothosSchemaTypes.InputObjectRef<T> {

constructor(builder: PothosSchemaTypes.SchemaBuilder<Types>, name: string);
implement<Fields extends InputFieldsFromShape<RecursivelyNormalizeNullableFields<T>>>(options: PothosSchemaTypes.InputObjectTypeOptions<Types, Fields>): InputObjectRef<InputShapeFromFields<Fields>>;
implement(options: PothosSchemaTypes.InputObjectTypeOptions<Types, InputFieldsFromShape<RecursivelyNormalizeNullableFields<T>>>): InputObjectRef<RecursivelyNormalizeNullableFields<T>>;
}
//# sourceMappingURL=input-object.d.ts.map

@@ -1,2 +0,2 @@

import { InputFieldsFromShape, InputRef, InputShapeFromFields, inputShapeKey, RecursivelyNormalizeNullableFields, SchemaTypes } from '../types/index.js';
import { InputFieldsFromShape, InputRef, inputShapeKey, RecursivelyNormalizeNullableFields, SchemaTypes } from '../types/index.js';
import BaseTypeRef from './base.js';

@@ -11,4 +11,4 @@ export default class InputObjectRef<T> extends BaseTypeRef implements InputRef<T>, PothosSchemaTypes.InputObjectRef<T> {

constructor(builder: PothosSchemaTypes.SchemaBuilder<Types>, name: string);
implement<Fields extends InputFieldsFromShape<RecursivelyNormalizeNullableFields<T>>>(options: PothosSchemaTypes.InputObjectTypeOptions<Types, Fields>): InputObjectRef<InputShapeFromFields<Fields>>;
implement(options: PothosSchemaTypes.InputObjectTypeOptions<Types, InputFieldsFromShape<RecursivelyNormalizeNullableFields<T>>>): InputObjectRef<RecursivelyNormalizeNullableFields<T>>;
}
//# sourceMappingURL=input-object.d.ts.map
{
"name": "@pothos/core",
"version": "3.31.1",
"version": "3.31.2",
"description": "Pothos (formerly GiraphQL) is a plugin based schema builder for creating code-first GraphQL schemas in typescript",

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

@@ -5,3 +5,2 @@ /* eslint-disable max-classes-per-file */

InputRef,
InputShapeFromFields,
inputShapeKey,

@@ -38,9 +37,15 @@ RecursivelyNormalizeNullableFields,

implement<Fields extends InputFieldsFromShape<RecursivelyNormalizeNullableFields<T>>>(
options: PothosSchemaTypes.InputObjectTypeOptions<Types, Fields>,
implement(
options: PothosSchemaTypes.InputObjectTypeOptions<
Types,
InputFieldsFromShape<RecursivelyNormalizeNullableFields<T>>
>,
) {
this.builder.inputType<ImplementableInputObjectRef<Types, T>, Fields>(this, options);
this.builder.inputType<
ImplementableInputObjectRef<Types, T>,
InputFieldsFromShape<RecursivelyNormalizeNullableFields<T>>
>(this, options);
return this as InputObjectRef<InputShapeFromFields<Fields>>;
return this as InputObjectRef<RecursivelyNormalizeNullableFields<T>>;
}
}

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