@graphql-tools/utils 10.11.0-alpha-20251113162628-fc5dd9a67f15da93da0f992ac3e357a9431c42bc → 10.11.0-alpha-20251114103641-9f5dd54441b8068214cc1ae9afe2803485cf9d9d

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
@@ -43,7 +43,7 @@ function createGraphQLError(message, options) {
43
43
  const error = graphql_1.versionInfo.major >= 16
44
44
  ? new Constructor(message, options)
45
45
  : new Constructor(message, options?.nodes, options?.source, options?.positions, options?.path, options?.originalError, options?.extensions);
46
- if (options?.coordinate) {
46
+ if (options?.coordinate && error.coordinate == null) {
47
47
  Object.defineProperty(error, 'coordinate', {
48
48
  value: options.coordinate,
49
49
  enumerable: true,
package/esm/errors.js CHANGED
@@ -34,7 +34,7 @@ export function createGraphQLError(message, options) {
34
34
  const error = versionInfo.major >= 16
35
35
  ? new Constructor(message, options)
36
36
  : new Constructor(message, options?.nodes, options?.source, options?.positions, options?.path, options?.originalError, options?.extensions);
37
- if (options?.coordinate) {
37
+ if (options?.coordinate && error.coordinate == null) {
38
38
  Object.defineProperty(error, 'coordinate', {
39
39
  value: options.coordinate,
40
40
  enumerable: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-tools/utils",
3
- "version": "10.11.0-alpha-20251113162628-fc5dd9a67f15da93da0f992ac3e357a9431c42bc",
3
+ "version": "10.11.0-alpha-20251114103641-9f5dd54441b8068214cc1ae9afe2803485cf9d9d",
4
4
  "description": "Common package containing utils and types for GraphQL tools",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {