Socket
Socket
Sign inDemoInstall

@graphql-inspector/validate-command

Package Overview
Dependencies
Maintainers
1
Versions
525
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-inspector/validate-command - npm Package Compare versions

Comparing version 0.0.0-canary.9cf9b2c to 0.0.0-canary.da4bdcc

15

index.cjs.js

@@ -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;
interceptArguments(args);
const { headers, token } = commands.parseGlobalArgs(args);

@@ -60,0 +61,0 @@ const schema = yield loaders.loadSchema(args.schema, {

@@ -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;
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.da4bdcc",
"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.da4bdcc",
"@graphql-inspector/core": "0.0.0-canary.da4bdcc",
"@graphql-inspector/logger": "0.0.0-canary.da4bdcc",
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc