@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 CHANGED
@@ -1,4 +1,4 @@
1
- import { ApolloLink } from '@apollo/client/core';
1
+ import { ApolloLink } from '@apollo/client';
2
2
  import { ExecuteMeshFn, SubscribeMeshFn } from '@graphql-mesh/runtime';
3
3
  export interface MeshApolloRequestHandlerOptions {
4
4
  execute: ExecuteMeshFn;
package/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const core = require('@apollo/client/core');
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 core.Observable(observer => {
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 core.ApolloLink {
45
+ class MeshApolloLink extends client.ApolloLink {
46
46
  constructor(options) {
47
47
  super(createMeshApolloRequestHandler(options));
48
48
  }
package/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { ApolloLink, Observable } from '@apollo/client/core';
1
+ import { ApolloLink, Observable } from '@apollo/client';
2
2
  import { isAsyncIterable } from '@graphql-tools/utils';
3
3
  import { getOperationAST } from 'graphql';
4
4
 
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@graphql-mesh/apollo-link",
3
- "version": "8.0.2",
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": "^0.44.4",
7
+ "@graphql-mesh/runtime": "0.44.16-alpha-20220929214610-62bb92cf5",
8
8
  "graphql": "^15.2.0 || ^16.0.0"
9
9
  },
10
10
  "dependencies": {