jscrambler
Advanced tools
Comparing version 8.1.0 to 8.1.1
# jscrambler | ||
## 8.1.1 | ||
### Patch Changes | ||
- [5bb3289]: Added proxy protocol option | ||
## 8.1.0 | ||
@@ -4,0 +10,0 @@ |
@@ -197,13 +197,2 @@ "use strict"; | ||
} | ||
/** | ||
* Monkey-patch to inject a custom Cert CA into TLS.connect | ||
* options. | ||
*/ | ||
if (agentOptions.ca) { | ||
const oriCallback = _httpsProxyAgent.default.prototype.callback; | ||
_httpsProxyAgent.default.prototype.callback = function (req, opts) { | ||
return oriCallback.call(this, req, _objectSpread(_objectSpread({}, opts), agentOptions)); | ||
}; | ||
} | ||
settings.proxy = false; | ||
@@ -213,3 +202,4 @@ const proxyConfig = _objectSpread({ | ||
port, | ||
auth: formattedAuth | ||
auth: formattedAuth, | ||
protocol: proxy.protocol || "http" | ||
}, agentOptions); | ||
@@ -216,0 +206,0 @@ settings.httpsAgent = new _httpsProxyAgent.default(proxyConfig); |
{ | ||
"name": "jscrambler", | ||
"description": "Jscrambler API client.", | ||
"version": "8.1.0", | ||
"version": "8.1.1", | ||
"homepage": "https://github.com/jscrambler/jscrambler", | ||
@@ -6,0 +6,0 @@ "author": "Jscrambler <support@jscrambler.com>", |
@@ -287,2 +287,3 @@ # [![Jscrambler](https://media.jscrambler.com/images/logo_500px.png)](https://jscrambler.com/?utm_source=github.com&utm_medium=referral) | ||
proxy: { | ||
protocol: '', // 'http' by default | ||
host: '', | ||
@@ -289,0 +290,0 @@ port: 1234, |
430
130708
2650