@graphql-tools/batch-execute
Advanced tools
Comparing version 8.0.0-alpha-04f8d135.0 to 8.0.0-alpha-0eaab362.0
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>; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
0
6
65981
22
1602
1
+ Addedvalue-or-promise@1.0.10
+ Added@graphql-tools/utils@8.0.0-alpha-0eaab362.0(transitive)
+ Addedtslib@2.3.1(transitive)
+ Addedvalue-or-promise@1.0.10(transitive)
- Removedis-promise@4.0.0
- Removed@ardatan/aggregate-error@0.0.6(transitive)
- Removed@graphql-tools/utils@8.0.0-alpha-04f8d135.0(transitive)
- Removedcamel-case@4.1.2(transitive)
- Removedis-promise@4.0.0(transitive)
- Removedlower-case@2.0.2(transitive)
- Removedno-case@3.0.4(transitive)
- Removedpascal-case@3.1.2(transitive)
- Removedtslib@2.0.3(transitive)
Updatedtslib@~2.3.0