fix(core-node): update agentkeepalive import usage and align package metadata with smartconfig
This commit is contained in:
@@ -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.'
|
||||
}
|
||||
|
||||
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user