fix(core-node): update agentkeepalive import usage and align package metadata with smartconfig

This commit is contained in:
2026-05-01 16:46:03 +00:00
parent 980675ea05
commit c08e8b9132
7 changed files with 103 additions and 10 deletions
+1 -1
View File
@@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@push.rocks/smartrequest',
version: '5.0.1',
version: '5.0.2',
description: 'A module for modern HTTP/HTTPS requests with support for form data, file uploads, JSON, binary data, streams, and more.'
}
+5 -2
View File
@@ -14,8 +14,11 @@ import * as smarturl from '@push.rocks/smarturl';
export { smartpromise, smarturl };
// third party scope
import { HttpAgent, HttpsAgent } from 'agentkeepalive';
const agentkeepalive = { HttpAgent, HttpsAgent };
import AgentKeepAlive from 'agentkeepalive';
const agentkeepalive = {
HttpAgent: AgentKeepAlive.HttpAgent,
HttpsAgent: AgentKeepAlive.HttpsAgent,
};
import formData from 'form-data';
export { agentkeepalive, formData };