|
|
@ -1141,7 +1141,6 @@ module.exports.axiosAbortSignal = (timeoutMs) => {
|
|
|
|
// v16-: AbortSignal.timeout is not supported
|
|
|
|
// v16-: AbortSignal.timeout is not supported
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
const abortController = new AbortController();
|
|
|
|
const abortController = new AbortController();
|
|
|
|
|
|
|
|
|
|
|
|
setTimeout(() => abortController.abort(), timeoutMs);
|
|
|
|
setTimeout(() => abortController.abort(), timeoutMs);
|
|
|
|
|
|
|
|
|
|
|
|
return abortController.signal;
|
|
|
|
return abortController.signal;
|
|
|
|