@graphql-tools/links 8.3.1 → 8.3.2-alpha-fbf97581.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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GraphQLUpload = void 0;
4
- const graphql_1 = require("graphql");
4
+ const graphql_1 = require("@graphql-tools/graphql");
5
5
  const utils_1 = require("@graphql-tools/utils");
6
6
  const GraphQLUpload = new graphql_1.GraphQLScalarType({
7
7
  name: 'Upload',
@@ -9,6 +9,7 @@ const apollo = (_a = apolloImport === null || apolloImport === void 0 ? void 0 :
9
9
  function linkToExecutor(link) {
10
10
  return function executorFromLink(request) {
11
11
  const observable = apollo.execute(link, {
12
+ // @ts-expect-error Apollo uses graphql-js so it doesn't like us
12
13
  query: request.document,
13
14
  operationName: request.operationName,
14
15
  variables: request.variables,
@@ -1,4 +1,4 @@
1
- import { GraphQLScalarType } from 'graphql';
1
+ import { GraphQLScalarType } from '@graphql-tools/graphql';
2
2
  import { createGraphQLError } from '@graphql-tools/utils';
3
3
  const GraphQLUpload = new GraphQLScalarType({
4
4
  name: 'Upload',
@@ -5,6 +5,7 @@ const apollo = (_a = apolloImport === null || apolloImport === void 0 ? void 0 :
5
5
  export function linkToExecutor(link) {
6
6
  return function executorFromLink(request) {
7
7
  const observable = apollo.execute(link, {
8
+ // @ts-expect-error Apollo uses graphql-js so it doesn't like us
8
9
  query: request.document,
9
10
  operationName: request.operationName,
10
11
  variables: request.variables,
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@graphql-tools/links",
3
- "version": "8.3.1",
3
+ "version": "8.3.2-alpha-fbf97581.0",
4
4
  "description": "A set of utils for faster development of GraphQL tools",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
7
- "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0",
8
7
  "@apollo/client": "~3.2.5 || ~3.3.0 || ~3.4.0 || ~3.5.0 || ~3.6.0"
9
8
  },
10
9
  "dependencies": {
11
- "@graphql-tools/delegate": "8.8.1",
12
- "@graphql-tools/utils": "8.9.0",
10
+ "@graphql-tools/delegate": "8.8.2-alpha-fbf97581.0",
11
+ "@graphql-tools/utils": "8.9.1-alpha-fbf97581.0",
12
+ "@graphql-tools/graphql": "0.1.0-alpha-fbf97581.0",
13
13
  "apollo-upload-client": "17.0.0",
14
14
  "node-fetch": "^2.6.5",
15
15
  "form-data": "^4.0.0",
@@ -1,3 +1,3 @@
1
- import { GraphQLScalarType } from 'graphql';
1
+ import { GraphQLScalarType } from '@graphql-tools/graphql';
2
2
  declare const GraphQLUpload: GraphQLScalarType<any, unknown>;
3
3
  export { GraphQLUpload };