12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- import { TIdentifierNamesCache } from '../../types/caches/TIdentifierNamesCache';
- import { TOptionsPreset } from '../../types/options/TOptionsPreset';
- import { TStringArrayIndexesType } from '../../types/options/TStringArrayIndexesType';
- import { TStringArrayEncoding } from '../../types/options/TStringArrayEncoding';
- import { TStringArrayWrappersType } from '../../types/options/TStringArrayWrappersType';
- import { TRenamePropertiesMode } from '../../types/options/TRenamePropertiesMode';
- import { TTypeFromEnum } from '../../types/utils/TTypeFromEnum';
- import { IdentifierNamesGenerator } from '../../enums/generators/identifier-names-generators/IdentifierNamesGenerator';
- import { ObfuscationTarget } from '../../enums/ObfuscationTarget';
- import { SourceMapMode } from '../../enums/source-map/SourceMapMode';
- export interface IOptions {
- readonly compact: boolean;
- readonly controlFlowFlattening: boolean;
- readonly controlFlowFlatteningThreshold: number;
- readonly deadCodeInjection: boolean;
- readonly deadCodeInjectionThreshold: number;
- readonly debugProtection: boolean;
- readonly debugProtectionInterval: boolean;
- readonly disableConsoleOutput: boolean;
- readonly domainLock: string[];
- readonly forceTransformStrings: string[];
- readonly identifierNamesCache: TIdentifierNamesCache | null;
- readonly identifierNamesGenerator: TTypeFromEnum<typeof IdentifierNamesGenerator>;
- readonly identifiersDictionary: string[];
- readonly identifiersPrefix: string;
- readonly ignoreRequireImports: boolean;
- readonly inputFileName: string;
- readonly log: boolean;
- readonly numbersToExpressions: boolean;
- readonly optionsPreset: TOptionsPreset;
- readonly renameGlobals: boolean;
- readonly renameProperties: boolean;
- readonly renamePropertiesMode: TRenamePropertiesMode;
- readonly reservedNames: string[];
- readonly reservedStrings: string[];
- readonly rotateStringArray: boolean;
- readonly seed: string | number;
- readonly selfDefending: boolean;
- readonly shuffleStringArray: boolean;
- readonly simplify: boolean;
- readonly sourceMap: boolean;
- readonly sourceMapBaseUrl: string;
- readonly sourceMapFileName: string;
- readonly sourceMapMode: TTypeFromEnum<typeof SourceMapMode>;
- readonly splitStrings: boolean;
- readonly splitStringsChunkLength: number;
- readonly stringArray: boolean;
- readonly stringArrayEncoding: TStringArrayEncoding[];
- readonly stringArrayIndexesType: TStringArrayIndexesType[];
- readonly stringArrayIndexShift: boolean;
- readonly stringArrayWrappersChainedCalls: boolean;
- readonly stringArrayWrappersCount: number;
- readonly stringArrayWrappersParametersMaxCount: number;
- readonly stringArrayWrappersType: TStringArrayWrappersType;
- readonly stringArrayThreshold: number;
- readonly target: TTypeFromEnum<typeof ObfuscationTarget>;
- readonly transformObjectKeys: boolean;
- readonly unicodeEscapeSequence: boolean;
- }
|