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.5.1 to 3.6.0

6

CHANGELOG.md
# Change Log
## 3.6.0
### Minor Changes
- a8e31a70: Improve user experience when srtict mode is disabled
## 3.5.1

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

3

dts/types/global/schema-types.d.ts
import { GraphQLDirective } from 'graphql';
import { PluginConstructorMap } from '../..';
import { IsStrictMode, PluginConstructorMap } from '../..';
import { MergedScalars, SchemaTypes } from '..';

@@ -10,2 +10,3 @@ declare global {

defaultInputFieldRequiredness: false extends Types['DefaultInputFieldRequiredness'] ? never : Types['DefaultInputFieldRequiredness'];
notStrict: IsStrictMode extends true ? never : 'Pothos may not work correctly when strict mode is not enabled in tsconfig.json';
}

@@ -12,0 +13,0 @@ interface BuildSchemaOptions<Types extends SchemaTypes> {

@@ -58,2 +58,5 @@ export declare type MaybePromise<T> = Promise<T> | T;

} : T;
export declare type IsStrictMode = undefined extends {
t: 1;
}['t'] ? false : true;
//# sourceMappingURL=utils.d.ts.map
{
"name": "@pothos/core",
"version": "3.5.1",
"version": "3.6.0",
"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",

/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-interface */
import { GraphQLDirective } from 'graphql';
import { PluginConstructorMap } from '../..';
import { IsStrictMode, PluginConstructorMap } from '../..';

@@ -17,2 +17,5 @@ import { MergedScalars, SchemaTypes } from '..';

: Types['DefaultInputFieldRequiredness'];
notStrict: IsStrictMode extends true
? never
: 'Pothos may not work correctly when strict mode is not enabled in tsconfig.json';
}

@@ -19,0 +22,0 @@

@@ -52,2 +52,3 @@ export interface SchemaTypes extends PothosSchemaTypes.UserSchemaTypes {

// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
export type ScalarName<Types extends SchemaTypes> = string &

@@ -54,0 +55,0 @@ (BaseScalarNames | keyof Types['Scalars']);

@@ -88,1 +88,3 @@ export type MaybePromise<T> = Promise<T> | T;

: T;
export type IsStrictMode = undefined extends { t: 1 }['t'] ? false : true;

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