@graphql-mesh/http 0.1.29-alpha-20221009104509-2196cb390 → 0.2.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 +2 -1
- package/index.mjs +2 -1
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -32,6 +32,7 @@ const graphqlHandler = (mesh$, playgroundTitle, playgroundEnabled, graphqlEndpoi
|
|
|
32
32
|
},
|
|
33
33
|
cors: corsConfig,
|
|
34
34
|
graphqlEndpoint,
|
|
35
|
+
landingPage: false,
|
|
35
36
|
}));
|
|
36
37
|
return async (request, ...args) => {
|
|
37
38
|
const yoga = await yoga$;
|
|
@@ -107,7 +108,7 @@ function createMeshHTTPHandler({ baseDir, getBuiltMesh, rawServeConfig = {}, pla
|
|
|
107
108
|
},
|
|
108
109
|
}));
|
|
109
110
|
}
|
|
110
|
-
serverAdapter.all(
|
|
111
|
+
serverAdapter.all('*', ittyRouterExtras.withCookies, graphqlHandler(mesh$, playgroundTitle, playgroundEnabled, graphqlPath, corsConfig));
|
|
111
112
|
return serverAdapter;
|
|
112
113
|
}
|
|
113
114
|
|
package/index.mjs
CHANGED
|
@@ -28,6 +28,7 @@ const graphqlHandler = (mesh$, playgroundTitle, playgroundEnabled, graphqlEndpoi
|
|
|
28
28
|
},
|
|
29
29
|
cors: corsConfig,
|
|
30
30
|
graphqlEndpoint,
|
|
31
|
+
landingPage: false,
|
|
31
32
|
}));
|
|
32
33
|
return async (request, ...args) => {
|
|
33
34
|
const yoga = await yoga$;
|
|
@@ -103,7 +104,7 @@ function createMeshHTTPHandler({ baseDir, getBuiltMesh, rawServeConfig = {}, pla
|
|
|
103
104
|
},
|
|
104
105
|
}));
|
|
105
106
|
}
|
|
106
|
-
serverAdapter.all(
|
|
107
|
+
serverAdapter.all('*', withCookies, graphqlHandler(mesh$, playgroundTitle, playgroundEnabled, graphqlPath, corsConfig));
|
|
107
108
|
return serverAdapter;
|
|
108
109
|
}
|
|
109
110
|
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-mesh/http",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"graphql": "*"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@graphql-mesh/cross-helpers": "0.2.6",
|
|
10
|
-
"@graphql-mesh/runtime": "0.44.21
|
|
11
|
-
"@graphql-mesh/types": "0.
|
|
12
|
-
"@graphql-mesh/utils": "0.41.22
|
|
10
|
+
"@graphql-mesh/runtime": "0.44.21",
|
|
11
|
+
"@graphql-mesh/types": "0.85.0",
|
|
12
|
+
"@graphql-mesh/utils": "0.41.22",
|
|
13
13
|
"@whatwg-node/fetch": "^0.4.6",
|
|
14
14
|
"@whatwg-node/server": "^0.4.10",
|
|
15
15
|
"graphql-yoga": "3.0.0-next.4",
|