@graphql-eslint/eslint-plugin 3.11.2-alpha-20220926144959-f269795 → 3.11.2-alpha-20220926145833-4c8ac5b

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. package/index.js +3 -3
  2. package/index.mjs +3 -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(filePath)) === null || _a === void 0 ? void 0 : _a.extensions) === null || _b === void 0 ? void 0 : _b.graphqlTagPluck;
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 (_c) {
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(filePath)) === null || _a === void 0 ? void 0 : _a.extensions) === null || _b === void 0 ? void 0 : _b.graphqlTagPluck;
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 (_c) {
100
+ catch (_d) {
101
101
  // in case of parsing error return code as is
102
102
  return [code];
103
103
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-eslint/eslint-plugin",
3
- "version": "3.11.2-alpha-20220926144959-f269795",
3
+ "version": "3.11.2-alpha-20220926145833-4c8ac5b",
4
4
  "description": "GraphQL plugin for ESLint",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {