@graphql-mesh/config 6.2.0 → 6.3.0-alpha-20220826134432-c8f482a34

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.js CHANGED
@@ -47,8 +47,7 @@ async function getPackage({ name, type, importFn, cwd, additionalPrefixes = [],
47
47
  if (!error.message.includes(`Cannot find module '${moduleName}'`) &&
48
48
  !error.message.includes(`Cannot find package '${moduleName}'`) &&
49
49
  !error.message.includes(`Could not locate module`)) {
50
- console.error(error.stack);
51
- throw new Error(`Unable to load ${type} matching ${name}: ${error.message}`);
50
+ throw new Error(`Unable to load ${type} matching ${name}: ${error.stack}`);
52
51
  }
53
52
  }
54
53
  }
@@ -725,7 +724,8 @@ async function processConfig(config, options) {
725
724
  store: rootStore,
726
725
  additionalEnvelopPlugins,
727
726
  includeHttpDetailsInExtensions: config.includeHttpDetailsInExtensions,
728
- code: [...new Set([...importCodes, ...codes])].join('\n'),
727
+ importCodes,
728
+ codes,
729
729
  };
730
730
  }
731
731
 
package/index.mjs CHANGED
@@ -43,8 +43,7 @@ async function getPackage({ name, type, importFn, cwd, additionalPrefixes = [],
43
43
  if (!error.message.includes(`Cannot find module '${moduleName}'`) &&
44
44
  !error.message.includes(`Cannot find package '${moduleName}'`) &&
45
45
  !error.message.includes(`Could not locate module`)) {
46
- console.error(error.stack);
47
- throw new Error(`Unable to load ${type} matching ${name}: ${error.message}`);
46
+ throw new Error(`Unable to load ${type} matching ${name}: ${error.stack}`);
48
47
  }
49
48
  }
50
49
  }
@@ -721,7 +720,8 @@ async function processConfig(config, options) {
721
720
  store: rootStore,
722
721
  additionalEnvelopPlugins,
723
722
  includeHttpDetailsInExtensions: config.includeHttpDetailsInExtensions,
724
- code: [...new Set([...importCodes, ...codes])].join('\n'),
723
+ importCodes,
724
+ codes,
725
725
  };
726
726
  }
727
727
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-mesh/config",
3
- "version": "6.2.0",
3
+ "version": "6.3.0-alpha-20220826134432-c8f482a34",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "@graphql-mesh/runtime": "^0.42.3",
package/process.d.ts CHANGED
@@ -29,7 +29,8 @@ export declare type ProcessedConfig = {
29
29
  documents: Source[];
30
30
  logger: Logger;
31
31
  store: MeshStore;
32
- code: string;
32
+ importCodes: string[];
33
+ codes: string[];
33
34
  additionalEnvelopPlugins: EnvelopPlugins;
34
35
  includeHttpDetailsInExtensions: boolean;
35
36
  };