@graphql-inspector/validate-command
Advanced tools
Comparing version 0.0.0-canary.9cf9b2c to 0.0.0-canary.a883150
@@ -10,2 +10,3 @@ 'use strict'; | ||
const index = commands.createCommand((api) => { | ||
const { loaders, interceptArguments, interceptPositional, interceptOptions, } = api; | ||
return { | ||
@@ -16,13 +17,13 @@ command: 'validate <documents> <schema>', | ||
return yargs | ||
.positional('schema', { | ||
.positional('schema', interceptPositional('schema', { | ||
describe: 'Point to a schema', | ||
type: 'string', | ||
demandOption: true, | ||
}) | ||
.positional('documents', { | ||
})) | ||
.positional('documents', interceptPositional('documents', { | ||
describe: 'Point to docuents', | ||
type: 'string', | ||
demandOption: true, | ||
}) | ||
.options({ | ||
})) | ||
.options(interceptOptions({ | ||
d: { | ||
@@ -53,7 +54,7 @@ alias: 'deprecated', | ||
}, | ||
}); | ||
})); | ||
}, | ||
handler(args) { | ||
return tslib.__awaiter(this, void 0, void 0, function* () { | ||
const { loaders } = api; | ||
yield interceptArguments(args); | ||
const { headers, token } = commands.parseGlobalArgs(args); | ||
@@ -60,0 +61,0 @@ const schema = yield loaders.loadSchema(args.schema, { |
@@ -1,3 +0,4 @@ | ||
import { GlobalArgs } from '@graphql-inspector/commands'; | ||
declare const _default: import("../../commands/src").CommandFactory<{}, { | ||
import { GlobalArgs, CommandFactory } from '@graphql-inspector/commands'; | ||
export { CommandFactory }; | ||
declare const _default: CommandFactory<{}, { | ||
schema: string; | ||
@@ -4,0 +5,0 @@ documents: string; |
@@ -8,2 +8,3 @@ import { __awaiter } from 'tslib'; | ||
const index = createCommand((api) => { | ||
const { loaders, interceptArguments, interceptPositional, interceptOptions, } = api; | ||
return { | ||
@@ -14,13 +15,13 @@ command: 'validate <documents> <schema>', | ||
return yargs | ||
.positional('schema', { | ||
.positional('schema', interceptPositional('schema', { | ||
describe: 'Point to a schema', | ||
type: 'string', | ||
demandOption: true, | ||
}) | ||
.positional('documents', { | ||
})) | ||
.positional('documents', interceptPositional('documents', { | ||
describe: 'Point to docuents', | ||
type: 'string', | ||
demandOption: true, | ||
}) | ||
.options({ | ||
})) | ||
.options(interceptOptions({ | ||
d: { | ||
@@ -51,7 +52,7 @@ alias: 'deprecated', | ||
}, | ||
}); | ||
})); | ||
}, | ||
handler(args) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const { loaders } = api; | ||
yield interceptArguments(args); | ||
const { headers, token } = parseGlobalArgs(args); | ||
@@ -58,0 +59,0 @@ const schema = yield loaders.loadSchema(args.schema, { |
{ | ||
"name": "@graphql-inspector/validate-command", | ||
"version": "0.0.0-canary.9cf9b2c", | ||
"version": "0.0.0-canary.a883150", | ||
"description": "Validate Documents in GraphQL Inspector", | ||
@@ -10,5 +10,5 @@ "sideEffects": false, | ||
"dependencies": { | ||
"@graphql-inspector/commands": "0.0.0-canary.9cf9b2c", | ||
"@graphql-inspector/core": "0.0.0-canary.9cf9b2c", | ||
"@graphql-inspector/logger": "0.0.0-canary.9cf9b2c", | ||
"@graphql-inspector/commands": "0.0.0-canary.a883150", | ||
"@graphql-inspector/core": "0.0.0-canary.a883150", | ||
"@graphql-inspector/logger": "0.0.0-canary.a883150", | ||
"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
34488
291
+ Added@graphql-inspector/commands@0.0.0-canary.a883150(transitive)
+ Added@graphql-inspector/config@0.0.0-canary.a883150(transitive)
+ Added@graphql-inspector/core@0.0.0-canary.a883150(transitive)
+ Added@graphql-inspector/loaders@0.0.0-canary.a883150(transitive)
+ Added@graphql-inspector/logger@0.0.0-canary.a883150(transitive)
- Removed@graphql-inspector/commands@0.0.0-canary.9cf9b2c(transitive)
- Removed@graphql-inspector/config@0.0.0-canary.9cf9b2c(transitive)
- Removed@graphql-inspector/core@0.0.0-canary.9cf9b2c(transitive)
- Removed@graphql-inspector/loaders@0.0.0-canary.9cf9b2c(transitive)
- Removed@graphql-inspector/logger@0.0.0-canary.9cf9b2c(transitive)