Quellcode durchsuchen

added debug protection

sanex3339 vor 9 Jahren
Ursprung
Commit
c9fb628314
4 geänderte Dateien mit 4 neuen und 6 gelöschten Zeilen
  1. 2 2
      index.js
  2. 2 2
      index.ts
  3. 0 1
      tests/dev-test.js
  4. 0 1
      tests/dev-test.ts

+ 2 - 2
index.js

@@ -19,8 +19,8 @@ class JavaScriptObfuscator {
 }
 JavaScriptObfuscator.defaultOptions = {
     compact: true,
-    debugProtection: true,
-    debugProtectionInterval: true,
+    debugProtection: false,
+    debugProtectionInterval: false,
     rotateUnicodeArray: true
 };
 JavaScriptObfuscator.escodegenParams = {

+ 2 - 2
index.ts

@@ -13,8 +13,8 @@ export class JavaScriptObfuscator {
      */
     private static defaultOptions: any = {
         compact: true,
-        debugProtection: true,
-        debugProtectionInterval: true,
+        debugProtection: false,
+        debugProtectionInterval: false,
         rotateUnicodeArray: true
     };
 

+ 0 - 1
tests/dev-test.js

@@ -47,7 +47,6 @@ let obfuscatedCode = index_1.JavaScriptObfuscator.obfuscate(`
         console.log(true, false);
     })();
     `, {
-    debugProtectionInterval: false,
     rotateUnicodeArray: false
 });
 console.log(obfuscatedCode);

+ 0 - 1
tests/dev-test.ts

@@ -49,7 +49,6 @@ let obfuscatedCode: string = JavaScriptObfuscator.obfuscate(
     })();
     `,
     {
-        debugProtectionInterval: false,
         rotateUnicodeArray: false
     }
 );