@graphql-tools/utils 8.3.0 → 8.4.0

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/index.js CHANGED
@@ -1781,7 +1781,7 @@ function buildOperationAndCollectVariables({ schema, fieldName, kind, models, ig
1781
1781
  kind: graphql.Kind.OPERATION_DEFINITION,
1782
1782
  operation: kind,
1783
1783
  name: {
1784
- kind: 'Name',
1784
+ kind: graphql.Kind.NAME,
1785
1785
  value: operationName,
1786
1786
  },
1787
1787
  variableDefinitions: [],
package/index.mjs CHANGED
@@ -1777,7 +1777,7 @@ function buildOperationAndCollectVariables({ schema, fieldName, kind, models, ig
1777
1777
  kind: Kind.OPERATION_DEFINITION,
1778
1778
  operation: kind,
1779
1779
  name: {
1780
- kind: 'Name',
1780
+ kind: Kind.NAME,
1781
1781
  value: operationName,
1782
1782
  },
1783
1783
  variableDefinitions: [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-tools/utils",
3
- "version": "8.3.0",
3
+ "version": "8.4.0",
4
4
  "description": "Common package containing utils and types for GraphQL tools",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
package/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { GraphQLEnumType, GraphQLInputObjectType, GraphQLNamedType, GraphQLScalarType } from 'graphql';
1
+ import { GraphQLEnumType, GraphQLInputObjectType, GraphQLNamedType, GraphQLScalarType, visit } from 'graphql';
2
2
  export interface SchemaPrintOptions {
3
3
  /**
4
4
  * Descriptions are defined as preceding string literals, however an older
@@ -47,3 +47,4 @@ export interface PruneSchemaOptions {
47
47
  }
48
48
  export declare type InputLeafValueTransformer = (type: GraphQLEnumType | GraphQLScalarType, originalValue: any) => any;
49
49
  export declare type InputObjectValueTransformer = (type: GraphQLInputObjectType, originalValue: Record<string, any>) => Record<string, any>;
50
+ export declare type ASTVisitorKeyMap = Partial<Parameters<typeof visit>[2]>;