@graphql-tools/utils 10.10.0-alpha-20251027100557-9a80d88e5b0ded866058fced28dcd30be6728693 → 10.10.0-alpha-20251027103435-8c94a52f5f9c1c94d2e2b67740fc5080be9e5a7c

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/cjs/errors.js CHANGED
@@ -52,12 +52,7 @@ function relocatedError(originalError, path, info) {
52
52
  positions: originalError.positions,
53
53
  path: path == null ? originalError.path : path,
54
54
  originalError,
55
- extensions: info
56
- ? {
57
- ...originalError.extensions,
58
- schemaCoordinates: `${info.parentType.name}.${info.fieldName}`,
59
- }
60
- : originalError.extensions,
55
+ extensions: originalError.extensions,
61
56
  });
62
57
  if (info) {
63
58
  addSchemaCoordinateToError(error, info);
package/esm/errors.js CHANGED
@@ -46,12 +46,7 @@ export function relocatedError(originalError, path, info) {
46
46
  positions: originalError.positions,
47
47
  path: path == null ? originalError.path : path,
48
48
  originalError,
49
- extensions: info
50
- ? {
51
- ...originalError.extensions,
52
- schemaCoordinates: `${info.parentType.name}.${info.fieldName}`,
53
- }
54
- : originalError.extensions,
49
+ extensions: originalError.extensions,
55
50
  });
56
51
  if (info) {
57
52
  addSchemaCoordinateToError(error, info);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-tools/utils",
3
- "version": "10.10.0-alpha-20251027100557-9a80d88e5b0ded866058fced28dcd30be6728693",
3
+ "version": "10.10.0-alpha-20251027103435-8c94a52f5f9c1c94d2e2b67740fc5080be9e5a7c",
4
4
  "description": "Common package containing utils and types for GraphQL tools",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
@@ -18,6 +18,6 @@ type SchemaCoordinateInfo = {
18
18
  };
19
19
  };
20
20
  export declare const ERROR_EXTENSION_SCHEMA_COORDINATE: unique symbol;
21
- export declare function locatedError(rawError: unknown, nodes: ASTNode | ReadonlyArray<ASTNode> | null | undefined, path: Maybe<ReadonlyArray<string | number>>, info: SchemaCoordinateInfo | false | null | undefined): GraphQLError;
21
+ export declare function locatedError(rawError: unknown, nodes: ASTNode | ReadonlyArray<ASTNode> | undefined, path: Maybe<ReadonlyArray<string | number>>, info: SchemaCoordinateInfo | false | null | undefined): GraphQLError;
22
22
  export declare function relocatedError(originalError: GraphQLError, path?: ReadonlyArray<string | number>, info?: SchemaCoordinateInfo | false | null | undefined): GraphQLError;
23
23
  export {};
@@ -18,6 +18,6 @@ type SchemaCoordinateInfo = {
18
18
  };
19
19
  };
20
20
  export declare const ERROR_EXTENSION_SCHEMA_COORDINATE: unique symbol;
21
- export declare function locatedError(rawError: unknown, nodes: ASTNode | ReadonlyArray<ASTNode> | null | undefined, path: Maybe<ReadonlyArray<string | number>>, info: SchemaCoordinateInfo | false | null | undefined): GraphQLError;
21
+ export declare function locatedError(rawError: unknown, nodes: ASTNode | ReadonlyArray<ASTNode> | undefined, path: Maybe<ReadonlyArray<string | number>>, info: SchemaCoordinateInfo | false | null | undefined): GraphQLError;
22
22
  export declare function relocatedError(originalError: GraphQLError, path?: ReadonlyArray<string | number>, info?: SchemaCoordinateInfo | false | null | undefined): GraphQLError;
23
23
  export {};