javascript-obfuscator 3.2.7 → 4.0.1
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 +8 -0
- package/README.md +12 -15
- package/dist/index.browser.js +1 -1
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cli.js +1 -1
- package/dist/index.cli.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/typings/src/custom-code-helpers/debug-protection/DebugProtectionFunctionIntervalCodeHelper.d.ts +2 -1
- package/typings/src/interfaces/options/IOptions.d.ts +1 -1
- package/typings/src/options/Options.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "javascript-obfuscator",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "JavaScript obfuscator",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"obfuscator",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"assert": "2.0.0",
|
|
28
28
|
"chalk": "4.1.2",
|
|
29
29
|
"chance": "1.1.8",
|
|
30
|
-
"class-validator": "0.
|
|
30
|
+
"class-validator": "0.14.0",
|
|
31
31
|
"commander": "9.0.0",
|
|
32
32
|
"eslint-scope": "7.1.0",
|
|
33
33
|
"eslint-visitor-keys": "3.2.0",
|
|
@@ -7,8 +7,9 @@ import { IRandomGenerator } from '../../interfaces/utils/IRandomGenerator';
|
|
|
7
7
|
import { AbstractCustomCodeHelper } from '../AbstractCustomCodeHelper';
|
|
8
8
|
export declare class DebugProtectionFunctionIntervalCodeHelper extends AbstractCustomCodeHelper {
|
|
9
9
|
private debugProtectionFunctionName;
|
|
10
|
+
private debugProtectionInterval;
|
|
10
11
|
constructor(identifierNamesGeneratorFactory: TIdentifierNamesGeneratorFactory, customCodeHelperFormatter: ICustomCodeHelperFormatter, customCodeHelperObfuscator: ICustomCodeHelperObfuscator, randomGenerator: IRandomGenerator, options: IOptions);
|
|
11
|
-
initialize(debugProtectionFunctionName: string): void;
|
|
12
|
+
initialize(debugProtectionFunctionName: string, debugProtectionInterval: number): void;
|
|
12
13
|
protected getNodeStructure(codeHelperTemplate: string): TStatement[];
|
|
13
14
|
protected getCodeHelperTemplate(): string;
|
|
14
15
|
}
|
|
@@ -16,7 +16,7 @@ export interface IOptions {
|
|
|
16
16
|
readonly deadCodeInjection: boolean;
|
|
17
17
|
readonly deadCodeInjectionThreshold: number;
|
|
18
18
|
readonly debugProtection: boolean;
|
|
19
|
-
readonly debugProtectionInterval:
|
|
19
|
+
readonly debugProtectionInterval: number;
|
|
20
20
|
readonly disableConsoleOutput: boolean;
|
|
21
21
|
readonly domainLock: string[];
|
|
22
22
|
readonly domainLockRedirectUrl: string;
|
|
@@ -21,7 +21,7 @@ export declare class Options implements IOptions {
|
|
|
21
21
|
readonly deadCodeInjection: boolean;
|
|
22
22
|
readonly deadCodeInjectionThreshold: number;
|
|
23
23
|
readonly debugProtection: boolean;
|
|
24
|
-
readonly debugProtectionInterval:
|
|
24
|
+
readonly debugProtectionInterval: number;
|
|
25
25
|
readonly disableConsoleOutput: boolean;
|
|
26
26
|
readonly domainLock: string[];
|
|
27
27
|
readonly domainLockRedirectUrl: string;
|