fix(core_node): support agentkeepalive default export fallback and bump dependency to ^4.6.0

This commit is contained in:
2026-05-01 16:49:59 +00:00
parent 8622ee78d1
commit 47bd335f4f
6 changed files with 49 additions and 55 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ export { smartpromise, smarturl };
// third party scope
import AgentKeepAlive from 'agentkeepalive';
const agentkeepalive = {
HttpAgent: AgentKeepAlive.HttpAgent,
HttpAgent: AgentKeepAlive.HttpAgent ?? AgentKeepAlive,
HttpsAgent: AgentKeepAlive.HttpsAgent,
};
import formData from 'form-data';