jscrambler
Advanced tools
Comparing version 5.5.13 to 5.5.14
@@ -73,3 +73,3 @@ #!/usr/bin/env node | ||
_commander2.default.version(require('../../package.json').version).usage('[options] <file ...>').option('-a, --access-key <accessKey>', 'Access key').option('-c, --config <config>', 'Jscrambler configuration options').option('-H, --host <host>', 'Hostname').option('-i, --application-id <id>', 'Application ID').option('-o, --output-dir <dir>', 'Output directory').option('-p, --port <port>', 'Port').option('--base-path <path>', 'Base Path').option('--protocol <protocol>', 'Protocol (http or https)').option('--cafile <path>', 'Internal certificate authority').option('-C, --cwd <dir>', 'Current Working Directory').option('-s, --secret-key <secretKey>', 'Secret key').option('-m, --source-maps <id>', 'Download source maps').option('-R, --randomization-seed <seed>', 'Set randomization seed').option('--instrument', 'Instrument file(s) before start profiling. ATTENTION: previous profiling information will be deleted').option('--start-profiling', 'Starts profiling (assumes an already instrumented application)').option('--stop-profiling', 'Stops profiling').option('--code-hardening-threshold <threshold>', 'Set code hardening file size threshold. Format: {value}{unit="b,kb,mb"}. Example: 200kb', validateCodeHardeningThreshold).option('--recommended-order <bool>', 'Use recommended order', validateBool('recommended-order')).option('-W, --werror <bool>', 'Set werror flag value (default: true)', validateBool('werror')).option('--tolerate-minification <bool>', 'Don\'t detect minification as malicious tampering (default: true)', validateBool('tolerate-minification')).option('--use-profiling-data <bool>', '(version 6.2 only) Protection should use the existing profiling data (default: true)', validateBool('use-profiling-data')).option('--profiling-data-mode <mode>', '(version 6.3 and above) Select profiling mode (default: automatic)', validateProfilingDataMode).option('--remove-profiling-data', 'Removes the current application profiling information').option('--use-app-classification <bool>', '(version 6.3 and above) Protection should use Application Classification metadata when protecting (default: true)', validateBool('--use-app-classification')).option('--input-symbol-table <file>', '(version 6.3 and above) Protection should use symbol table when protecting. (default: no file)').option('--output-symbol-table <id>', '(version 6.3 and above) Download output symbol table (json)').option('--jscramblerVersion <version>', 'Use a specific Jscrambler version').option('--debugMode', 'Protect in debug mode').option('--skip-sources', 'Prevent source files from being updated').parse(process.argv); | ||
_commander2.default.version(require('../../package.json').version).usage('[options] <file ...>').option('-a, --access-key <accessKey>', 'Access key').option('-c, --config <config>', 'Jscrambler configuration options').option('-H, --host <host>', 'Hostname').option('-i, --application-id <id>', 'Application ID').option('-o, --output-dir <dir>', 'Output directory').option('-p, --port <port>', 'Port').option('--base-path <path>', 'Base Path').option('--protocol <protocol>', 'Protocol (http or https)').option('--cafile <path>', 'Internal certificate authority').option('-C, --cwd <dir>', 'Current Working Directory').option('-s, --secret-key <secretKey>', 'Secret key').option('-m, --source-maps <id>', 'Download source maps').option('-R, --randomization-seed <seed>', 'Set randomization seed').option('--instrument', 'Instrument file(s) before start profiling. ATTENTION: previous profiling information will be deleted').option('--start-profiling', 'Starts profiling (assumes an already instrumented application)').option('--stop-profiling', 'Stops profiling').option('--code-hardening-threshold <threshold>', 'Set code hardening file size threshold. Format: {value}{unit="b,kb,mb"}. Example: 200kb', validateCodeHardeningThreshold).option('--recommended-order <bool>', 'Use recommended order', validateBool('recommended-order')).option('-W, --werror <bool>', 'Set werror flag value (default: true)', validateBool('werror')).option('--utc <bool>', 'Set UTC as the request time zone. Otherwise it uses the local time zone (default: true)', validateBool('utc')).option('--tolerate-minification <bool>', 'Don\'t detect minification as malicious tampering (default: true)', validateBool('tolerate-minification')).option('--use-profiling-data <bool>', '(version 6.2 only) Protection should use the existing profiling data (default: true)', validateBool('use-profiling-data')).option('--profiling-data-mode <mode>', '(version 6.3 and above) Select profiling mode (default: automatic)', validateProfilingDataMode).option('--remove-profiling-data', 'Removes the current application profiling information').option('--use-app-classification <bool>', '(version 6.3 and above) Protection should use Application Classification metadata when protecting (default: true)', validateBool('--use-app-classification')).option('--input-symbol-table <file>', '(version 6.3 and above) Protection should use symbol table when protecting. (default: no file)').option('--output-symbol-table <id>', '(version 6.3 and above) Download output symbol table (json)').option('--jscramblerVersion <version>', 'Use a specific Jscrambler version').option('--debugMode', 'Protect in debug mode').option('--skip-sources', 'Prevent source files from being updated').parse(process.argv); | ||
@@ -123,2 +123,6 @@ var globSrc = void 0, | ||
if (_commander2.default.utc) { | ||
config.utc = _commander2.default.utc !== 'false'; | ||
} | ||
if (_commander2.default.useProfilingData) { | ||
@@ -226,2 +230,3 @@ config.useProfilingData = _commander2.default.useProfilingData !== 'false'; | ||
inputSymbolTable = _config2.inputSymbolTable, | ||
utc = _config2.utc, | ||
entryPoint = _config2.entryPoint; | ||
@@ -277,2 +282,3 @@ | ||
proxy: proxy, | ||
utc: utc, | ||
jscramblerVersion: jscramblerVersion | ||
@@ -279,0 +285,0 @@ }; |
@@ -166,3 +166,3 @@ 'use strict'; | ||
if (this.options.keys.accessKey && this.options.keys.secretKey) { | ||
signedData = (0, _generateSignedParams2.default)(method, path, this.options.host, this.options.keys, params); | ||
signedData = (0, _generateSignedParams2.default)(method, path, this.options.host, this.options.keys, params, this.options.utc); | ||
} else { | ||
@@ -169,0 +169,0 @@ signedData = params; |
@@ -22,2 +22,3 @@ 'use strict'; | ||
clientId: 0, | ||
utc: true, | ||
maxRetries: 5 | ||
@@ -24,0 +25,0 @@ }, []); |
@@ -30,6 +30,7 @@ 'use strict'; | ||
var params = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {}; | ||
var utc = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : true; | ||
params = (0, _lodash4.default)((0, _lodash2.default)(params), { | ||
access_key: keys.accessKey, | ||
timestamp: new Date().toISOString() | ||
timestamp: utc.toString() !== 'false' ? new Date().toISOString() : new Date().toLocaleString() | ||
}); | ||
@@ -36,0 +37,0 @@ params.signature = generateHmacSignature(method, path, host, keys, params); |
{ | ||
"name": "jscrambler", | ||
"description": "Jscrambler API client.", | ||
"version": "5.5.13", | ||
"version": "5.5.14", | ||
"homepage": "https://github.com/jscrambler/jscrambler", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -103,2 +103,3 @@ # [![Jscrambler](https://media.jscrambler.com/images/logo_500px.png)](https://jscrambler.com/?utm_source=github.com&utm_medium=referral) | ||
-W, --werror <bool> Set werror flag value (default: true) | ||
--utc <bool> Set UTC as the request time zone. Otherwise it uses the local time zone (default: true) | ||
--tolerate-minification <bool> Don't detect minification as malicious tampering (default: true) | ||
@@ -105,0 +106,0 @@ --use-profiling-data <bool> (version 6.2 only) Protection should use the existing profiling data (default: true) |
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
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
160776
3373
383