@graphql-tools/wrap 10.0.31 → 10.0.32-alpha-0700d88cf1e9c11bc4b7dab376d3eb21c02cb1d6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/index.cjs +4 -3
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +5 -4
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @graphql-tools/wrap
|
|
2
2
|
|
|
3
|
+
## 10.0.32-alpha-0700d88cf1e9c11bc4b7dab376d3eb21c02cb1d6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#726](https://github.com/graphql-hive/gateway/pull/726) [`0700d88`](https://github.com/graphql-hive/gateway/commit/0700d88cf1e9c11bc4b7dab376d3eb21c02cb1d6) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
|
|
8
|
+
|
|
9
|
+
- Added dependency [`@whatwg-node/promise-helpers@^1.0.0` ↗︎](https://www.npmjs.com/package/@whatwg-node/promise-helpers/v/1.0.0) (to `dependencies`)
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`0700d88`](https://github.com/graphql-hive/gateway/commit/0700d88cf1e9c11bc4b7dab376d3eb21c02cb1d6)]:
|
|
12
|
+
- @graphql-tools/delegate@10.2.14-alpha-0700d88cf1e9c11bc4b7dab376d3eb21c02cb1d6
|
|
13
|
+
|
|
3
14
|
## 10.0.31
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
var delegate = require('@graphql-tools/delegate');
|
|
4
4
|
var utils = require('@graphql-tools/utils');
|
|
5
5
|
var graphql = require('graphql');
|
|
6
|
+
var promiseHelpers = require('@whatwg-node/promise-helpers');
|
|
6
7
|
|
|
7
8
|
function generateProxyingResolvers(subschemaConfig) {
|
|
8
9
|
const targetSchema = subschemaConfig.schema;
|
|
@@ -2410,9 +2411,9 @@ function schemaFromExecutor(executor, context, options) {
|
|
|
2410
2411
|
graphql.getIntrospectionQuery(options),
|
|
2411
2412
|
options
|
|
2412
2413
|
);
|
|
2413
|
-
return
|
|
2414
|
-
|
|
2415
|
-
executor({
|
|
2414
|
+
return promiseHelpers.handleMaybePromise(
|
|
2415
|
+
() => promiseHelpers.handleMaybePromise(
|
|
2416
|
+
() => executor({
|
|
2416
2417
|
document: parsedIntrospectionQuery,
|
|
2417
2418
|
context
|
|
2418
2419
|
}),
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SubschemaConfig, Subschema, ICreateProxyingResolverOptions, Transform, DelegationContext } from '@graphql-tools/delegate';
|
|
2
2
|
import { GraphQLSchema, GraphQLFieldResolver, GraphQLNamedType, GraphQLFieldConfig, FieldNode, FragmentDefinitionNode, SelectionNode, GraphQLError, GraphQLInputFieldConfig, ObjectFieldNode, ObjectValueNode, GraphQLEnumValueConfig, SelectionSetNode, GraphQLArgument, IntrospectionOptions, buildClientSchema, ParseOptions } from 'graphql';
|
|
3
|
-
import { RenameTypesOptions, ExecutionRequest, ExecutionResult, Maybe, RootFieldFilter, ObjectFieldFilter, FieldFilter, InputFieldFilter, PruneSchemaOptions, FieldNodeMappers, SyncExecutor, AsyncExecutor, Executor
|
|
3
|
+
import { RenameTypesOptions, ExecutionRequest, ExecutionResult, Maybe, RootFieldFilter, ObjectFieldFilter, FieldFilter, InputFieldFilter, PruneSchemaOptions, FieldNodeMappers, SyncExecutor, AsyncExecutor, Executor } from '@graphql-tools/utils';
|
|
4
|
+
import { MaybePromise } from '@whatwg-node/promise-helpers';
|
|
4
5
|
|
|
5
6
|
declare const wrapSchema: <TConfig extends Record<string, any> = Record<string, any>>(subschemaConfig: SubschemaConfig<any, any, any, TConfig> | Subschema<any, any, any, TConfig>) => GraphQLSchema;
|
|
6
7
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SubschemaConfig, Subschema, ICreateProxyingResolverOptions, Transform, DelegationContext } from '@graphql-tools/delegate';
|
|
2
2
|
import { GraphQLSchema, GraphQLFieldResolver, GraphQLNamedType, GraphQLFieldConfig, FieldNode, FragmentDefinitionNode, SelectionNode, GraphQLError, GraphQLInputFieldConfig, ObjectFieldNode, ObjectValueNode, GraphQLEnumValueConfig, SelectionSetNode, GraphQLArgument, IntrospectionOptions, buildClientSchema, ParseOptions } from 'graphql';
|
|
3
|
-
import { RenameTypesOptions, ExecutionRequest, ExecutionResult, Maybe, RootFieldFilter, ObjectFieldFilter, FieldFilter, InputFieldFilter, PruneSchemaOptions, FieldNodeMappers, SyncExecutor, AsyncExecutor, Executor
|
|
3
|
+
import { RenameTypesOptions, ExecutionRequest, ExecutionResult, Maybe, RootFieldFilter, ObjectFieldFilter, FieldFilter, InputFieldFilter, PruneSchemaOptions, FieldNodeMappers, SyncExecutor, AsyncExecutor, Executor } from '@graphql-tools/utils';
|
|
4
|
+
import { MaybePromise } from '@whatwg-node/promise-helpers';
|
|
4
5
|
|
|
5
6
|
declare const wrapSchema: <TConfig extends Record<string, any> = Record<string, any>>(subschemaConfig: SubschemaConfig<any, any, any, TConfig> | Subschema<any, any, any, TConfig>) => GraphQLSchema;
|
|
6
7
|
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { isExternalObject, getUnpathedErrors, getSubschema, resolveExternalValue, delegateToSchema, applySchemaTransforms, defaultMergedResolver, getTypeInfo as getTypeInfo$1, isPrototypePollutingKey } from '@graphql-tools/delegate';
|
|
2
|
-
import { getRootTypeMap, getResponseKeyFromInfo, memoize1, mapSchema, MapperKind, renameType, visitData, transformInputValue, getDefinedRootType, memoize2, visitResult, astFromValueUntyped, getOperationASTFromRequest, relocatedError, getArgumentValues, valueMatchesCriteria, getDirectives, pruneSchema, selectObjectFields, appendObjectFields, modifyObjectFields, removeObjectFields,
|
|
2
|
+
import { getRootTypeMap, getResponseKeyFromInfo, memoize1, mapSchema, MapperKind, renameType, visitData, transformInputValue, getDefinedRootType, memoize2, visitResult, astFromValueUntyped, getOperationASTFromRequest, relocatedError, getArgumentValues, valueMatchesCriteria, getDirectives, pruneSchema, selectObjectFields, appendObjectFields, modifyObjectFields, removeObjectFields, isAsyncIterable, createGraphQLError, inspect } from '@graphql-tools/utils';
|
|
3
3
|
import { GraphQLUnionType, GraphQLInterfaceType, GraphQLObjectType, isSpecifiedScalarType, isScalarType, visit, Kind, visitWithTypeInfo, isObjectType, isInterfaceType, typeFromAST, isInputType, getNamedType, TypeInfo, versionInfo, isLeafType, valueFromAST, valueFromASTUntyped, astFromValue, GraphQLNonNull, getNullableType, isListType, GraphQLList, BREAK, parse, getIntrospectionQuery, buildClientSchema } from 'graphql';
|
|
4
|
+
import { handleMaybePromise } from '@whatwg-node/promise-helpers';
|
|
4
5
|
|
|
5
6
|
function generateProxyingResolvers(subschemaConfig) {
|
|
6
7
|
const targetSchema = subschemaConfig.schema;
|
|
@@ -2408,9 +2409,9 @@ function schemaFromExecutor(executor, context, options) {
|
|
|
2408
2409
|
getIntrospectionQuery(options),
|
|
2409
2410
|
options
|
|
2410
2411
|
);
|
|
2411
|
-
return
|
|
2412
|
-
|
|
2413
|
-
executor({
|
|
2412
|
+
return handleMaybePromise(
|
|
2413
|
+
() => handleMaybePromise(
|
|
2414
|
+
() => executor({
|
|
2414
2415
|
document: parsedIntrospectionQuery,
|
|
2415
2416
|
context
|
|
2416
2417
|
}),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-tools/wrap",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.32-alpha-0700d88cf1e9c11bc4b7dab376d3eb21c02cb1d6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A set of utils for faster development of GraphQL tools",
|
|
6
6
|
"repository": {
|
|
@@ -38,14 +38,15 @@
|
|
|
38
38
|
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@graphql-tools/delegate": "
|
|
41
|
+
"@graphql-tools/delegate": "10.2.14-alpha-0700d88cf1e9c11bc4b7dab376d3eb21c02cb1d6",
|
|
42
42
|
"@graphql-tools/schema": "^10.0.11",
|
|
43
43
|
"@graphql-tools/utils": "^10.8.1",
|
|
44
|
+
"@whatwg-node/promise-helpers": "^1.0.0",
|
|
44
45
|
"tslib": "^2.8.1"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
47
48
|
"graphql": "^16.9.0",
|
|
48
|
-
"pkgroll": "2.
|
|
49
|
+
"pkgroll": "2.11.0"
|
|
49
50
|
},
|
|
50
51
|
"sideEffects": false
|
|
51
52
|
}
|