@bigbinary/neeto-media-recorder 1.3.24 → 1.3.26

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/core.js CHANGED
@@ -949,33 +949,39 @@ var MultipartS3Uploader = /*#__PURE__*/function () {
949
949
  payload: {
950
950
  parts: parts,
951
951
  uploadId: _classPrivateFieldGet(_this, _uploadId)
952
+ },
953
+ config: {
954
+ signal: _classPrivateFieldGet(_this, _abortController).signal
952
955
  }
953
956
  }));
954
957
  _context.next = 17;
955
958
  return _classPrivateFieldGet(_this, _completeUploadPromise);
956
959
  case 17:
957
- _classPrivateFieldSet(_this, _completeUploadPromise, null);
958
960
  if (!(_classPrivateFieldGet(_this, _store$1).getState().status === UPLOAD_STATUS.aborting)) {
959
- _context.next = 20;
961
+ _context.next = 19;
960
962
  break;
961
963
  }
962
964
  return _context.abrupt("return");
963
- case 20:
965
+ case 19:
964
966
  _classPrivateFieldGet(_this, _store$1).setState({
965
967
  status: UPLOAD_STATUS.completed
966
968
  });
967
969
  _classPrivateFieldGet(_this, _fireCallbacks$1).call(_this, UPLOAD_EVENT.onComplete);
968
- _context.next = 27;
970
+ _context.next = 26;
969
971
  break;
970
- case 24:
971
- _context.prev = 24;
972
+ case 23:
973
+ _context.prev = 23;
972
974
  _context.t0 = _context["catch"](0);
973
975
  logger.error(_context.t0);
974
- case 27:
976
+ case 26:
977
+ _context.prev = 26;
978
+ _classPrivateFieldSet(_this, _completeUploadPromise, null);
979
+ return _context.finish(26);
980
+ case 29:
975
981
  case "end":
976
982
  return _context.stop();
977
983
  }
978
- }, _callee, null, [[0, 24]]);
984
+ }, _callee, null, [[0, 23, 26, 29]]);
979
985
  })));
980
986
  _defineProperty(this, "abortUpload", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
981
987
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {