jscrambler
Advanced tools
Comparing version 1.1.12 to 1.2.0
@@ -15,2 +15,6 @@ 'use strict'; | ||
var _fs = require('fs'); | ||
var _fs2 = _interopRequireDefault(_fs); | ||
var _lodash5 = require('lodash.keys'); | ||
@@ -28,2 +32,6 @@ | ||
var _https = require('https'); | ||
var _https2 = _interopRequireDefault(_https); | ||
var _config = require('./config'); | ||
@@ -142,2 +150,10 @@ | ||
// Internal CA | ||
if (this.options.cafile) { | ||
var agent = new _https2.default.Agent({ | ||
ca: _fs2.default.readFileSync(this.options.cafile) | ||
}); | ||
settings.agent = agent; | ||
} | ||
var promise; | ||
@@ -170,2 +186,2 @@ | ||
exports = module.exports = JScramblerClient; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9saWIvY2xpZW50LmpzIl0sIm5hbWVzIjpbImRlYnVnIiwicHJvY2VzcyIsImVudiIsIkRFQlVHIiwiSlNjcmFtYmxlckNsaWVudCIsIm9wdGlvbnMiLCJrZXlzIiwiYWNjZXNzS2V5Iiwic2VjcmV0S2V5IiwicHJvdG90eXBlIiwiZGVsZXRlIiwicGF0aCIsInBhcmFtcyIsImNhbGxiYWNrIiwicmVxdWVzdCIsImdldCIsImlzSlNPTiIsIm1ldGhvZCIsInNpZ25lZERhdGEiLCJ0b2tlbiIsIkVycm9yIiwiX2tleXMiLCJpIiwibCIsImxlbmd0aCIsIkFycmF5Iiwiam9pbiIsImhvc3QiLCJwcm90b2NvbCIsInBvcnQiLCJmb3JtYXRlZFVybCIsImZvcm1hdCIsImhvc3RuYW1lIiwiZGF0YSIsInNldHRpbmdzIiwicmVzcG9uc2VUeXBlIiwicHJvbWlzZSIsInRvTG93ZXJDYXNlIiwidGhlbiIsInJlcyIsImNhdGNoIiwiZXJyb3IiLCJwb3N0IiwiZXhwb3J0cyIsIm1vZHVsZSJdLCJtYXBwaW5ncyI6Ijs7QUFBQTs7OztBQUNBOzs7O0F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wdGlvbnMuY2FmaWxlKVxuICAgIH0pO1xuICAgIHNldHRpbmdzLmFnZW50ID0gYWdlbnQ7XG4gIH1cblxuICB2YXIgcHJvbWlzZTtcblxuICBpZiAobWV0aG9kID09PSAnR0VUJyB8fCBtZXRob2QgPT09ICdERUxFVEUnKSB7XG4gICAgc2V0dGluZ3MucGFyYW1zID0gc2lnbmVkRGF0YTtcbiAgICBwcm9taXNlID0gcmVxdWVzdFttZXRob2QudG9Mb3dlckNhc2UoKV0oZm9ybWF0ZWRVcmwsIHNldHRpbmdzKTtcbiAgfSBlbHNlIHtcbiAgICBkYXRhID0gc2lnbmVkRGF0YTtcbiAgICBwcm9taXNlID0gcmVxdWVzdFttZXRob2QudG9Mb3dlckNhc2UoKV0oZm9ybWF0ZWRVcmwsIGRhdGEsIHNldHRpbmdzKTtcbiAgfVxuXG4gIHJldHVybiBwcm9taXNlXG4gICAgLnRoZW4oKHJlcykgPT4gY2FsbGJhY2sobnVsbCwgcmVzKSlcbiAgICAuY2F0Y2goKGVycm9yKSA9PiBjYWxsYmFjayhlcnJvcikpO1xufTtcbi8qKlxuICogUG9zdCByZXF1ZXN0LlxuICogQHBhcmFtIHtTdHJpbmd9IHBhdGhcbiAqIEBwYXJhbSB7T2JqZWN0fSBwYXJhbXNcbiAqIEBwYXJhbSB7Q2FsbGJhY2t9IGNhbGxiYWNrXG4gKi9cbkpTY3JhbWJsZXJDbGllbnQucHJvdG90eXBlLnBvc3QgPSBmdW5jdGlvbiAocGF0aCwgcGFyYW1zLCBjYWxsYmFjaykge1xuICByZXR1cm4gdGhpcy5yZXF1ZXN0KCdQT1NUJywgcGF0aCwgcGFyYW1zLCBjYWxsYmFjayk7XG59O1xuXG5leHBvcnRzID0gbW9kdWxlLmV4cG9ydHMgPSBKU2NyYW1ibGVyQ2xpZW50O1xuIl19 |
{ | ||
"name": "jscrambler", | ||
"description": "Jscrambler API client.", | ||
"version": "1.1.12", | ||
"version": "1.2.0", | ||
"homepage": "https://github.com/jscrambler/javascript-jscrambler", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -80,2 +80,3 @@ # ![jscrambler](https://rawgithub.com/jscrambler/javascript-jscrambler/master/media/jscrambler-logo.png) | ||
--protocol <protocol> Protocol (http or https) | ||
--cafile <path> Internal certificate authority | ||
-C, --cwd <dir> Current Working Directory | ||
@@ -82,0 +83,0 @@ -m, --source-maps <id> Download source maps |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
216707
2313
219
8
1