javascript-obfuscator 5.6.0 → 5.7.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,9 @@
1
1
  Change Log
2
2
 
3
+ v5.7.0
4
+ ---
5
+ * **New option:** `advertisement` allows to control the display of the JavaScript Obfuscator Pro advertisement message in the console. Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/1448
6
+
3
7
  v5.6.0
4
8
  ---
5
9
  * Pro API: `obfuscatePro` now fall back to the basic local obfuscation API when no Pro feature (`vmObfuscation` or `parseHtml`) is enabled, instead of throwing an `ApiError`
package/README.md CHANGED
@@ -555,6 +555,7 @@ Following options are available for the JS Obfuscator:
555
555
 
556
556
  ```javascript
557
557
  {
558
+ advertisement: true,
558
559
  compact: true,
559
560
  controlFlowFlattening: false,
560
561
  controlFlowFlatteningThreshold: 0.75,
@@ -618,6 +619,7 @@ Following options are available for the JS Obfuscator:
618
619
 
619
620
  -o, --output
620
621
 
622
+ --advertisement <boolean>
621
623
  --compact <boolean>
622
624
  --config <string>
623
625
  --control-flow-flattening <boolean>
@@ -715,6 +717,13 @@ Following options are available for the JS Obfuscator:
715
717
 
716
718
  <!-- ##options-start## -->
717
719
 
720
+ ### `advertisement`
721
+ Type: `boolean` Default: `true`
722
+
723
+ Allows to control the display of the JavaScript Obfuscator Pro advertisement message in the console.
724
+
725
+ The message is only shown when using the Node.js CLI in an interactive (TTY) terminal, is never shown in CI environments or in the browser, and is limited to a few displays. Set this option to `false` to disable the advertisement message completely.
726
+
718
727
  ### `compact`
719
728
  Type: `boolean` Default: `true`
720
729