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
@@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@push.rocks/smartrequest',
version: '5.0.2',
version: '5.0.3',
description: 'A module for modern HTTP/HTTPS requests with support for form data, file uploads, JSON, binary data, streams, and more.'
}
+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';