javascript-obfuscator 3.2.2 → 3.2.3
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 +5 -0
- 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 +1 -1
- package/typings/src/constants/ReservedIdentifierNames.d.ts +1 -0
- package/typings/src/generators/identifier-names-generators/AbstractIdentifierNamesGenerator.d.ts +1 -1
- package/typings/src/node-transformers/control-flow-transformers/StringArrayControlFlowTransformer.d.ts +2 -1
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const reservedIdentifierNames: string[];
|
package/typings/src/generators/identifier-names-generators/AbstractIdentifierNamesGenerator.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare abstract class AbstractIdentifierNamesGenerator implements IIdent
|
|
|
13
13
|
preserveNameForLexicalScope(name: string, lexicalScopeNode: TNodeWithLexicalScope): void;
|
|
14
14
|
isValidIdentifierName(name: string): boolean;
|
|
15
15
|
isValidIdentifierNameInLexicalScopes(name: string, lexicalScopeNodes: TNodeWithLexicalScope[]): boolean;
|
|
16
|
-
private
|
|
16
|
+
private isReservedName;
|
|
17
17
|
abstract generateForGlobalScope(nameLength?: number): string;
|
|
18
18
|
abstract generateForLexicalScope(lexicalScopeNode: TNodeWithLexicalScope, nameLength?: number): string;
|
|
19
19
|
abstract generateForLabel(label: string, nameLength?: number): string;
|
|
@@ -5,6 +5,7 @@ import { TControlFlowCustomNodeFactory } from '../../types/container/custom-node
|
|
|
5
5
|
import { TControlFlowReplacerFactory } from '../../types/container/node-transformers/TControlFlowReplacerFactory';
|
|
6
6
|
import { TControlFlowStorageFactoryCreator } from '../../types/container/node-transformers/TControlFlowStorageFactoryCreator';
|
|
7
7
|
import { TNodeWithStatements } from '../../types/node/TNodeWithStatements';
|
|
8
|
+
import { IControlFlowStorage } from '../../interfaces/storages/control-flow-transformers/IControlFlowStorage';
|
|
8
9
|
import { IOptions } from '../../interfaces/options/IOptions';
|
|
9
10
|
import { IRandomGenerator } from '../../interfaces/utils/IRandomGenerator';
|
|
10
11
|
import { IVisitor } from '../../interfaces/node-transformers/IVisitor';
|
|
@@ -12,7 +13,6 @@ import { ControlFlowReplacer } from '../../enums/node-transformers/control-flow-
|
|
|
12
13
|
import { NodeTransformationStage } from '../../enums/node-transformers/NodeTransformationStage';
|
|
13
14
|
import { NodeTransformer } from '../../enums/node-transformers/NodeTransformer';
|
|
14
15
|
import { FunctionControlFlowTransformer } from './FunctionControlFlowTransformer';
|
|
15
|
-
import { IControlFlowStorage } from '../../interfaces/storages/control-flow-transformers/IControlFlowStorage';
|
|
16
16
|
export declare class StringArrayControlFlowTransformer extends FunctionControlFlowTransformer {
|
|
17
17
|
readonly runAfter: NodeTransformer[];
|
|
18
18
|
protected readonly controlFlowReplacersMap: Map<string, ControlFlowReplacer>;
|
|
@@ -20,6 +20,7 @@ export declare class StringArrayControlFlowTransformer extends FunctionControlFl
|
|
|
20
20
|
constructor(controlFlowStorageFactoryCreator: TControlFlowStorageFactoryCreator, controlFlowReplacerFactory: TControlFlowReplacerFactory, controlFlowCustomNodeFactory: TControlFlowCustomNodeFactory, randomGenerator: IRandomGenerator, options: IOptions);
|
|
21
21
|
getVisitor(nodeTransformationStage: NodeTransformationStage): IVisitor | null;
|
|
22
22
|
protected transformFunctionBodyNode(node: ESTree.Node, parentNode: ESTree.Node | null, functionNode: ESTree.Function, controlFlowStorage: IControlFlowStorage): estraverse.VisitorOption | ESTree.Node;
|
|
23
|
+
protected getControlFlowStorage(hostNode: TNodeWithStatements): IControlFlowStorage;
|
|
23
24
|
protected appendControlFlowStorageNode(hostNode: TNodeWithStatements, controlFlowStorageNode: ESTree.VariableDeclaration): void;
|
|
24
25
|
protected isAllowedTransformationByThreshold(): boolean;
|
|
25
26
|
}
|