@graphql-codegen/cli 7.1.2 → 7.1.3

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.
@@ -48,10 +48,6 @@ function isGraphQLConfig(config) {
48
48
  if (!config) {
49
49
  return false;
50
50
  }
51
- try {
52
- return config.getDefault().hasExtension('codegen');
53
- }
54
- catch { }
55
51
  try {
56
52
  for (const projectName in config.projects) {
57
53
  if (Object.prototype.hasOwnProperty.call(config.projects, projectName)) {
@@ -63,5 +59,9 @@ function isGraphQLConfig(config) {
63
59
  }
64
60
  }
65
61
  catch { }
62
+ try {
63
+ return config.getDefault().hasExtension('codegen');
64
+ }
65
+ catch { }
66
66
  return false;
67
67
  }
package/cjs/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
- exports.version = '7.1.2';
4
+ exports.version = '7.1.3';
@@ -43,10 +43,6 @@ function isGraphQLConfig(config) {
43
43
  if (!config) {
44
44
  return false;
45
45
  }
46
- try {
47
- return config.getDefault().hasExtension('codegen');
48
- }
49
- catch { }
50
46
  try {
51
47
  for (const projectName in config.projects) {
52
48
  if (Object.prototype.hasOwnProperty.call(config.projects, projectName)) {
@@ -58,5 +54,9 @@ function isGraphQLConfig(config) {
58
54
  }
59
55
  }
60
56
  catch { }
57
+ try {
58
+ return config.getDefault().hasExtension('codegen');
59
+ }
60
+ catch { }
61
61
  return false;
62
62
  }
package/esm/version.js CHANGED
@@ -1 +1 @@
1
- export const version = '7.1.2';
1
+ export const version = '7.1.3';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-codegen/cli",
3
- "version": "7.1.2",
3
+ "version": "7.1.3",
4
4
  "peerDependenciesMeta": {
5
5
  "@parcel/watcher": {
6
6
  "optional": true
@@ -44,8 +44,8 @@
44
44
  "yaml": "^2.3.1",
45
45
  "yargs": "^18.0.0",
46
46
  "@graphql-codegen/client-preset": "^6.0.1",
47
- "@graphql-codegen/plugin-helpers": "^7.0.1",
48
- "@graphql-codegen/core": "^6.1.0"
47
+ "@graphql-codegen/core": "^6.1.0",
48
+ "@graphql-codegen/plugin-helpers": "^7.0.1"
49
49
  },
50
50
  "repository": {
51
51
  "type": "git",