@graphql-codegen/cli 7.4.4 → 7.4.5-alpha-20261007082315-ef6cc91f8477bab90b57fb13680ffef83dba53e1
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/load.js +8 -1
- package/cjs/version.js +1 -1
- package/esm/load.js +8 -1
- package/esm/version.js +1 -1
- package/package.json +14 -14
package/cjs/load.js
CHANGED
|
@@ -101,5 +101,12 @@ const printError = (error) => {
|
|
|
101
101
|
if (error instanceof graphql_1.GraphQLError) {
|
|
102
102
|
return String(error);
|
|
103
103
|
}
|
|
104
|
-
|
|
104
|
+
// `@graphql-tools/load` wraps loader errors in an AggregateError, so print each one to keep e.g. GraphQLError's location
|
|
105
|
+
if (error instanceof AggregateError && error.errors.length > 0) {
|
|
106
|
+
return error.errors.map(printError).join('\n\n');
|
|
107
|
+
}
|
|
108
|
+
if (error instanceof Error) {
|
|
109
|
+
return [error.message || String(error), String(error.stack)].join('\n');
|
|
110
|
+
}
|
|
111
|
+
return String(error);
|
|
105
112
|
};
|
package/cjs/version.js
CHANGED
package/esm/load.js
CHANGED
|
@@ -96,5 +96,12 @@ const printError = (error) => {
|
|
|
96
96
|
if (error instanceof GraphQLError) {
|
|
97
97
|
return String(error);
|
|
98
98
|
}
|
|
99
|
-
|
|
99
|
+
// `@graphql-tools/load` wraps loader errors in an AggregateError, so print each one to keep e.g. GraphQLError's location
|
|
100
|
+
if (error instanceof AggregateError && error.errors.length > 0) {
|
|
101
|
+
return error.errors.map(printError).join('\n\n');
|
|
102
|
+
}
|
|
103
|
+
if (error instanceof Error) {
|
|
104
|
+
return [error.message || String(error), String(error.stack)].join('\n');
|
|
105
|
+
}
|
|
106
|
+
return String(error);
|
|
100
107
|
};
|
package/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '7.4.
|
|
1
|
+
export const version = '7.4.5-alpha-20261007082315-ef6cc91f8477bab90b57fb13680ffef83dba53e1';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/cli",
|
|
3
|
-
"version": "7.4.
|
|
3
|
+
"version": "7.4.5-alpha-20261007082315-ef6cc91f8477bab90b57fb13680ffef83dba53e1",
|
|
4
4
|
"peerDependenciesMeta": {
|
|
5
5
|
"@parcel/watcher": {
|
|
6
6
|
"optional": true
|
|
@@ -14,19 +14,19 @@
|
|
|
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": "^6.2.
|
|
18
|
-
"@graphql-codegen/core": "^6.2.
|
|
19
|
-
"@graphql-codegen/plugin-helpers": "^7.4.
|
|
20
|
-
"@graphql-tools/apollo-engine-loader": "^8.0.
|
|
21
|
-
"@graphql-tools/code-file-loader": "^8.1.
|
|
22
|
-
"@graphql-tools/git-loader": "^8.0.
|
|
23
|
-
"@graphql-tools/github-loader": "^9.
|
|
24
|
-
"@graphql-tools/graphql-file-loader": "^8.1.
|
|
25
|
-
"@graphql-tools/json-file-loader": "^8.0.
|
|
26
|
-
"@graphql-tools/load": "^8.1.
|
|
27
|
-
"@graphql-tools/merge": "^9.2.
|
|
28
|
-
"@graphql-tools/url-loader": "^9.
|
|
29
|
-
"@graphql-tools/utils": "^
|
|
17
|
+
"@graphql-codegen/client-preset": "^6.2.2-alpha-20261007082315-ef6cc91f8477bab90b57fb13680ffef83dba53e1",
|
|
18
|
+
"@graphql-codegen/core": "^6.2.2-alpha-20261007082315-ef6cc91f8477bab90b57fb13680ffef83dba53e1",
|
|
19
|
+
"@graphql-codegen/plugin-helpers": "^7.4.2-alpha-20261007082315-ef6cc91f8477bab90b57fb13680ffef83dba53e1",
|
|
20
|
+
"@graphql-tools/apollo-engine-loader": "^8.0.38",
|
|
21
|
+
"@graphql-tools/code-file-loader": "^8.1.41",
|
|
22
|
+
"@graphql-tools/git-loader": "^8.0.44",
|
|
23
|
+
"@graphql-tools/github-loader": "^9.1.11",
|
|
24
|
+
"@graphql-tools/graphql-file-loader": "^8.1.22",
|
|
25
|
+
"@graphql-tools/json-file-loader": "^8.0.36",
|
|
26
|
+
"@graphql-tools/load": "^8.1.19",
|
|
27
|
+
"@graphql-tools/merge": "^9.2.6",
|
|
28
|
+
"@graphql-tools/url-loader": "^9.1.12",
|
|
29
|
+
"@graphql-tools/utils": "^12.0.3",
|
|
30
30
|
"@inquirer/prompts": "^8.3.2",
|
|
31
31
|
"@whatwg-node/fetch": "^0.10.0",
|
|
32
32
|
"chalk": "^5.6.0",
|