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

@graphql-tools/batch-execute

Package Overview
Dependencies
Maintainers
3
Versions
706
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-tools/batch-execute - npm Package Compare versions

Comparing version 8.0.0-alpha-d6fafeef.0 to 8.0.0-alpha-d79e1771.0

es5/index.js

5

createBatchingExecutor.d.ts

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

import { GraphQLSchema } from 'graphql';
import DataLoader from 'dataloader';
import { ExecutionParams, Executor } from '@graphql-tools/utils';
export declare function createBatchingExecutor(executor: Executor, targetSchema: GraphQLSchema, dataLoaderOptions?: DataLoader.Options<any, any, any>, extensionsReducer?: (mergedExtensions: Record<string, any>, executionParams: ExecutionParams) => Record<string, any>): Executor;
import { Request, Executor } from '@graphql-tools/utils';
export declare function createBatchingExecutor(executor: Executor, dataLoaderOptions?: DataLoader.Options<any, any, any>, extensionsReducer?: (mergedExtensions: Record<string, any>, request: Request) => Record<string, any>): Executor;

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

import { GraphQLSchema } from 'graphql';
import DataLoader from 'dataloader';
import { ExecutionParams, Executor } from '@graphql-tools/utils';
export declare function createBatchingExecutor(executor: Executor, targetSchema: GraphQLSchema, dataLoaderOptions?: DataLoader.Options<any, any, any>, extensionsReducer?: (mergedExtensions: Record<string, any>, executionParams: ExecutionParams) => Record<string, any>): Executor;
import { Request, Executor } from '@graphql-tools/utils';
export declare function createBatchingExecutor(executor: Executor, dataLoaderOptions?: DataLoader.Options<any, any, any>, extensionsReducer?: (mergedExtensions: Record<string, any>, request: Request) => Record<string, any>): Executor;
import DataLoader from 'dataloader';
import { ExecutionParams, Executor } from '@graphql-tools/utils';
import { GraphQLSchema } from 'graphql';
export declare const getBatchingExecutor: (A1: Record<string, any>, A2: Executor<Record<string, any>>, A3: GraphQLSchema, A4: DataLoader.Options<any, any, any>, A5: (mergedExtensions: Record<string, any>, executionParams: ExecutionParams) => Record<string, any>) => Executor<Record<string, any>>;
import { Request, Executor } from '@graphql-tools/utils';
export declare const getBatchingExecutor: (A1: Record<string, any>, A2: Executor<Record<string, any>, Record<string, any>>, A3: DataLoader.Options<any, any, any> | undefined, A4: ((mergedExtensions: Record<string, any>, request: Request) => Record<string, any>) | undefined) => Executor<Record<string, any>, Record<string, any>>;

2

es5/memoize.d.ts

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

export declare function memoize2of5<T1 extends Record<string, any>, T2 extends Record<string, any>, T3 extends any, T4 extends any, T5 extends any, R extends any>(fn: (A1: T1, A2: T2, A3: T3, A4: T4, A5: T5) => R): (A1: T1, A2: T2, A3: T3, A4: T4, A5: T5) => R;
export declare function memoize2of4<T1 extends Record<string, any>, T2 extends Record<string, any>, T3 extends any, T4 extends any, R extends any>(fn: (A1: T1, A2: T2, A3: T3, A4: T4) => R): (A1: T1, A2: T2, A3: T3, A4: T4) => R;
{
"name": "@graphql-tools/batch-execute/es5",
"version": "8.0.0-alpha-d6fafeef.0",
"version": "8.0.0-alpha-d79e1771.0",
"description": "A set of utils for faster development of GraphQL tools",

@@ -10,6 +10,6 @@ "sideEffects": false,

"dependencies": {
"@graphql-tools/utils": "8.0.0-alpha-d6fafeef.0",
"@graphql-tools/utils": "8.0.0-alpha-d79e1771.0",
"dataloader": "2.0.0",
"tslib": "~2.2.0",
"value-or-promise": "1.0.8"
"tslib": "~2.3.0",
"value-or-promise": "1.0.10"
},

@@ -22,8 +22,18 @@ "repository": {

"license": "MIT",
"main": "index.cjs.js",
"module": "index.esm.js",
"main": "index.js",
"module": "index.mjs",
"typings": "index.d.ts",
"typescript": {
"definition": "index.d.ts"
},
"exports": {
".": {
"require": "./index.js",
"import": "./index.mjs"
},
"./*": {
"require": "./*.js",
"import": "./*.mjs"
}
}
}

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

export declare function createPrefix(index: number): string;
export declare function createPrefix(index: string): string;
export declare function parseKey(prefixedKey: string): {

@@ -3,0 +3,0 @@ index: number;

import { ExecutionResult } from 'graphql';
import { AsyncExecutionResult } from '@graphql-tools/utils';
export declare function splitResult(mergedResult: ExecutionResult | AsyncIterableIterator<AsyncExecutionResult> | Promise<ExecutionResult | AsyncIterableIterator<AsyncExecutionResult>>, numResults: number): Array<ExecutionResult | AsyncIterableIterator<AsyncExecutionResult> | Promise<ExecutionResult | AsyncIterableIterator<AsyncExecutionResult>>>;
export declare function splitExecutionResultOrAsyncIterableIterator(mergedResult: ExecutionResult | AsyncIterableIterator<AsyncExecutionResult>, numResults: number): Array<ExecutionResult | AsyncIterableIterator<AsyncExecutionResult>>;
/**
* Split and transform result of the query produced by the `merge` function
*/
export declare function splitResult({ data, errors }: ExecutionResult, numResults: number): Array<ExecutionResult>;
import DataLoader from 'dataloader';
import { ExecutionParams, Executor } from '@graphql-tools/utils';
import { GraphQLSchema } from 'graphql';
export declare const getBatchingExecutor: (A1: Record<string, any>, A2: Executor<Record<string, any>>, A3: GraphQLSchema, A4: DataLoader.Options<any, any, any>, A5: (mergedExtensions: Record<string, any>, executionParams: ExecutionParams) => Record<string, any>) => Executor<Record<string, any>>;
import { Request, Executor } from '@graphql-tools/utils';
export declare const getBatchingExecutor: (A1: Record<string, any>, A2: Executor<Record<string, any>, Record<string, any>>, A3: DataLoader.Options<any, any, any> | undefined, A4: ((mergedExtensions: Record<string, any>, request: Request) => Record<string, any>) | undefined) => Executor<Record<string, any>, Record<string, any>>;

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

export declare function memoize2of5<T1 extends Record<string, any>, T2 extends Record<string, any>, T3 extends any, T4 extends any, T5 extends any, R extends any>(fn: (A1: T1, A2: T2, A3: T3, A4: T4, A5: T5) => R): (A1: T1, A2: T2, A3: T3, A4: T4, A5: T5) => R;
export declare function memoize2of4<T1 extends Record<string, any>, T2 extends Record<string, any>, T3 extends any, T4 extends any, R extends any>(fn: (A1: T1, A2: T2, A3: T3, A4: T4) => R): (A1: T1, A2: T2, A3: T3, A4: T4) => R;
{
"name": "@graphql-tools/batch-execute",
"version": "8.0.0-alpha-d6fafeef.0",
"version": "8.0.0-alpha-d79e1771.0",
"description": "A set of utils for faster development of GraphQL tools",

@@ -10,6 +10,6 @@ "sideEffects": false,

"dependencies": {
"@graphql-tools/utils": "8.0.0-alpha-d6fafeef.0",
"@graphql-tools/utils": "8.0.0-alpha-d79e1771.0",
"dataloader": "2.0.0",
"tslib": "~2.2.0",
"value-or-promise": "1.0.8"
"tslib": "~2.3.0",
"value-or-promise": "1.0.10"
},

@@ -22,8 +22,18 @@ "repository": {

"license": "MIT",
"main": "index.cjs.js",
"module": "index.esm.js",
"main": "index.js",
"module": "index.mjs",
"typings": "index.d.ts",
"typescript": {
"definition": "index.d.ts"
},
"exports": {
".": {
"require": "./index.js",
"import": "./index.mjs"
},
"./*": {
"require": "./*.js",
"import": "./*.mjs"
}
}
}

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

export declare function createPrefix(index: number): string;
export declare function createPrefix(index: string): string;
export declare function parseKey(prefixedKey: string): {

@@ -3,0 +3,0 @@ index: number;

import { ExecutionResult } from 'graphql';
import { AsyncExecutionResult } from '@graphql-tools/utils';
export declare function splitResult(mergedResult: ExecutionResult | AsyncIterableIterator<AsyncExecutionResult> | Promise<ExecutionResult | AsyncIterableIterator<AsyncExecutionResult>>, numResults: number): Array<ExecutionResult | AsyncIterableIterator<AsyncExecutionResult> | Promise<ExecutionResult | AsyncIterableIterator<AsyncExecutionResult>>>;
export declare function splitExecutionResultOrAsyncIterableIterator(mergedResult: ExecutionResult | AsyncIterableIterator<AsyncExecutionResult>, numResults: number): Array<ExecutionResult | AsyncIterableIterator<AsyncExecutionResult>>;
/**
* Split and transform result of the query produced by the `merge` function
*/
export declare function splitResult({ data, errors }: ExecutionResult, numResults: number): Array<ExecutionResult>;
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