Socket
Socket
Sign inDemoInstall

@graphql-inspector/validate-command

Package Overview
Dependencies
4
Maintainers
1
Versions
517
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.0-canary.8127707 to 0.0.0-canary.3c127cf

18

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,10 +54,7 @@ alias: 'deprecated',

},
});
}));
},
handler(args) {
return tslib.__awaiter(this, void 0, void 0, function* () {
const { loaders, intercept } = api;
if (intercept) {
intercept(args);
}
interceptArguments(args);
const { headers, token } = commands.parseGlobalArgs(args);

@@ -63,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,10 +52,7 @@ alias: 'deprecated',

},
});
}));
},
handler(args) {
return __awaiter(this, void 0, void 0, function* () {
const { loaders, intercept } = api;
if (intercept) {
intercept(args);
}
interceptArguments(args);
const { headers, token } = parseGlobalArgs(args);

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

{
"name": "@graphql-inspector/validate-command",
"version": "0.0.0-canary.8127707",
"version": "0.0.0-canary.3c127cf",
"description": "Validate Documents in GraphQL Inspector",

@@ -10,5 +10,5 @@ "sideEffects": false,

"dependencies": {
"@graphql-inspector/commands": "0.0.0-canary.8127707",
"@graphql-inspector/core": "0.0.0-canary.8127707",
"@graphql-inspector/logger": "0.0.0-canary.8127707",
"@graphql-inspector/commands": "0.0.0-canary.3c127cf",
"@graphql-inspector/core": "0.0.0-canary.3c127cf",
"@graphql-inspector/logger": "0.0.0-canary.3c127cf",
"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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc