mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
test
This commit is contained in:
@@ -3,23 +3,17 @@ import { ServiceIdentifiers } from '../../container/ServiceIdentifiers';
|
||||
|
||||
import * as format from 'string-template';
|
||||
|
||||
import { TNodeWithBlockStatement } from '../../types/node/TNodeWithBlockStatement';
|
||||
import { TObfuscationEvent } from '../../types/event-emitters/TObfuscationEvent';
|
||||
import { TStatement } from '../../types/node/TStatement';
|
||||
|
||||
import { ICustomNodeWithData } from '../../interfaces/custom-nodes/ICustomNodeWithData';
|
||||
import { IOptions } from '../../interfaces/options/IOptions';
|
||||
import { IStackTraceData } from '../../interfaces/stack-trace-analyzer/IStackTraceData';
|
||||
import { IStorage } from '../../interfaces/storages/IStorage';
|
||||
|
||||
import { ObfuscationEvents } from '../../enums/ObfuscationEvents';
|
||||
|
||||
import { initializable } from '../../decorators/Initializable';
|
||||
|
||||
import { StringArrayTemplate } from '../../templates/custom-nodes/string-array-nodes/string-array-node/StringArrayTemplate';
|
||||
|
||||
import { AbstractCustomNode } from '../AbstractCustomNode';
|
||||
import { NodeAppender } from '../../node/NodeAppender';
|
||||
import { StringArrayStorage } from '../../storages/string-array/StringArrayStorage';
|
||||
|
||||
@injectable()
|
||||
@@ -29,11 +23,6 @@ export class StringArrayNode extends AbstractCustomNode implements ICustomNodeWi
|
||||
*/
|
||||
public static ARRAY_RANDOM_LENGTH: number = 4;
|
||||
|
||||
/**
|
||||
* @type {TObfuscationEvent}
|
||||
*/
|
||||
protected readonly appendEvent: TObfuscationEvent = ObfuscationEvents.AfterObfuscation;
|
||||
|
||||
/**
|
||||
* @type {IStorage <string>}
|
||||
*/
|
||||
@@ -76,18 +65,6 @@ export class StringArrayNode extends AbstractCustomNode implements ICustomNodeWi
|
||||
this.stringArrayRotateValue = stringArrayRotateValue;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param blockScopeNode
|
||||
* @param stackTraceData
|
||||
*/
|
||||
public appendNode (blockScopeNode: TNodeWithBlockStatement, stackTraceData: IStackTraceData[]): void {
|
||||
if (!this.stringArray.getLength()) {
|
||||
return;
|
||||
}
|
||||
|
||||
NodeAppender.prependNode(blockScopeNode, this.getNode());
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {string}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user