Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@graphql-tools/batch-execute

Package Overview
Dependencies
Maintainers
3
Versions
685
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-04f8d135.0 to 8.0.0-alpha-0eaab362.0

es5/index.js

4

createBatchingExecutor.d.ts
import DataLoader from 'dataloader';
import { ExecutionParams, Executor } from './types';
export declare function createBatchingExecutor(executor: Executor, 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 './types';
export declare function createBatchingExecutor(executor: Executor, 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 './types';
export declare const getBatchingExecutor: (A1: Record<string, any>, A2: Executor, A3: DataLoader.Options<any, any, any>, A4: (mergedExtensions: Record<string, any>, executionParams: ExecutionParams) => Record<string, any>) => Executor;
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>>;
{
"name": "@graphql-tools/batch-execute/es5",
"version": "8.0.0-alpha-04f8d135.0",
"version": "8.0.0-alpha-0eaab362.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-04f8d135.0",
"@graphql-tools/utils": "8.0.0-alpha-0eaab362.0",
"dataloader": "2.0.0",
"is-promise": "4.0.0",
"tslib": "~2.0.1"
"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;

@@ -5,2 +5,2 @@ import { ExecutionResult } from 'graphql';

*/
export declare function splitResult(mergedResult: ExecutionResult, numResults: number): Array<ExecutionResult>;
export declare function splitResult({ data, errors }: ExecutionResult, numResults: number): Array<ExecutionResult>;
import DataLoader from 'dataloader';
import { ExecutionParams, Executor } from './types';
export declare const getBatchingExecutor: (A1: Record<string, any>, A2: Executor, A3: DataLoader.Options<any, any, any>, A4: (mergedExtensions: Record<string, any>, executionParams: ExecutionParams) => Record<string, any>) => Executor;
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>>;
{
"name": "@graphql-tools/batch-execute",
"version": "8.0.0-alpha-04f8d135.0",
"version": "8.0.0-alpha-0eaab362.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-04f8d135.0",
"@graphql-tools/utils": "8.0.0-alpha-0eaab362.0",
"dataloader": "2.0.0",
"is-promise": "4.0.0",
"tslib": "~2.0.1"
"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;

@@ -5,2 +5,2 @@ import { ExecutionResult } from 'graphql';

*/
export declare function splitResult(mergedResult: ExecutionResult, numResults: number): Array<ExecutionResult>;
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