@graphql-inspector/ci
Advanced tools
Comparing version 0.0.0-canary.57e2caa to 0.0.0-canary.9cf9b2c
@@ -46,23 +46,18 @@ 'use strict'; | ||
.fail((msg, error) => { | ||
if (msg) { | ||
if (msg.includes('Unknown argument:')) { | ||
const commandName = msg | ||
.replace('Unknown argument: ', '') | ||
.toLowerCase(); | ||
logger.Logger.error(`Command '${commandName}' not found`); | ||
if (config.availableCommands.includes(commandName)) { | ||
logger.Logger.log(` Try to install @graphql-inspector/${commandName}-command`); | ||
} | ||
if (msg.includes('Unknown argument:')) { | ||
const commandName = msg.replace('Unknown argument: ', '').toLowerCase(); | ||
logger.Logger.error(`Command '${commandName}' not found`); | ||
if (config.availableCommands.includes(commandName)) { | ||
logger.Logger.log(` Try to install @graphql-inspector/${commandName}-command`); | ||
} | ||
else if (msg.includes('Not enough')) { | ||
logger.Logger.error(msg); | ||
logger.Logger.info('Specify --help for available options'); | ||
} | ||
else { | ||
logger.Logger.error(msg); | ||
} | ||
} | ||
else if (msg.includes('Not enough')) { | ||
logger.Logger.error(msg); | ||
logger.Logger.info('Specify --help for available options'); | ||
} | ||
else { | ||
logger.Logger.error(msg); | ||
} | ||
if (error) { | ||
logger.Logger.error(error.message); | ||
console.error(error); | ||
throw error; | ||
} | ||
@@ -69,0 +64,0 @@ process.exit(1); |
@@ -42,23 +42,18 @@ import { __awaiter } from 'tslib'; | ||
.fail((msg, error) => { | ||
if (msg) { | ||
if (msg.includes('Unknown argument:')) { | ||
const commandName = msg | ||
.replace('Unknown argument: ', '') | ||
.toLowerCase(); | ||
Logger.error(`Command '${commandName}' not found`); | ||
if (availableCommands.includes(commandName)) { | ||
Logger.log(` Try to install @graphql-inspector/${commandName}-command`); | ||
} | ||
if (msg.includes('Unknown argument:')) { | ||
const commandName = msg.replace('Unknown argument: ', '').toLowerCase(); | ||
Logger.error(`Command '${commandName}' not found`); | ||
if (availableCommands.includes(commandName)) { | ||
Logger.log(` Try to install @graphql-inspector/${commandName}-command`); | ||
} | ||
else if (msg.includes('Not enough')) { | ||
Logger.error(msg); | ||
Logger.info('Specify --help for available options'); | ||
} | ||
else { | ||
Logger.error(msg); | ||
} | ||
} | ||
else if (msg.includes('Not enough')) { | ||
Logger.error(msg); | ||
Logger.info('Specify --help for available options'); | ||
} | ||
else { | ||
Logger.error(msg); | ||
} | ||
if (error) { | ||
Logger.error(error.message); | ||
console.error(error); | ||
throw error; | ||
} | ||
@@ -65,0 +60,0 @@ process.exit(1); |
31
index.js
@@ -47,23 +47,18 @@ #!/usr/bin/env node | ||
.fail((msg, error) => { | ||
if (msg) { | ||
if (msg.includes('Unknown argument:')) { | ||
const commandName = msg | ||
.replace('Unknown argument: ', '') | ||
.toLowerCase(); | ||
logger.Logger.error(`Command '${commandName}' not found`); | ||
if (config.availableCommands.includes(commandName)) { | ||
logger.Logger.log(` Try to install @graphql-inspector/${commandName}-command`); | ||
} | ||
if (msg.includes('Unknown argument:')) { | ||
const commandName = msg.replace('Unknown argument: ', '').toLowerCase(); | ||
logger.Logger.error(`Command '${commandName}' not found`); | ||
if (config.availableCommands.includes(commandName)) { | ||
logger.Logger.log(` Try to install @graphql-inspector/${commandName}-command`); | ||
} | ||
else if (msg.includes('Not enough')) { | ||
logger.Logger.error(msg); | ||
logger.Logger.info('Specify --help for available options'); | ||
} | ||
else { | ||
logger.Logger.error(msg); | ||
} | ||
} | ||
else if (msg.includes('Not enough')) { | ||
logger.Logger.error(msg); | ||
logger.Logger.info('Specify --help for available options'); | ||
} | ||
else { | ||
logger.Logger.error(msg); | ||
} | ||
if (error) { | ||
logger.Logger.error(error.message); | ||
console.error(error); | ||
throw error; | ||
} | ||
@@ -70,0 +65,0 @@ process.exit(1); |
{ | ||
"name": "@graphql-inspector/ci", | ||
"version": "0.0.0-canary.57e2caa", | ||
"version": "0.0.0-canary.9cf9b2c", | ||
"description": "Tooling for GraphQL. Compare GraphQL Schemas, check documents, find breaking changes, find similar types.", | ||
"sideEffects": false, | ||
"peerDependencies": { | ||
@@ -9,7 +10,7 @@ "graphql": "^14.0.0 || ^15.0.0" | ||
"dependencies": { | ||
"@graphql-inspector/commands": "0.0.0-canary.57e2caa", | ||
"@graphql-inspector/config": "0.0.0-canary.57e2caa", | ||
"@graphql-inspector/loaders": "0.0.0-canary.57e2caa", | ||
"@graphql-inspector/logger": "0.0.0-canary.57e2caa", | ||
"tslib": "^1.11.1", | ||
"@graphql-inspector/commands": "0.0.0-canary.9cf9b2c", | ||
"@graphql-inspector/config": "0.0.0-canary.9cf9b2c", | ||
"@graphql-inspector/loaders": "0.0.0-canary.9cf9b2c", | ||
"@graphql-inspector/logger": "0.0.0-canary.9cf9b2c", | ||
"tslib": "^2.0.0", | ||
"yargs": "15.3.1" | ||
@@ -16,0 +17,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
17073
197
+ Added@ardatan/aggregate-error@0.0.6(transitive)
+ Added@graphql-inspector/commands@0.0.0-canary.9cf9b2c(transitive)
+ Added@graphql-inspector/config@0.0.0-canary.9cf9b2c(transitive)
+ Added@graphql-inspector/loaders@0.0.0-canary.9cf9b2c(transitive)
+ Added@graphql-inspector/logger@0.0.0-canary.9cf9b2c(transitive)
+ Added@graphql-tools/load@6.2.8(transitive)
+ Added@graphql-tools/merge@6.2.178.3.1(transitive)
+ Added@graphql-tools/schema@8.5.1(transitive)
+ Added@graphql-tools/utils@6.2.47.10.08.0.28.9.0(transitive)
+ Addedcamel-case@4.1.2(transitive)
+ Addedglobby@11.0.3(transitive)
+ Addedp-limit@3.1.0(transitive)
+ Addedtslib@2.0.32.2.02.3.1(transitive)
+ Addedvalue-or-promise@1.0.11(transitive)
+ Addedyocto-queue@0.1.0(transitive)
- Removed@babel/runtime@7.26.0(transitive)
- Removed@graphql-inspector/commands@0.0.0-canary.57e2caa(transitive)
- Removed@graphql-inspector/config@0.0.0-canary.57e2caa(transitive)
- Removed@graphql-inspector/loaders@0.0.0-canary.57e2caa(transitive)
- Removed@graphql-inspector/logger@0.0.0-canary.57e2caa(transitive)
- Removed@graphql-toolkit/common@0.10.7(transitive)
- Removed@graphql-toolkit/core@0.10.7(transitive)
- Removed@graphql-toolkit/schema-merging@0.10.7(transitive)
- Removed@wry/equality@0.1.11(transitive)
- Removedaggregate-error@3.0.1(transitive)
- Removedapollo-link@1.2.14(transitive)
- Removedapollo-link-http-common@0.2.16(transitive)
- Removedapollo-upload-client@13.0.0(transitive)
- Removedapollo-utilities@1.3.4(transitive)
- Removedargparse@1.0.10(transitive)
- Removedasynckit@0.4.0(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedclean-stack@2.2.0(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removeddeepmerge@4.2.2(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removeddeprecated-decorator@0.1.6(transitive)
- Removedextract-files@8.1.0(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedform-data@3.0.2(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@7.2.3(transitive)
- Removedglobby@11.0.0(transitive)
- Removedgraphql-tools@5.0.0(transitive)
- Removedindent-string@4.0.0(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removediterall@1.3.0(transitive)
- Removedlodash@4.17.15(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removedminimatch@3.1.2(transitive)
- Removednode-fetch@2.7.0(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedregenerator-runtime@0.14.1(transitive)
- Removedsprintf-js@1.0.3(transitive)
- Removedtr46@0.0.3(transitive)
- Removedts-invariant@0.4.4(transitive)
- Removedtslib@1.11.2(transitive)
- Removeduuid@7.0.3(transitive)
- Removedwebidl-conversions@3.0.1(transitive)
- Removedwhatwg-url@5.0.0(transitive)
- Removedwrappy@1.0.2(transitive)
- Removedyamljs@0.3.0(transitive)
- Removedzen-observable@0.8.15(transitive)
- Removedzen-observable-ts@0.8.21(transitive)
Updatedtslib@^2.0.0