@bigbinary/neeto-media-recorder 2.7.38 → 2.7.39

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.js CHANGED
@@ -937,12 +937,15 @@ var buildRetryableApi = function buildRetryableApi(apiConnector) {
937
937
  case 0:
938
938
  _apiConnectorArgs$con = apiConnectorArgs.config, config = _apiConnectorArgs$con === void 0 ? null : _apiConnectorArgs$con; // If the signal is already aborted before we start, addEventListener("abort")
939
939
  // will never fire — so we'd otherwise run the full retry/backoff schedule
940
- // against an aborted request.
940
+ // against an aborted request. Throw an axios CanceledError so callers'
941
+ // `axios.isCancel` checks treat this as cancellation instead of a real
942
+ // failure (e.g. completeUpload won't flip status to "error" while a
943
+ // parallel abortUpload is finishing).
941
944
  if (!(config !== null && config !== void 0 && (_config$signal = config.signal) !== null && _config$signal !== void 0 && _config$signal.aborted)) {
942
945
  _context.next = 3;
943
946
  break;
944
947
  }
945
- throw new RetryError("Request cancelled or request retries exhausted");
948
+ throw new axios.CanceledError("Request cancelled");
946
949
  case 3:
947
950
  remainingAttempts = retries + 1;
948
951
  shouldCancelRetries = false;