@hyper-fetch/core 5.7.4 → 5.7.6-beta.1

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.cjs.js CHANGED
@@ -985,6 +985,7 @@ var Dispatcher = class {
985
985
  retries: storageElement.retries,
986
986
  timestamp: +new Date()
987
987
  };
988
+ requestManager.events.emitResponse(cacheKey, requestId, response, requestDetails);
988
989
  requestManager.events.emitLoading(queueKey, requestId, {
989
990
  queueKey,
990
991
  requestId,
@@ -992,7 +993,6 @@ var Dispatcher = class {
992
993
  isRetry: !!storageElement.retries,
993
994
  isOffline
994
995
  });
995
- requestManager.events.emitResponse(cacheKey, requestId, response, requestDetails);
996
996
  cache.set(request, __spreadValues(__spreadValues({}, response), requestDetails));
997
997
  this.logger.info("Request finished", { requestId, request, response, requestDetails });
998
998
  if (isCanceled) {