@graphql-inspector/diff-command 3.4.0 → 3.4.1-alpha-20230111100013-a6d87d52

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.
Files changed (3) hide show
  1. package/index.js +5 -3
  2. package/index.mjs +5 -3
  3. package/package.json +4 -4
package/index.js CHANGED
@@ -3,21 +3,23 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const tslib = require('tslib');
6
+ const fs = require('fs');
6
7
  const commands = require('@graphql-inspector/commands');
7
8
  const core = require('@graphql-inspector/core');
8
9
  const logger = require('@graphql-inspector/logger');
9
- const fs = require('fs');
10
10
 
11
11
  function handler(input) {
12
12
  return tslib.__awaiter(this, void 0, void 0, function* () {
13
- const onComplete = input.onComplete ? resolveCompletionHandler(input.onComplete) : failOnBreakingChanges;
13
+ const onComplete = input.onComplete
14
+ ? resolveCompletionHandler(input.onComplete)
15
+ : failOnBreakingChanges;
14
16
  const rules = input.rules
15
17
  ? input.rules
16
18
  .filter(isString)
17
19
  .map((name) => {
18
20
  const rule = resolveRule(name);
19
21
  if (!rule) {
20
- throw new Error(`\Rule '${name}' does not exist!\n`);
22
+ throw new Error(`Rule '${name}' does not exist!\n`);
21
23
  }
22
24
  return rule;
23
25
  })
package/index.mjs CHANGED
@@ -1,19 +1,21 @@
1
1
  import { __awaiter } from 'tslib';
2
+ import { existsSync } from 'fs';
2
3
  import { createCommand, parseGlobalArgs, ensureAbsolute } from '@graphql-inspector/commands';
3
4
  import { diff, CriticalityLevel, DiffRule } from '@graphql-inspector/core';
4
5
  import { Logger, symbols, bolderize } from '@graphql-inspector/logger';
5
- import { existsSync } from 'fs';
6
6
 
7
7
  function handler(input) {
8
8
  return __awaiter(this, void 0, void 0, function* () {
9
- const onComplete = input.onComplete ? resolveCompletionHandler(input.onComplete) : failOnBreakingChanges;
9
+ const onComplete = input.onComplete
10
+ ? resolveCompletionHandler(input.onComplete)
11
+ : failOnBreakingChanges;
10
12
  const rules = input.rules
11
13
  ? input.rules
12
14
  .filter(isString)
13
15
  .map((name) => {
14
16
  const rule = resolveRule(name);
15
17
  if (!rule) {
16
- throw new Error(`\Rule '${name}' does not exist!\n`);
18
+ throw new Error(`Rule '${name}' does not exist!\n`);
17
19
  }
18
20
  return rule;
19
21
  })
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@graphql-inspector/diff-command",
3
- "version": "3.4.0",
3
+ "version": "3.4.1-alpha-20230111100013-a6d87d52",
4
4
  "description": "Compare GraphQL Schemas",
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-20230111100013-a6d87d52",
11
+ "@graphql-inspector/core": "3.4.1-alpha-20230111100013-a6d87d52",
12
+ "@graphql-inspector/logger": "3.4.1-alpha-20230111100013-a6d87d52",
13
13
  "tslib": "^2.0.0"
14
14
  },
15
15
  "repository": {