mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
Javascript obfuscator update (#9694)
* JavaScriptObfuscator new options JavaScriptObfuscator new options * JavaScriptObfuscator new options JavaScriptObfuscator new options * JavaScriptObfuscator new options JavaScriptObfuscator new options
This commit is contained in:
committed by
Masahiro Wakame
parent
8ef38fbc56
commit
ed73479d5d
@@ -5,11 +5,14 @@ import { JavaScriptObfuscator } from 'javascript-obfuscator';
|
||||
let sourceCode1: string = JavaScriptObfuscator.obfuscate('var foo = 1;');
|
||||
let sourceCode2: string = JavaScriptObfuscator.obfuscate('var foo = 1;', {
|
||||
compact: true,
|
||||
debugProtection: false,
|
||||
debugProtectionInterval: false,
|
||||
disableConsoleOutput: true,
|
||||
encodeUnicodeLiterals: true,
|
||||
rotateUnicodeArray: true,
|
||||
unicodeArray: true,
|
||||
wrapUnicodeArrayCalls: true
|
||||
debugProtection: false,
|
||||
debugProtectionInterval: false,
|
||||
disableConsoleOutput: true,
|
||||
encodeUnicodeLiterals: false,
|
||||
reservedNames: ['^foo$'],
|
||||
rotateUnicodeArray: true,
|
||||
selfDefending: true,
|
||||
unicodeArray: true,
|
||||
unicodeArrayThreshold: 0.8,
|
||||
wrapUnicodeArrayCalls: true
|
||||
});
|
||||
|
||||
@@ -10,8 +10,11 @@ declare module 'javascript-obfuscator' {
|
||||
debugProtectionInterval?: boolean;
|
||||
disableConsoleOutput?: boolean;
|
||||
encodeUnicodeLiterals?: boolean;
|
||||
reservedNames?: string[];
|
||||
rotateUnicodeArray?: boolean;
|
||||
selfDefending?: boolean;
|
||||
unicodeArray?: boolean;
|
||||
unicodeArrayThreshold?: number;
|
||||
wrapUnicodeArrayCalls?: boolean;
|
||||
[id: string]: any;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user