bdy 1.22.9-dev → 1.22.10-dev
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/distTs/package.json
CHANGED
|
@@ -20,7 +20,7 @@ const openSocket = (port, path) => {
|
|
|
20
20
|
};
|
|
21
21
|
const makeRequest = async (port, path, body) => {
|
|
22
22
|
const c = new AbortController();
|
|
23
|
-
setTimeout(() => {
|
|
23
|
+
const timer = setTimeout(() => {
|
|
24
24
|
c.abort();
|
|
25
25
|
}, TIMEOUT);
|
|
26
26
|
logger_1.default.debug(`TUNNEL API AGENT REQUEST: :${port}${path}`);
|
|
@@ -31,6 +31,7 @@ const makeRequest = async (port, path, body) => {
|
|
|
31
31
|
method: 'POST',
|
|
32
32
|
signal: c.signal,
|
|
33
33
|
});
|
|
34
|
+
clearTimeout(timer);
|
|
34
35
|
logger_1.default.debug(`TUNNEL API AGENT RESPONSE: ${response.status}`);
|
|
35
36
|
if (response.status === 404) {
|
|
36
37
|
throw new Error(texts_1.ERR_NOT_FOUND);
|