@graphql-tools/wrap 11.1.24 → 11.1.25-alpha-8f117bcbea98536ce3233d8bc38febf5e9a2ebe5

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @graphql-tools/wrap
2
2
 
3
+ ## 11.1.25-alpha-8f117bcbea98536ce3233d8bc38febf5e9a2ebe5
4
+ ### Patch Changes
5
+
6
+
7
+
8
+ - [#2604](https://github.com/graphql-hive/gateway/pull/2604) [`19e4040`](https://github.com/graphql-hive/gateway/commit/19e404065a9d88215d1530749b43ce5e39262a56) Thanks [@enisdenjo](https://github.com/enisdenjo)! - dependencies updates:
9
+
10
+ - Updated dependency [`@graphql-tools/schema@^10.1.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/schema/v/10.1.1) (from `^10.0.29`, in `dependencies`)
11
+ - Updated dependency [`@graphql-tools/utils@^12.0.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/12.0.1) (from `^11.0.0`, in `dependencies`)
12
+ - Updated dependencies [[`19e4040`](https://github.com/graphql-hive/gateway/commit/19e404065a9d88215d1530749b43ce5e39262a56)]:
13
+ - @graphql-tools/delegate@12.1.5-alpha-8f117bcbea98536ce3233d8bc38febf5e9a2ebe5
14
+
3
15
  ## 11.1.24
4
16
  ### Patch Changes
5
17
 
package/dist/index.cjs CHANGED
@@ -44,7 +44,7 @@ function identical(value) {
44
44
  function createPossiblyNestedProxyingResolver(subschemaConfig, proxyingResolver) {
45
45
  return function possiblyNestedProxyingResolver(parent, args, context, info) {
46
46
  if (parent != null) {
47
- const responseKey = utils.getResponseKeyFromInfo(info);
47
+ const responseKey = info.fieldNodes[0].alias?.value ?? info.fieldName;
48
48
  if (delegate.isExternalObject(parent)) {
49
49
  const unpathedErrors = delegate.getUnpathedErrors(parent);
50
50
  const subschema = delegate.getSubschema(parent, responseKey);
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { delegateToSchema, isExternalObject, getUnpathedErrors, getSubschema, resolveExternalValue, applySchemaTransforms, defaultMergedResolver, getTypeInfo, isPrototypePollutingKey } from '@graphql-tools/delegate';
2
- import { getRootTypeMap, getResponseKeyFromInfo, memoize1, mapSchema, MapperKind, renameType, visitData, transformInputValue, visitResult, astFromValueUntyped, getOperationASTFromRequest, relocatedError, getArgumentValues, valueMatchesCriteria, getDirectives, pruneSchema, selectObjectFields, appendObjectFields, modifyObjectFields, removeObjectFields, isAsyncIterable, createGraphQLError, inspect } from '@graphql-tools/utils';
2
+ import { getRootTypeMap, memoize1, mapSchema, MapperKind, renameType, visitData, transformInputValue, visitResult, astFromValueUntyped, getOperationASTFromRequest, relocatedError, getArgumentValues, valueMatchesCriteria, getDirectives, pruneSchema, selectObjectFields, appendObjectFields, modifyObjectFields, removeObjectFields, isAsyncIterable, createGraphQLError, inspect } from '@graphql-tools/utils';
3
3
  import { isSpecifiedScalarType, GraphQLScalarType, GraphQLUnionType, GraphQLInterfaceType, GraphQLObjectType, isScalarType, visit, Kind, visitWithTypeInfo, isObjectType, isInterfaceType, typeFromAST, isInputType, getNamedType, isLeafType, valueFromAST, valueFromASTUntyped, astFromValue, GraphQLNonNull, getNullableType, isListType, GraphQLList, BREAK, parse, getIntrospectionQuery, buildClientSchema } from 'graphql';
4
4
  import { handleMaybePromise } from '@whatwg-node/promise-helpers';
5
5
 
@@ -42,7 +42,7 @@ function identical(value) {
42
42
  function createPossiblyNestedProxyingResolver(subschemaConfig, proxyingResolver) {
43
43
  return function possiblyNestedProxyingResolver(parent, args, context, info) {
44
44
  if (parent != null) {
45
- const responseKey = getResponseKeyFromInfo(info);
45
+ const responseKey = info.fieldNodes[0].alias?.value ?? info.fieldName;
46
46
  if (isExternalObject(parent)) {
47
47
  const unpathedErrors = getUnpathedErrors(parent);
48
48
  const subschema = getSubschema(parent, responseKey);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-tools/wrap",
3
- "version": "11.1.24",
3
+ "version": "11.1.25-alpha-8f117bcbea98536ce3233d8bc38febf5e9a2ebe5",
4
4
  "type": "module",
5
5
  "description": "A set of utils for faster development of GraphQL tools",
6
6
  "repository": {
@@ -38,9 +38,9 @@
38
38
  "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
39
39
  },
40
40
  "dependencies": {
41
- "@graphql-tools/delegate": "^12.1.4",
42
- "@graphql-tools/schema": "^10.0.29",
43
- "@graphql-tools/utils": "^11.0.0",
41
+ "@graphql-tools/delegate": "12.1.5-alpha-8f117bcbea98536ce3233d8bc38febf5e9a2ebe5",
42
+ "@graphql-tools/schema": "^10.1.1",
43
+ "@graphql-tools/utils": "^12.0.1",
44
44
  "@whatwg-node/promise-helpers": "^1.3.2",
45
45
  "tslib": "^2.8.1"
46
46
  },