@graphql-eslint/eslint-plugin 4.2.0-alpha-20241129163655-f92a3665247a2f1c386ecaae7f3dcb301398ef03 → 4.2.0-alpha-20241129163937-ff1cb29d1ca25d7abfb49258af431afa1709b739

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/meta.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});const version = "4.2.0-alpha-20241129163655-f92a3665247a2f1c386ecaae7f3dcb301398ef03";
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});const version = "4.2.0-alpha-20241129163937-ff1cb29d1ca25d7abfb49258af431afa1709b739";
2
2
 
3
3
 
4
4
  exports.version = version;
@@ -157,24 +157,24 @@ Include it in your selection set{{ addition }}.`
157
157
  else
158
158
  report(idNames);
159
159
  }
160
- function hasIdField({ selections }, idNames2) {
161
- return selections.some((selection) => {
162
- if (selection.kind === _graphql.Kind.FIELD)
163
- return selection.alias && idNames2.includes(selection.alias.value) ? !0 : idNames2.includes(selection.name.value);
164
- if (selection.kind === _graphql.Kind.INLINE_FRAGMENT)
165
- return hasIdField(selection.selectionSet, idNames2);
166
- if (selection.kind === _graphql.Kind.FRAGMENT_SPREAD) {
167
- const [foundSpread] = siblings.getFragment(selection.name.value);
168
- if (foundSpread) {
169
- const fragmentSpread = foundSpread.document;
170
- return checkedFragmentSpreads.add(fragmentSpread.name.value), hasIdField(fragmentSpread.selectionSet, idNames2);
171
- }
172
- }
173
- return !1;
174
- });
175
- }
176
160
  function report(idNames2) {
177
- if (hasIdField(node, idNames2))
161
+ function hasIdField({ selections }) {
162
+ return selections.some((selection) => {
163
+ if (selection.kind === _graphql.Kind.FIELD)
164
+ return selection.alias && idNames2.includes(selection.alias.value) ? !0 : idNames2.includes(selection.name.value);
165
+ if (selection.kind === _graphql.Kind.INLINE_FRAGMENT)
166
+ return hasIdField(selection.selectionSet);
167
+ if (selection.kind === _graphql.Kind.FRAGMENT_SPREAD) {
168
+ const [foundSpread] = siblings.getFragment(selection.name.value);
169
+ if (foundSpread) {
170
+ const fragmentSpread = foundSpread.document;
171
+ return checkedFragmentSpreads.add(fragmentSpread.name.value), hasIdField(fragmentSpread.selectionSet);
172
+ }
173
+ }
174
+ return !1;
175
+ });
176
+ }
177
+ if (hasIdField(node))
178
178
  return;
179
179
  const fieldName2 = _utilsjs.englishJoinWords.call(void 0,
180
180
  idNames2.map((name) => `\`${(parent.alias || parent.name).value}.${name}\``)
package/esm/meta.js CHANGED
@@ -1,4 +1,4 @@
1
- const version = "4.2.0-alpha-20241129163655-f92a3665247a2f1c386ecaae7f3dcb301398ef03";
1
+ const version = "4.2.0-alpha-20241129163937-ff1cb29d1ca25d7abfb49258af431afa1709b739";
2
2
  export {
3
3
  version
4
4
  };
@@ -157,24 +157,24 @@ Include it in your selection set{{ addition }}.`
157
157
  else
158
158
  report(idNames);
159
159
  }
160
- function hasIdField({ selections }, idNames2) {
161
- return selections.some((selection) => {
162
- if (selection.kind === Kind.FIELD)
163
- return selection.alias && idNames2.includes(selection.alias.value) ? !0 : idNames2.includes(selection.name.value);
164
- if (selection.kind === Kind.INLINE_FRAGMENT)
165
- return hasIdField(selection.selectionSet, idNames2);
166
- if (selection.kind === Kind.FRAGMENT_SPREAD) {
167
- const [foundSpread] = siblings.getFragment(selection.name.value);
168
- if (foundSpread) {
169
- const fragmentSpread = foundSpread.document;
170
- return checkedFragmentSpreads.add(fragmentSpread.name.value), hasIdField(fragmentSpread.selectionSet, idNames2);
171
- }
172
- }
173
- return !1;
174
- });
175
- }
176
160
  function report(idNames2) {
177
- if (hasIdField(node, idNames2))
161
+ function hasIdField({ selections }) {
162
+ return selections.some((selection) => {
163
+ if (selection.kind === Kind.FIELD)
164
+ return selection.alias && idNames2.includes(selection.alias.value) ? !0 : idNames2.includes(selection.name.value);
165
+ if (selection.kind === Kind.INLINE_FRAGMENT)
166
+ return hasIdField(selection.selectionSet);
167
+ if (selection.kind === Kind.FRAGMENT_SPREAD) {
168
+ const [foundSpread] = siblings.getFragment(selection.name.value);
169
+ if (foundSpread) {
170
+ const fragmentSpread = foundSpread.document;
171
+ return checkedFragmentSpreads.add(fragmentSpread.name.value), hasIdField(fragmentSpread.selectionSet);
172
+ }
173
+ }
174
+ return !1;
175
+ });
176
+ }
177
+ if (hasIdField(node))
178
178
  return;
179
179
  const fieldName2 = englishJoinWords(
180
180
  idNames2.map((name) => `\`${(parent.alias || parent.name).value}.${name}\``)
package/index.browser.js CHANGED
@@ -150,7 +150,7 @@ function convertToESTree(node, schema16) {
150
150
  }
151
151
 
152
152
  // src/meta.ts
153
- var version = "4.2.0-alpha-20241129163655-f92a3665247a2f1c386ecaae7f3dcb301398ef03";
153
+ var version = "4.2.0-alpha-20241129163937-ff1cb29d1ca25d7abfb49258af431afa1709b739";
154
154
 
155
155
  // src/siblings.ts
156
156
  import {
@@ -4695,24 +4695,24 @@ Include it in your selection set{{ addition }}.`
4695
4695
  else
4696
4696
  report(idNames);
4697
4697
  }
4698
- function hasIdField({ selections }, idNames2) {
4699
- return selections.some((selection) => {
4700
- if (selection.kind === Kind20.FIELD)
4701
- return selection.alias && idNames2.includes(selection.alias.value) ? !0 : idNames2.includes(selection.name.value);
4702
- if (selection.kind === Kind20.INLINE_FRAGMENT)
4703
- return hasIdField(selection.selectionSet, idNames2);
4704
- if (selection.kind === Kind20.FRAGMENT_SPREAD) {
4705
- let [foundSpread] = siblings.getFragment(selection.name.value);
4706
- if (foundSpread) {
4707
- let fragmentSpread = foundSpread.document;
4708
- return checkedFragmentSpreads.add(fragmentSpread.name.value), hasIdField(fragmentSpread.selectionSet, idNames2);
4709
- }
4710
- }
4711
- return !1;
4712
- });
4713
- }
4714
4698
  function report(idNames2) {
4715
- if (hasIdField(node, idNames2))
4699
+ function hasIdField({ selections }) {
4700
+ return selections.some((selection) => {
4701
+ if (selection.kind === Kind20.FIELD)
4702
+ return selection.alias && idNames2.includes(selection.alias.value) ? !0 : idNames2.includes(selection.name.value);
4703
+ if (selection.kind === Kind20.INLINE_FRAGMENT)
4704
+ return hasIdField(selection.selectionSet);
4705
+ if (selection.kind === Kind20.FRAGMENT_SPREAD) {
4706
+ let [foundSpread] = siblings.getFragment(selection.name.value);
4707
+ if (foundSpread) {
4708
+ let fragmentSpread = foundSpread.document;
4709
+ return checkedFragmentSpreads.add(fragmentSpread.name.value), hasIdField(fragmentSpread.selectionSet);
4710
+ }
4711
+ }
4712
+ return !1;
4713
+ });
4714
+ }
4715
+ if (hasIdField(node))
4716
4716
  return;
4717
4717
  let fieldName2 = englishJoinWords(
4718
4718
  idNames2.map((name) => `\`${(parent.alias || parent.name).value}.${name}\``)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-eslint/eslint-plugin",
3
- "version": "4.2.0-alpha-20241129163655-f92a3665247a2f1c386ecaae7f3dcb301398ef03",
3
+ "version": "4.2.0-alpha-20241129163937-ff1cb29d1ca25d7abfb49258af431afa1709b739",
4
4
  "type": "module",
5
5
  "description": "GraphQL plugin for ESLint",
6
6
  "repository": "https://github.com/dimaMachina/graphql-eslint",