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.da4bdcc to 0.0.0-canary.e5ed377

index.js

25

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