jscrambler 8.1.0 → 8.1.1
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.
- package/CHANGELOG.md +6 -0
- package/README.md +1 -0
- package/dist/client.js +2 -12
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
package/dist/client.js
CHANGED
|
@@ -194,22 +194,12 @@ JScramblerClient.prototype.request = function (method, path) {
|
|
|
194
194
|
}
|
|
195
195
|
formattedAuth = "".concat(username, ":").concat(password);
|
|
196
196
|
}
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* Monkey-patch to inject a custom Cert CA into TLS.connect
|
|
200
|
-
* options.
|
|
201
|
-
*/
|
|
202
|
-
if (agentOptions.ca) {
|
|
203
|
-
const oriCallback = _httpsProxyAgent.default.prototype.callback;
|
|
204
|
-
_httpsProxyAgent.default.prototype.callback = function (req, opts) {
|
|
205
|
-
return oriCallback.call(this, req, _objectSpread(_objectSpread({}, opts), agentOptions));
|
|
206
|
-
};
|
|
207
|
-
}
|
|
208
197
|
settings.proxy = false;
|
|
209
198
|
const proxyConfig = _objectSpread({
|
|
210
199
|
host,
|
|
211
200
|
port,
|
|
212
|
-
auth: formattedAuth
|
|
201
|
+
auth: formattedAuth,
|
|
202
|
+
protocol: proxy.protocol || "http"
|
|
213
203
|
}, agentOptions);
|
|
214
204
|
settings.httpsAgent = new _httpsProxyAgent.default(proxyConfig);
|
|
215
205
|
settings.httpAgent = new _httpProxyAgent.default(proxyConfig);
|
package/package.json
CHANGED