@apollo/client 3.13.6 → 3.13.8

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,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var utilities = require('../..');
6
5
  var tslib = require('tslib');
6
+ var utilities = require('../..');
7
7
  var utils = require('../../../link/utils');
8
8
  var errors = require('../../../errors');
9
9
  var core = require('../../../core');
@@ -345,7 +345,8 @@ function createFetchMultipartSubscription(uri, _a) {
345
345
  }
346
346
  var currentFetch = preferredFetch || utilities.maybe(function () { return fetch; }) || backupFetch;
347
347
  var observerNext = observer.next.bind(observer);
348
- currentFetch(uri, options)
348
+ var abortController = new AbortController();
349
+ currentFetch(uri, tslib.__assign(tslib.__assign({}, options), { signal: abortController.signal }))
349
350
  .then(function (response) {
350
351
  var _a;
351
352
  var ctype = (_a = response.headers) === null || _a === void 0 ? void 0 : _a.get("content-type");
@@ -360,6 +361,9 @@ function createFetchMultipartSubscription(uri, _a) {
360
361
  .catch(function (err) {
361
362
  handleError(err, observer);
362
363
  });
364
+ return function () {
365
+ abortController.abort();
366
+ };
363
367
  });
364
368
  };
365
369
  }
package/version.js CHANGED
@@ -1,2 +1,2 @@
1
- export var version = "3.13.6";
1
+ export var version = "3.13.8";
2
2
  //# sourceMappingURL=version.js.map