@graphql-tools/links 9.0.27 → 10.0.0-alpha-20250408153058-0c489913d7db593aaaa43e23d9e597fa30e92df9

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.
@@ -2,17 +2,19 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createServerHttpLink = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const apollo_upload_client_1 = require("apollo-upload-client");
5
+ const createUploadLink_mjs_1 = tslib_1.__importDefault(require("apollo-upload-client/createUploadLink.mjs"));
6
+ const formDataAppendFile_mjs_1 = tslib_1.__importDefault(require("apollo-upload-client/formDataAppendFile.mjs"));
7
+ const isExtractableFile_mjs_1 = tslib_1.__importDefault(require("apollo-upload-client/isExtractableFile.mjs"));
6
8
  const form_data_1 = tslib_1.__importDefault(require("form-data"));
7
9
  const node_fetch_1 = tslib_1.__importDefault(require("node-fetch"));
8
10
  const apolloImport = tslib_1.__importStar(require("@apollo/client"));
9
11
  const AwaitVariablesLink_js_1 = require("./AwaitVariablesLink.js");
10
12
  const apollo = apolloImport?.default ?? apolloImport;
11
- const createServerHttpLink = (options) => apollo.concat(new AwaitVariablesLink_js_1.AwaitVariablesLink(), (0, apollo_upload_client_1.createUploadLink)({
13
+ const createServerHttpLink = (options) => apollo.concat(new AwaitVariablesLink_js_1.AwaitVariablesLink(), (0, createUploadLink_mjs_1.default)({
12
14
  ...options,
13
15
  fetch: node_fetch_1.default,
14
16
  FormData: form_data_1.default,
15
- isExtractableFile: (value) => (0, apollo_upload_client_1.isExtractableFile)(value) || value?.createReadStream,
17
+ isExtractableFile: (value) => (0, isExtractableFile_mjs_1.default)(value) || value?.createReadStream,
16
18
  formDataAppendFile: (form, index, file) => {
17
19
  if (file.createReadStream != null) {
18
20
  form.append(index, file.createReadStream(), {
@@ -21,7 +23,7 @@ const createServerHttpLink = (options) => apollo.concat(new AwaitVariablesLink_j
21
23
  });
22
24
  }
23
25
  else {
24
- (0, apollo_upload_client_1.formDataAppendFile)(form, index, file);
26
+ (0, formDataAppendFile_mjs_1.default)(form, index, file);
25
27
  }
26
28
  },
27
29
  }));
@@ -1,4 +1,6 @@
1
- import { createUploadLink, formDataAppendFile, isExtractableFile } from 'apollo-upload-client';
1
+ import createUploadLink from 'apollo-upload-client/createUploadLink.mjs';
2
+ import formDataAppendFile from 'apollo-upload-client/formDataAppendFile.mjs';
3
+ import isExtractableFile from 'apollo-upload-client/isExtractableFile.mjs';
2
4
  import FormData from 'form-data';
3
5
  import fetch from 'node-fetch';
4
6
  import * as apolloImport from '@apollo/client';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-tools/links",
3
- "version": "9.0.27",
3
+ "version": "10.0.0-alpha-20250408153058-0c489913d7db593aaaa43e23d9e597fa30e92df9",
4
4
  "description": "A set of utils for faster development of GraphQL tools",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
@@ -10,7 +10,7 @@
10
10
  "dependencies": {
11
11
  "@graphql-tools/delegate": "^10.1.2",
12
12
  "@graphql-tools/utils": "^10.8.6",
13
- "apollo-upload-client": "17.0.0",
13
+ "apollo-upload-client": "18.0.1",
14
14
  "form-data": "^4.0.0",
15
15
  "node-fetch": "^2.6.5",
16
16
  "tslib": "^2.4.0"