@graphql-mesh/config 1.0.1 → 2.0.0-alpha-aafc81442.0
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 +3 -1
- package/index.mjs +3 -1
- package/package.json +8 -8
package/index.js
CHANGED
|
@@ -212,7 +212,7 @@ async function processConfig(config, options) {
|
|
|
212
212
|
`export const rawServeConfig: YamlConfig.Config['serve'] = ${JSON.stringify(config.serve)} as any`,
|
|
213
213
|
`export async function getMeshOptions(): Promise<GetMeshOptions> {`,
|
|
214
214
|
];
|
|
215
|
-
const { dir, importFn = utils$1.defaultImportFn, store: providedStore, artifactsDir, additionalPackagePrefixes, } = options || {};
|
|
215
|
+
const { dir, importFn = utils$1.defaultImportFn, store: providedStore, artifactsDir, additionalPackagePrefixes = [], } = options || {};
|
|
216
216
|
if (config.require) {
|
|
217
217
|
await Promise.all(config.require.map(mod => importFn(mod)));
|
|
218
218
|
for (const mod of config.require) {
|
|
@@ -379,6 +379,7 @@ async function processConfig(config, options) {
|
|
|
379
379
|
codes.push(`additionalEnvelopPlugins[${pluginIndex}] = ${importName}({
|
|
380
380
|
...(${JSON.stringify(pluginConfig, null, 2)}),
|
|
381
381
|
logger: logger.child(${JSON.stringify(pluginName)}),
|
|
382
|
+
cache,
|
|
382
383
|
})`);
|
|
383
384
|
}
|
|
384
385
|
}
|
|
@@ -396,6 +397,7 @@ async function processConfig(config, options) {
|
|
|
396
397
|
return pluginFactory({
|
|
397
398
|
...pluginConfig,
|
|
398
399
|
logger: logger.child(pluginName),
|
|
400
|
+
cache,
|
|
399
401
|
});
|
|
400
402
|
})) || []),
|
|
401
403
|
resolveAdditionalTypeDefs(dir, config.additionalTypeDefs).then(additionalTypeDefs => {
|
package/index.mjs
CHANGED
|
@@ -208,7 +208,7 @@ async function processConfig(config, options) {
|
|
|
208
208
|
`export const rawServeConfig: YamlConfig.Config['serve'] = ${JSON.stringify(config.serve)} as any`,
|
|
209
209
|
`export async function getMeshOptions(): Promise<GetMeshOptions> {`,
|
|
210
210
|
];
|
|
211
|
-
const { dir, importFn = defaultImportFn, store: providedStore, artifactsDir, additionalPackagePrefixes, } = options || {};
|
|
211
|
+
const { dir, importFn = defaultImportFn, store: providedStore, artifactsDir, additionalPackagePrefixes = [], } = options || {};
|
|
212
212
|
if (config.require) {
|
|
213
213
|
await Promise.all(config.require.map(mod => importFn(mod)));
|
|
214
214
|
for (const mod of config.require) {
|
|
@@ -375,6 +375,7 @@ async function processConfig(config, options) {
|
|
|
375
375
|
codes.push(`additionalEnvelopPlugins[${pluginIndex}] = ${importName}({
|
|
376
376
|
...(${JSON.stringify(pluginConfig, null, 2)}),
|
|
377
377
|
logger: logger.child(${JSON.stringify(pluginName)}),
|
|
378
|
+
cache,
|
|
378
379
|
})`);
|
|
379
380
|
}
|
|
380
381
|
}
|
|
@@ -392,6 +393,7 @@ async function processConfig(config, options) {
|
|
|
392
393
|
return pluginFactory({
|
|
393
394
|
...pluginConfig,
|
|
394
395
|
logger: logger.child(pluginName),
|
|
396
|
+
cache,
|
|
395
397
|
});
|
|
396
398
|
})) || []),
|
|
397
399
|
resolveAdditionalTypeDefs(dir, config.additionalTypeDefs).then(additionalTypeDefs => {
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-mesh/config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-alpha-aafc81442.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@graphql-mesh/runtime": "
|
|
6
|
+
"@graphql-mesh/runtime": "0.38.0-alpha-aafc81442.0",
|
|
7
7
|
"graphql": "*"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@envelop/core": "2.3.3",
|
|
11
|
-
"@graphql-mesh/cache-localforage": "0.6.
|
|
11
|
+
"@graphql-mesh/cache-localforage": "0.6.13-alpha-aafc81442.0",
|
|
12
12
|
"@graphql-mesh/cross-helpers": "0.1.6",
|
|
13
|
-
"@graphql-mesh/merger-bare": "0.13.
|
|
14
|
-
"@graphql-mesh/merger-stitching": "0.15.
|
|
15
|
-
"@graphql-mesh/store": "0.8.
|
|
16
|
-
"@graphql-mesh/types": "0.
|
|
17
|
-
"@graphql-mesh/utils": "0.35.
|
|
13
|
+
"@graphql-mesh/merger-bare": "0.13.55-alpha-aafc81442.0",
|
|
14
|
+
"@graphql-mesh/merger-stitching": "0.15.57-alpha-aafc81442.0",
|
|
15
|
+
"@graphql-mesh/store": "0.8.16-alpha-aafc81442.0",
|
|
16
|
+
"@graphql-mesh/types": "0.75.0-alpha-aafc81442.0",
|
|
17
|
+
"@graphql-mesh/utils": "0.35.7-alpha-aafc81442.0",
|
|
18
18
|
"@graphql-tools/code-file-loader": "7.2.18",
|
|
19
19
|
"@graphql-tools/graphql-file-loader": "7.3.15",
|
|
20
20
|
"@graphql-tools/load": "7.5.14",
|