@graphql-inspector/commands
Advanced tools
Comparing version 2.0.1 to 2.1.0
import { InspectorConfig } from '@graphql-inspector/config'; | ||
import { Loaders } from '@graphql-inspector/loaders'; | ||
import { CommandModule } from 'yargs'; | ||
export { CommandModule as Command }; | ||
import { CommandModule as Command } from 'yargs'; | ||
export { Command }; | ||
export interface UseCommandsAPI { | ||
@@ -9,4 +9,4 @@ config: InspectorConfig; | ||
} | ||
export declare type CommandFactory<T = {}, U = {}> = (api: UseCommandsAPI) => CommandModule<T, U>; | ||
export declare function useCommands(api: UseCommandsAPI): CommandModule[]; | ||
export declare type CommandFactory<T = {}, U = {}> = (api: Required<UseCommandsAPI>) => Command<T, U>; | ||
export declare function useCommands(api: UseCommandsAPI): Command[]; | ||
export declare function createCommand<T = {}, U = {}>(factory: CommandFactory<T, U>): CommandFactory<T, U>; | ||
@@ -23,2 +23,2 @@ export declare function ensureAbsolute(filepath: string, basepath?: string): string; | ||
}; | ||
export declare function mockCommand(mod: CommandModule, cmd: string): Promise<string>; | ||
export declare function mockCommand(mod: Command, cmd: string): Promise<string>; |
{ | ||
"name": "@graphql-inspector/commands", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"description": "Plugin system for commands in GraphQL Inspector", | ||
"sideEffects": false, | ||
"peerDependencies": { | ||
"@graphql-inspector/config": "2.0.1", | ||
"@graphql-inspector/loaders": "2.0.1", | ||
"@graphql-inspector/config": "2.1.0", | ||
"@graphql-inspector/loaders": "2.1.0", | ||
"graphql": "^0.13.0 || ^14.0.0 || ^15.0.0", | ||
@@ -9,0 +10,0 @@ "yargs": "15.3.1" |
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
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
11352
6
119