@graphql-tools/utils 10.10.0-alpha-20251014152940-78dd81600e71f83d00442adefb6f53d36eb33b87 → 10.10.0-alpha-20251014195731-dc35f8d0e0378d1d3c96b837136e56711eaf5d2d

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
@@ -31,18 +31,13 @@ function createGraphQLError(message, options) {
31
31
  }
32
32
  return new graphql_1.GraphQLError(message, options?.nodes, options?.source, options?.positions, options?.path, options?.originalError, options?.extensions);
33
33
  }
34
- function relocatedError(originalError, path, info) {
34
+ function relocatedError(originalError, path) {
35
35
  return createGraphQLError(originalError.message, {
36
36
  nodes: originalError.nodes,
37
37
  source: originalError.source,
38
38
  positions: originalError.positions,
39
39
  path: path == null ? originalError.path : path,
40
40
  originalError,
41
- extensions: info
42
- ? {
43
- ...originalError.extensions,
44
- schemaCoordinates: `${info.parentType.name}.${info.fieldName}`,
45
- }
46
- : originalError.extensions,
41
+ extensions: originalError.extensions,
47
42
  });
48
43
  }
package/esm/errors.js CHANGED
@@ -27,18 +27,13 @@ export function createGraphQLError(message, options) {
27
27
  }
28
28
  return new GraphQLError(message, options?.nodes, options?.source, options?.positions, options?.path, options?.originalError, options?.extensions);
29
29
  }
30
- export function relocatedError(originalError, path, info) {
30
+ export function relocatedError(originalError, path) {
31
31
  return createGraphQLError(originalError.message, {
32
32
  nodes: originalError.nodes,
33
33
  source: originalError.source,
34
34
  positions: originalError.positions,
35
35
  path: path == null ? originalError.path : path,
36
36
  originalError,
37
- extensions: info
38
- ? {
39
- ...originalError.extensions,
40
- schemaCoordinates: `${info.parentType.name}.${info.fieldName}`,
41
- }
42
- : originalError.extensions,
37
+ extensions: originalError.extensions,
43
38
  });
44
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-tools/utils",
3
- "version": "10.10.0-alpha-20251014152940-78dd81600e71f83d00442adefb6f53d36eb33b87",
3
+ "version": "10.10.0-alpha-20251014195731-dc35f8d0e0378d1d3c96b837136e56711eaf5d2d",
4
4
  "description": "Common package containing utils and types for GraphQL tools",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
@@ -1,5 +1,4 @@
1
1
  import { ASTNode, GraphQLError, Source } from 'graphql';
2
- import { GraphQLResolveInfo } from './Interfaces.cjs';
3
2
  import { Maybe } from './types.cjs';
4
3
  interface GraphQLErrorOptions {
5
4
  nodes?: ReadonlyArray<ASTNode> | ASTNode | null;
@@ -12,5 +11,5 @@ interface GraphQLErrorOptions {
12
11
  extensions?: any;
13
12
  }
14
13
  export declare function createGraphQLError(message: string, options?: GraphQLErrorOptions): GraphQLError;
15
- export declare function relocatedError(originalError: GraphQLError, path?: ReadonlyArray<string | number>, info?: Maybe<GraphQLResolveInfo>): GraphQLError;
14
+ export declare function relocatedError(originalError: GraphQLError, path?: ReadonlyArray<string | number>): GraphQLError;
16
15
  export {};
@@ -1,5 +1,4 @@
1
1
  import { ASTNode, GraphQLError, Source } from 'graphql';
2
- import { GraphQLResolveInfo } from './Interfaces.js';
3
2
  import { Maybe } from './types.js';
4
3
  interface GraphQLErrorOptions {
5
4
  nodes?: ReadonlyArray<ASTNode> | ASTNode | null;
@@ -12,5 +11,5 @@ interface GraphQLErrorOptions {
12
11
  extensions?: any;
13
12
  }
14
13
  export declare function createGraphQLError(message: string, options?: GraphQLErrorOptions): GraphQLError;
15
- export declare function relocatedError(originalError: GraphQLError, path?: ReadonlyArray<string | number>, info?: Maybe<GraphQLResolveInfo>): GraphQLError;
14
+ export declare function relocatedError(originalError: GraphQLError, path?: ReadonlyArray<string | number>): GraphQLError;
16
15
  export {};