@graphql-eslint/eslint-plugin 3.11.2-alpha-20220926144959-f269795 → 3.11.2-alpha-20220926145833-4c8ac5b
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/index.js +3 -3
- package/index.mjs +3 -3
- package/package.json +1 -1
package/index.js
CHANGED
@@ -71,9 +71,9 @@ let onDiskConfig;
|
|
71
71
|
const processor = {
|
72
72
|
supportsAutofix: true,
|
73
73
|
preprocess(code, filePath) {
|
74
|
-
var _a, _b;
|
74
|
+
var _a, _b, _c;
|
75
75
|
onDiskConfig || (onDiskConfig = loadOnDiskGraphQLConfig(filePath));
|
76
|
-
const graphQLTagPluckOptions = (_b = (_a = onDiskConfig === null || onDiskConfig === void 0 ? void 0 : onDiskConfig.getProjectForFile
|
76
|
+
const graphQLTagPluckOptions = (_c = (_b = (_a = onDiskConfig === null || onDiskConfig === void 0 ? void 0 : onDiskConfig.getProjectForFile) === null || _a === void 0 ? void 0 : _a.call(onDiskConfig, filePath)) === null || _b === void 0 ? void 0 : _b.extensions) === null || _c === void 0 ? void 0 : _c.graphqlTagPluck;
|
77
77
|
const { modules = [], globalGqlIdentifierName = ['gql', 'graphql'], gqlMagicComment = 'GraphQL', } = graphQLTagPluckOptions || {};
|
78
78
|
const RELEVANT_KEYWORDS = [
|
79
79
|
...new Set([
|
@@ -103,7 +103,7 @@ const processor = {
|
|
103
103
|
blocksMap.set(filePath, blocks);
|
104
104
|
return [...blocks, code /* source code must be provided and be last */];
|
105
105
|
}
|
106
|
-
catch (
|
106
|
+
catch (_d) {
|
107
107
|
// in case of parsing error return code as is
|
108
108
|
return [code];
|
109
109
|
}
|
package/index.mjs
CHANGED
@@ -65,9 +65,9 @@ let onDiskConfig;
|
|
65
65
|
const processor = {
|
66
66
|
supportsAutofix: true,
|
67
67
|
preprocess(code, filePath) {
|
68
|
-
var _a, _b;
|
68
|
+
var _a, _b, _c;
|
69
69
|
onDiskConfig || (onDiskConfig = loadOnDiskGraphQLConfig(filePath));
|
70
|
-
const graphQLTagPluckOptions = (_b = (_a = onDiskConfig === null || onDiskConfig === void 0 ? void 0 : onDiskConfig.getProjectForFile
|
70
|
+
const graphQLTagPluckOptions = (_c = (_b = (_a = onDiskConfig === null || onDiskConfig === void 0 ? void 0 : onDiskConfig.getProjectForFile) === null || _a === void 0 ? void 0 : _a.call(onDiskConfig, filePath)) === null || _b === void 0 ? void 0 : _b.extensions) === null || _c === void 0 ? void 0 : _c.graphqlTagPluck;
|
71
71
|
const { modules = [], globalGqlIdentifierName = ['gql', 'graphql'], gqlMagicComment = 'GraphQL', } = graphQLTagPluckOptions || {};
|
72
72
|
const RELEVANT_KEYWORDS = [
|
73
73
|
...new Set([
|
@@ -97,7 +97,7 @@ const processor = {
|
|
97
97
|
blocksMap.set(filePath, blocks);
|
98
98
|
return [...blocks, code /* source code must be provided and be last */];
|
99
99
|
}
|
100
|
-
catch (
|
100
|
+
catch (_d) {
|
101
101
|
// in case of parsing error return code as is
|
102
102
|
return [code];
|
103
103
|
}
|
package/package.json
CHANGED