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

10

CHANGELOG.md
# Change Log
## 3.31.0
### Minor Changes
- 664e794c: Fixed a couple bugs related to how types are defined for inputRefs
### Patch Changes
- 5d3f7b97: Fix the EmptyToOptional utility type when strict mode is disabled
## 3.30.0

@@ -4,0 +14,0 @@

2

dts/builder.d.ts

@@ -50,3 +50,3 @@ import { GraphQLScalarSerializer, GraphQLScalarType, GraphQLSchema } from 'graphql';

}): ScalarRef<InputShape<Types, Name>, ParentShape<Types, Name>, InputShape<Types, Name>>;
inputType<Param extends InputObjectRef<unknown> | string, Fields extends Param extends PothosSchemaTypes.InputObjectRef<unknown> ? InputFieldsFromShape<InputShape<Types, Param> & {}> : InputFieldMap>(param: Param, options: PothosSchemaTypes.InputObjectTypeOptions<Types, Fields>): PothosSchemaTypes.InputObjectRef<InputShapeFromFields<Fields>>;
inputType<Param extends InputObjectRef<unknown> | string, Fields extends Param extends PothosSchemaTypes.InputObjectRef<unknown> ? InputFieldsFromShape<InputShape<Types, Param>> : InputFieldMap>(param: Param, options: PothosSchemaTypes.InputObjectTypeOptions<Types, Fields>): PothosSchemaTypes.InputObjectRef<InputShapeFromFields<Fields>>;
inputRef<T extends object>(name: string): ImplementableInputObjectRef<Types, T>;

@@ -53,0 +53,0 @@ objectRef<T>(name: string): ImplementableObjectRef<Types, T>;

@@ -11,4 +11,4 @@ import { InputFieldsFromShape, InputRef, inputShapeKey, RecursivelyNormalizeNullableFields, SchemaTypes } from '../types';

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

@@ -51,3 +51,3 @@ import type { GraphQLResolveInfo } from 'graphql';

}>;
export type InputFieldsFromShape<Shape extends object> = {
export type InputFieldsFromShape<Shape> = {
[K in keyof Shape]: InputFieldRef<Shape[K], 'InputObject'>;

@@ -54,0 +54,0 @@ };

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

}[keyof T];
export type NonEmptyKeys<T extends object> = {
export type NonEmptyKeys<T extends object> = undefined extends {} ? never : {
[K in keyof T]: {} extends T[K] ? never : T[K] extends NonNullable<T[K]> ? K : never;

@@ -33,11 +33,7 @@ }[keyof T];

};
export type RecursivelyNormalizeNullableFields<T> = T extends object[] ? Normalize<{
[K in OptionalKeys<T[number]>]?: RecursivelyNormalizeNullableFields<T[number][K]> | null | undefined;
export type RecursivelyNormalizeNullableFields<T> = undefined extends T ? RecursivelyNormalizeNullableFields<NonNullable<T>> | null | undefined : null extends T ? RecursivelyNormalizeNullableFields<NonNullable<T>> | null | undefined : T extends (infer L)[] ? RecursivelyNormalizeNullableFields<L>[] : T extends object ? Normalize<{
[K in OptionalKeys<T>]?: RecursivelyNormalizeNullableFields<NonNullable<T[K]>> | null | undefined;
} & {
[K in RequiredKeys<T[number]>]: RecursivelyNormalizeNullableFields<T[number][K]>;
}>[] : T extends unknown[] ? NormalizeNullable<T[number]>[] : T extends object ? Normalize<{
[K in OptionalKeys<T>]?: RecursivelyNormalizeNullableFields<T[K]> | null | undefined;
} & {
[K in RequiredKeys<T>]: RecursivelyNormalizeNullableFields<T[K]>;
}> : NormalizeNullable<T>;
[K in RequiredKeys<T>]: RecursivelyNormalizeNullableFields<NonNullable<T[K]>>;
}> : T;
export type RemoveNeverKeys<T extends {}> = {

@@ -44,0 +40,0 @@ [K in keyof T as [T[K]] extends [never] ? never : K]: T[K];

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

/* eslint-disable no-continue */ function _defineProperty(obj, key, value) {
/* eslint-disable no-continue */ function _define_property(obj, key, value) {
if (key in obj) {

@@ -486,14 +486,14 @@ Object.defineProperty(obj, key, {

constructor(builder, options) {
_defineProperty(this, "types", new Map());
_defineProperty(this, "builder", void 0);
_defineProperty(this, "plugin", void 0);
_defineProperty(this, "options", void 0);
_defineProperty(this, "configStore", void 0);
_defineProperty(this, "pluginMap", void 0);
_defineProperty(this, "pluginList", void 0);
_defineProperty(this, "implementers", new Map());
_defineProperty(this, "typeConfigs", new Map());
_defineProperty(this, "enumValueConfigs", new Map());
_defineProperty(this, "outputFieldConfigs", new Map());
_defineProperty(this, "inputFieldConfigs", new Map());
_define_property(this, "types", new Map());
_define_property(this, "builder", void 0);
_define_property(this, "plugin", void 0);
_define_property(this, "options", void 0);
_define_property(this, "configStore", void 0);
_define_property(this, "pluginMap", void 0);
_define_property(this, "pluginList", void 0);
_define_property(this, "implementers", new Map());
_define_property(this, "typeConfigs", new Map());
_define_property(this, "enumValueConfigs", new Map());
_define_property(this, "outputFieldConfigs", new Map());
_define_property(this, "inputFieldConfigs", new Map());
this.builder = builder;

@@ -500,0 +500,0 @@ this.configStore = builder.configStore;

@@ -50,3 +50,3 @@ import { GraphQLScalarSerializer, GraphQLScalarType, GraphQLSchema } from 'graphql';

}): ScalarRef<InputShape<Types, Name>, ParentShape<Types, Name>, InputShape<Types, Name>>;
inputType<Param extends InputObjectRef<unknown> | string, Fields extends Param extends PothosSchemaTypes.InputObjectRef<unknown> ? InputFieldsFromShape<InputShape<Types, Param> & {}> : InputFieldMap>(param: Param, options: PothosSchemaTypes.InputObjectTypeOptions<Types, Fields>): PothosSchemaTypes.InputObjectRef<InputShapeFromFields<Fields>>;
inputType<Param extends InputObjectRef<unknown> | string, Fields extends Param extends PothosSchemaTypes.InputObjectRef<unknown> ? InputFieldsFromShape<InputShape<Types, Param>> : InputFieldMap>(param: Param, options: PothosSchemaTypes.InputObjectTypeOptions<Types, Fields>): PothosSchemaTypes.InputObjectRef<InputShapeFromFields<Fields>>;
inputRef<T extends object>(name: string): ImplementableInputObjectRef<Types, T>;

@@ -53,0 +53,0 @@ objectRef<T>(name: string): ImplementableObjectRef<Types, T>;

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

function _defineProperty(obj, key, value) {
function _define_property(obj, key, value) {
if (key in obj) {

@@ -242,2 +242,3 @@ Object.defineProperty(obj, key, {

enumType(param, options) {
var _options;
verifyRef(param);

@@ -247,3 +248,3 @@ const name = typeof param === "string" ? param : options.name;

const values = typeof param === "object" ? valuesFromEnum(// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
param, options === null || options === void 0 ? void 0 : options.values) : normalizeEnumValues(options.values);
param, (_options = options) === null || _options === void 0 ? void 0 : _options.values) : normalizeEnumValues(options.values);
const config = {

@@ -350,6 +351,6 @@ kind: "Enum",

constructor(options) {
_defineProperty(this, "configStore", void 0);
_defineProperty(this, "options", void 0);
_defineProperty(this, "defaultFieldNullability", void 0);
_defineProperty(this, "defaultInputFieldRequiredness", void 0);
_define_property(this, "configStore", void 0);
_define_property(this, "options", void 0);
_define_property(this, "defaultFieldNullability", void 0);
_define_property(this, "defaultInputFieldRequiredness", void 0);
this.options = options;

@@ -363,5 +364,5 @@ this.configStore = new ConfigStore();

}
_defineProperty(SchemaBuilder, "plugins", {});
_defineProperty(SchemaBuilder, "allowPluginReRegistration", false);
_define_property(SchemaBuilder, "plugins", {});
_define_property(SchemaBuilder, "allowPluginReRegistration", false);
export { SchemaBuilder as default };
//# sourceMappingURL=builder.js.map

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

/* eslint-disable @typescript-eslint/no-redundant-type-constituents */ /* eslint-disable node/no-callback-literal */ function _defineProperty(obj, key, value) {
/* eslint-disable @typescript-eslint/no-redundant-type-constituents */ /* eslint-disable node/no-callback-literal */ function _define_property(obj, key, value) {
if (key in obj) {

@@ -322,13 +322,13 @@ Object.defineProperty(obj, key, {

constructor() {
_defineProperty(this, "typeConfigs", new Map());
_defineProperty(this, "fieldRefs", new WeakMap());
_defineProperty(this, "fields", new Map());
_defineProperty(this, "pendingActions", []);
_defineProperty(this, "refsToName", new Map());
_defineProperty(this, "scalarsToRefs", new Map());
_defineProperty(this, "fieldRefsToConfigs", new Map());
_defineProperty(this, "pendingFields", new Map());
_defineProperty(this, "pendingRefResolutions", new Map());
_defineProperty(this, "fieldRefCallbacks", new Map());
_defineProperty(this, "pending", true);
_define_property(this, "typeConfigs", new Map());
_define_property(this, "fieldRefs", new WeakMap());
_define_property(this, "fields", new Map());
_define_property(this, "pendingActions", []);
_define_property(this, "refsToName", new Map());
_define_property(this, "scalarsToRefs", new Map());
_define_property(this, "fieldRefsToConfigs", new Map());
_define_property(this, "pendingFields", new Map());
_define_property(this, "pendingRefResolutions", new Map());
_define_property(this, "fieldRefCallbacks", new Map());
_define_property(this, "pending", true);
const scalars = [

@@ -335,0 +335,0 @@ GraphQLID,

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

function _defineProperty(obj, key, value) {
function _define_property(obj, key, value) {
if (key in obj) {

@@ -74,6 +74,6 @@ Object.defineProperty(obj, key, {

constructor(name, builder, kind, graphqlKind) {
_defineProperty(this, "typename", void 0);
_defineProperty(this, "builder", void 0);
_defineProperty(this, "kind", void 0);
_defineProperty(this, "graphqlKind", void 0);
_define_property(this, "typename", void 0);
_define_property(this, "builder", void 0);
_define_property(this, "kind", void 0);
_define_property(this, "graphqlKind", void 0);
this.typename = name;

@@ -80,0 +80,0 @@ this.builder = builder;

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

function _defineProperty(obj, key, value) {
function _define_property(obj, key, value) {
if (key in obj) {

@@ -61,29 +61,29 @@ Object.defineProperty(obj, key, {

constructor(builder, kind, typename) {
_defineProperty(this, "builder", void 0);
_defineProperty(this, "kind", void 0);
_defineProperty(this, "typename", void 0);
_define_property(this, "builder", void 0);
_define_property(this, "kind", void 0);
_define_property(this, "typename", void 0);
/**
* Create a Boolean input field
* @param {PothosSchemaTypes.InputFieldOptions} [options={}] - Options for this field
*/ _defineProperty(this, "boolean", this.helper("Boolean"));
*/ _define_property(this, "boolean", this.helper("Boolean"));
/**
* Create a Float input field
* @param {PothosSchemaTypes.InputFieldOptions} [options={}] - Options for this field
*/ _defineProperty(this, "float", this.helper("Float"));
*/ _define_property(this, "float", this.helper("Float"));
/**
* Create a ID input field
* @param {PothosSchemaTypes.InputFieldOptions} [options={}] - Options for this field
*/ _defineProperty(this, "id", this.helper("ID"));
*/ _define_property(this, "id", this.helper("ID"));
/**
* Create a Int input field
* @param {PothosSchemaTypes.InputFieldOptions} [options={}] - Options for this field
*/ _defineProperty(this, "int", this.helper("Int"));
*/ _define_property(this, "int", this.helper("Int"));
/**
* Create a String input field
* @param {PothosSchemaTypes.InputFieldOptions} [options={}] - Options for this field
*/ _defineProperty(this, "string", this.helper("String"));
*/ _define_property(this, "string", this.helper("String"));
/**
* Create a Boolean list input field
* @param {PothosSchemaTypes.InputFieldOptions} [options={}] - Options for this field
*/ _defineProperty(this, "booleanList", this.helper([
*/ _define_property(this, "booleanList", this.helper([
"Boolean"

@@ -94,3 +94,3 @@ ]));

* @param {PothosSchemaTypes.InputFieldOptions} [options={}] - Options for this field
*/ _defineProperty(this, "floatList", this.helper([
*/ _define_property(this, "floatList", this.helper([
"Float"

@@ -101,3 +101,3 @@ ]));

* @param {PothosSchemaTypes.InputFieldOptions} [options={}] - Options for this field
*/ _defineProperty(this, "idList", this.helper([
*/ _define_property(this, "idList", this.helper([
"ID"

@@ -108,3 +108,3 @@ ]));

* @param {PothosSchemaTypes.InputFieldOptions} [options={}] - Options for this field
*/ _defineProperty(this, "intList", this.helper([
*/ _define_property(this, "intList", this.helper([
"Int"

@@ -115,8 +115,9 @@ ]));

* @param {PothosSchemaTypes.InputFieldOptions} [options={}] - Options for this field
*/ _defineProperty(this, "stringList", this.helper([
*/ _define_property(this, "stringList", this.helper([
"String"
]));
var _options_required;
_defineProperty(this, "listRef", (type, options) => {
return new InputListRef(type, (_options_required = options === null || options === void 0 ? void 0 : options.required) !== null && _options_required !== void 0 ? _options_required : true);
_define_property(this, "listRef", (type, options) => {
var _options;
return new InputListRef(type, (_options_required = (_options = options) === null || _options === void 0 ? void 0 : _options.required) !== null && _options_required !== void 0 ? _options_required : true);
});

@@ -123,0 +124,0 @@ this.builder = builder;

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

function _defineProperty(obj, key, value) {
function _define_property(obj, key, value) {
if (key in obj) {

@@ -146,8 +146,9 @@ Object.defineProperty(obj, key, {

listRef(type, options) {
var _options;
var _options_nullable;
return new ListRef(type, (_options_nullable = options === null || options === void 0 ? void 0 : options.nullable) !== null && _options_nullable !== void 0 ? _options_nullable : false);
return new ListRef(type, (_options_nullable = (_options = options) === null || _options === void 0 ? void 0 : _options.nullable) !== null && _options_nullable !== void 0 ? _options_nullable : false);
}
constructor(...args) {
super(...args);
_defineProperty(this, "arg", new InputFieldBuilder(this.builder, "Arg", this.typename).argBuilder());
_define_property(this, "arg", new InputFieldBuilder(this.builder, "Arg", this.typename).argBuilder());
}

@@ -154,0 +155,0 @@ }

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

function _defineProperty(obj, key, value) {
function _define_property(obj, key, value) {
if (key in obj) {

@@ -51,3 +51,3 @@ Object.defineProperty(obj, key, {

super(buildCache, "PothosMergedPlugin");
_defineProperty(this, "plugins", void 0);
_define_property(this, "plugins", void 0);
this.plugins = plugins;

@@ -54,0 +54,0 @@ }

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

function _defineProperty(obj, key, value) {
function _define_property(obj, key, value) {
if (key in obj) {

@@ -115,7 +115,7 @@ Object.defineProperty(obj, key, {

constructor(buildCache, name) {
_defineProperty(this, "name", void 0);
_defineProperty(this, "builder", void 0);
_defineProperty(this, "buildCache", void 0);
_defineProperty(this, "options", void 0);
_defineProperty(this, "requestDataMap", createContextCache((ctx) => this.createRequestData(ctx)));
_define_property(this, "name", void 0);
_define_property(this, "builder", void 0);
_define_property(this, "buildCache", void 0);
_define_property(this, "options", void 0);
_define_property(this, "requestDataMap", createContextCache((ctx) => this.createRequestData(ctx)));
this.name = name;

@@ -122,0 +122,0 @@ this.builder = buildCache.builder;

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

function _defineProperty(obj, key, value) {
function _define_property(obj, key, value) {
if (key in obj) {

@@ -20,4 +20,4 @@ Object.defineProperty(obj, key, {

constructor(kind, name) {
_defineProperty(this, "kind", void 0);
_defineProperty(this, "name", void 0);
_define_property(this, "kind", void 0);
_define_property(this, "name", void 0);
this.kind = kind;

@@ -24,0 +24,0 @@ this.name = name;

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

function _defineProperty(obj, key, value) {
function _define_property(obj, key, value) {
if (key in obj) {

@@ -19,3 +19,3 @@ Object.defineProperty(obj, key, {

super(type.name);
_defineProperty(this, "type", void 0);
_define_property(this, "type", void 0);
this.type = type;

@@ -22,0 +22,0 @@ }

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

function _defineProperty(obj, key, value) {
function _define_property(obj, key, value) {
if (key in obj) {

@@ -21,5 +21,5 @@ Object.defineProperty(obj, key, {

super("Enum", name);
_defineProperty(this, "kind", "Enum");
_defineProperty(this, _outputShapeKey, void 0);
_defineProperty(this, _inputShapeKey, void 0);
_define_property(this, "kind", "Enum");
_define_property(this, _outputShapeKey, void 0);
_define_property(this, _inputShapeKey, void 0);
}

@@ -26,0 +26,0 @@ }

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

function _defineProperty(obj, key, value) {
function _define_property(obj, key, value) {
if (key in obj) {

@@ -25,6 +25,6 @@ Object.defineProperty(obj, key, {

constructor(kind, parentTypename) {
_defineProperty(this, "kind", void 0);
_defineProperty(this, "parentTypename", void 0);
_defineProperty(this, "fieldName", void 0);
_defineProperty(this, _outputFieldShapeKey, void 0);
_define_property(this, "kind", void 0);
_define_property(this, "parentTypename", void 0);
_define_property(this, "fieldName", void 0);
_define_property(this, _outputFieldShapeKey, void 0);
this.kind = kind;

@@ -31,0 +31,0 @@ this.parentTypename = parentTypename;

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

function _defineProperty(obj, key, value) {
function _define_property(obj, key, value) {
if (key in obj) {

@@ -33,7 +33,7 @@ Object.defineProperty(obj, key, {

constructor(kind, parentTypename) {
_defineProperty(this, "kind", void 0);
_defineProperty(this, "parentTypename", void 0);
_defineProperty(this, "fieldName", void 0);
_defineProperty(this, "argFor", void 0);
_defineProperty(this, _inputFieldShapeKey, void 0);
_define_property(this, "kind", void 0);
_define_property(this, "parentTypename", void 0);
_define_property(this, "fieldName", void 0);
_define_property(this, "argFor", void 0);
_define_property(this, _inputFieldShapeKey, void 0);
this.kind = kind;

@@ -40,0 +40,0 @@ this.parentTypename = parentTypename;

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

function _defineProperty(obj, key, value) {
function _define_property(obj, key, value) {
if (key in obj) {

@@ -21,6 +21,6 @@ Object.defineProperty(obj, key, {

super("InputList", `InputList<${String(listType)}>`);
_defineProperty(this, "kind", "InputList");
_defineProperty(this, _inputShapeKey, void 0);
_defineProperty(this, "listType", void 0);
_defineProperty(this, "required", void 0);
_define_property(this, "kind", "InputList");
_define_property(this, _inputShapeKey, void 0);
_define_property(this, "listType", void 0);
_define_property(this, "required", void 0);
this.listType = listType;

@@ -27,0 +27,0 @@ this.required = required;

@@ -11,4 +11,4 @@ import { InputFieldsFromShape, InputRef, inputShapeKey, RecursivelyNormalizeNullableFields, SchemaTypes } from '../types/index.js';

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

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

/* eslint-disable max-classes-per-file */ function _defineProperty(obj, key, value) {
/* eslint-disable max-classes-per-file */ function _define_property(obj, key, value) {
if (key in obj) {

@@ -21,4 +21,4 @@ Object.defineProperty(obj, key, {

super("InputObject", name);
_defineProperty(this, "kind", "InputObject");
_defineProperty(this, _inputShapeKey, void 0);
_define_property(this, "kind", "InputObject");
_define_property(this, _inputShapeKey, void 0);
}

@@ -34,3 +34,3 @@ }

super(name);
_defineProperty(this, "builder", void 0);
_define_property(this, "builder", void 0);
this.builder = builder;

@@ -37,0 +37,0 @@ }

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

function _defineProperty(obj, key, value) {
function _define_property(obj, key, value) {
if (key in obj) {

@@ -21,4 +21,4 @@ Object.defineProperty(obj, key, {

super(kind, name);
_defineProperty(this, "kind", void 0);
_defineProperty(this, _inputShapeKey, void 0);
_define_property(this, "kind", void 0);
_define_property(this, _inputShapeKey, void 0);
this.kind = kind;

@@ -25,0 +25,0 @@ }

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

/* eslint-disable max-classes-per-file */ function _defineProperty(obj, key, value) {
/* eslint-disable max-classes-per-file */ function _define_property(obj, key, value) {
if (key in obj) {

@@ -21,5 +21,5 @@ Object.defineProperty(obj, key, {

super("Interface", name);
_defineProperty(this, "kind", "Interface");
_defineProperty(this, _outputShapeKey, void 0);
_defineProperty(this, _parentShapeKey, void 0);
_define_property(this, "kind", "Interface");
_define_property(this, _outputShapeKey, void 0);
_define_property(this, _parentShapeKey, void 0);
}

@@ -34,3 +34,3 @@ }

super(name);
_defineProperty(this, "builder", void 0);
_define_property(this, "builder", void 0);
this.builder = builder;

@@ -37,0 +37,0 @@ }

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

function _defineProperty(obj, key, value) {
function _define_property(obj, key, value) {
if (key in obj) {

@@ -21,7 +21,7 @@ Object.defineProperty(obj, key, {

super("List", `List<${String(listType)}>`);
_defineProperty(this, "kind", "List");
_defineProperty(this, _outputShapeKey, void 0);
_defineProperty(this, _parentShapeKey, void 0);
_defineProperty(this, "listType", void 0);
_defineProperty(this, "nullable", void 0);
_define_property(this, "kind", "List");
_define_property(this, _outputShapeKey, void 0);
_define_property(this, _parentShapeKey, void 0);
_define_property(this, "listType", void 0);
_define_property(this, "nullable", void 0);
this.listType = listType;

@@ -28,0 +28,0 @@ this.nullable = nullable;

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

/* eslint-disable max-classes-per-file */ function _defineProperty(obj, key, value) {
/* eslint-disable max-classes-per-file */ function _define_property(obj, key, value) {
if (key in obj) {

@@ -21,5 +21,5 @@ Object.defineProperty(obj, key, {

super("Object", name);
_defineProperty(this, "kind", "Object");
_defineProperty(this, _outputShapeKey, void 0);
_defineProperty(this, _parentShapeKey, void 0);
_define_property(this, "kind", "Object");
_define_property(this, _outputShapeKey, void 0);
_define_property(this, _parentShapeKey, void 0);
}

@@ -34,3 +34,3 @@ }

super(name);
_defineProperty(this, "builder", void 0);
_define_property(this, "builder", void 0);
this.builder = builder;

@@ -37,0 +37,0 @@ }

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

function _defineProperty(obj, key, value) {
function _define_property(obj, key, value) {
if (key in obj) {

@@ -21,5 +21,5 @@ Object.defineProperty(obj, key, {

super(kind, name);
_defineProperty(this, "kind", void 0);
_defineProperty(this, _outputShapeKey, void 0);
_defineProperty(this, _parentShapeKey, void 0);
_define_property(this, "kind", void 0);
_define_property(this, _outputShapeKey, void 0);
_define_property(this, _parentShapeKey, void 0);
this.kind = kind;

@@ -26,0 +26,0 @@ }

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

function _defineProperty(obj, key, value) {
function _define_property(obj, key, value) {
if (key in obj) {

@@ -21,6 +21,6 @@ Object.defineProperty(obj, key, {

super("Scalar", name);
_defineProperty(this, "kind", "Scalar");
_defineProperty(this, _outputShapeKey, void 0);
_defineProperty(this, _parentShapeKey, void 0);
_defineProperty(this, _inputShapeKey, void 0);
_define_property(this, "kind", "Scalar");
_define_property(this, _outputShapeKey, void 0);
_define_property(this, _parentShapeKey, void 0);
_define_property(this, _inputShapeKey, void 0);
}

@@ -27,0 +27,0 @@ }

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

function _defineProperty(obj, key, value) {
function _define_property(obj, key, value) {
if (key in obj) {

@@ -21,5 +21,5 @@ Object.defineProperty(obj, key, {

super("Union", name);
_defineProperty(this, "kind", "Union");
_defineProperty(this, _outputShapeKey, void 0);
_defineProperty(this, _parentShapeKey, void 0);
_define_property(this, "kind", "Union");
_define_property(this, _outputShapeKey, void 0);
_define_property(this, _parentShapeKey, void 0);
}

@@ -26,0 +26,0 @@ }

@@ -55,3 +55,3 @@ import type { GraphQLResolveInfo } from 'graphql';

}>;
export type InputFieldsFromShape<Shape extends object> = {
export type InputFieldsFromShape<Shape> = {
[K in keyof Shape]: InputFieldRef<Shape[K], "InputObject">;

@@ -58,0 +58,0 @@ };

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

}[keyof T];
export type NonEmptyKeys<T extends object> = {
export type NonEmptyKeys<T extends object> = undefined extends {} ? never : {
[K in keyof T]: {} extends T[K] ? never : T[K] extends NonNullable<T[K]> ? K : never;

@@ -33,11 +33,7 @@ }[keyof T];

};
export type RecursivelyNormalizeNullableFields<T> = T extends object[] ? Normalize<{
[K in OptionalKeys<T[number]>]?: RecursivelyNormalizeNullableFields<T[number][K]> | null | undefined;
export type RecursivelyNormalizeNullableFields<T> = undefined extends T ? RecursivelyNormalizeNullableFields<NonNullable<T>> | null | undefined : null extends T ? RecursivelyNormalizeNullableFields<NonNullable<T>> | null | undefined : T extends (infer L)[] ? RecursivelyNormalizeNullableFields<L>[] : T extends object ? Normalize<{
[K in OptionalKeys<T>]?: RecursivelyNormalizeNullableFields<NonNullable<T[K]>> | null | undefined;
} & {
[K in RequiredKeys<T[number]>]: RecursivelyNormalizeNullableFields<T[number][K]>;
}>[] : T extends unknown[] ? NormalizeNullable<T[number]>[] : T extends object ? Normalize<{
[K in OptionalKeys<T>]?: RecursivelyNormalizeNullableFields<T[K]> | null | undefined;
} & {
[K in RequiredKeys<T>]: RecursivelyNormalizeNullableFields<T[K]>;
}> : NormalizeNullable<T>;
[K in RequiredKeys<T>]: RecursivelyNormalizeNullableFields<NonNullable<T[K]>>;
}> : T;
export type RemoveNeverKeys<T extends {}> = {

@@ -44,0 +40,0 @@ [K in keyof T as [

@@ -31,6 +31,7 @@ export function normalizeEnumValues(values) {

Object.keys(Enum).filter((key) => typeof Enum[Enum[key]] !== "number").forEach((key) => {
var _values;
result[key] = {
value: Enum[key],
pothosOptions: {},
...values === null || values === void 0 ? void 0 : values[key]
...(_values = values) === null || _values === void 0 ? void 0 : _values[key]
};

@@ -37,0 +38,0 @@ });

@@ -7,3 +7,5 @@ /* eslint-disable no-continue */ "use strict";

enumerable: true,
get: ()=>BuildCache
get: function() {
return BuildCache;
}
});

@@ -13,7 +15,7 @@ const _graphql = require("graphql");

const _plugins = require("./plugins");
const _builtinScalar = /*#__PURE__*/ _interopRequireDefault(require("./refs/builtin-scalar"));
const _inputObject = require("./refs/input-object");
const _builtinscalar = /*#__PURE__*/ _interop_require_default(require("./refs/builtin-scalar"));
const _inputobject = require("./refs/input-object");
const _types = require("./types");
const _utils = require("./utils");
function _defineProperty(obj, key, value) {
function _define_property(obj, key, value) {
if (key in obj) {

@@ -31,3 +33,3 @@ Object.defineProperty(obj, key, {

}
function _interopRequireDefault(obj) {
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {

@@ -117,3 +119,3 @@ default: obj

const config = this.getTypeConfig(baseConfig.name);
const { name } = config;
const { name } = config;
this.typeConfigs.set(name, config);

@@ -283,3 +285,3 @@ switch(config.kind){

getType(ref) {
if (ref instanceof _builtinScalar.default) {
if (ref instanceof _builtinscalar.default) {
return ref.type;

@@ -308,6 +310,6 @@ }

if (type instanceof _graphql.GraphQLObjectType) {
throw new _errors.PothosSchemaError(`Expected ${_inputObject.ImplementableInputObjectRef} to be an input type but it was defined as a GraphQLObjectType`);
throw new _errors.PothosSchemaError(`Expected ${_inputobject.ImplementableInputObjectRef} to be an input type but it was defined as a GraphQLObjectType`);
}
if (type instanceof _graphql.GraphQLInterfaceType) {
throw new _errors.PothosSchemaError(`Expected ${_inputObject.ImplementableInputObjectRef} to be an input type but it was defined as a GraphQLInterfaceType`);
throw new _errors.PothosSchemaError(`Expected ${_inputobject.ImplementableInputObjectRef} to be an input type but it was defined as a GraphQLInterfaceType`);
}

@@ -502,14 +504,14 @@ if (type instanceof _graphql.GraphQLUnionType) {

constructor(builder, options){
_defineProperty(this, "types", new Map());
_defineProperty(this, "builder", void 0);
_defineProperty(this, "plugin", void 0);
_defineProperty(this, "options", void 0);
_defineProperty(this, "configStore", void 0);
_defineProperty(this, "pluginMap", void 0);
_defineProperty(this, "pluginList", void 0);
_defineProperty(this, "implementers", new Map());
_defineProperty(this, "typeConfigs", new Map());
_defineProperty(this, "enumValueConfigs", new Map());
_defineProperty(this, "outputFieldConfigs", new Map());
_defineProperty(this, "inputFieldConfigs", new Map());
_define_property(this, "types", new Map());
_define_property(this, "builder", void 0);
_define_property(this, "plugin", void 0);
_define_property(this, "options", void 0);
_define_property(this, "configStore", void 0);
_define_property(this, "pluginMap", void 0);
_define_property(this, "pluginList", void 0);
_define_property(this, "implementers", new Map());
_define_property(this, "typeConfigs", new Map());
_define_property(this, "enumValueConfigs", new Map());
_define_property(this, "outputFieldConfigs", new Map());
_define_property(this, "inputFieldConfigs", new Map());
this.builder = builder;

@@ -516,0 +518,0 @@ this.configStore = builder.configStore;

@@ -7,23 +7,25 @@ "use strict";

enumerable: true,
get: ()=>SchemaBuilder
get: function() {
return SchemaBuilder;
}
});
const _graphql = require("graphql");
const _buildCache = /*#__PURE__*/ _interopRequireDefault(require("./build-cache"));
const _configStore = /*#__PURE__*/ _interopRequireDefault(require("./config-store"));
const _buildcache = /*#__PURE__*/ _interop_require_default(require("./build-cache"));
const _configstore = /*#__PURE__*/ _interop_require_default(require("./config-store"));
const _errors = require("./errors");
const _input = /*#__PURE__*/ _interopRequireDefault(require("./fieldUtils/input"));
const _interface = /*#__PURE__*/ _interopRequireDefault(require("./fieldUtils/interface"));
const _mutation = /*#__PURE__*/ _interopRequireDefault(require("./fieldUtils/mutation"));
const _object = /*#__PURE__*/ _interopRequireDefault(require("./fieldUtils/object"));
const _query = /*#__PURE__*/ _interopRequireDefault(require("./fieldUtils/query"));
const _subscription = /*#__PURE__*/ _interopRequireDefault(require("./fieldUtils/subscription"));
const _base = /*#__PURE__*/ _interopRequireDefault(require("./refs/base"));
const _enum = /*#__PURE__*/ _interopRequireDefault(require("./refs/enum"));
const _inputObject = /*#__PURE__*/ _interopRequireWildcard(require("./refs/input-object"));
const _interface1 = /*#__PURE__*/ _interopRequireWildcard(require("./refs/interface"));
const _object1 = /*#__PURE__*/ _interopRequireWildcard(require("./refs/object"));
const _scalar = /*#__PURE__*/ _interopRequireDefault(require("./refs/scalar"));
const _union = /*#__PURE__*/ _interopRequireDefault(require("./refs/union"));
const _input = /*#__PURE__*/ _interop_require_default(require("./fieldUtils/input"));
const _interface = /*#__PURE__*/ _interop_require_default(require("./fieldUtils/interface"));
const _mutation = /*#__PURE__*/ _interop_require_default(require("./fieldUtils/mutation"));
const _object = /*#__PURE__*/ _interop_require_default(require("./fieldUtils/object"));
const _query = /*#__PURE__*/ _interop_require_default(require("./fieldUtils/query"));
const _subscription = /*#__PURE__*/ _interop_require_default(require("./fieldUtils/subscription"));
const _base = /*#__PURE__*/ _interop_require_default(require("./refs/base"));
const _enum = /*#__PURE__*/ _interop_require_default(require("./refs/enum"));
const _inputobject = /*#__PURE__*/ _interop_require_wildcard(require("./refs/input-object"));
const _interface1 = /*#__PURE__*/ _interop_require_wildcard(require("./refs/interface"));
const _object1 = /*#__PURE__*/ _interop_require_wildcard(require("./refs/object"));
const _scalar = /*#__PURE__*/ _interop_require_default(require("./refs/scalar"));
const _union = /*#__PURE__*/ _interop_require_default(require("./refs/union"));
const _utils = require("./utils");
function _defineProperty(obj, key, value) {
function _define_property(obj, key, value) {
if (key in obj) {

@@ -41,3 +43,3 @@ Object.defineProperty(obj, key, {

}
function _interopRequireDefault(obj) {
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {

@@ -55,3 +57,3 @@ default: obj

}
function _interopRequireWildcard(obj, nodeInterop) {
function _interop_require_wildcard(obj, nodeInterop) {
if (!nodeInterop && obj && obj.__esModule) {

@@ -133,3 +135,3 @@ return obj;

(0, _utils.verifyRef)(ref);
this.configStore.onTypeConfig(ref, ({ name })=>{
this.configStore.onTypeConfig(ref, ({ name })=>{
this.configStore.addFields(ref, ()=>fields(new _object.default(name, this)));

@@ -140,3 +142,3 @@ });

(0, _utils.verifyRef)(ref);
this.configStore.onTypeConfig(ref, ({ name })=>{
this.configStore.onTypeConfig(ref, ({ name })=>{
this.configStore.addFields(ref, ()=>({

@@ -264,3 +266,3 @@ [fieldName]: field(new _object.default(name, this))

(0, _utils.verifyRef)(ref);
this.configStore.onTypeConfig(ref, ({ name })=>{
this.configStore.onTypeConfig(ref, ({ name })=>{
this.configStore.addFields(ref, ()=>fields(new _interface.default(name, this)));

@@ -271,3 +273,3 @@ });

(0, _utils.verifyRef)(ref);
this.configStore.onTypeConfig(ref, ({ name })=>{
this.configStore.onTypeConfig(ref, ({ name })=>{
this.configStore.addFields(ref, ()=>({

@@ -300,2 +302,3 @@ [fieldName]: field(new _interface.default(name, this))

enumType(param, options) {
var _options;
(0, _utils.verifyRef)(param);

@@ -305,3 +308,3 @@ const name = typeof param === 'string' ? param : options.name;

const values = typeof param === 'object' ? (0, _utils.valuesFromEnum)(// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
param, options === null || options === void 0 ? void 0 : options.values) : (0, _utils.normalizeEnumValues)(options.values);
param, (_options = options) === null || _options === void 0 ? void 0 : _options.values) : (0, _utils.normalizeEnumValues)(options.values);
const config = {

@@ -353,3 +356,3 @@ kind: 'Enum',

const name = typeof param === 'string' ? param : param.name;
const ref = typeof param === 'string' ? new _inputObject.default(name) : param;
const ref = typeof param === 'string' ? new _inputobject.default(name) : param;
const config = {

@@ -368,3 +371,3 @@ kind: 'InputObject',

inputRef(name) {
return new _inputObject.ImplementableInputObjectRef(this, name);
return new _inputobject.ImplementableInputObjectRef(this, name);
}

@@ -379,3 +382,3 @@ objectRef(name) {

const [options = {}] = args;
const { directives , extensions } = options;
const { directives, extensions } = options;
const scalars = [

@@ -393,3 +396,3 @@ _graphql.GraphQLID,

});
const buildCache = new _buildCache.default(this, options);
const buildCache = new _buildcache.default(this, options);
buildCache.plugin.beforeBuild();

@@ -412,8 +415,8 @@ buildCache.buildAll();

constructor(options){
_defineProperty(this, "configStore", void 0);
_defineProperty(this, "options", void 0);
_defineProperty(this, "defaultFieldNullability", void 0);
_defineProperty(this, "defaultInputFieldRequiredness", void 0);
_define_property(this, "configStore", void 0);
_define_property(this, "options", void 0);
_define_property(this, "defaultFieldNullability", void 0);
_define_property(this, "defaultInputFieldRequiredness", void 0);
this.options = options;
this.configStore = new _configStore.default();
this.configStore = new _configstore.default();
var _options_defaultFieldNullability;

@@ -425,5 +428,5 @@ this.defaultFieldNullability = (_options_defaultFieldNullability = options.defaultFieldNullability) !== null && _options_defaultFieldNullability !== void 0 ? _options_defaultFieldNullability : false;

}
_defineProperty(SchemaBuilder, "plugins", {});
_defineProperty(SchemaBuilder, "allowPluginReRegistration", false);
_define_property(SchemaBuilder, "plugins", {});
_define_property(SchemaBuilder, "allowPluginReRegistration", false);
//# sourceMappingURL=builder.js.map

@@ -7,14 +7,16 @@ /* eslint-disable @typescript-eslint/no-redundant-type-constituents */ /* eslint-disable node/no-callback-literal */ "use strict";

enumerable: true,
get: ()=>ConfigStore
get: function() {
return ConfigStore;
}
});
const _graphql = require("graphql");
const _errors = require("./errors");
const _base = /*#__PURE__*/ _interopRequireDefault(require("./refs/base"));
const _builtinScalar = /*#__PURE__*/ _interopRequireDefault(require("./refs/builtin-scalar"));
const _input = /*#__PURE__*/ _interopRequireDefault(require("./refs/input"));
const _inputList = /*#__PURE__*/ _interopRequireDefault(require("./refs/input-list"));
const _list = /*#__PURE__*/ _interopRequireDefault(require("./refs/list"));
const _output = /*#__PURE__*/ _interopRequireDefault(require("./refs/output"));
const _base = /*#__PURE__*/ _interop_require_default(require("./refs/base"));
const _builtinscalar = /*#__PURE__*/ _interop_require_default(require("./refs/builtin-scalar"));
const _input = /*#__PURE__*/ _interop_require_default(require("./refs/input"));
const _inputlist = /*#__PURE__*/ _interop_require_default(require("./refs/input-list"));
const _list = /*#__PURE__*/ _interop_require_default(require("./refs/list"));
const _output = /*#__PURE__*/ _interop_require_default(require("./refs/output"));
const _utils = require("./utils");
function _defineProperty(obj, key, value) {
function _define_property(obj, key, value) {
if (key in obj) {

@@ -32,3 +34,3 @@ Object.defineProperty(obj, key, {

}
function _interopRequireDefault(obj) {
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {

@@ -127,3 +129,3 @@ default: obj

addTypeConfig(config, ref) {
const { name } = config;
const { name } = config;
if (this.typeConfigs.has(name)) {

@@ -151,3 +153,3 @@ throw new _errors.PothosSchemaError(`Duplicate typename: Another type with name ${name} already exists.`);

config = this.typeConfigs.get(this.refsToName.get(ref));
} else if (ref instanceof _list.default || ref instanceof _inputList.default) {
} else if (ref instanceof _list.default || ref instanceof _inputlist.default) {
throw new _errors.PothosSchemaError(`Expected a base type but got a ${ref.kind} of ${String(ref.listType)}`);

@@ -251,3 +253,3 @@ } else {

this.pending = false;
const { pendingActions } = this;
const { pendingActions } = this;
this.pendingActions = [];

@@ -329,13 +331,13 @@ pendingActions.forEach((fn)=>void fn());

constructor(){
_defineProperty(this, "typeConfigs", new Map());
_defineProperty(this, "fieldRefs", new WeakMap());
_defineProperty(this, "fields", new Map());
_defineProperty(this, "pendingActions", []);
_defineProperty(this, "refsToName", new Map());
_defineProperty(this, "scalarsToRefs", new Map());
_defineProperty(this, "fieldRefsToConfigs", new Map());
_defineProperty(this, "pendingFields", new Map());
_defineProperty(this, "pendingRefResolutions", new Map());
_defineProperty(this, "fieldRefCallbacks", new Map());
_defineProperty(this, "pending", true);
_define_property(this, "typeConfigs", new Map());
_define_property(this, "fieldRefs", new WeakMap());
_define_property(this, "fields", new Map());
_define_property(this, "pendingActions", []);
_define_property(this, "refsToName", new Map());
_define_property(this, "scalarsToRefs", new Map());
_define_property(this, "fieldRefsToConfigs", new Map());
_define_property(this, "pendingFields", new Map());
_define_property(this, "pendingRefResolutions", new Map());
_define_property(this, "fieldRefCallbacks", new Map());
_define_property(this, "pending", true);
const scalars = [

@@ -349,3 +351,3 @@ _graphql.GraphQLID,

scalars.forEach((scalar)=>{
const ref = new _builtinScalar.default(scalar);
const ref = new _builtinscalar.default(scalar);
this.scalarsToRefs.set(scalar.name, ref);

@@ -352,0 +354,0 @@ this.refsToName.set(ref, scalar.name);

@@ -12,5 +12,11 @@ /* eslint-disable max-classes-per-file */ "use strict";

_export(exports, {
PothosError: ()=>PothosError,
PothosSchemaError: ()=>PothosSchemaError,
PothosValidationError: ()=>PothosValidationError
PothosError: function() {
return PothosError;
},
PothosSchemaError: function() {
return PothosSchemaError;
},
PothosValidationError: function() {
return PothosValidationError;
}
});

@@ -17,0 +23,0 @@ class PothosError extends Error {

@@ -7,9 +7,11 @@ "use strict";

enumerable: true,
get: ()=>BaseFieldUtil
get: function() {
return BaseFieldUtil;
}
});
const _graphql = require("graphql");
const _errors = require("../errors");
const _field = /*#__PURE__*/ _interopRequireDefault(require("../refs/field"));
const _field = /*#__PURE__*/ _interop_require_default(require("../refs/field"));
const _utils = require("../utils");
function _defineProperty(obj, key, value) {
function _define_property(obj, key, value) {
if (key in obj) {

@@ -27,3 +29,3 @@ Object.defineProperty(obj, key, {

}
function _interopRequireDefault(obj) {
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {

@@ -54,3 +56,3 @@ default: obj

}
const { subscribe } = options;
const { subscribe } = options;
var _options_nullable;

@@ -78,3 +80,3 @@ return {

}
exposeField(name, { extensions , ...options }) {
exposeField(name, { extensions, ...options }) {
return this.createField({

@@ -90,6 +92,6 @@ ...options,

constructor(name, builder, kind, graphqlKind){
_defineProperty(this, "typename", void 0);
_defineProperty(this, "builder", void 0);
_defineProperty(this, "kind", void 0);
_defineProperty(this, "graphqlKind", void 0);
_define_property(this, "typename", void 0);
_define_property(this, "builder", void 0);
_define_property(this, "kind", void 0);
_define_property(this, "graphqlKind", void 0);
this.typename = name;

@@ -96,0 +98,0 @@ this.builder = builder;

@@ -7,6 +7,8 @@ "use strict";

enumerable: true,
get: ()=>FieldBuilder
get: function() {
return FieldBuilder;
}
});
const _root = /*#__PURE__*/ _interopRequireDefault(require("./root"));
function _interopRequireDefault(obj) {
const _root = /*#__PURE__*/ _interop_require_default(require("./root"));
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {

@@ -13,0 +15,0 @@ default: obj

@@ -7,8 +7,10 @@ "use strict";

enumerable: true,
get: ()=>InputFieldBuilder
get: function() {
return InputFieldBuilder;
}
});
const _inputField = /*#__PURE__*/ _interopRequireDefault(require("../refs/input-field"));
const _inputList = /*#__PURE__*/ _interopRequireDefault(require("../refs/input-list"));
const _inputfield = /*#__PURE__*/ _interop_require_default(require("../refs/input-field"));
const _inputlist = /*#__PURE__*/ _interop_require_default(require("../refs/input-list"));
const _utils = require("../utils");
function _defineProperty(obj, key, value) {
function _define_property(obj, key, value) {
if (key in obj) {

@@ -26,3 +28,3 @@ Object.defineProperty(obj, key, {

}
function _interopRequireDefault(obj) {
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {

@@ -48,3 +50,3 @@ default: obj

*/ field(options) {
const ref = new _inputField.default(this.kind, this.typename);
const ref = new _inputfield.default(this.kind, this.typename);
var _options_required;

@@ -76,29 +78,29 @@ this.builder.configStore.addFieldRef(ref, options.type, {}, (name, parentField, typeConfig)=>({

constructor(builder, kind, typename){
_defineProperty(this, "builder", void 0);
_defineProperty(this, "kind", void 0);
_defineProperty(this, "typename", void 0);
_define_property(this, "builder", void 0);
_define_property(this, "kind", void 0);
_define_property(this, "typename", void 0);
/**
* Create a Boolean input field
* @param {PothosSchemaTypes.InputFieldOptions} [options={}] - Options for this field
*/ _defineProperty(this, "boolean", this.helper('Boolean'));
*/ _define_property(this, "boolean", this.helper('Boolean'));
/**
* Create a Float input field
* @param {PothosSchemaTypes.InputFieldOptions} [options={}] - Options for this field
*/ _defineProperty(this, "float", this.helper('Float'));
*/ _define_property(this, "float", this.helper('Float'));
/**
* Create a ID input field
* @param {PothosSchemaTypes.InputFieldOptions} [options={}] - Options for this field
*/ _defineProperty(this, "id", this.helper('ID'));
*/ _define_property(this, "id", this.helper('ID'));
/**
* Create a Int input field
* @param {PothosSchemaTypes.InputFieldOptions} [options={}] - Options for this field
*/ _defineProperty(this, "int", this.helper('Int'));
*/ _define_property(this, "int", this.helper('Int'));
/**
* Create a String input field
* @param {PothosSchemaTypes.InputFieldOptions} [options={}] - Options for this field
*/ _defineProperty(this, "string", this.helper('String'));
*/ _define_property(this, "string", this.helper('String'));
/**
* Create a Boolean list input field
* @param {PothosSchemaTypes.InputFieldOptions} [options={}] - Options for this field
*/ _defineProperty(this, "booleanList", this.helper([
*/ _define_property(this, "booleanList", this.helper([
'Boolean'

@@ -109,3 +111,3 @@ ]));

* @param {PothosSchemaTypes.InputFieldOptions} [options={}] - Options for this field
*/ _defineProperty(this, "floatList", this.helper([
*/ _define_property(this, "floatList", this.helper([
'Float'

@@ -116,3 +118,3 @@ ]));

* @param {PothosSchemaTypes.InputFieldOptions} [options={}] - Options for this field
*/ _defineProperty(this, "idList", this.helper([
*/ _define_property(this, "idList", this.helper([
'ID'

@@ -123,3 +125,3 @@ ]));

* @param {PothosSchemaTypes.InputFieldOptions} [options={}] - Options for this field
*/ _defineProperty(this, "intList", this.helper([
*/ _define_property(this, "intList", this.helper([
'Int'

@@ -130,8 +132,9 @@ ]));

* @param {PothosSchemaTypes.InputFieldOptions} [options={}] - Options for this field
*/ _defineProperty(this, "stringList", this.helper([
*/ _define_property(this, "stringList", this.helper([
'String'
]));
var _options_required;
_defineProperty(this, "listRef", (type, options)=>{
return new _inputList.default(type, (_options_required = options === null || options === void 0 ? void 0 : options.required) !== null && _options_required !== void 0 ? _options_required : true);
_define_property(this, "listRef", (type, options)=>{
var _options;
return new _inputlist.default(type, (_options_required = (_options = options) === null || _options === void 0 ? void 0 : _options.required) !== null && _options_required !== void 0 ? _options_required : true);
});

@@ -138,0 +141,0 @@ this.builder = builder;

@@ -7,6 +7,8 @@ "use strict";

enumerable: true,
get: ()=>InterfaceFieldBuilder
get: function() {
return InterfaceFieldBuilder;
}
});
const _builder = /*#__PURE__*/ _interopRequireDefault(require("./builder"));
function _interopRequireDefault(obj) {
const _builder = /*#__PURE__*/ _interop_require_default(require("./builder"));
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {

@@ -13,0 +15,0 @@ default: obj

@@ -7,6 +7,8 @@ "use strict";

enumerable: true,
get: ()=>MutationFieldBuilder
get: function() {
return MutationFieldBuilder;
}
});
const _root = /*#__PURE__*/ _interopRequireDefault(require("./root"));
function _interopRequireDefault(obj) {
const _root = /*#__PURE__*/ _interop_require_default(require("./root"));
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {

@@ -13,0 +15,0 @@ default: obj

@@ -7,6 +7,8 @@ "use strict";

enumerable: true,
get: ()=>ObjectFieldBuilder
get: function() {
return ObjectFieldBuilder;
}
});
const _builder = /*#__PURE__*/ _interopRequireDefault(require("./builder"));
function _interopRequireDefault(obj) {
const _builder = /*#__PURE__*/ _interop_require_default(require("./builder"));
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {

@@ -13,0 +15,0 @@ default: obj

@@ -7,6 +7,8 @@ "use strict";

enumerable: true,
get: ()=>QueryFieldBuilder
get: function() {
return QueryFieldBuilder;
}
});
const _root = /*#__PURE__*/ _interopRequireDefault(require("./root"));
function _interopRequireDefault(obj) {
const _root = /*#__PURE__*/ _interop_require_default(require("./root"));
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {

@@ -13,0 +15,0 @@ default: obj

@@ -7,8 +7,10 @@ "use strict";

enumerable: true,
get: ()=>RootFieldBuilder
get: function() {
return RootFieldBuilder;
}
});
const _list = /*#__PURE__*/ _interopRequireDefault(require("../refs/list"));
const _base = /*#__PURE__*/ _interopRequireDefault(require("./base"));
const _input = /*#__PURE__*/ _interopRequireDefault(require("./input"));
function _defineProperty(obj, key, value) {
const _list = /*#__PURE__*/ _interop_require_default(require("../refs/list"));
const _base = /*#__PURE__*/ _interop_require_default(require("./base"));
const _input = /*#__PURE__*/ _interop_require_default(require("./input"));
function _define_property(obj, key, value) {
if (key in obj) {

@@ -26,3 +28,3 @@ Object.defineProperty(obj, key, {

}
function _interopRequireDefault(obj) {
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {

@@ -160,8 +162,9 @@ default: obj

listRef(type, options) {
var _options;
var _options_nullable;
return new _list.default(type, (_options_nullable = options === null || options === void 0 ? void 0 : options.nullable) !== null && _options_nullable !== void 0 ? _options_nullable : false);
return new _list.default(type, (_options_nullable = (_options = options) === null || _options === void 0 ? void 0 : _options.nullable) !== null && _options_nullable !== void 0 ? _options_nullable : false);
}
constructor(...args){
super(...args);
_defineProperty(this, "arg", new _input.default(this.builder, 'Arg', this.typename).argBuilder());
_define_property(this, "arg", new _input.default(this.builder, 'Arg', this.typename).argBuilder());
}

@@ -168,0 +171,0 @@ }

@@ -7,6 +7,8 @@ "use strict";

enumerable: true,
get: ()=>SubscriptionFieldBuilder
get: function() {
return SubscriptionFieldBuilder;
}
});
const _root = /*#__PURE__*/ _interopRequireDefault(require("./root"));
function _interopRequireDefault(obj) {
const _root = /*#__PURE__*/ _interop_require_default(require("./root"));
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {

@@ -13,0 +15,0 @@ default: obj

@@ -12,71 +12,127 @@ /* eslint-disable @typescript-eslint/no-redeclare */ "use strict";

_export(exports, {
default: ()=>_default,
FieldBuilder: ()=>FieldBuilder,
RootFieldBuilder: ()=>RootFieldBuilder,
QueryFieldBuilder: ()=>QueryFieldBuilder,
MutationFieldBuilder: ()=>MutationFieldBuilder,
SubscriptionFieldBuilder: ()=>SubscriptionFieldBuilder,
ObjectFieldBuilder: ()=>ObjectFieldBuilder,
InterfaceFieldBuilder: ()=>InterfaceFieldBuilder,
InputFieldBuilder: ()=>InputFieldBuilder,
BaseTypeRef: ()=>BaseTypeRef,
EnumRef: ()=>EnumRef,
InputObjectRef: ()=>InputObjectRef,
InputListRef: ()=>InputListRef,
InterfaceRef: ()=>InterfaceRef,
ObjectRef: ()=>ObjectRef,
ScalarRef: ()=>ScalarRef,
UnionRef: ()=>UnionRef,
ListRef: ()=>ListRef,
BuildCache: ()=>_buildCache.default,
BuiltinScalarRef: ()=>_builtinScalar.default,
FieldRef: ()=>_field.default,
InputTypeRef: ()=>_input1.default,
InputFieldRef: ()=>_inputField.default,
ImplementableInputObjectRef: ()=>_inputObject.ImplementableInputObjectRef,
ImplementableInterfaceRef: ()=>_interface1.ImplementableInterfaceRef,
ImplementableObjectRef: ()=>_object1.ImplementableObjectRef,
OutputTypeRef: ()=>_output.default
default: function() {
return _default;
},
FieldBuilder: function() {
return FieldBuilder;
},
RootFieldBuilder: function() {
return RootFieldBuilder;
},
QueryFieldBuilder: function() {
return QueryFieldBuilder;
},
MutationFieldBuilder: function() {
return MutationFieldBuilder;
},
SubscriptionFieldBuilder: function() {
return SubscriptionFieldBuilder;
},
ObjectFieldBuilder: function() {
return ObjectFieldBuilder;
},
InterfaceFieldBuilder: function() {
return InterfaceFieldBuilder;
},
InputFieldBuilder: function() {
return InputFieldBuilder;
},
BaseTypeRef: function() {
return BaseTypeRef;
},
EnumRef: function() {
return EnumRef;
},
InputObjectRef: function() {
return InputObjectRef;
},
InputListRef: function() {
return InputListRef;
},
InterfaceRef: function() {
return InterfaceRef;
},
ObjectRef: function() {
return ObjectRef;
},
ScalarRef: function() {
return ScalarRef;
},
UnionRef: function() {
return UnionRef;
},
ListRef: function() {
return ListRef;
},
BuildCache: function() {
return _buildcache.default;
},
BuiltinScalarRef: function() {
return _builtinscalar.default;
},
FieldRef: function() {
return _field.default;
},
InputTypeRef: function() {
return _input1.default;
},
InputFieldRef: function() {
return _inputfield.default;
},
ImplementableInputObjectRef: function() {
return _inputobject.ImplementableInputObjectRef;
},
ImplementableInterfaceRef: function() {
return _interface1.ImplementableInterfaceRef;
},
ImplementableObjectRef: function() {
return _object1.ImplementableObjectRef;
},
OutputTypeRef: function() {
return _output.default;
}
});
require("./types/global");
const _builder = /*#__PURE__*/ _interopRequireDefault(require("./builder"));
const _builder1 = /*#__PURE__*/ _interopRequireDefault(require("./fieldUtils/builder"));
const _input = /*#__PURE__*/ _interopRequireDefault(require("./fieldUtils/input"));
const _interface = /*#__PURE__*/ _interopRequireDefault(require("./fieldUtils/interface"));
const _mutation = /*#__PURE__*/ _interopRequireDefault(require("./fieldUtils/mutation"));
const _object = /*#__PURE__*/ _interopRequireDefault(require("./fieldUtils/object"));
const _query = /*#__PURE__*/ _interopRequireDefault(require("./fieldUtils/query"));
const _root = /*#__PURE__*/ _interopRequireDefault(require("./fieldUtils/root"));
const _subscription = /*#__PURE__*/ _interopRequireDefault(require("./fieldUtils/subscription"));
const _base = /*#__PURE__*/ _interopRequireDefault(require("./refs/base"));
const _enum = /*#__PURE__*/ _interopRequireDefault(require("./refs/enum"));
const _inputList = /*#__PURE__*/ _interopRequireDefault(require("./refs/input-list"));
const _inputObject = /*#__PURE__*/ _interopRequireWildcard(require("./refs/input-object"));
const _interface1 = /*#__PURE__*/ _interopRequireWildcard(require("./refs/interface"));
const _list = /*#__PURE__*/ _interopRequireDefault(require("./refs/list"));
const _object1 = /*#__PURE__*/ _interopRequireWildcard(require("./refs/object"));
const _scalar = /*#__PURE__*/ _interopRequireDefault(require("./refs/scalar"));
const _union = /*#__PURE__*/ _interopRequireDefault(require("./refs/union"));
_exportStar(require("./errors"), exports);
_exportStar(require("./plugins"), exports);
_exportStar(require("./types"), exports);
_exportStar(require("./utils"), exports);
const _buildCache = /*#__PURE__*/ _interopRequireDefault(require("./build-cache"));
const _builtinScalar = /*#__PURE__*/ _interopRequireDefault(require("./refs/builtin-scalar"));
const _field = /*#__PURE__*/ _interopRequireDefault(require("./refs/field"));
const _input1 = /*#__PURE__*/ _interopRequireDefault(require("./refs/input"));
const _inputField = /*#__PURE__*/ _interopRequireDefault(require("./refs/input-field"));
const _output = /*#__PURE__*/ _interopRequireDefault(require("./refs/output"));
function _exportStar(from, to) {
const _builder = /*#__PURE__*/ _interop_require_default(require("./builder"));
const _builder1 = /*#__PURE__*/ _interop_require_default(require("./fieldUtils/builder"));
const _input = /*#__PURE__*/ _interop_require_default(require("./fieldUtils/input"));
const _interface = /*#__PURE__*/ _interop_require_default(require("./fieldUtils/interface"));
const _mutation = /*#__PURE__*/ _interop_require_default(require("./fieldUtils/mutation"));
const _object = /*#__PURE__*/ _interop_require_default(require("./fieldUtils/object"));
const _query = /*#__PURE__*/ _interop_require_default(require("./fieldUtils/query"));
const _root = /*#__PURE__*/ _interop_require_default(require("./fieldUtils/root"));
const _subscription = /*#__PURE__*/ _interop_require_default(require("./fieldUtils/subscription"));
const _base = /*#__PURE__*/ _interop_require_default(require("./refs/base"));
const _enum = /*#__PURE__*/ _interop_require_default(require("./refs/enum"));
const _inputlist = /*#__PURE__*/ _interop_require_default(require("./refs/input-list"));
const _inputobject = /*#__PURE__*/ _interop_require_wildcard(require("./refs/input-object"));
const _interface1 = /*#__PURE__*/ _interop_require_wildcard(require("./refs/interface"));
const _list = /*#__PURE__*/ _interop_require_default(require("./refs/list"));
const _object1 = /*#__PURE__*/ _interop_require_wildcard(require("./refs/object"));
const _scalar = /*#__PURE__*/ _interop_require_default(require("./refs/scalar"));
const _union = /*#__PURE__*/ _interop_require_default(require("./refs/union"));
_export_star(require("./errors"), exports);
_export_star(require("./plugins"), exports);
_export_star(require("./types"), exports);
_export_star(require("./utils"), exports);
const _buildcache = /*#__PURE__*/ _interop_require_default(require("./build-cache"));
const _builtinscalar = /*#__PURE__*/ _interop_require_default(require("./refs/builtin-scalar"));
const _field = /*#__PURE__*/ _interop_require_default(require("./refs/field"));
const _input1 = /*#__PURE__*/ _interop_require_default(require("./refs/input"));
const _inputfield = /*#__PURE__*/ _interop_require_default(require("./refs/input-field"));
const _output = /*#__PURE__*/ _interop_require_default(require("./refs/output"));
function _export_star(from, to) {
Object.keys(from).forEach(function(k) {
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) Object.defineProperty(to, k, {
enumerable: true,
get: function() {
return from[k];
}
});
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
Object.defineProperty(to, k, {
enumerable: true,
get: function() {
return from[k];
}
});
}
});
return from;
}
function _interopRequireDefault(obj) {
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {

@@ -94,3 +150,3 @@ default: obj

}
function _interopRequireWildcard(obj, nodeInterop) {
function _interop_require_wildcard(obj, nodeInterop) {
if (!nodeInterop && obj && obj.__esModule) {

@@ -138,4 +194,4 @@ return obj;

const EnumRef = _enum.default;
const InputObjectRef = _inputObject.default;
const InputListRef = _inputList.default;
const InputObjectRef = _inputobject.default;
const InputListRef = _inputlist.default;
const InterfaceRef = _interface1.default;

@@ -142,0 +198,0 @@ const ObjectRef = _object1.default;

@@ -5,12 +5,14 @@ "use strict";

});
_exportStar(require("./merge-plugins"), exports);
_exportStar(require("./plugin"), exports);
function _exportStar(from, to) {
_export_star(require("./merge-plugins"), exports);
_export_star(require("./plugin"), exports);
function _export_star(from, to) {
Object.keys(from).forEach(function(k) {
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) Object.defineProperty(to, k, {
enumerable: true,
get: function() {
return from[k];
}
});
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
Object.defineProperty(to, k, {
enumerable: true,
get: function() {
return from[k];
}
});
}
});

@@ -17,0 +19,0 @@ return from;

@@ -7,6 +7,8 @@ "use strict";

enumerable: true,
get: ()=>MergedPlugins
get: function() {
return MergedPlugins;
}
});
const _plugin = require("./plugin");
function _defineProperty(obj, key, value) {
function _define_property(obj, key, value) {
if (key in obj) {

@@ -59,3 +61,3 @@ Object.defineProperty(obj, key, {

super(buildCache, 'PothosMergedPlugin');
_defineProperty(this, "plugins", void 0);
_define_property(this, "plugins", void 0);
this.plugins = plugins;

@@ -62,0 +64,0 @@ }

@@ -7,7 +7,9 @@ "use strict";

enumerable: true,
get: ()=>BasePlugin
get: function() {
return BasePlugin;
}
});
const _errors = require("../errors");
const _contextCache = require("../utils/context-cache");
function _defineProperty(obj, key, value) {
const _contextcache = require("../utils/context-cache");
function _define_property(obj, key, value) {
if (key in obj) {

@@ -123,7 +125,7 @@ Object.defineProperty(obj, key, {

constructor(buildCache, name){
_defineProperty(this, "name", void 0);
_defineProperty(this, "builder", void 0);
_defineProperty(this, "buildCache", void 0);
_defineProperty(this, "options", void 0);
_defineProperty(this, "requestDataMap", (0, _contextCache.createContextCache)((ctx)=>this.createRequestData(ctx)));
_define_property(this, "name", void 0);
_define_property(this, "builder", void 0);
_define_property(this, "buildCache", void 0);
_define_property(this, "options", void 0);
_define_property(this, "requestDataMap", (0, _contextcache.createContextCache)((ctx)=>this.createRequestData(ctx)));
this.name = name;

@@ -130,0 +132,0 @@ this.builder = buildCache.builder;

@@ -7,5 +7,7 @@ "use strict";

enumerable: true,
get: ()=>BaseTypeRef
get: function() {
return BaseTypeRef;
}
});
function _defineProperty(obj, key, value) {
function _define_property(obj, key, value) {
if (key in obj) {

@@ -28,4 +30,4 @@ Object.defineProperty(obj, key, {

constructor(kind, name){
_defineProperty(this, "kind", void 0);
_defineProperty(this, "name", void 0);
_define_property(this, "kind", void 0);
_define_property(this, "name", void 0);
this.kind = kind;

@@ -32,0 +34,0 @@ this.name = name;

@@ -7,6 +7,8 @@ "use strict";

enumerable: true,
get: ()=>BuiltinScalarRef
get: function() {
return BuiltinScalarRef;
}
});
const _scalar = /*#__PURE__*/ _interopRequireDefault(require("./scalar"));
function _defineProperty(obj, key, value) {
const _scalar = /*#__PURE__*/ _interop_require_default(require("./scalar"));
function _define_property(obj, key, value) {
if (key in obj) {

@@ -24,3 +26,3 @@ Object.defineProperty(obj, key, {

}
function _interopRequireDefault(obj) {
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {

@@ -33,3 +35,3 @@ default: obj

super(type.name);
_defineProperty(this, "type", void 0);
_define_property(this, "type", void 0);
this.type = type;

@@ -36,0 +38,0 @@ }

@@ -7,7 +7,9 @@ "use strict";

enumerable: true,
get: ()=>EnumRef
get: function() {
return EnumRef;
}
});
const _types = require("../types");
const _base = /*#__PURE__*/ _interopRequireDefault(require("./base"));
function _defineProperty(obj, key, value) {
const _base = /*#__PURE__*/ _interop_require_default(require("./base"));
function _define_property(obj, key, value) {
if (key in obj) {

@@ -25,3 +27,3 @@ Object.defineProperty(obj, key, {

}
function _interopRequireDefault(obj) {
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {

@@ -35,5 +37,5 @@ default: obj

super('Enum', name);
_defineProperty(this, "kind", 'Enum');
_defineProperty(this, _outputShapeKey, void 0);
_defineProperty(this, _inputShapeKey, void 0);
_define_property(this, "kind", 'Enum');
_define_property(this, _outputShapeKey, void 0);
_define_property(this, _inputShapeKey, void 0);
}

@@ -40,0 +42,0 @@ }

@@ -7,6 +7,8 @@ "use strict";

enumerable: true,
get: ()=>FieldRef
get: function() {
return FieldRef;
}
});
const _types = require("../types");
function _defineProperty(obj, key, value) {
function _define_property(obj, key, value) {
if (key in obj) {

@@ -33,6 +35,6 @@ Object.defineProperty(obj, key, {

constructor(kind, parentTypename){
_defineProperty(this, "kind", void 0);
_defineProperty(this, "parentTypename", void 0);
_defineProperty(this, "fieldName", void 0);
_defineProperty(this, _outputFieldShapeKey, void 0);
_define_property(this, "kind", void 0);
_define_property(this, "parentTypename", void 0);
_define_property(this, "fieldName", void 0);
_define_property(this, _outputFieldShapeKey, void 0);
this.kind = kind;

@@ -39,0 +41,0 @@ this.parentTypename = parentTypename;

@@ -7,6 +7,8 @@ "use strict";

enumerable: true,
get: ()=>InputFieldRef
get: function() {
return InputFieldRef;
}
});
const _types = require("../types");
function _defineProperty(obj, key, value) {
function _define_property(obj, key, value) {
if (key in obj) {

@@ -41,7 +43,7 @@ Object.defineProperty(obj, key, {

constructor(kind, parentTypename){
_defineProperty(this, "kind", void 0);
_defineProperty(this, "parentTypename", void 0);
_defineProperty(this, "fieldName", void 0);
_defineProperty(this, "argFor", void 0);
_defineProperty(this, _inputFieldShapeKey, void 0);
_define_property(this, "kind", void 0);
_define_property(this, "parentTypename", void 0);
_define_property(this, "fieldName", void 0);
_define_property(this, "argFor", void 0);
_define_property(this, _inputFieldShapeKey, void 0);
this.kind = kind;

@@ -48,0 +50,0 @@ this.parentTypename = parentTypename;

@@ -7,7 +7,9 @@ "use strict";

enumerable: true,
get: ()=>InputObjectRef
get: function() {
return InputObjectRef;
}
});
const _types = require("../types");
const _base = /*#__PURE__*/ _interopRequireDefault(require("./base"));
function _defineProperty(obj, key, value) {
const _base = /*#__PURE__*/ _interop_require_default(require("./base"));
function _define_property(obj, key, value) {
if (key in obj) {

@@ -25,3 +27,3 @@ Object.defineProperty(obj, key, {

}
function _interopRequireDefault(obj) {
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {

@@ -35,6 +37,6 @@ default: obj

super('InputList', `InputList<${String(listType)}>`);
_defineProperty(this, "kind", 'InputList');
_defineProperty(this, _inputShapeKey, void 0);
_defineProperty(this, "listType", void 0);
_defineProperty(this, "required", void 0);
_define_property(this, "kind", 'InputList');
_define_property(this, _inputShapeKey, void 0);
_define_property(this, "listType", void 0);
_define_property(this, "required", void 0);
this.listType = listType;

@@ -41,0 +43,0 @@ this.required = required;

@@ -12,8 +12,12 @@ /* eslint-disable max-classes-per-file */ "use strict";

_export(exports, {
default: ()=>InputObjectRef,
ImplementableInputObjectRef: ()=>ImplementableInputObjectRef
default: function() {
return InputObjectRef;
},
ImplementableInputObjectRef: function() {
return ImplementableInputObjectRef;
}
});
const _types = require("../types");
const _base = /*#__PURE__*/ _interopRequireDefault(require("./base"));
function _defineProperty(obj, key, value) {
const _base = /*#__PURE__*/ _interop_require_default(require("./base"));
function _define_property(obj, key, value) {
if (key in obj) {

@@ -31,3 +35,3 @@ Object.defineProperty(obj, key, {

}
function _interopRequireDefault(obj) {
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {

@@ -41,4 +45,4 @@ default: obj

super('InputObject', name);
_defineProperty(this, "kind", 'InputObject');
_defineProperty(this, _inputShapeKey, void 0);
_define_property(this, "kind", 'InputObject');
_define_property(this, _inputShapeKey, void 0);
}

@@ -53,3 +57,3 @@ }

super(name);
_defineProperty(this, "builder", void 0);
_define_property(this, "builder", void 0);
this.builder = builder;

@@ -56,0 +60,0 @@ }

@@ -7,7 +7,9 @@ "use strict";

enumerable: true,
get: ()=>InputTypeRef
get: function() {
return InputTypeRef;
}
});
const _types = require("../types");
const _base = /*#__PURE__*/ _interopRequireDefault(require("./base"));
function _defineProperty(obj, key, value) {
const _base = /*#__PURE__*/ _interop_require_default(require("./base"));
function _define_property(obj, key, value) {
if (key in obj) {

@@ -25,3 +27,3 @@ Object.defineProperty(obj, key, {

}
function _interopRequireDefault(obj) {
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {

@@ -35,4 +37,4 @@ default: obj

super(kind, name);
_defineProperty(this, "kind", void 0);
_defineProperty(this, _inputShapeKey, void 0);
_define_property(this, "kind", void 0);
_define_property(this, _inputShapeKey, void 0);
this.kind = kind;

@@ -39,0 +41,0 @@ }

@@ -12,8 +12,12 @@ /* eslint-disable max-classes-per-file */ "use strict";

_export(exports, {
default: ()=>InterfaceRef,
ImplementableInterfaceRef: ()=>ImplementableInterfaceRef
default: function() {
return InterfaceRef;
},
ImplementableInterfaceRef: function() {
return ImplementableInterfaceRef;
}
});
const _types = require("../types");
const _base = /*#__PURE__*/ _interopRequireDefault(require("./base"));
function _defineProperty(obj, key, value) {
const _base = /*#__PURE__*/ _interop_require_default(require("./base"));
function _define_property(obj, key, value) {
if (key in obj) {

@@ -31,3 +35,3 @@ Object.defineProperty(obj, key, {

}
function _interopRequireDefault(obj) {
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {

@@ -41,5 +45,5 @@ default: obj

super('Interface', name);
_defineProperty(this, "kind", 'Interface');
_defineProperty(this, _outputShapeKey, void 0);
_defineProperty(this, _parentShapeKey, void 0);
_define_property(this, "kind", 'Interface');
_define_property(this, _outputShapeKey, void 0);
_define_property(this, _parentShapeKey, void 0);
}

@@ -53,3 +57,3 @@ }

super(name);
_defineProperty(this, "builder", void 0);
_define_property(this, "builder", void 0);
this.builder = builder;

@@ -56,0 +60,0 @@ }

@@ -7,7 +7,9 @@ "use strict";

enumerable: true,
get: ()=>ListRef
get: function() {
return ListRef;
}
});
const _types = require("../types");
const _base = /*#__PURE__*/ _interopRequireDefault(require("./base"));
function _defineProperty(obj, key, value) {
const _base = /*#__PURE__*/ _interop_require_default(require("./base"));
function _define_property(obj, key, value) {
if (key in obj) {

@@ -25,3 +27,3 @@ Object.defineProperty(obj, key, {

}
function _interopRequireDefault(obj) {
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {

@@ -35,7 +37,7 @@ default: obj

super('List', `List<${String(listType)}>`);
_defineProperty(this, "kind", 'List');
_defineProperty(this, _outputShapeKey, void 0);
_defineProperty(this, _parentShapeKey, void 0);
_defineProperty(this, "listType", void 0);
_defineProperty(this, "nullable", void 0);
_define_property(this, "kind", 'List');
_define_property(this, _outputShapeKey, void 0);
_define_property(this, _parentShapeKey, void 0);
_define_property(this, "listType", void 0);
_define_property(this, "nullable", void 0);
this.listType = listType;

@@ -42,0 +44,0 @@ this.nullable = nullable;

@@ -12,8 +12,12 @@ /* eslint-disable max-classes-per-file */ "use strict";

_export(exports, {
default: ()=>ObjectRef,
ImplementableObjectRef: ()=>ImplementableObjectRef
default: function() {
return ObjectRef;
},
ImplementableObjectRef: function() {
return ImplementableObjectRef;
}
});
const _types = require("../types");
const _base = /*#__PURE__*/ _interopRequireDefault(require("./base"));
function _defineProperty(obj, key, value) {
const _base = /*#__PURE__*/ _interop_require_default(require("./base"));
function _define_property(obj, key, value) {
if (key in obj) {

@@ -31,3 +35,3 @@ Object.defineProperty(obj, key, {

}
function _interopRequireDefault(obj) {
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {

@@ -41,5 +45,5 @@ default: obj

super('Object', name);
_defineProperty(this, "kind", 'Object');
_defineProperty(this, _outputShapeKey, void 0);
_defineProperty(this, _parentShapeKey, void 0);
_define_property(this, "kind", 'Object');
_define_property(this, _outputShapeKey, void 0);
_define_property(this, _parentShapeKey, void 0);
}

@@ -53,3 +57,3 @@ }

super(name);
_defineProperty(this, "builder", void 0);
_define_property(this, "builder", void 0);
this.builder = builder;

@@ -56,0 +60,0 @@ }

@@ -7,7 +7,9 @@ "use strict";

enumerable: true,
get: ()=>OutputTypeRef
get: function() {
return OutputTypeRef;
}
});
const _types = require("../types");
const _base = /*#__PURE__*/ _interopRequireDefault(require("./base"));
function _defineProperty(obj, key, value) {
const _base = /*#__PURE__*/ _interop_require_default(require("./base"));
function _define_property(obj, key, value) {
if (key in obj) {

@@ -25,3 +27,3 @@ Object.defineProperty(obj, key, {

}
function _interopRequireDefault(obj) {
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {

@@ -35,5 +37,5 @@ default: obj

super(kind, name);
_defineProperty(this, "kind", void 0);
_defineProperty(this, _outputShapeKey, void 0);
_defineProperty(this, _parentShapeKey, void 0);
_define_property(this, "kind", void 0);
_define_property(this, _outputShapeKey, void 0);
_define_property(this, _parentShapeKey, void 0);
this.kind = kind;

@@ -40,0 +42,0 @@ }

@@ -7,7 +7,9 @@ "use strict";

enumerable: true,
get: ()=>ScalarRef
get: function() {
return ScalarRef;
}
});
const _types = require("../types");
const _base = /*#__PURE__*/ _interopRequireDefault(require("./base"));
function _defineProperty(obj, key, value) {
const _base = /*#__PURE__*/ _interop_require_default(require("./base"));
function _define_property(obj, key, value) {
if (key in obj) {

@@ -25,3 +27,3 @@ Object.defineProperty(obj, key, {

}
function _interopRequireDefault(obj) {
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {

@@ -35,6 +37,6 @@ default: obj

super('Scalar', name);
_defineProperty(this, "kind", 'Scalar');
_defineProperty(this, _outputShapeKey, void 0);
_defineProperty(this, _parentShapeKey, void 0);
_defineProperty(this, _inputShapeKey, void 0);
_define_property(this, "kind", 'Scalar');
_define_property(this, _outputShapeKey, void 0);
_define_property(this, _parentShapeKey, void 0);
_define_property(this, _inputShapeKey, void 0);
}

@@ -41,0 +43,0 @@ }

@@ -7,7 +7,9 @@ "use strict";

enumerable: true,
get: ()=>UnionRef
get: function() {
return UnionRef;
}
});
const _typeParams = require("../types/type-params");
const _base = /*#__PURE__*/ _interopRequireDefault(require("./base"));
function _defineProperty(obj, key, value) {
const _typeparams = require("../types/type-params");
const _base = /*#__PURE__*/ _interop_require_default(require("./base"));
function _define_property(obj, key, value) {
if (key in obj) {

@@ -25,3 +27,3 @@ Object.defineProperty(obj, key, {

}
function _interopRequireDefault(obj) {
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {

@@ -31,9 +33,9 @@ default: obj

}
let _outputShapeKey = _typeParams.outputShapeKey, _parentShapeKey = _typeParams.parentShapeKey;
let _outputShapeKey = _typeparams.outputShapeKey, _parentShapeKey = _typeparams.parentShapeKey;
class UnionRef extends _base.default {
constructor(name){
super('Union', name);
_defineProperty(this, "kind", 'Union');
_defineProperty(this, _outputShapeKey, void 0);
_defineProperty(this, _parentShapeKey, void 0);
_define_property(this, "kind", 'Union');
_define_property(this, _outputShapeKey, void 0);
_define_property(this, _parentShapeKey, void 0);
}

@@ -40,0 +42,0 @@ }

@@ -6,16 +6,18 @@ "use strict";

require("./global");
_exportStar(require("./builder-options"), exports);
_exportStar(require("./configs"), exports);
_exportStar(require("./plugins"), exports);
_exportStar(require("./schema-types"), exports);
_exportStar(require("./type-params"), exports);
_exportStar(require("./utils"), exports);
function _exportStar(from, to) {
_export_star(require("./builder-options"), exports);
_export_star(require("./configs"), exports);
_export_star(require("./plugins"), exports);
_export_star(require("./schema-types"), exports);
_export_star(require("./type-params"), exports);
_export_star(require("./utils"), exports);
function _export_star(from, to) {
Object.keys(from).forEach(function(k) {
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) Object.defineProperty(to, k, {
enumerable: true,
get: function() {
return from[k];
}
});
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
Object.defineProperty(to, k, {
enumerable: true,
get: function() {
return from[k];
}
});
}
});

@@ -22,0 +24,0 @@ return from;

@@ -12,9 +12,23 @@ "use strict";

_export(exports, {
outputShapeKey: ()=>outputShapeKey,
parentShapeKey: ()=>parentShapeKey,
abstractReturnShapeKey: ()=>abstractReturnShapeKey,
inputShapeKey: ()=>inputShapeKey,
inputFieldShapeKey: ()=>inputFieldShapeKey,
outputFieldShapeKey: ()=>outputFieldShapeKey,
typeBrandKey: ()=>typeBrandKey
outputShapeKey: function() {
return outputShapeKey;
},
parentShapeKey: function() {
return parentShapeKey;
},
abstractReturnShapeKey: function() {
return abstractReturnShapeKey;
},
inputShapeKey: function() {
return inputShapeKey;
},
inputFieldShapeKey: function() {
return inputFieldShapeKey;
},
outputFieldShapeKey: function() {
return outputFieldShapeKey;
},
typeBrandKey: function() {
return typeBrandKey;
}
});

@@ -21,0 +35,0 @@ const outputShapeKey = Symbol.for('Pothos.outputShapeKey');

@@ -12,4 +12,8 @@ /* eslint-disable @typescript-eslint/prefer-ts-expect-error */ /* eslint-disable @typescript-eslint/ban-ts-comment */ /* eslint-disable no-restricted-globals */ /* eslint-disable @typescript-eslint/no-invalid-this */ /* eslint-disable node/no-unsupported-features/es-builtins */ "use strict";

_export(exports, {
encodeBase64: ()=>encodeBase64,
decodeBase64: ()=>decodeBase64
encodeBase64: function() {
return encodeBase64;
},
decodeBase64: function() {
return decodeBase64;
}
});

@@ -16,0 +20,0 @@ const getGlobalThis = ()=>{

@@ -12,5 +12,11 @@ "use strict";

_export(exports, {
contextCacheSymbol: ()=>contextCacheSymbol,
initContextCache: ()=>initContextCache,
createContextCache: ()=>createContextCache
contextCacheSymbol: function() {
return contextCacheSymbol;
},
initContextCache: function() {
return initContextCache;
},
createContextCache: function() {
return createContextCache;
}
});

@@ -17,0 +23,0 @@ const contextCacheSymbol = Symbol.for('Pothos.contextCache');

@@ -12,4 +12,8 @@ "use strict";

_export(exports, {
normalizeEnumValues: ()=>normalizeEnumValues,
valuesFromEnum: ()=>valuesFromEnum
normalizeEnumValues: function() {
return normalizeEnumValues;
},
valuesFromEnum: function() {
return valuesFromEnum;
}
});

@@ -44,6 +48,7 @@ function normalizeEnumValues(values) {

Object.keys(Enum).filter((key)=>typeof Enum[Enum[key]] !== 'number').forEach((key)=>{
var _values;
result[key] = {
value: Enum[key],
pothosOptions: {},
...values === null || values === void 0 ? void 0 : values[key]
...(_values = values) === null || _values === void 0 ? void 0 : _values[key]
};

@@ -50,0 +55,0 @@ });

@@ -12,36 +12,60 @@ "use strict";

_export(exports, {
assertNever: ()=>assertNever,
assertArray: ()=>assertArray,
isThenable: ()=>isThenable,
verifyRef: ()=>verifyRef,
verifyInterfaces: ()=>verifyInterfaces,
brandWithType: ()=>brandWithType,
getTypeBrand: ()=>getTypeBrand,
unwrapListParam: ()=>unwrapListParam,
unwrapOutputListParam: ()=>unwrapOutputListParam,
unwrapInputListParam: ()=>unwrapInputListParam,
completeValue: ()=>completeValue
assertNever: function() {
return assertNever;
},
assertArray: function() {
return assertArray;
},
isThenable: function() {
return isThenable;
},
verifyRef: function() {
return verifyRef;
},
verifyInterfaces: function() {
return verifyInterfaces;
},
brandWithType: function() {
return brandWithType;
},
getTypeBrand: function() {
return getTypeBrand;
},
unwrapListParam: function() {
return unwrapListParam;
},
unwrapOutputListParam: function() {
return unwrapOutputListParam;
},
unwrapInputListParam: function() {
return unwrapInputListParam;
},
completeValue: function() {
return completeValue;
}
});
const _errors = require("../errors");
const _inputList = /*#__PURE__*/ _interopRequireDefault(require("../refs/input-list"));
const _list = /*#__PURE__*/ _interopRequireDefault(require("../refs/list"));
const _inputlist = /*#__PURE__*/ _interop_require_default(require("../refs/input-list"));
const _list = /*#__PURE__*/ _interop_require_default(require("../refs/list"));
const _types = require("../types");
_exportStar(require("./base64"), exports);
_exportStar(require("./context-cache"), exports);
_exportStar(require("./enums"), exports);
_exportStar(require("./input"), exports);
_exportStar(require("./params"), exports);
_exportStar(require("./sort-classes"), exports);
function _exportStar(from, to) {
_export_star(require("./base64"), exports);
_export_star(require("./context-cache"), exports);
_export_star(require("./enums"), exports);
_export_star(require("./input"), exports);
_export_star(require("./params"), exports);
_export_star(require("./sort-classes"), exports);
function _export_star(from, to) {
Object.keys(from).forEach(function(k) {
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) Object.defineProperty(to, k, {
enumerable: true,
get: function() {
return from[k];
}
});
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
Object.defineProperty(to, k, {
enumerable: true,
get: function() {
return from[k];
}
});
}
});
return from;
}
function _interopRequireDefault(obj) {
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {

@@ -119,3 +143,3 @@ default: obj

}
if (param instanceof _list.default || param instanceof _inputList.default) {
if (param instanceof _list.default || param instanceof _inputlist.default) {
return unwrapListParam(param.listType);

@@ -138,3 +162,3 @@ }

}
if (param instanceof _inputList.default) {
if (param instanceof _inputlist.default) {
return unwrapInputListParam(param.listType);

@@ -141,0 +165,0 @@ }

@@ -12,5 +12,11 @@ "use strict";

_export(exports, {
resolveInputTypeConfig: ()=>resolveInputTypeConfig,
mapInputFields: ()=>mapInputFields,
createInputValueMapper: ()=>createInputValueMapper
resolveInputTypeConfig: function() {
return resolveInputTypeConfig;
},
mapInputFields: function() {
return mapInputFields;
},
createInputValueMapper: function() {
return createInputValueMapper;
}
});

@@ -17,0 +23,0 @@ const _errors = require("../errors");

@@ -12,12 +12,20 @@ "use strict";

_export(exports, {
unwrapOutputFieldType: ()=>unwrapOutputFieldType,
typeFromParam: ()=>typeFromParam,
unwrapInputFieldType: ()=>unwrapInputFieldType,
inputTypeFromParam: ()=>inputTypeFromParam
unwrapOutputFieldType: function() {
return unwrapOutputFieldType;
},
typeFromParam: function() {
return typeFromParam;
},
unwrapInputFieldType: function() {
return unwrapInputFieldType;
},
inputTypeFromParam: function() {
return inputTypeFromParam;
}
});
const _errors = require("../errors");
const _base = /*#__PURE__*/ _interopRequireDefault(require("../refs/base"));
const _inputList = /*#__PURE__*/ _interopRequireDefault(require("../refs/input-list"));
const _list = /*#__PURE__*/ _interopRequireDefault(require("../refs/list"));
function _interopRequireDefault(obj) {
const _base = /*#__PURE__*/ _interop_require_default(require("../refs/base"));
const _inputlist = /*#__PURE__*/ _interop_require_default(require("../refs/input-list"));
const _list = /*#__PURE__*/ _interop_require_default(require("../refs/list"));
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {

@@ -78,3 +86,3 @@ default: obj

}
if (param instanceof _inputList.default) {
if (param instanceof _inputlist.default) {
return {

@@ -81,0 +89,0 @@ kind: 'List',

@@ -12,4 +12,8 @@ "use strict";

_export(exports, {
classDepth: ()=>classDepth,
sortClasses: ()=>sortClasses
classDepth: function() {
return classDepth;
},
sortClasses: function() {
return sortClasses;
}
});

@@ -16,0 +20,0 @@ function classDepth(obj) {

{
"name": "@pothos/core",
"version": "3.30.0",
"version": "3.31.0",
"description": "Pothos (formerly GiraphQL) is a plugin based schema builder for creating code-first GraphQL schemas in typescript",

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

"devDependencies": {
"graphql": "16.6.0",
"graphql-scalars": "^1.20.4",
"graphql": "16.7.1",
"graphql-scalars": "^1.22.2",
"graphql-tag": "^2.12.6",

@@ -47,0 +47,0 @@ "@pothos/test-utils": "1.4.8"

@@ -534,3 +534,7 @@ import {

},
} as PothosSchemaTypes.ScalarTypeOptions<Types, InputShape<Types, Name>, ParentShape<Types, Name>>);
} as PothosSchemaTypes.ScalarTypeOptions<
Types,
InputShape<Types, Name>,
ParentShape<Types, Name>
>);
}

@@ -541,3 +545,3 @@

Fields extends Param extends PothosSchemaTypes.InputObjectRef<unknown>
? InputFieldsFromShape<InputShape<Types, Param> & {}>
? InputFieldsFromShape<InputShape<Types, Param>>
: InputFieldMap,

@@ -544,0 +548,0 @@ >(

@@ -144,6 +144,5 @@ /* eslint-disable @typescript-eslint/no-redeclare */

export type EnumRef<T, P = T> = PothosSchemaTypes.EnumRef<T, P>;
export const EnumRef = InternalEnumRef as new <T, P = T>(name: string) => PothosSchemaTypes.EnumRef<
T,
P
>;
export const EnumRef = InternalEnumRef as new <T, P = T>(
name: string,
) => PothosSchemaTypes.EnumRef<T, P>;

@@ -150,0 +149,0 @@ export type InputObjectRef<T> = PothosSchemaTypes.InputObjectRef<T>;

@@ -47,4 +47,4 @@ /* eslint-disable max-classes-per-file */

return this as InputObjectRef<T>;
return this as InputObjectRef<RecursivelyNormalizeNullableFields<T>>;
}
}

@@ -210,3 +210,3 @@ import type { GraphQLResolveInfo } from 'graphql';

export type InputFieldsFromShape<Shape extends object> = {
export type InputFieldsFromShape<Shape> = {
[K in keyof Shape]: InputFieldRef<Shape[K], 'InputObject'>;

@@ -213,0 +213,0 @@ };

@@ -16,5 +16,8 @@ export type MaybePromise<T> = Promise<T> | T;

export type NonEmptyKeys<T extends object> = {
[K in keyof T]: {} extends T[K] ? never : T[K] extends NonNullable<T[K]> ? K : never;
}[keyof T];
export type NonEmptyKeys<T extends object> = undefined extends {}
? // non-strict mode, all keys are optional
never
: {
[K in keyof T]: {} extends T[K] ? never : T[K] extends NonNullable<T[K]> ? K : never;
}[keyof T];

@@ -47,24 +50,20 @@ export type EmptyKeys<T extends object> = {

export type RecursivelyNormalizeNullableFields<T> = T extends object[]
export type RecursivelyNormalizeNullableFields<T> = undefined extends T
? RecursivelyNormalizeNullableFields<NonNullable<T>> | null | undefined
: null extends T
? RecursivelyNormalizeNullableFields<NonNullable<T>> | null | undefined
: T extends (infer L)[]
? RecursivelyNormalizeNullableFields<L>[]
: T extends object
? Normalize<
{
[K in OptionalKeys<T[number]>]?:
| RecursivelyNormalizeNullableFields<T[number][K]>
[K in OptionalKeys<T>]?:
| RecursivelyNormalizeNullableFields<NonNullable<T[K]>>
| null
| undefined;
} & {
[K in RequiredKeys<T[number]>]: RecursivelyNormalizeNullableFields<T[number][K]>;
[K in RequiredKeys<T>]: RecursivelyNormalizeNullableFields<NonNullable<T[K]>>;
}
>[]
: T extends unknown[]
? NormalizeNullable<T[number]>[]
: T extends object
? Normalize<
{
[K in OptionalKeys<T>]?: RecursivelyNormalizeNullableFields<T[K]> | null | undefined;
} & {
[K in RequiredKeys<T>]: RecursivelyNormalizeNullableFields<T[K]>;
}
>
: NormalizeNullable<T>;
: T;

@@ -71,0 +70,0 @@ export type RemoveNeverKeys<T extends {}> = {

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

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

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

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

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