@graphql-mesh/config 5.0.1 → 5.1.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 +5 -5
- package/index.mjs +2 -2
- package/package.json +9 -9
package/index.js
CHANGED
|
@@ -10,7 +10,7 @@ const load = require('@graphql-tools/load');
|
|
|
10
10
|
const graphqlFileLoader = require('@graphql-tools/graphql-file-loader');
|
|
11
11
|
const utils$1 = require('@graphql-mesh/utils');
|
|
12
12
|
const codeFileLoader = require('@graphql-tools/code-file-loader');
|
|
13
|
-
const
|
|
13
|
+
const fetch = require('@whatwg-node/fetch');
|
|
14
14
|
const fetchache = require('fetchache');
|
|
15
15
|
const store = require('@graphql-mesh/store');
|
|
16
16
|
const pascalCase = require('pascal-case');
|
|
@@ -69,13 +69,13 @@ async function resolveCustomFetch({ fetchConfig, importFn, cwd, cache, additiona
|
|
|
69
69
|
let importCode = '';
|
|
70
70
|
if (!fetchConfig) {
|
|
71
71
|
importCode += `import { fetchFactory } from 'fetchache';\n`;
|
|
72
|
-
importCode += `import { fetch, Request, Response } from '
|
|
72
|
+
importCode += `import { fetch, Request, Response } from '@whatwg-node/fetch';\n`;
|
|
73
73
|
return {
|
|
74
74
|
fetchFn: fetchache.fetchFactory({
|
|
75
75
|
cache,
|
|
76
|
-
fetch:
|
|
77
|
-
Request:
|
|
78
|
-
Response:
|
|
76
|
+
fetch: fetch.fetch,
|
|
77
|
+
Request: fetch.Request,
|
|
78
|
+
Response: fetch.Response,
|
|
79
79
|
}),
|
|
80
80
|
importCode,
|
|
81
81
|
code: `const fetchFn = fetchFactory({ cache, fetch, Request, Response });`,
|
package/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { loadTypedefs, loadDocuments } from '@graphql-tools/load';
|
|
|
6
6
|
import { GraphQLFileLoader } from '@graphql-tools/graphql-file-loader';
|
|
7
7
|
import { parseWithCache, PubSub, DefaultLogger, resolveAdditionalResolvers, defaultImportFn } from '@graphql-mesh/utils';
|
|
8
8
|
import { CodeFileLoader } from '@graphql-tools/code-file-loader';
|
|
9
|
-
import { fetch, Request, Response } from '
|
|
9
|
+
import { fetch, Request, Response } from '@whatwg-node/fetch';
|
|
10
10
|
import { fetchFactory } from 'fetchache';
|
|
11
11
|
import { MeshStore, FsStoreStorageAdapter, InMemoryStoreStorageAdapter } from '@graphql-mesh/store';
|
|
12
12
|
import { pascalCase } from 'pascal-case';
|
|
@@ -65,7 +65,7 @@ async function resolveCustomFetch({ fetchConfig, importFn, cwd, cache, additiona
|
|
|
65
65
|
let importCode = '';
|
|
66
66
|
if (!fetchConfig) {
|
|
67
67
|
importCode += `import { fetchFactory } from 'fetchache';\n`;
|
|
68
|
-
importCode += `import { fetch, Request, Response } from '
|
|
68
|
+
importCode += `import { fetch, Request, Response } from '@whatwg-node/fetch';\n`;
|
|
69
69
|
return {
|
|
70
70
|
fetchFn: fetchFactory({
|
|
71
71
|
cache,
|
package/package.json
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-mesh/config",
|
|
3
|
-
"version": "5.0
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@graphql-mesh/runtime": "^0.41.
|
|
6
|
+
"@graphql-mesh/runtime": "^0.41.2",
|
|
7
7
|
"graphql": "*"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@envelop/core": "2.4.0",
|
|
11
|
-
"@graphql-mesh/cache-localforage": "0.6.
|
|
11
|
+
"@graphql-mesh/cache-localforage": "0.6.19",
|
|
12
12
|
"@graphql-mesh/cross-helpers": "0.2.0",
|
|
13
|
-
"@graphql-mesh/merger-bare": "0.15.
|
|
14
|
-
"@graphql-mesh/merger-stitching": "0.16.
|
|
15
|
-
"@graphql-mesh/store": "0.8.
|
|
16
|
-
"@graphql-mesh/types": "0.78.
|
|
17
|
-
"@graphql-mesh/utils": "0.37.
|
|
13
|
+
"@graphql-mesh/merger-bare": "0.15.2",
|
|
14
|
+
"@graphql-mesh/merger-stitching": "0.16.2",
|
|
15
|
+
"@graphql-mesh/store": "0.8.22",
|
|
16
|
+
"@graphql-mesh/types": "0.78.2",
|
|
17
|
+
"@graphql-mesh/utils": "0.37.3",
|
|
18
18
|
"@graphql-tools/code-file-loader": "7.3.0",
|
|
19
19
|
"@graphql-tools/graphql-file-loader": "7.4.0",
|
|
20
20
|
"@graphql-tools/load": "7.7.0",
|
|
21
21
|
"@graphql-tools/utils": "8.8.0",
|
|
22
|
+
"@whatwg-node/fetch": "^0.0.2",
|
|
22
23
|
"camel-case": "4.1.2",
|
|
23
|
-
"cross-undici-fetch": "0.4.11",
|
|
24
24
|
"fetchache": "0.1.2",
|
|
25
25
|
"param-case": "3.0.4",
|
|
26
26
|
"pascal-case": "3.1.2",
|