@podium/client
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -1,2 +0,2 @@ | ||
/* eslint-disable import/order no-underscore-dangle */ | ||
/* eslint-disable import/order */ | ||
/* eslint-disable no-underscore-dangle */ | ||
@@ -13,2 +13,3 @@ /* eslint-disable prefer-spread */ | ||
const http = require('http'); | ||
const https = require('https'); | ||
const util = require('util'); | ||
@@ -26,3 +27,3 @@ | ||
const HTTP_AGENT = new http.Agent({ | ||
const HTTP_AGENT_OPTIONS = { | ||
keepAlive: true, | ||
@@ -33,4 +34,16 @@ maxSockets: 10, | ||
keepAliveMsecs: 30000, | ||
}); | ||
}; | ||
const HTTPS_AGENT_OPTIONS = Object.assign( | ||
{}, | ||
HTTP_AGENT_OPTIONS, | ||
{ | ||
maxCachedSessions: 10, | ||
}, | ||
); | ||
const HTTP_AGENT = new http.Agent(HTTP_AGENT_OPTIONS); | ||
const HTTPS_AGENT = new https.Agent(HTTPS_AGENT_OPTIONS); | ||
const RETRIES = 4; | ||
@@ -62,3 +75,4 @@ | ||
maxAge: MAX_AGE, | ||
agent: HTTP_AGENT, | ||
httpAgent: HTTP_AGENT, | ||
httpsAgent: HTTPS_AGENT, | ||
}, | ||
@@ -165,3 +179,5 @@ options, | ||
maxAge: this[_options].maxAge, | ||
agent: this[_options].agent, | ||
agent: options.uri.startsWith('https://') | ||
? this[_options].httpsAgent | ||
: this[_options].httpAgent, | ||
}, | ||
@@ -168,0 +184,0 @@ options, |
{ | ||
"name": "@podium/client", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"main": "lib/client.js", | ||
@@ -38,3 +38,3 @@ "license": "MIT", | ||
"@podium/schemas": "4.0.0", | ||
"@podium/utils": "4.0.0", | ||
"@podium/utils": "4.0.1", | ||
"abslog": "2.4.0", | ||
@@ -49,7 +49,7 @@ "@hapi/boom": "^7.3.0", | ||
"devDependencies": { | ||
"@podium/test-utils": "1.4.0", | ||
"@podium/test-utils": "1.6.3", | ||
"benchmark": "^2.1.4", | ||
"eslint": "^5.13.0", | ||
"eslint": "^6.0.0", | ||
"eslint-config-airbnb-base": "^13.1.0", | ||
"eslint-config-prettier": "^4.0.0", | ||
"eslint-config-prettier": "^6.0.0", | ||
"eslint-plugin-import": "^2.16.0", | ||
@@ -59,6 +59,6 @@ "eslint-plugin-prettier": "^3.0.1", | ||
"http-proxy": "^1.16.2", | ||
"husky": "^2.1.0", | ||
"husky": "^3.0.0", | ||
"is-stream": "^2.0.0", | ||
"jest": "^24.1.0", | ||
"lint-staged": "^8.1.3", | ||
"lint-staged": "^9.0.0", | ||
"lolex": "^4.0.1", | ||
@@ -65,0 +65,0 @@ "prettier": "^1.16.4" |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
82295
1500
3
+ Added@podium/utils@4.0.1(transitive)
- Removed@podium/utils@4.0.0(transitive)
Updated@podium/utils@4.0.1