New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@pothos/plugin-simple-objects

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pothos/plugin-simple-objects - npm Package Compare versions

Comparing version 3.6.2 to 3.6.3

6

CHANGELOG.md
# Change Log
## 3.6.3
### Patch Changes
- 3a82d645: Apply esm transform to esm d.ts definitions
## 3.6.2

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

18

esm/global-types.d.ts
import { FieldMap, FieldNullability, InputFieldMap, InterfaceParam, Normalize, ParentShape, SchemaTypes, TypeParam } from '@pothos/core';
import { OutputShapeFromFields, SimpleObjectFieldsShape } from './types';
import type { PothosSimpleObjectsPlugin } from '.';
import { OutputShapeFromFields, SimpleObjectFieldsShape } from './types.js';
import type { PothosSimpleObjectsPlugin } from './index.js';
declare global {

@@ -14,13 +14,13 @@ export namespace PothosSchemaTypes {

interface PothosKindToGraphQLType {
SimpleObject: 'Object';
SimpleInterface: 'Interface';
SimpleObject: "Object";
SimpleInterface: "Interface";
}
interface FieldOptionsByKind<Types extends SchemaTypes, ParentShape, Type extends TypeParam<Types>, Nullable extends FieldNullability<Type>, Args extends InputFieldMap, ResolveShape, ResolveReturnShape> {
SimpleObject: Omit<ObjectFieldOptions<Types, ParentShape, Type, Nullable, Args, ResolveReturnShape>, 'resolve'>;
SimpleInterface: Omit<InterfaceFieldOptions<Types, ParentShape, Type, Nullable, Args, ResolveReturnShape>, 'resolve'>;
SimpleObject: Omit<ObjectFieldOptions<Types, ParentShape, Type, Nullable, Args, ResolveReturnShape>, "resolve">;
SimpleInterface: Omit<InterfaceFieldOptions<Types, ParentShape, Type, Nullable, Args, ResolveReturnShape>, "resolve">;
}
type SimpleObjectTypeOptions<Types extends SchemaTypes, Interfaces extends InterfaceParam<Types>[], Fields extends FieldMap, Shape> = Omit<ObjectTypeOptions<Types, Shape> | ObjectTypeWithInterfaceOptions<Types, Shape, Interfaces>, 'fields'> & {
type SimpleObjectTypeOptions<Types extends SchemaTypes, Interfaces extends InterfaceParam<Types>[], Fields extends FieldMap, Shape> = Omit<ObjectTypeOptions<Types, Shape> | ObjectTypeWithInterfaceOptions<Types, Shape, Interfaces>, "fields"> & {
fields?: SimpleObjectFieldsShape<Types, Fields>;
};
interface SimpleInterfaceTypeOptions<Types extends SchemaTypes, Fields extends FieldMap, Shape extends OutputShapeFromFields<Fields>, Interfaces extends InterfaceParam<SchemaTypes>[]> extends Omit<InterfaceTypeOptions<Types, Shape, Interfaces>, 'args' | 'fields'> {
interface SimpleInterfaceTypeOptions<Types extends SchemaTypes, Fields extends FieldMap, Shape extends OutputShapeFromFields<Fields>, Interfaces extends InterfaceParam<SchemaTypes>[]> extends Omit<InterfaceTypeOptions<Types, Shape, Interfaces>, "args" | "fields"> {
fields?: SimpleObjectFieldsShape<Types, Fields>;

@@ -30,2 +30,2 @@ }

}
//# sourceMappingURL=global-types.d.ts.map
//# sourceMappingURL=global-types.d.ts.map

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

import './global-types';
import './global-types.js';
import { BasePlugin, SchemaTypes } from '@pothos/core';

@@ -7,2 +7,2 @@ declare const pluginName: "simpleObjects";

}
//# sourceMappingURL=index.d.ts.map
//# sourceMappingURL=index.d.ts.map
import { FieldMap, FieldRef, NullableToOptional, SchemaTypes } from '@pothos/core';
export declare type SimpleObjectFieldsShape<Types extends SchemaTypes, Fields extends FieldMap> = (t: PothosSchemaTypes.RootFieldBuilder<Types, unknown, 'SimpleObject'>) => Fields;
export declare type SimpleInterfaceFieldsShape<Types extends SchemaTypes, Fields extends FieldMap> = (t: PothosSchemaTypes.RootFieldBuilder<Types, unknown, 'SimpleInterface'>) => Fields;
export declare type SimpleObjectFieldsShape<Types extends SchemaTypes, Fields extends FieldMap> = (t: PothosSchemaTypes.RootFieldBuilder<Types, unknown, "SimpleObject">) => Fields;
export declare type SimpleInterfaceFieldsShape<Types extends SchemaTypes, Fields extends FieldMap> = (t: PothosSchemaTypes.RootFieldBuilder<Types, unknown, "SimpleInterface">) => Fields;
export declare type OutputShapeFromFields<Fields extends FieldMap> = NullableToOptional<{
[K in keyof Fields]: Fields[K] extends FieldRef<infer T> ? T : never;
}>;
//# sourceMappingURL=types.d.ts.map
//# sourceMappingURL=types.d.ts.map
{
"name": "@pothos/plugin-simple-objects",
"version": "3.6.2",
"version": "3.6.3",
"description": "A Pothos plugin for defining objects and interfaces without ts definitions for those types",

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

"devDependencies": {
"@pothos/core": "3.22.2",
"@pothos/test-utils": "1.4.1",
"@pothos/core": "3.22.4",
"@pothos/test-utils": "1.4.2",
"graphql": "16.6.0",

@@ -56,4 +56,4 @@ "graphql-tag": "^2.12.6"

"esm:extensions": "TS_NODE_PROJECT=../../tsconfig.json node -r @swc-node/register ../../scripts/esm-transformer.ts",
"test": "pnpm vitest --run"
"test": "pnpm vitest --run --segfault-retry=3"
}
}
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