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

@envelop/core

Package Overview
Dependencies
Maintainers
1
Versions
1425
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@envelop/core - npm Package Compare versions

Comparing version 1.4.0-alpha-ed2d5ef.0 to 1.4.0

10

index.js

@@ -420,4 +420,2 @@ 'use strict';

contextValue: context,
// Casted for GraphQL.js 15 compatibility
// Can be removed once we drop support for GraphQL.js 15
});

@@ -531,3 +529,3 @@ const onNextHandler = [];

for (const afterCb of afterCalls) {
const hookResult = afterCb({
const hookResult = await afterCb({
args: args,

@@ -661,4 +659,2 @@ result,

: argsOrSchema;
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore GraphQL.js types contextValue as unknown
const done = createTracer('execute', args.contextValue || {});

@@ -670,4 +666,2 @@ try {

result.extensions = result.extensions || {};
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore GraphQL.js types contextValue as unknown
result.extensions.envelopTracing = args.contextValue._envelopTracing;

@@ -699,4 +693,2 @@ }

: argsOrSchema;
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore GraphQL.js types contextValue as unknown
const done = createTracer('subscribe', args.contextValue || {});

@@ -703,0 +695,0 @@ try {

3

orchestrator.d.ts

@@ -1,3 +0,4 @@

import { ArbitraryObject, EnvelopContextFnWrapper, GetEnvelopedFn, Plugin, DefaultContext, Maybe } from '@envelop/types';
import { ArbitraryObject, EnvelopContextFnWrapper, GetEnvelopedFn, Plugin, DefaultContext } from '@envelop/types';
import { GraphQLSchema } from 'graphql';
import { Maybe } from 'graphql/jsutils/Maybe';
export declare type EnvelopOrchestrator<InitialContext extends ArbitraryObject = ArbitraryObject, PluginsContext extends ArbitraryObject = ArbitraryObject> = {

@@ -4,0 +5,0 @@ init: (initialContext?: Maybe<InitialContext>) => void;

{
"name": "@envelop/core",
"version": "1.4.0-alpha-ed2d5ef.0",
"version": "1.4.0",
"sideEffects": false,
"peerDependencies": {
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
"graphql": "^14.0.0 || ^15.0.0"
},
"dependencies": {
"@envelop/types": "1.3.0-alpha-ed2d5ef.0"
"@envelop/types": "1.3.0"
},

@@ -11,0 +11,0 @@ "repository": {

import { ASTNode, DocumentNode, OperationDefinitionNode, Source, ExecutionResult, SubscriptionArgs, ExecutionArgs } from 'graphql';
import { AsyncIterableIteratorOrValue, ExecuteFunction, SubscribeFunction, PromiseOrValue } from '@envelop/types';
import { AsyncIterableIteratorOrValue, ExecuteFunction, SubscribeFunction } from '@envelop/types';
import { PromiseOrValue } from 'graphql/jsutils/PromiseOrValue';
export declare const envelopIsIntrospectionSymbol: unique symbol;

@@ -11,4 +12,4 @@ export declare function isOperationDefinition(def: ASTNode): def is OperationDefinitionNode;

*/
export declare const makeSubscribe: (subscribeFn: (args: SubscriptionArgs) => PromiseOrValue<AsyncIterableIterator<ExecutionResult>>) => SubscribeFunction;
export declare function mapAsyncIterator<TInput, TOutput = TInput>(asyncIterable: AsyncIterable<TInput>, map: (input: TInput) => Promise<TOutput> | TOutput): AsyncIterableIterator<TOutput>;
export declare const makeSubscribe: (subscribeFn: (args: SubscriptionArgs) => PromiseOrValue<AsyncIterableIterator<ExecutionResult> | ExecutionResult>) => SubscribeFunction;
export declare function mapAsyncIterator<TInput, TOutput = TInput>(asyncIterable: AsyncIterableIterator<TInput>, map: (input: TInput) => Promise<TOutput> | TOutput): AsyncIterableIterator<TOutput>;
/**

@@ -18,3 +19,3 @@ * Utility function for making a execute function that handles polymorphic arguments.

export declare const makeExecute: (executeFn: (args: ExecutionArgs) => PromiseOrValue<AsyncIterableIteratorOrValue<ExecutionResult>>) => ExecuteFunction;
export declare function finalAsyncIterator<TInput>(asyncIterable: AsyncIterable<TInput>, onFinal: () => void): AsyncIterableIterator<TInput>;
export declare function errorAsyncIterator<TInput>(asyncIterable: AsyncIterable<TInput>, onError: (err: unknown) => void): AsyncIterableIterator<TInput>;
export declare function finalAsyncIterator<TInput>(asyncIterable: AsyncIterableIterator<TInput>, onFinal: () => void): AsyncIterableIterator<TInput>;
export declare function errorAsyncIterator<TInput>(asyncIterable: AsyncIterableIterator<TInput>, onError: (err: unknown) => void): AsyncIterableIterator<TInput>;

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