@graphql-tools/executor-http
Advanced tools
Comparing version 0.0.10-alpha-20230112104126-11029c52 to 0.1.0-alpha-20230112161633-d3f484e6
@@ -34,3 +34,3 @@ "use strict"; | ||
accept, | ||
}, options === null || options === void 0 ? void 0 : options.headers, ((_g = request.extensions) === null || _g === void 0 ? void 0 : _g.headers) || {}); | ||
}, (typeof (options === null || options === void 0 ? void 0 : options.headers) === 'function' ? options.headers(request) : options === null || options === void 0 ? void 0 : options.headers) || {}, ((_g = request.extensions) === null || _g === void 0 ? void 0 : _g.headers) || {}); | ||
const query = (0, graphql_1.print)(request.document); | ||
@@ -37,0 +37,0 @@ const requestBody = { |
@@ -30,3 +30,3 @@ import { createGraphQLError, getOperationASTFromRequest, } from '@graphql-tools/utils'; | ||
accept, | ||
}, options === null || options === void 0 ? void 0 : options.headers, ((_g = request.extensions) === null || _g === void 0 ? void 0 : _g.headers) || {}); | ||
}, (typeof (options === null || options === void 0 ? void 0 : options.headers) === 'function' ? options.headers(request) : options === null || options === void 0 ? void 0 : options.headers) || {}, ((_g = request.extensions) === null || _g === void 0 ? void 0 : _g.headers) || {}); | ||
const query = print(request.document); | ||
@@ -33,0 +33,0 @@ const requestBody = { |
{ | ||
"name": "@graphql-tools/executor-http", | ||
"version": "0.0.10-alpha-20230112104126-11029c52", | ||
"version": "0.1.0-alpha-20230112161633-d3f484e6", | ||
"description": "A set of utils for faster development of GraphQL tools", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
@@ -1,2 +0,2 @@ | ||
import { AsyncExecutor, SyncExecutor } from '@graphql-tools/utils'; | ||
import { AsyncExecutor, ExecutionRequest, SyncExecutor } from '@graphql-tools/utils'; | ||
import { GraphQLResolveInfo } from 'graphql'; | ||
@@ -23,3 +23,3 @@ import { isLiveQueryOperationDefinitionNode } from './isLiveQueryOperationDefinitionNode.js'; | ||
*/ | ||
headers?: HeadersConfig; | ||
headers?: HeadersConfig | ((executorRequest?: ExecutionRequest) => HeadersConfig); | ||
/** | ||
@@ -26,0 +26,0 @@ * HTTP method to use when querying the original schema. |
Sorry, the diff of this file is not supported yet
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
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
51537