New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.4.0 to 0.4.1-alpha-127d311.0

10

hooks.d.ts

@@ -104,6 +104,9 @@ import { DocumentNode, execute, ExecutionArgs, ExecutionResult, GraphQLError, GraphQLResolveInfo, GraphQLSchema, parse, ParseOptions, Source, subscribe, SubscriptionArgs, TypeInfo, validate, ValidationRule } from 'graphql';

/** onExecute */
export declare type TypedExecutionArgs<ContextType> = Omit<ExecutionArgs, 'contextValue'> & {
contextValue: ContextType;
};
export declare type OriginalExecuteFn = typeof execute;
export declare type OnExecuteEventPayload<ContextType> = {
executeFn: OriginalExecuteFn;
args: ExecutionArgs;
args: TypedExecutionArgs<ContextType>;
setExecuteFn: (newExecute: OriginalExecuteFn) => void;

@@ -124,6 +127,9 @@ setResultAndStopExecution: (newResult: ExecutionResult) => void;

/** onSubscribe */
export declare type TypedSubscriptionArgs<ContextType> = Omit<SubscriptionArgs, 'contextValue'> & {
contextValue: ContextType;
};
export declare type OriginalSubscribeFn = typeof subscribe;
export declare type OnSubscribeEventPayload<ContextType> = {
subscribeFn: OriginalSubscribeFn;
args: SubscriptionArgs;
args: TypedSubscriptionArgs<ContextType>;
setSubscribeFn: (newSubscribe: OriginalSubscribeFn) => void;

@@ -130,0 +136,0 @@ extendContext: (contextExtension: Partial<ContextType>) => void;

2

package.json
{
"name": "@envelop/types",
"version": "0.4.0",
"version": "0.4.1-alpha-127d311.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