@graphql-mesh/config 8.0.8 → 8.0.9

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 +1 -1
package/index.js CHANGED
@@ -334,9 +334,11 @@ async function processConfig(config, options) {
334
334
  });
335
335
  importCodes.add(fetchFnImportCode);
336
336
  codes.add(fetchFnCode);
337
- codes.add(`const sources = [];`);
338
- codes.add(`const transforms = [];`);
339
- codes.add(`const additionalEnvelopPlugins = [];`);
337
+ importCodes.add(`import { MeshResolvedSource } from '@graphql-mesh/runtime';`);
338
+ codes.add(`const sources: MeshResolvedSource[] = [];`);
339
+ importCodes.add(`import { MeshTransform, MeshPlugin } from '@graphql-mesh/types';`);
340
+ codes.add(`const transforms: MeshTransform[] = [];`);
341
+ codes.add(`const additionalEnvelopPlugins: MeshPlugin<any>[] = [];`);
340
342
  const [sources, transforms, additionalEnvelopPlugins, additionalTypeDefs, additionalResolvers, documents] = await Promise.all([
341
343
  Promise.all(config.sources.map(async (source, sourceIndex) => {
342
344
  const handlerName = Object.keys(source.handler)[0].toString();
package/index.mjs CHANGED
@@ -330,9 +330,11 @@ async function processConfig(config, options) {
330
330
  });
331
331
  importCodes.add(fetchFnImportCode);
332
332
  codes.add(fetchFnCode);
333
- codes.add(`const sources = [];`);
334
- codes.add(`const transforms = [];`);
335
- codes.add(`const additionalEnvelopPlugins = [];`);
333
+ importCodes.add(`import { MeshResolvedSource } from '@graphql-mesh/runtime';`);
334
+ codes.add(`const sources: MeshResolvedSource[] = [];`);
335
+ importCodes.add(`import { MeshTransform, MeshPlugin } from '@graphql-mesh/types';`);
336
+ codes.add(`const transforms: MeshTransform[] = [];`);
337
+ codes.add(`const additionalEnvelopPlugins: MeshPlugin<any>[] = [];`);
336
338
  const [sources, transforms, additionalEnvelopPlugins, additionalTypeDefs, additionalResolvers, documents] = await Promise.all([
337
339
  Promise.all(config.sources.map(async (source, sourceIndex) => {
338
340
  const handlerName = Object.keys(source.handler)[0].toString();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-mesh/config",
3
- "version": "8.0.8",
3
+ "version": "8.0.9",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "@graphql-mesh/runtime": "^0.44.9",