@graphql-inspector/validate-command 3.4.9 → 3.4.10-alpha-20230418123952-c4d3f74c
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/index.js +4 -4
- package/esm/index.js +4 -4
- package/package.json +6 -6
package/cjs/index.js
CHANGED
|
@@ -230,13 +230,13 @@ function printInvalidDocuments(invalidDocuments, listKey, isError = false, silen
|
|
|
230
230
|
if (silent) {
|
|
231
231
|
return;
|
|
232
232
|
}
|
|
233
|
-
|
|
233
|
+
for (const doc of invalidDocuments) {
|
|
234
234
|
if (doc.errors.length) {
|
|
235
|
-
renderErrors(doc.source.name, doc[listKey], isError)
|
|
235
|
+
for (const line of renderErrors(doc.source.name, doc[listKey], isError)) {
|
|
236
236
|
logger_1.Logger.log(line);
|
|
237
|
-
}
|
|
237
|
+
}
|
|
238
238
|
}
|
|
239
|
-
}
|
|
239
|
+
}
|
|
240
240
|
}
|
|
241
241
|
function renderErrors(sourceName, errors, isError = false) {
|
|
242
242
|
const errorsAsString = errors.map(e => ` - ${(0, logger_1.bolderize)(e.message)}`).join('\n');
|
package/esm/index.js
CHANGED
|
@@ -226,13 +226,13 @@ function printInvalidDocuments(invalidDocuments, listKey, isError = false, silen
|
|
|
226
226
|
if (silent) {
|
|
227
227
|
return;
|
|
228
228
|
}
|
|
229
|
-
|
|
229
|
+
for (const doc of invalidDocuments) {
|
|
230
230
|
if (doc.errors.length) {
|
|
231
|
-
renderErrors(doc.source.name, doc[listKey], isError)
|
|
231
|
+
for (const line of renderErrors(doc.source.name, doc[listKey], isError)) {
|
|
232
232
|
Logger.log(line);
|
|
233
|
-
}
|
|
233
|
+
}
|
|
234
234
|
}
|
|
235
|
-
}
|
|
235
|
+
}
|
|
236
236
|
}
|
|
237
237
|
function renderErrors(sourceName, errors, isError = false) {
|
|
238
238
|
const errorsAsString = errors.map(e => ` - ${bolderize(e.message)}`).join('\n');
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-inspector/validate-command",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.10-alpha-20230418123952-c4d3f74c",
|
|
4
4
|
"description": "Validate Documents in GraphQL Inspector",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"peerDependencies": {
|
|
7
7
|
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@graphql-tools/utils": "
|
|
11
|
-
"tslib": "
|
|
12
|
-
"@graphql-inspector/commands": "3.4.
|
|
13
|
-
"@graphql-inspector/core": "4.1.
|
|
14
|
-
"@graphql-inspector/logger": "3.4.
|
|
10
|
+
"@graphql-tools/utils": "9.2.1",
|
|
11
|
+
"tslib": "2.5.0",
|
|
12
|
+
"@graphql-inspector/commands": "3.4.6-alpha-20230418123952-c4d3f74c",
|
|
13
|
+
"@graphql-inspector/core": "4.1.1-alpha-20230418123952-c4d3f74c",
|
|
14
|
+
"@graphql-inspector/logger": "3.4.5-alpha-20230418123952-c4d3f74c"
|
|
15
15
|
},
|
|
16
16
|
"repository": {
|
|
17
17
|
"type": "git",
|