@e-mc/request 0.7.12 → 0.7.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +2 -0
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -1519,6 +1519,8 @@ class Request extends module_1.default {
1519
1519
  if (proxy) {
1520
1520
  const pkg = secure ? 'https-proxy-agent' : 'http-proxy-agent';
1521
1521
  try {
1522
+ keepAlive !== null && keepAlive !== void 0 ? keepAlive : (keepAlive = proxy.keepAlive);
1523
+ agentTimeout !== null && agentTimeout !== void 0 ? agentTimeout : (agentTimeout = proxy.agentTimeout);
1522
1524
  const proxyHeaders = this[kHeaders] && getBaseHeaders(proxy.host.href, this[kHeaders]) || getBaseHeaders(proxy.host.href, HTTP.HEADERS);
1523
1525
  agent = require(pkg)(proxy.host, typeof keepAlive === 'boolean' || agentTimeout > 0 || proxyHeaders ? { keepAlive: keepAlive !== null && keepAlive !== void 0 ? keepAlive : true, timeout: agentTimeout, headers: proxyHeaders } : undefined);
1524
1526
  if (proxyHeaders) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/request",
3
- "version": "0.7.12",
3
+ "version": "0.7.13",
4
4
  "description": "Request constructor for E-mc.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -20,8 +20,8 @@
20
20
  "license": "MIT",
21
21
  "homepage": "https://github.com/anpham6/e-mc#readme",
22
22
  "dependencies": {
23
- "@e-mc/module": "0.7.12",
24
- "@e-mc/types": "0.7.12",
23
+ "@e-mc/module": "0.7.13",
24
+ "@e-mc/types": "0.7.13",
25
25
  "combined-stream": "^1.0.8",
26
26
  "js-yaml": "^4.1.0",
27
27
  "which": "^2.0.2"