@graphql-mesh/config 9.0.0 → 9.0.1-alpha-20221207154300-4e93bfafd
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/process.js +3 -2
- package/esm/process.js +3 -2
- package/package.json +8 -8
package/cjs/process.js
CHANGED
|
@@ -85,7 +85,7 @@ async function processConfig(config, options) {
|
|
|
85
85
|
importCodes.add(`import { MeshTransform, MeshPlugin } from '@graphql-mesh/types';`);
|
|
86
86
|
codes.add(`const transforms: MeshTransform[] = [];`);
|
|
87
87
|
codes.add(`const additionalEnvelopPlugins: MeshPlugin<any>[] = [];`);
|
|
88
|
-
const [sources, transforms, additionalEnvelopPlugins, additionalTypeDefs, additionalResolvers, documents] = await Promise.all([
|
|
88
|
+
const [sources, transforms, additionalEnvelopPlugins, additionalTypeDefs, additionalResolvers, documents,] = await Promise.all([
|
|
89
89
|
Promise.all(config.sources.map(async (source, sourceIndex) => {
|
|
90
90
|
const handlerName = Object.keys(source.handler)[0].toString();
|
|
91
91
|
const handlerConfig = source.handler[handlerName];
|
|
@@ -241,7 +241,8 @@ async function processConfig(config, options) {
|
|
|
241
241
|
}
|
|
242
242
|
else {
|
|
243
243
|
Object.keys(possiblePluginFactory).forEach(importName => {
|
|
244
|
-
if (importName.toString().startsWith('use') &&
|
|
244
|
+
if (importName.toString().startsWith('use') &&
|
|
245
|
+
typeof possiblePluginFactory[importName] === 'function') {
|
|
245
246
|
pluginFactory = possiblePluginFactory[importName];
|
|
246
247
|
importName = importName.toString();
|
|
247
248
|
if (options.generateCode) {
|
package/esm/process.js
CHANGED
|
@@ -82,7 +82,7 @@ export async function processConfig(config, options) {
|
|
|
82
82
|
importCodes.add(`import { MeshTransform, MeshPlugin } from '@graphql-mesh/types';`);
|
|
83
83
|
codes.add(`const transforms: MeshTransform[] = [];`);
|
|
84
84
|
codes.add(`const additionalEnvelopPlugins: MeshPlugin<any>[] = [];`);
|
|
85
|
-
const [sources, transforms, additionalEnvelopPlugins, additionalTypeDefs, additionalResolvers, documents] = await Promise.all([
|
|
85
|
+
const [sources, transforms, additionalEnvelopPlugins, additionalTypeDefs, additionalResolvers, documents,] = await Promise.all([
|
|
86
86
|
Promise.all(config.sources.map(async (source, sourceIndex) => {
|
|
87
87
|
const handlerName = Object.keys(source.handler)[0].toString();
|
|
88
88
|
const handlerConfig = source.handler[handlerName];
|
|
@@ -238,7 +238,8 @@ export async function processConfig(config, options) {
|
|
|
238
238
|
}
|
|
239
239
|
else {
|
|
240
240
|
Object.keys(possiblePluginFactory).forEach(importName => {
|
|
241
|
-
if (importName.toString().startsWith('use') &&
|
|
241
|
+
if (importName.toString().startsWith('use') &&
|
|
242
|
+
typeof possiblePluginFactory[importName] === 'function') {
|
|
242
243
|
pluginFactory = possiblePluginFactory[importName];
|
|
243
244
|
importName = importName.toString();
|
|
244
245
|
if (options.generateCode) {
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-mesh/config",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.1-alpha-20221207154300-4e93bfafd",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@graphql-mesh/runtime": "
|
|
6
|
+
"@graphql-mesh/runtime": "0.45.1-alpha-20221207154300-4e93bfafd",
|
|
7
7
|
"graphql": "*"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@envelop/core": "3.0.4",
|
|
11
|
-
"@graphql-mesh/cache-localforage": "0.7.
|
|
11
|
+
"@graphql-mesh/cache-localforage": "0.7.1-alpha-20221207154300-4e93bfafd",
|
|
12
12
|
"@graphql-mesh/cross-helpers": "0.3.0",
|
|
13
|
-
"@graphql-mesh/merger-bare": "0.16.
|
|
14
|
-
"@graphql-mesh/merger-stitching": "0.18.
|
|
15
|
-
"@graphql-mesh/store": "0.9.
|
|
16
|
-
"@graphql-mesh/types": "0.88.
|
|
17
|
-
"@graphql-mesh/utils": "0.43.
|
|
13
|
+
"@graphql-mesh/merger-bare": "0.16.1-alpha-20221207154300-4e93bfafd",
|
|
14
|
+
"@graphql-mesh/merger-stitching": "0.18.1-alpha-20221207154300-4e93bfafd",
|
|
15
|
+
"@graphql-mesh/store": "0.9.1-alpha-20221207154300-4e93bfafd",
|
|
16
|
+
"@graphql-mesh/types": "0.88.1-alpha-20221207154300-4e93bfafd",
|
|
17
|
+
"@graphql-mesh/utils": "0.43.1-alpha-20221207154300-4e93bfafd",
|
|
18
18
|
"@graphql-tools/code-file-loader": "7.3.15",
|
|
19
19
|
"@graphql-tools/graphql-file-loader": "7.5.13",
|
|
20
20
|
"@graphql-tools/load": "7.8.8",
|