fix(core_node): support agentkeepalive default export fallback and bump dependency to ^4.6.0
This commit is contained in:
@@ -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.'
|
||||
}
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user