Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@graphql-inspector/commands

Package Overview
Dependencies
Maintainers
3
Versions
420
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-inspector/commands - npm Package Compare versions

Comparing version 0.0.0-canary.9cf9b2c to 0.0.0-canary.9daef8b

index.js

21

index.d.ts
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"
}
}
}
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