@hyper-fetch/core 5.7.5 → 6.0.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.
package/dist/index.esm.js CHANGED
@@ -881,6 +881,7 @@ var Dispatcher = class {
881
881
  retries: storageElement.retries,
882
882
  timestamp: +new Date()
883
883
  };
884
+ requestManager.events.emitResponse(cacheKey, requestId, response, requestDetails);
884
885
  requestManager.events.emitLoading(queueKey, requestId, {
885
886
  queueKey,
886
887
  requestId,
@@ -888,7 +889,6 @@ var Dispatcher = class {
888
889
  isRetry: !!storageElement.retries,
889
890
  isOffline
890
891
  });
891
- requestManager.events.emitResponse(cacheKey, requestId, response, requestDetails);
892
892
  cache.set(request, __spreadValues(__spreadValues({}, response), requestDetails));
893
893
  this.logger.info("Request finished", { requestId, request, response, requestDetails });
894
894
  if (isCanceled) {