@graphql-mesh/config 7.0.0 → 7.1.0-alpha-20220901112937-5ee4d7347

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 +3 -3
  2. package/index.mjs +3 -3
  3. package/package.json +8 -8
package/index.js CHANGED
@@ -460,7 +460,7 @@ async function processConfig(config, options) {
460
460
  const { importName, moduleName, pluginFactory } = ENVELOP_CORE_PLUGINS_MAP[pluginName];
461
461
  if (options.generateCode) {
462
462
  importCodes.push(`import { ${importName} } from ${JSON.stringify(moduleName)};`);
463
- codes.push(`additionalEnvelopPlugins[${pluginIndex}] = ${importName}(${JSON.stringify(pluginConfig, null, 2)}))`);
463
+ codes.push(`additionalEnvelopPlugins[${pluginIndex}] = await ${importName}(${JSON.stringify(pluginConfig, null, 2)}))`);
464
464
  }
465
465
  return pluginFactory(pluginConfig);
466
466
  }
@@ -478,7 +478,7 @@ async function processConfig(config, options) {
478
478
  if (options.generateCode) {
479
479
  importName = pascalCase.pascalCase('use_' + pluginName);
480
480
  importCodes.push(`import ${importName} from ${JSON.stringify(moduleName)};`);
481
- codes.push(`additionalEnvelopPlugins[${pluginIndex}] = ${importName}({
481
+ codes.push(`additionalEnvelopPlugins[${pluginIndex}] = await ${importName}({
482
482
  ...(${JSON.stringify(pluginConfig, null, 2)}),
483
483
  logger: logger.child(${JSON.stringify(pluginName)}),
484
484
  cache,
@@ -494,7 +494,7 @@ async function processConfig(config, options) {
494
494
  pluginFactory = possiblePluginFactory[key];
495
495
  if (options.generateCode) {
496
496
  importCodes.push(`import { ${importName} } from ${JSON.stringify(moduleName)};`);
497
- codes.push(`additionalEnvelopPlugins[${pluginIndex}] = ${importName}(${JSON.stringify(pluginConfig, null, 2)}]`);
497
+ codes.push(`additionalEnvelopPlugins[${pluginIndex}] = await ${importName}(${JSON.stringify(pluginConfig, null, 2)}]`);
498
498
  }
499
499
  }
500
500
  });
package/index.mjs CHANGED
@@ -456,7 +456,7 @@ async function processConfig(config, options) {
456
456
  const { importName, moduleName, pluginFactory } = ENVELOP_CORE_PLUGINS_MAP[pluginName];
457
457
  if (options.generateCode) {
458
458
  importCodes.push(`import { ${importName} } from ${JSON.stringify(moduleName)};`);
459
- codes.push(`additionalEnvelopPlugins[${pluginIndex}] = ${importName}(${JSON.stringify(pluginConfig, null, 2)}))`);
459
+ codes.push(`additionalEnvelopPlugins[${pluginIndex}] = await ${importName}(${JSON.stringify(pluginConfig, null, 2)}))`);
460
460
  }
461
461
  return pluginFactory(pluginConfig);
462
462
  }
@@ -474,7 +474,7 @@ async function processConfig(config, options) {
474
474
  if (options.generateCode) {
475
475
  importName = pascalCase('use_' + pluginName);
476
476
  importCodes.push(`import ${importName} from ${JSON.stringify(moduleName)};`);
477
- codes.push(`additionalEnvelopPlugins[${pluginIndex}] = ${importName}({
477
+ codes.push(`additionalEnvelopPlugins[${pluginIndex}] = await ${importName}({
478
478
  ...(${JSON.stringify(pluginConfig, null, 2)}),
479
479
  logger: logger.child(${JSON.stringify(pluginName)}),
480
480
  cache,
@@ -490,7 +490,7 @@ async function processConfig(config, options) {
490
490
  pluginFactory = possiblePluginFactory[key];
491
491
  if (options.generateCode) {
492
492
  importCodes.push(`import { ${importName} } from ${JSON.stringify(moduleName)};`);
493
- codes.push(`additionalEnvelopPlugins[${pluginIndex}] = ${importName}(${JSON.stringify(pluginConfig, null, 2)}]`);
493
+ codes.push(`additionalEnvelopPlugins[${pluginIndex}] = await ${importName}(${JSON.stringify(pluginConfig, null, 2)}]`);
494
494
  }
495
495
  }
496
496
  });
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@graphql-mesh/config",
3
- "version": "7.0.0",
3
+ "version": "7.1.0-alpha-20220901112937-5ee4d7347",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
- "@graphql-mesh/runtime": "^0.43.0",
6
+ "@graphql-mesh/runtime": "0.43.1-alpha-20220901112937-5ee4d7347",
7
7
  "graphql": "*"
8
8
  },
9
9
  "dependencies": {
10
10
  "@envelop/core": "2.5.0",
11
- "@graphql-mesh/cache-localforage": "0.6.30",
11
+ "@graphql-mesh/cache-localforage": "0.6.31-alpha-20220901112937-5ee4d7347",
12
12
  "@graphql-mesh/cross-helpers": "0.2.3",
13
- "@graphql-mesh/merger-bare": "0.15.14",
14
- "@graphql-mesh/merger-stitching": "0.16.13",
15
- "@graphql-mesh/store": "0.8.33",
16
- "@graphql-mesh/types": "0.81.0",
17
- "@graphql-mesh/utils": "0.41.0",
13
+ "@graphql-mesh/merger-bare": "0.15.15-alpha-20220901112937-5ee4d7347",
14
+ "@graphql-mesh/merger-stitching": "0.16.14-alpha-20220901112937-5ee4d7347",
15
+ "@graphql-mesh/store": "0.8.34-alpha-20220901112937-5ee4d7347",
16
+ "@graphql-mesh/types": "0.82.0-alpha-20220901112937-5ee4d7347",
17
+ "@graphql-mesh/utils": "0.41.1-alpha-20220901112937-5ee4d7347",
18
18
  "@graphql-tools/code-file-loader": "7.3.4",
19
19
  "@graphql-tools/graphql-file-loader": "7.5.3",
20
20
  "@graphql-tools/load": "7.7.5",