@hyper-fetch/core 7.0.0 → 7.0.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/browser/index.js +4 -1
- package/dist/browser/index.js.map +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +4 -1
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
- package/src/request/request.ts +7 -12
- package/src/request/request.types.ts +13 -8
- package/src/request/request.utils.ts +5 -3
package/dist/browser/index.js
CHANGED
|
@@ -1383,7 +1383,10 @@ var sendRequest = (request, options) => {
|
|
|
1383
1383
|
var _a2;
|
|
1384
1384
|
const { details, response } = values;
|
|
1385
1385
|
isResolved = true;
|
|
1386
|
-
const mapping = (_a2 = request.unstable_responseMapper) == null ? void 0 : _a2.call(
|
|
1386
|
+
const mapping = (_a2 = request.unstable_responseMapper) == null ? void 0 : _a2.call(
|
|
1387
|
+
request,
|
|
1388
|
+
response
|
|
1389
|
+
);
|
|
1387
1390
|
const isOfflineStatus = request.offline && details.isOffline;
|
|
1388
1391
|
const willRetry = canRetryRequest(details.retries, request.retry);
|
|
1389
1392
|
const handleResponse2 = (success, data) => {
|