@graphql-eslint/eslint-plugin 4.4.1 → 4.4.2
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/README.md +0 -2
- package/browser.js +5 -5
- package/cjs/meta.js +1 -1
- package/cjs/rules/require-selections/index.js +4 -4
- package/esm/meta.js +1 -1
- package/esm/rules/require-selections/index.js +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
package/browser.js
CHANGED
|
@@ -408,7 +408,7 @@ function convertToESTree(node, schema16) {
|
|
|
408
408
|
}
|
|
409
409
|
|
|
410
410
|
// src/meta.ts
|
|
411
|
-
var version = "4.4.
|
|
411
|
+
var version = "4.4.2";
|
|
412
412
|
|
|
413
413
|
// src/siblings.ts
|
|
414
414
|
import {
|
|
@@ -5547,17 +5547,17 @@ var rule28 = {
|
|
|
5547
5547
|
}
|
|
5548
5548
|
function checkFields(rawType2) {
|
|
5549
5549
|
const fields = rawType2.getFields();
|
|
5550
|
-
const
|
|
5551
|
-
if (
|
|
5550
|
+
const idFieldsInType = idNames.filter((name) => fields[name]);
|
|
5551
|
+
if (idFieldsInType.length === 0) {
|
|
5552
5552
|
return;
|
|
5553
5553
|
}
|
|
5554
5554
|
checkFragments(node);
|
|
5555
5555
|
if (requireAllFields) {
|
|
5556
|
-
for (const idName of
|
|
5556
|
+
for (const idName of idFieldsInType) {
|
|
5557
5557
|
report([idName]);
|
|
5558
5558
|
}
|
|
5559
5559
|
} else {
|
|
5560
|
-
report(
|
|
5560
|
+
report(idFieldsInType);
|
|
5561
5561
|
}
|
|
5562
5562
|
}
|
|
5563
5563
|
function report(idNames2) {
|
package/cjs/meta.js
CHANGED
|
@@ -169,17 +169,17 @@ const rule = {
|
|
|
169
169
|
}
|
|
170
170
|
function checkFields(rawType2) {
|
|
171
171
|
const fields = rawType2.getFields();
|
|
172
|
-
const
|
|
173
|
-
if (
|
|
172
|
+
const idFieldsInType = idNames.filter((name) => fields[name]);
|
|
173
|
+
if (idFieldsInType.length === 0) {
|
|
174
174
|
return;
|
|
175
175
|
}
|
|
176
176
|
checkFragments(node);
|
|
177
177
|
if (requireAllFields) {
|
|
178
|
-
for (const idName of
|
|
178
|
+
for (const idName of idFieldsInType) {
|
|
179
179
|
report([idName]);
|
|
180
180
|
}
|
|
181
181
|
} else {
|
|
182
|
-
report(
|
|
182
|
+
report(idFieldsInType);
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
function report(idNames2) {
|
package/esm/meta.js
CHANGED
|
@@ -169,17 +169,17 @@ const rule = {
|
|
|
169
169
|
}
|
|
170
170
|
function checkFields(rawType2) {
|
|
171
171
|
const fields = rawType2.getFields();
|
|
172
|
-
const
|
|
173
|
-
if (
|
|
172
|
+
const idFieldsInType = idNames.filter((name) => fields[name]);
|
|
173
|
+
if (idFieldsInType.length === 0) {
|
|
174
174
|
return;
|
|
175
175
|
}
|
|
176
176
|
checkFragments(node);
|
|
177
177
|
if (requireAllFields) {
|
|
178
|
-
for (const idName of
|
|
178
|
+
for (const idName of idFieldsInType) {
|
|
179
179
|
report([idName]);
|
|
180
180
|
}
|
|
181
181
|
} else {
|
|
182
|
-
report(
|
|
182
|
+
report(idFieldsInType);
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
function report(idNames2) {
|