@graphql-inspector/commands
Advanced tools
Comparing version 0.0.0-canary.da4bdcc to 0.0.0-canary.e5ed377
import { InspectorConfig } from '@graphql-inspector/config'; | ||
import { Loaders } from '@graphql-inspector/loaders'; | ||
import { CommandModule as Command, PositionalOptions, Options } from 'yargs'; | ||
import { CommandModule as Command } from 'yargs'; | ||
export { Command }; | ||
@@ -8,12 +8,2 @@ export interface UseCommandsAPI { | ||
loaders: Loaders; | ||
/** @internal */ | ||
interceptPositional?<TKey extends string, TOptions extends PositionalOptions>(key: TKey, options: TOptions): TOptions; | ||
/** @internal */ | ||
interceptOptions?<T extends { | ||
[key: string]: Options; | ||
}>(options: T): T; | ||
/** @internal */ | ||
interceptArguments?<T extends { | ||
[key: string]: any; | ||
}>(args: T): T; | ||
} | ||
@@ -28,7 +18,18 @@ export declare type CommandFactory<T = {}, U = {}> = (api: Required<UseCommandsAPI>) => Command<T, U>; | ||
header?: string[]; | ||
leftHeader?: string[]; | ||
rightHeader?: string[]; | ||
federation?: boolean; | ||
aws?: boolean; | ||
method?: string; | ||
} | ||
export declare function parseGlobalArgs(args: GlobalArgs): { | ||
headers: Record<string, string>; | ||
leftHeaders: Record<string, string>; | ||
rightHeaders: Record<string, string>; | ||
token: string | undefined; | ||
}; | ||
export declare function mockCommand(mod: Command, cmd: string): Promise<string>; | ||
export declare function mockCommand(mod: Command, cmd: string): Promise<{ | ||
[x: string]: unknown; | ||
_: (string | number)[]; | ||
$0: string; | ||
}>; |
{ | ||
"name": "@graphql-inspector/commands", | ||
"version": "0.0.0-canary.da4bdcc", | ||
"version": "0.0.0-canary.e5ed377", | ||
"description": "Plugin system for commands in GraphQL Inspector", | ||
"sideEffects": false, | ||
"peerDependencies": { | ||
"@graphql-inspector/config": "0.0.0-canary.da4bdcc", | ||
"@graphql-inspector/loaders": "0.0.0-canary.da4bdcc", | ||
"graphql": "^0.13.0 || ^14.0.0 || ^15.0.0", | ||
"yargs": "15.3.1" | ||
"@graphql-inspector/config": "0.0.0-canary.e5ed377", | ||
"@graphql-inspector/loaders": "0.0.0-canary.e5ed377", | ||
"graphql": "^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0", | ||
"yargs": "17.2.1" | ||
}, | ||
@@ -32,8 +32,18 @@ "dependencies": { | ||
"license": "MIT", | ||
"main": "index.cjs.js", | ||
"module": "index.esm.js", | ||
"main": "index.js", | ||
"module": "index.mjs", | ||
"typings": "index.d.ts", | ||
"typescript": { | ||
"definition": "index.d.ts" | ||
}, | ||
"exports": { | ||
".": { | ||
"require": "./index.js", | ||
"import": "./index.mjs" | ||
}, | ||
"./*": { | ||
"require": "./*.js", | ||
"import": "./*.mjs" | ||
} | ||
} | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
5942
4
138
1