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

@envelop/types

Package Overview
Dependencies
Maintainers
1
Versions
629
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@envelop/types - npm Package Compare versions

Comparing version 0.1.5-alpha-89abc0f.0 to 0.1.5-alpha-aed2e8b.0

13

index.d.ts

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

import { DocumentNode, GraphQLSchema, Source, ParseOptions, GraphQLError, parse, validate, GraphQLResolveInfo, ExecutionArgs, ExecutionResult, ValidationRule, TypeInfo, SubscriptionArgs as OriginalSubscriptionArgs, GraphQLFieldResolver, GraphQLTypeResolver } from 'graphql';
import { DocumentNode, GraphQLSchema, Source, ParseOptions, GraphQLError, parse, validate, GraphQLResolveInfo, ExecutionArgs, ExecutionResult, ValidationRule, TypeInfo, SubscriptionArgs, GraphQLFieldResolver, GraphQLTypeResolver } from 'graphql';
import { Maybe } from 'graphql/jsutils/Maybe';

@@ -17,5 +17,2 @@ import { PromiseOrValue } from 'graphql/jsutils/PromiseOrValue';

export declare type ExecuteFunction = (...args: PolymorphicExecuteArguments) => PromiseOrValue<ExecutionResult>;
export declare type SubscriptionArgs = OriginalSubscriptionArgs & {
execute?: ExecuteFunction;
};
export declare type PolymorphicSubscribeArguments = [SubscriptionArgs] | [

@@ -56,9 +53,2 @@ GraphQLSchema,

};
export declare type OnExecuteSubscriptionEventHandler<ContextType = DefaultContext> = (options: {
executeFn: ExecuteFunction;
args: ExecutionArgs;
setExecuteFn: (newExecute: ExecuteFunction) => void;
setResultAndStopExecution: (newResult: ExecutionResult) => void;
extendContext: (contextExtension: Partial<ContextType>) => void;
}) => OnExecuteHookResult<ContextType> | void;
export declare type OnSubscribeHookResult<ContextType = DefaultContext> = {

@@ -70,3 +60,2 @@ onSubscribeResult?: (options: {

onResolverCalled?: OnResolverCalledHooks<ContextType>;
onExecuteSubscriptionEvent?: OnExecuteSubscriptionEventHandler<ContextType>;
};

@@ -73,0 +62,0 @@ export interface Plugin<PluginContext = DefaultContext> {

2

package.json
{
"name": "@envelop/types",
"version": "0.1.5-alpha-89abc0f.0",
"version": "0.1.5-alpha-aed2e8b.0",
"sideEffects": false,

@@ -5,0 +5,0 @@ "peerDependencies": {

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