@applitools/req
Advanced tools
Comparing version 1.7.3 to 1.7.4
# Changelog | ||
## [1.7.4](https://github.com/Applitools-Dev/sdk/compare/js/req@1.7.3...js/req@1.7.4) (2024-11-27) | ||
### Bug Fixes | ||
* set heartbeat request timeout as the request interval ([#2587](https://github.com/Applitools-Dev/sdk/issues/2587)) ([0251d27](https://github.com/Applitools-Dev/sdk/commit/0251d27d9ed44ec247732f66904ae3d4fa4123f1)) | ||
## [1.7.3](https://github.com/Applitools-Dev/sdk/compare/js/req@1.7.2...js/req@1.7.3) (2024-11-07) | ||
@@ -4,0 +11,0 @@ |
@@ -34,3 +34,3 @@ import { AbortController } from 'abort-controller'; | ||
try { | ||
return await req(input, options); | ||
return await singleReq(input, options); | ||
} | ||
@@ -41,3 +41,3 @@ finally { | ||
} | ||
async function req(input, options) { | ||
async function singleReq(input, options) { | ||
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p; | ||
@@ -107,3 +107,3 @@ const url = new URL(String((_a = input.url) !== null && _a !== void 0 ? _a : input), options.baseUrl); | ||
if (fallbackOptions) { | ||
const fallbackStrategyResponse = await req(request, fallbackOptions); | ||
const fallbackStrategyResponse = await singleReq(request, fallbackOptions); | ||
(_h = fallbackStrategy.cache) !== null && _h !== void 0 ? _h : (fallbackStrategy.cache = new Map()); | ||
@@ -134,3 +134,3 @@ fallbackStrategy.cache.set(new URL(request.url).origin, fallbackStrategyResponse.ok); | ||
if (retryRequest !== stop) { | ||
return req(retryRequest, options); | ||
return singleReq(retryRequest, options); | ||
} | ||
@@ -165,3 +165,3 @@ } | ||
if (retryRequest !== stop) { | ||
return req(retryRequest, options); | ||
return singleReq(retryRequest, options); | ||
} | ||
@@ -168,0 +168,0 @@ } |
{ | ||
"name": "@applitools/req", | ||
"version": "1.7.3", | ||
"version": "1.7.4", | ||
"description": "Applitools fetch-based request library", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
441676