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 1.0.2 to 1.1.0-alpha-1e3a5f8.0

17

hooks.d.ts

@@ -206,3 +206,17 @@ import type { DocumentNode, ExecutionArgs, ExecutionResult, GraphQLError, GraphQLResolveInfo, GraphQLSchema, ParseOptions, Source, SubscriptionArgs, ValidationRule } from 'graphql';

*/
export declare type AfterContextBuildingHook<ContextType> = (options: AfterContextBuildingEventPayload<ContextType>) => PromiseOrValue<void>;
export declare type OnEndContextBuildingHook<ContextType> = (options: AfterContextBuildingEventPayload<ContextType>) => PromiseOrValue<void>;
declare type OnErrorContextBuildingHookEventPayload = {
/** The error or thing that got rejected or thrown */
error: unknown;
/** Overwrite the error or thing that got rejected or thrown. */
setError: (err: unknown) => void;
};
export declare type OnErrorContextBuildingHook = (options: OnErrorContextBuildingHookEventPayload) => PromiseOrValue<void>;
export declare type AfterContextBuildingHooks<ContextType> = {
/** Invoked after the context was created successfully. */
onEnd?: OnEndContextBuildingHook<ContextType>;
/** Invoked after the context creation failed. */
onError?: OnErrorContextBuildingHook;
};
export declare type AfterContextBuildingHook<ContextType> = OnEndContextBuildingHook<ContextType> | AfterContextBuildingHooks<ContextType>;
/**

@@ -417,1 +431,2 @@ * Invoked before the context has been builded.

export declare type OnSubscribeHook<ContextType> = (options: OnSubscribeEventPayload<ContextType>) => PromiseOrValue<void | OnSubscribeHookResult<ContextType>>;
export {};

1

index.js

@@ -36,2 +36,1 @@ 'use strict';

exports.isAsyncIterable = isAsyncIterable;
//# sourceMappingURL=index.js.map
{
"name": "@envelop/types",
"version": "1.0.2",
"version": "1.1.0-alpha-1e3a5f8.0",
"sideEffects": false,

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

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