mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
Added ability to add specific node guard to the black list of nodes.
This nodes wont obfuscated.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { injectable, inject } from 'inversify';
|
||||
import { injectable, inject, postConstruct } from 'inversify';
|
||||
import { ServiceIdentifiers } from '../../container/ServiceIdentifiers';
|
||||
|
||||
import { IArrayUtils } from '../../interfaces/utils/IArrayUtils';
|
||||
@@ -25,15 +25,11 @@ export class StringArrayStorage extends ArrayStorage <string> {
|
||||
super(randomGenerator);
|
||||
|
||||
this.arrayUtils = arrayUtils;
|
||||
|
||||
this.initialize();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {any[]} args
|
||||
*/
|
||||
public initialize (...args: any[]): void {
|
||||
super.initialize(args);
|
||||
@postConstruct()
|
||||
public initialize (): void {
|
||||
super.initialize();
|
||||
|
||||
this.storageId = this.randomGenerator.getRandomString(4, RandomGenerator.randomGeneratorPoolHexadecimal);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user