@trayio/axios
Advanced tools
Comparing version 4.36.0 to 4.36.1-unstable
@@ -10,2 +10,3 @@ "use strict"; | ||
const axios_1 = __importDefault(require("axios")); | ||
const https_1 = require("https"); | ||
const FormData = require("form-data"); | ||
@@ -40,2 +41,8 @@ const NodeFsFileStorage_1 = require("@trayio/commons/file/NodeFsFileStorage"); | ||
let axiosConfig; | ||
// We need a keep-alive heartbeat shorter than 350 seconds to bypass the idle timeout in AWS NAT/LB servers: | ||
// https://repost.aws/knowledge-center/lambda-vpc-timeout | ||
const httpsAgent = new https_1.Agent({ | ||
keepAlive: true, | ||
keepAliveMsecs: 42000, | ||
}); | ||
if (headers['content-type'] && | ||
@@ -59,2 +66,3 @@ headers['content-type'].includes(Http_1.HttpContentType.MultipartRequestBody)) { | ||
headers, | ||
httpsAgent, | ||
params: request.queryString, | ||
@@ -72,2 +80,3 @@ }; | ||
headers, | ||
httpsAgent, | ||
params: request.queryString, | ||
@@ -74,0 +83,0 @@ }; |
{ | ||
"name": "@trayio/axios", | ||
"version": "4.36.0", | ||
"version": "4.36.1-unstable", | ||
"description": "Axios extensions and implementations", | ||
@@ -17,3 +17,3 @@ "exports": { | ||
"dependencies": { | ||
"@trayio/commons": "4.36.0", | ||
"@trayio/commons": "4.36.1-unstable", | ||
"axios": "1.7.4", | ||
@@ -20,0 +20,0 @@ "form-data": "4.0.0" |
Sorry, the diff of this file is not supported yet
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
8284
129
2
1
+ Added@trayio/commons@4.36.1-unstable(transitive)
- Removed@trayio/commons@4.36.0(transitive)