@graphql-mesh/compose-cli 1.5.27 → 1.5.28

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/cjs/validate.js CHANGED
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FatalCompositionError = void 0;
4
4
  exports.validateSupergraphSdl = validateSupergraphSdl;
5
5
  const graphql_1 = require("graphql");
6
- const suggestionList_js_1 = require("graphql/jsutils/suggestionList.js");
6
+ const fusion_composition_1 = require("@graphql-mesh/fusion-composition");
7
7
  const utils_1 = require("@graphql-tools/utils");
8
8
  class FatalCompositionError extends Error {
9
9
  constructor(message) {
@@ -71,7 +71,7 @@ function validateSupergraphSdl(supergraphSdl, subgraphs) {
71
71
  const fieldName = resolveToDirective.sourceFieldName;
72
72
  const fieldDef = fields.find(f => f.name.value === fieldName);
73
73
  if (!fieldDef) {
74
- const suggestions = (0, suggestionList_js_1.suggestionList)(fieldName, fields.map(f => f.name.value));
74
+ const suggestions = (0, fusion_composition_1.suggestionList)(fieldName, fields.map(f => f.name.value));
75
75
  const suggestionStr = suggestions.length
76
76
  ? ` Did you mean "${suggestions.join(' or ')}"?`
77
77
  : '';
@@ -88,7 +88,7 @@ function validateSupergraphSdl(supergraphSdl, subgraphs) {
88
88
  for (const argName in resolveToDirective.sourceArgs) {
89
89
  const argNameInField = argOfFields.find(arg => arg === argName);
90
90
  if (!argNameInField) {
91
- const suggestions = (0, suggestionList_js_1.suggestionList)(argName, argOfFields);
91
+ const suggestions = (0, fusion_composition_1.suggestionList)(argName, argOfFields);
92
92
  const suggestionStr = suggestions.length
93
93
  ? ` Did you mean "${suggestions.join(' or ')}"?`
94
94
  : '';
package/esm/validate.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { buildSchema } from 'graphql';
2
- import { suggestionList } from 'graphql/jsutils/suggestionList.js';
2
+ import { suggestionList } from '@graphql-mesh/fusion-composition';
3
3
  import { createGraphQLError, getDirectiveExtensions } from '@graphql-tools/utils';
4
4
  export class FatalCompositionError extends Error {
5
5
  constructor(message) {
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@graphql-mesh/compose-cli",
3
- "version": "1.5.27",
3
+ "version": "1.5.28",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "graphql": "*"
7
7
  },
8
8
  "dependencies": {
9
9
  "@commander-js/extra-typings": "^14.0.0",
10
- "@graphql-mesh/fusion-composition": "^0.8.43",
10
+ "@graphql-mesh/fusion-composition": "^0.8.44",
11
11
  "@graphql-mesh/include": "^0.3.36",
12
12
  "@graphql-mesh/string-interpolation": "^0.5.16",
13
13
  "@graphql-mesh/types": "^0.104.26",