@graphql-codegen/cli 5.0.4-alpha-20241122110256-6c72afbd28dd208f67523e60d34d38b3a58ca474 → 5.0.4-alpha-20250109122810-aa191e7ac94facb19d577e2fb0b27967d3590cbb
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/cli.js +1 -1
- package/cjs/graphql-config.js +2 -2
- package/cjs/utils/watcher.js +1 -1
- package/esm/cli.js +1 -1
- package/esm/graphql-config.js +2 -2
- package/esm/utils/watcher.js +1 -1
- package/package.json +4 -4
package/cjs/cli.js
CHANGED
|
@@ -54,7 +54,7 @@ async function ensureGraphQlPackage() {
|
|
|
54
54
|
try {
|
|
55
55
|
await Promise.resolve().then(() => __importStar(require('graphql')));
|
|
56
56
|
}
|
|
57
|
-
catch
|
|
57
|
+
catch {
|
|
58
58
|
throw new Error(`Unable to load "graphql" package. Please make sure to install "graphql" as a dependency! \n
|
|
59
59
|
To install "graphql", run:
|
|
60
60
|
yarn add graphql
|
package/cjs/graphql-config.js
CHANGED
|
@@ -53,7 +53,7 @@ function isGraphQLConfig(config) {
|
|
|
53
53
|
try {
|
|
54
54
|
return config.getDefault().hasExtension('codegen');
|
|
55
55
|
}
|
|
56
|
-
catch
|
|
56
|
+
catch { }
|
|
57
57
|
try {
|
|
58
58
|
for (const projectName in config.projects) {
|
|
59
59
|
if (Object.prototype.hasOwnProperty.call(config.projects, projectName)) {
|
|
@@ -64,6 +64,6 @@ function isGraphQLConfig(config) {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
catch
|
|
67
|
+
catch { }
|
|
68
68
|
return false;
|
|
69
69
|
}
|
package/cjs/utils/watcher.js
CHANGED
|
@@ -85,7 +85,7 @@ const createWatcher = (initialContext, onNext) => {
|
|
|
85
85
|
try {
|
|
86
86
|
delete require.cache[path];
|
|
87
87
|
}
|
|
88
|
-
catch
|
|
88
|
+
catch { }
|
|
89
89
|
if (eventName === 'update' && config.configFilePath && path === config.configFilePath) {
|
|
90
90
|
log(`${log_symbols_1.default.info} Config file has changed, reloading...`);
|
|
91
91
|
const context = await (0, config_js_1.loadContext)(config.configFilePath);
|
package/esm/cli.js
CHANGED
|
@@ -27,7 +27,7 @@ export async function ensureGraphQlPackage() {
|
|
|
27
27
|
try {
|
|
28
28
|
await import('graphql');
|
|
29
29
|
}
|
|
30
|
-
catch
|
|
30
|
+
catch {
|
|
31
31
|
throw new Error(`Unable to load "graphql" package. Please make sure to install "graphql" as a dependency! \n
|
|
32
32
|
To install "graphql", run:
|
|
33
33
|
yarn add graphql
|
package/esm/graphql-config.js
CHANGED
|
@@ -48,7 +48,7 @@ function isGraphQLConfig(config) {
|
|
|
48
48
|
try {
|
|
49
49
|
return config.getDefault().hasExtension('codegen');
|
|
50
50
|
}
|
|
51
|
-
catch
|
|
51
|
+
catch { }
|
|
52
52
|
try {
|
|
53
53
|
for (const projectName in config.projects) {
|
|
54
54
|
if (Object.prototype.hasOwnProperty.call(config.projects, projectName)) {
|
|
@@ -59,6 +59,6 @@ function isGraphQLConfig(config) {
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
catch
|
|
62
|
+
catch { }
|
|
63
63
|
return false;
|
|
64
64
|
}
|
package/esm/utils/watcher.js
CHANGED
|
@@ -81,7 +81,7 @@ export const createWatcher = (initialContext, onNext) => {
|
|
|
81
81
|
try {
|
|
82
82
|
delete require.cache[path];
|
|
83
83
|
}
|
|
84
|
-
catch
|
|
84
|
+
catch { }
|
|
85
85
|
if (eventName === 'update' && config.configFilePath && path === config.configFilePath) {
|
|
86
86
|
log(`${logSymbols.info} Config file has changed, reloading...`);
|
|
87
87
|
const context = await loadContext(config.configFilePath);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/cli",
|
|
3
|
-
"version": "5.0.4-alpha-
|
|
3
|
+
"version": "5.0.4-alpha-20250109122810-aa191e7ac94facb19d577e2fb0b27967d3590cbb",
|
|
4
4
|
"peerDependenciesMeta": {
|
|
5
5
|
"@parcel/watcher": {
|
|
6
6
|
"optional": true
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"@babel/generator": "^7.18.13",
|
|
15
15
|
"@babel/template": "^7.18.10",
|
|
16
16
|
"@babel/types": "^7.18.13",
|
|
17
|
-
"@graphql-codegen/client-preset": "5.
|
|
18
|
-
"@graphql-codegen/core": "
|
|
19
|
-
"@graphql-codegen/plugin-helpers": "
|
|
17
|
+
"@graphql-codegen/client-preset": "4.5.2-alpha-20250109122810-aa191e7ac94facb19d577e2fb0b27967d3590cbb",
|
|
18
|
+
"@graphql-codegen/core": "4.0.3-alpha-20250109122810-aa191e7ac94facb19d577e2fb0b27967d3590cbb",
|
|
19
|
+
"@graphql-codegen/plugin-helpers": "6.0.0-alpha-20250109122810-aa191e7ac94facb19d577e2fb0b27967d3590cbb",
|
|
20
20
|
"@graphql-tools/apollo-engine-loader": "^8.0.0",
|
|
21
21
|
"@graphql-tools/code-file-loader": "^8.0.0",
|
|
22
22
|
"@graphql-tools/git-loader": "^8.0.0",
|