|
@@ -47,13 +47,13 @@ export class Options implements IOptions {
|
|
* @type {boolean}
|
|
* @type {boolean}
|
|
*/
|
|
*/
|
|
@IsBoolean()
|
|
@IsBoolean()
|
|
- public readonly compact: boolean;
|
|
|
|
|
|
+ public readonly compact!: boolean;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @type {boolean}
|
|
* @type {boolean}
|
|
*/
|
|
*/
|
|
@IsBoolean()
|
|
@IsBoolean()
|
|
- public readonly controlFlowFlattening: boolean;
|
|
|
|
|
|
+ public readonly controlFlowFlattening!: boolean;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @type {boolean}
|
|
* @type {boolean}
|
|
@@ -61,37 +61,37 @@ export class Options implements IOptions {
|
|
@IsNumber()
|
|
@IsNumber()
|
|
@Min(0)
|
|
@Min(0)
|
|
@Max(1)
|
|
@Max(1)
|
|
- public readonly controlFlowFlatteningThreshold: number;
|
|
|
|
|
|
+ public readonly controlFlowFlatteningThreshold!: number;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @type {boolean}
|
|
* @type {boolean}
|
|
*/
|
|
*/
|
|
@IsBoolean()
|
|
@IsBoolean()
|
|
- public readonly deadCodeInjection: boolean;
|
|
|
|
|
|
+ public readonly deadCodeInjection!: boolean;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @type {number}
|
|
* @type {number}
|
|
*/
|
|
*/
|
|
@IsNumber()
|
|
@IsNumber()
|
|
- public readonly deadCodeInjectionThreshold: number;
|
|
|
|
|
|
+ public readonly deadCodeInjectionThreshold!: number;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @type {boolean}
|
|
* @type {boolean}
|
|
*/
|
|
*/
|
|
@IsBoolean()
|
|
@IsBoolean()
|
|
- public readonly debugProtection: boolean;
|
|
|
|
|
|
+ public readonly debugProtection!: boolean;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @type {boolean}
|
|
* @type {boolean}
|
|
*/
|
|
*/
|
|
@IsBoolean()
|
|
@IsBoolean()
|
|
- public readonly debugProtectionInterval: boolean;
|
|
|
|
|
|
+ public readonly debugProtectionInterval!: boolean;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @type {boolean}
|
|
* @type {boolean}
|
|
*/
|
|
*/
|
|
@IsBoolean()
|
|
@IsBoolean()
|
|
- public readonly disableConsoleOutput: boolean;
|
|
|
|
|
|
+ public readonly disableConsoleOutput!: boolean;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @type {string[]}
|
|
* @type {string[]}
|
|
@@ -101,7 +101,7 @@ export class Options implements IOptions {
|
|
@IsString({
|
|
@IsString({
|
|
each: true
|
|
each: true
|
|
})
|
|
})
|
|
- public readonly domainLock: string[];
|
|
|
|
|
|
+ public readonly domainLock!: string[];
|
|
|
|
|
|
/**
|
|
/**
|
|
* @type {IdentifierNamesGenerator}
|
|
* @type {IdentifierNamesGenerator}
|
|
@@ -110,25 +110,25 @@ export class Options implements IOptions {
|
|
IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator,
|
|
IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator,
|
|
IdentifierNamesGenerator.MangledIdentifierNamesGenerator
|
|
IdentifierNamesGenerator.MangledIdentifierNamesGenerator
|
|
])
|
|
])
|
|
- public readonly identifierNamesGenerator: IdentifierNamesGenerator;
|
|
|
|
|
|
+ public readonly identifierNamesGenerator!: IdentifierNamesGenerator;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @type {string}
|
|
* @type {string}
|
|
*/
|
|
*/
|
|
@IsString()
|
|
@IsString()
|
|
- public readonly identifiersPrefix: string;
|
|
|
|
|
|
+ public readonly identifiersPrefix!: string;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @type {boolean}
|
|
* @type {boolean}
|
|
*/
|
|
*/
|
|
@IsBoolean()
|
|
@IsBoolean()
|
|
- public readonly log: boolean;
|
|
|
|
|
|
+ public readonly log!: boolean;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @type {boolean}
|
|
* @type {boolean}
|
|
*/
|
|
*/
|
|
@IsBoolean()
|
|
@IsBoolean()
|
|
- public readonly renameGlobals: boolean;
|
|
|
|
|
|
+ public readonly renameGlobals!: boolean;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @type {string[]}
|
|
* @type {string[]}
|
|
@@ -138,31 +138,31 @@ export class Options implements IOptions {
|
|
@IsString({
|
|
@IsString({
|
|
each: true
|
|
each: true
|
|
})
|
|
})
|
|
- public readonly reservedNames: string[];
|
|
|
|
|
|
+ public readonly reservedNames!: string[];
|
|
|
|
|
|
/**
|
|
/**
|
|
* @type {boolean}
|
|
* @type {boolean}
|
|
*/
|
|
*/
|
|
@IsBoolean()
|
|
@IsBoolean()
|
|
- public readonly rotateStringArray: boolean;
|
|
|
|
|
|
+ public readonly rotateStringArray!: boolean;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @type {number}
|
|
* @type {number}
|
|
*/
|
|
*/
|
|
@IsNumber()
|
|
@IsNumber()
|
|
- public readonly seed: number;
|
|
|
|
|
|
+ public readonly seed!: number;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @type {boolean}
|
|
* @type {boolean}
|
|
*/
|
|
*/
|
|
@IsBoolean()
|
|
@IsBoolean()
|
|
- public readonly selfDefending: boolean;
|
|
|
|
|
|
+ public readonly selfDefending!: boolean;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @type {boolean}
|
|
* @type {boolean}
|
|
*/
|
|
*/
|
|
@IsBoolean()
|
|
@IsBoolean()
|
|
- public readonly sourceMap: boolean;
|
|
|
|
|
|
+ public readonly sourceMap!: boolean;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @type {string}
|
|
* @type {string}
|
|
@@ -174,31 +174,31 @@ export class Options implements IOptions {
|
|
require_tld: false,
|
|
require_tld: false,
|
|
require_valid_protocol: true
|
|
require_valid_protocol: true
|
|
})
|
|
})
|
|
- public readonly sourceMapBaseUrl: string;
|
|
|
|
|
|
+ public readonly sourceMapBaseUrl!: string;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @type {string}
|
|
* @type {string}
|
|
*/
|
|
*/
|
|
@IsString()
|
|
@IsString()
|
|
- public readonly sourceMapFileName: string;
|
|
|
|
|
|
+ public readonly sourceMapFileName!: string;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @type {SourceMapMode}
|
|
* @type {SourceMapMode}
|
|
*/
|
|
*/
|
|
@IsIn([SourceMapMode.Inline, SourceMapMode.Separate])
|
|
@IsIn([SourceMapMode.Inline, SourceMapMode.Separate])
|
|
- public readonly sourceMapMode: SourceMapMode;
|
|
|
|
|
|
+ public readonly sourceMapMode!: SourceMapMode;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @type {boolean}
|
|
* @type {boolean}
|
|
*/
|
|
*/
|
|
@IsBoolean()
|
|
@IsBoolean()
|
|
- public readonly stringArray: boolean;
|
|
|
|
|
|
+ public readonly stringArray!: boolean;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @type {TStringArrayEncoding}
|
|
* @type {TStringArrayEncoding}
|
|
*/
|
|
*/
|
|
@IsIn([true, false, StringArrayEncoding.Base64, StringArrayEncoding.Rc4])
|
|
@IsIn([true, false, StringArrayEncoding.Base64, StringArrayEncoding.Rc4])
|
|
- public readonly stringArrayEncoding: TStringArrayEncoding;
|
|
|
|
|
|
+ public readonly stringArrayEncoding!: TStringArrayEncoding;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @type {number}
|
|
* @type {number}
|
|
@@ -206,25 +206,25 @@ export class Options implements IOptions {
|
|
@IsNumber()
|
|
@IsNumber()
|
|
@Min(0)
|
|
@Min(0)
|
|
@Max(1)
|
|
@Max(1)
|
|
- public readonly stringArrayThreshold: number;
|
|
|
|
|
|
+ public readonly stringArrayThreshold!: number;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @type {ObfuscationTarget}
|
|
* @type {ObfuscationTarget}
|
|
*/
|
|
*/
|
|
@IsIn([ObfuscationTarget.Browser, ObfuscationTarget.Extension, ObfuscationTarget.Node])
|
|
@IsIn([ObfuscationTarget.Browser, ObfuscationTarget.Extension, ObfuscationTarget.Node])
|
|
- public readonly target: ObfuscationTarget;
|
|
|
|
|
|
+ public readonly target!: ObfuscationTarget;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @type {boolean}
|
|
* @type {boolean}
|
|
*/
|
|
*/
|
|
@IsBoolean()
|
|
@IsBoolean()
|
|
- public readonly transformObjectKeys: boolean;
|
|
|
|
|
|
+ public readonly transformObjectKeys!: boolean;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @type {boolean}
|
|
* @type {boolean}
|
|
*/
|
|
*/
|
|
@IsBoolean()
|
|
@IsBoolean()
|
|
- public readonly unicodeEscapeSequence: boolean;
|
|
|
|
|
|
+ public readonly unicodeEscapeSequence!: boolean;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @param {TInputOptions} inputOptions
|
|
* @param {TInputOptions} inputOptions
|