@graphql-eslint/eslint-plugin 3.14.2 → 3.14.3-alpha-20221227233919-194270f

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/processor.js CHANGED
@@ -79,8 +79,9 @@ exports.processor = {
79
79
  message.fix.range[1] += offset;
80
80
  }
81
81
  for (const suggestion of message.suggestions || []) {
82
- suggestion.fix.range[0] += offset;
83
- suggestion.fix.range[1] += offset;
82
+ // DO NOT mutate until https://github.com/eslint/eslint/issues/16716
83
+ const [start, end] = suggestion.fix.range;
84
+ suggestion.fix.range = [start + offset, end + offset];
84
85
  }
85
86
  }
86
87
  }
package/esm/processor.js CHANGED
@@ -76,8 +76,9 @@ export const processor = {
76
76
  message.fix.range[1] += offset;
77
77
  }
78
78
  for (const suggestion of message.suggestions || []) {
79
- suggestion.fix.range[0] += offset;
80
- suggestion.fix.range[1] += offset;
79
+ // DO NOT mutate until https://github.com/eslint/eslint/issues/16716
80
+ const [start, end] = suggestion.fix.range;
81
+ suggestion.fix.range = [start + offset, end + offset];
81
82
  }
82
83
  }
83
84
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-eslint/eslint-plugin",
3
- "version": "3.14.2",
3
+ "version": "3.14.3-alpha-20221227233919-194270f",
4
4
  "description": "GraphQL plugin for ESLint",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {