@graphql-mesh/apollo-link 8.0.2 → 8.0.3-alpha-20220929214610-62bb92cf5
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.d.ts +1 -1
- package/index.js +3 -3
- package/index.mjs +1 -1
- package/package.json +2 -2
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const client = require('@apollo/client');
|
|
6
6
|
const utils = require('@graphql-tools/utils');
|
|
7
7
|
const graphql = require('graphql');
|
|
8
8
|
|
|
@@ -14,7 +14,7 @@ function createMeshApolloRequestHandler(options) {
|
|
|
14
14
|
throw new Error('GraphQL operation not found');
|
|
15
15
|
}
|
|
16
16
|
const operationFn = operationAst.operation === 'subscription' ? options.subscribe : options.execute;
|
|
17
|
-
return new
|
|
17
|
+
return new client.Observable(observer => {
|
|
18
18
|
Promise.resolve()
|
|
19
19
|
.then(async () => {
|
|
20
20
|
const results = await operationFn(operation.query, operation.variables, operation.getContext(), ROOT_VALUE, operation.operationName);
|
|
@@ -42,7 +42,7 @@ function createMeshApolloRequestHandler(options) {
|
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
-
class MeshApolloLink extends
|
|
45
|
+
class MeshApolloLink extends client.ApolloLink {
|
|
46
46
|
constructor(options) {
|
|
47
47
|
super(createMeshApolloRequestHandler(options));
|
|
48
48
|
}
|
package/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-mesh/apollo-link",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.3-alpha-20220929214610-62bb92cf5",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@apollo/client": "^3.5.9",
|
|
7
|
-
"@graphql-mesh/runtime": "
|
|
7
|
+
"@graphql-mesh/runtime": "0.44.16-alpha-20220929214610-62bb92cf5",
|
|
8
8
|
"graphql": "^15.2.0 || ^16.0.0"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|