Socket
Socket
Sign inDemoInstall

@graphql-inspector/validate-command

Package Overview
Dependencies
Maintainers
2
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 2.8.1 to 2.9.0

10

index.cjs.js

@@ -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,

8

package.json
{
"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

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