jscrambler 8.0.0 → 8.1.0

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # jscrambler
2
2
 
3
+ ## 8.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [4752980]: Add the ability to instrument the app from the config file - instrument: true
8
+
9
+ ## 8.0.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [56e65d9]: Added async behaviour to delete protection on success.
14
+
3
15
  ## 8.0.0
4
16
 
5
17
  ### Major Changes
@@ -139,6 +139,7 @@ config.inputSymbolTable = _commander.default.inputSymbolTable || config.inputSym
139
139
  config.removeProfilingData = _commander.default.removeProfilingData;
140
140
  config.skipSources = _commander.default.skipSources;
141
141
  config.debugMode = _commander.default.debugMode || config.debugMode;
142
+ config.instrument = _commander.default.instrument || config.instrument;
142
143
 
143
144
  // handle codeHardening = 0
144
145
  if (typeof _commander.default.codeHardeningThreshold === 'undefined') {
@@ -322,7 +323,7 @@ if (_commander.default.sourceMaps) {
322
323
  process.exit(1);
323
324
  }
324
325
  })();
325
- } else if (_commander.default.instrument) {
326
+ } else if (config.instrument) {
326
327
  _.default.instrumentAndDownload(_objectSpread(_objectSpread({}, clientSettings), {}, {
327
328
  applicationId,
328
329
  filesSrc,
package/dist/index.js CHANGED
@@ -482,7 +482,7 @@ var _default = exports.default = {
482
482
 
483
483
  // change this to have the variable that checks if the protection is to be removed
484
484
  if (deleteProtectionOnSuccess) {
485
- _this.removeProtection(client, protection._id, applicationId).then(() => {
485
+ await _this.removeProtection(client, protection._id, applicationId).then(() => {
486
486
  if (debug) {
487
487
  console.log('Protection has been successful and will now be deleted');
488
488
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jscrambler",
3
3
  "description": "Jscrambler API client.",
4
- "version": "8.0.0",
4
+ "version": "8.1.0",
5
5
  "homepage": "https://github.com/jscrambler/jscrambler",
6
6
  "author": "Jscrambler <support@jscrambler.com>",
7
7
  "repository": {