Socket
Socket
Sign inDemoInstall

jscrambler

Package Overview
Dependencies
56
Maintainers
10
Versions
171
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 8.4.1 to 8.4.2

6

CHANGELOG.md
# jscrambler
## 8.4.2
### Patch Changes
- [8e2ec8d]: bump http&https-proxy-agent libs
## 8.4.1

@@ -4,0 +10,0 @@

31

dist/client.js
"use strict";
require("core-js/modules/es.symbol.description.js");
require("core-js/modules/web.dom-collections.iterator.js");

@@ -16,4 +15,4 @@ require("core-js/modules/es.regexp.exec.js");

var _http = _interopRequireDefault(require("http"));
var _httpsProxyAgent = _interopRequireDefault(require("@jscrambler/https-proxy-agent"));
var _httpProxyAgent = _interopRequireDefault(require("http-proxy-agent"));
var _httpsProxyAgent = require("https-proxy-agent");
var _httpProxyAgent = require("http-proxy-agent");
var _config = _interopRequireDefault(require("./config"));

@@ -24,7 +23,2 @@ var _generateSignedParams = _interopRequireDefault(require("./generate-signed-params"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
const debug = !!process.env.DEBUG;

@@ -188,22 +182,23 @@ const metrics = !!process.env.METRICS;

}
let formattedAuth = undefined;
let username;
let password;
if (auth) {
const {
({
username,
password
} = auth;
} = auth);
if (!username || !password) {
throw new Error('Required *proxy.auth* username or/and password not provided');
}
formattedAuth = "".concat(username, ":").concat(password);
}
settings.proxy = false;
const proxyConfig = _objectSpread({
const proxyConfig = {
host,
port,
auth: formattedAuth,
protocol: proxy.protocol || "http"
}, agentOptions);
settings.httpsAgent = new _httpsProxyAgent.default(proxyConfig);
settings.httpAgent = new _httpProxyAgent.default(proxyConfig);
username,
password,
protocol: "".concat(proxy.protocol || 'http', ":")
};
settings.httpsAgent = new _httpsProxyAgent.HttpsProxyAgent(proxyConfig, agentOptions);
settings.httpAgent = new _httpProxyAgent.HttpProxyAgent(proxyConfig, agentOptions);
} else if (agentOptions) {

@@ -210,0 +205,0 @@ settings.httpsAgent = new _https.default.Agent(agentOptions);

{
"name": "jscrambler",
"description": "Jscrambler API client.",
"version": "8.4.1",
"version": "8.4.2",
"homepage": "https://github.com/jscrambler/jscrambler",

@@ -24,3 +24,2 @@ "author": "Jscrambler <support@jscrambler.com>",

"dependencies": {
"@jscrambler/https-proxy-agent": "^5.0.1",
"axios": "^1.4.0",

@@ -31,3 +30,4 @@ "commander": "^2.8.1",

"glob": "^8.1.0",
"http-proxy-agent": "^4.0.1",
"http-proxy-agent": "7.0.2",
"https-proxy-agent": "7.0.4",
"jszip": "^3.7.1",

@@ -34,0 +34,0 @@ "lodash.clone": "^4.0.3",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc