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.3.0 to 0.4.0-alpha-28c2e60.0

7

hooks.d.ts

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

export declare type OnPluginInitHook = (options: OnPluginInitEventPayload) => void;
/** onPluginInit */
export declare type OnEnvelopedHookEventPayload<ContextType> = {
setSchema: SetSchemaFn;
context: Readonly<ContextType>;
extendContext: (contextExtension: Partial<ContextType>) => void;
};
export declare type OnEnvelopedHook<ContextType> = (options: OnEnvelopedHookEventPayload<ContextType>) => void;
/** onParse */

@@ -22,0 +29,0 @@ export declare type OriginalParseFn = typeof parse;

2

package.json
{
"name": "@envelop/types",
"version": "0.3.0",
"version": "0.4.0-alpha-28c2e60.0",
"sideEffects": false,

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

@@ -0,3 +1,5 @@

import { OnEnvelopedHook } from 'packages/core/src';
import { OnContextBuildingHook, OnExecuteHook, OnParseHook, OnPluginInitHook, OnSchemaChangeHook, OnSubscribeHook, OnValidateHook } from './hooks';
export interface Plugin<PluginContext extends Record<string, any> = {}> {
onEnveloped?: OnEnvelopedHook<PluginContext>;
onSchemaChange?: OnSchemaChangeHook;

@@ -4,0 +6,0 @@ onPluginInit?: OnPluginInitHook;

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