@graphql-inspector/similar-command 3.4.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, writePath, type, threshold, }: {
package/index.js CHANGED
@@ -3,11 +3,11 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const tslib = require('tslib');
6
+ const fs = require('fs');
7
+ const path = require('path');
6
8
  const commands = require('@graphql-inspector/commands');
7
- const logger = require('@graphql-inspector/logger');
8
9
  const core = require('@graphql-inspector/core');
9
- const path = require('path');
10
- const fs = require('fs');
10
+ const logger = require('@graphql-inspector/logger');
11
11
 
12
12
  function handler({ schema, writePath, type, threshold, }) {
13
13
  const shouldWrite = typeof writePath !== 'undefined';
package/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  import { __awaiter } from 'tslib';
2
+ import { writeFileSync } from 'fs';
3
+ import { extname } from 'path';
2
4
  import { createCommand, parseGlobalArgs, ensureAbsolute } from '@graphql-inspector/commands';
3
- import { Logger, chalk, figures } from '@graphql-inspector/logger';
4
5
  import { similar, getTypePrefix } from '@graphql-inspector/core';
5
- import { extname } from 'path';
6
- import { writeFileSync } from 'fs';
6
+ import { Logger, chalk, figures } from '@graphql-inspector/logger';
7
7
 
8
8
  function handler({ schema, writePath, type, threshold, }) {
9
9
  const shouldWrite = typeof writePath !== 'undefined';
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@graphql-inspector/similar-command",
3
- "version": "3.4.0",
3
+ "version": "3.4.1-alpha-20230111095532-bd016dc8",
4
4
  "description": "Find similar types in 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.4.0",
11
- "@graphql-inspector/core": "3.4.0",
12
- "@graphql-inspector/logger": "3.4.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": {