@graphql-inspector/introspect-command 3.3.0 → 3.4.1-alpha-20230111095532-bd016dc8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { GlobalArgs, CommandFactory } from '@graphql-inspector/commands';
1
+ import { CommandFactory, GlobalArgs } from '@graphql-inspector/commands';
2
2
  import { GraphQLSchema } from 'graphql';
3
3
  export { CommandFactory };
4
4
  export declare function handler({ schema: unsortedSchema, output, comments, }: {
package/index.js CHANGED
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const tslib = require('tslib');
6
- const commands = require('@graphql-inspector/commands');
7
- const logger = require('@graphql-inspector/logger');
8
6
  const fs = require('fs');
9
7
  const path = require('path');
8
+ const commands = require('@graphql-inspector/commands');
9
+ const logger = require('@graphql-inspector/logger');
10
10
  const graphql = require('graphql');
11
11
 
12
12
  function handler({ schema: unsortedSchema, output, comments, }) {
@@ -34,7 +34,7 @@ function handler({ schema: unsortedSchema, output, comments, }) {
34
34
  });
35
35
  logger.Logger.success(`Saved to ${filepath}`);
36
36
  }
37
- const index = commands.createCommand((api) => {
37
+ const index = commands.createCommand(api => {
38
38
  const { loaders } = api;
39
39
  return {
40
40
  command: 'introspect <schema>',
package/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import { __awaiter } from 'tslib';
2
- import { createCommand, parseGlobalArgs } from '@graphql-inspector/commands';
3
- import { Logger } from '@graphql-inspector/logger';
4
2
  import { writeFileSync } from 'fs';
5
3
  import { resolve, extname } from 'path';
4
+ import { createCommand, parseGlobalArgs } from '@graphql-inspector/commands';
5
+ import { Logger } from '@graphql-inspector/logger';
6
6
  import { lexicographicSortSchema, introspectionFromSchema, printSchema } from 'graphql';
7
7
 
8
8
  function handler({ schema: unsortedSchema, output, comments, }) {
@@ -30,7 +30,7 @@ function handler({ schema: unsortedSchema, output, comments, }) {
30
30
  });
31
31
  Logger.success(`Saved to ${filepath}`);
32
32
  }
33
- const index = createCommand((api) => {
33
+ const index = createCommand(api => {
34
34
  const { loaders } = api;
35
35
  return {
36
36
  command: 'introspect <schema>',
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@graphql-inspector/introspect-command",
3
- "version": "3.3.0",
3
+ "version": "3.4.1-alpha-20230111095532-bd016dc8",
4
4
  "description": "Introspects GraphQL Schema",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
7
7
  "graphql": "^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"
8
8
  },
9
9
  "dependencies": {
10
- "@graphql-inspector/commands": "3.3.0",
11
- "@graphql-inspector/core": "3.3.0",
12
- "@graphql-inspector/logger": "3.3.0",
10
+ "@graphql-inspector/commands": "3.4.1-alpha-20230111095532-bd016dc8",
11
+ "@graphql-inspector/core": "3.4.1-alpha-20230111095532-bd016dc8",
12
+ "@graphql-inspector/logger": "3.4.1-alpha-20230111095532-bd016dc8",
13
13
  "tslib": "^2.0.0"
14
14
  },
15
15
  "repository": {