@graphql-inspector/validate-command
Advanced tools
Comparing version 2.8.1 to 2.9.0
@@ -131,2 +131,7 @@ 'use strict'; | ||
}, | ||
ignore: { | ||
describe: 'Ignore and do not load these files (supports glob)', | ||
array: true, | ||
type: 'string', | ||
}, | ||
onlyErrors: { | ||
@@ -169,2 +174,3 @@ describe: 'Show only errors', | ||
const onlyErrors = args.onlyErrors || false; | ||
const ignore = args.ignore || []; | ||
const schema = yield loaders.loadSchema(args.schema, { | ||
@@ -175,3 +181,5 @@ headers, | ||
}, apolloFederation, aws); | ||
const documents = yield loaders.loadDocuments(args.documents); | ||
const documents = yield loaders.loadDocuments(args.documents, { | ||
ignore, | ||
}); | ||
return handler({ | ||
@@ -178,0 +186,0 @@ schema, |
@@ -32,3 +32,4 @@ import { GlobalArgs, CommandFactory } from '@graphql-inspector/commands'; | ||
silent?: boolean | undefined; | ||
ignore?: string[] | undefined; | ||
} & GlobalArgs>; | ||
export default _default; |
@@ -127,2 +127,7 @@ import { __awaiter } from 'tslib'; | ||
}, | ||
ignore: { | ||
describe: 'Ignore and do not load these files (supports glob)', | ||
array: true, | ||
type: 'string', | ||
}, | ||
onlyErrors: { | ||
@@ -165,2 +170,3 @@ describe: 'Show only errors', | ||
const onlyErrors = args.onlyErrors || false; | ||
const ignore = args.ignore || []; | ||
const schema = yield loaders.loadSchema(args.schema, { | ||
@@ -171,3 +177,5 @@ headers, | ||
}, apolloFederation, aws); | ||
const documents = yield loaders.loadDocuments(args.documents); | ||
const documents = yield loaders.loadDocuments(args.documents, { | ||
ignore, | ||
}); | ||
return handler({ | ||
@@ -174,0 +182,0 @@ schema, |
{ | ||
"name": "@graphql-inspector/validate-command", | ||
"version": "2.8.1", | ||
"version": "2.9.0", | ||
"description": "Validate Documents in GraphQL Inspector", | ||
@@ -10,5 +10,5 @@ "sideEffects": false, | ||
"dependencies": { | ||
"@graphql-inspector/commands": "2.8.1", | ||
"@graphql-inspector/core": "2.8.1", | ||
"@graphql-inspector/logger": "2.8.1", | ||
"@graphql-inspector/commands": "2.9.0", | ||
"@graphql-inspector/core": "2.9.0", | ||
"@graphql-inspector/logger": "2.9.0", | ||
"tslib": "^2.0.0" | ||
@@ -15,0 +15,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
53076
502
+ Added@graphql-inspector/commands@2.9.0(transitive)
+ Added@graphql-inspector/config@2.9.0(transitive)
+ Added@graphql-inspector/core@2.9.0(transitive)
+ Added@graphql-inspector/loaders@2.9.0(transitive)
+ Added@graphql-inspector/logger@2.9.0(transitive)
- Removed@graphql-inspector/commands@2.8.1(transitive)
- Removed@graphql-inspector/config@2.8.1(transitive)
- Removed@graphql-inspector/core@2.8.1(transitive)
- Removed@graphql-inspector/loaders@2.8.1(transitive)
- Removed@graphql-inspector/logger@2.8.1(transitive)