@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.
- package/index.js +5 -3
- package/index.mjs +5 -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
|
-
|
|
338
|
-
codes.add(`const
|
|
339
|
-
|
|
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
|
-
|
|
334
|
-
codes.add(`const
|
|
335
|
-
|
|
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();
|