@graphql-inspector/commands
Advanced tools
Comparing version 0.0.0-canary.9cf9b2c to 0.0.0-canary.9daef8b
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>; | ||
@@ -18,7 +18,18 @@ export declare function ensureAbsolute(filepath: string, basepath?: string): string; | ||
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: CommandModule, 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.9cf9b2c", | ||
"version": "0.0.0-canary.9daef8b", | ||
"description": "Plugin system for commands in GraphQL Inspector", | ||
"sideEffects": false, | ||
"peerDependencies": { | ||
"@graphql-inspector/config": "0.0.0-canary.9cf9b2c", | ||
"@graphql-inspector/loaders": "0.0.0-canary.9cf9b2c", | ||
"graphql": "^0.13.0 || ^14.0.0 || ^15.0.0", | ||
"yargs": "15.3.1" | ||
"@graphql-inspector/config": "0.0.0-canary.9daef8b", | ||
"@graphql-inspector/loaders": "0.0.0-canary.9daef8b", | ||
"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
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
138
5942
4