mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
Typescript 4.3 update
This commit is contained in:
@@ -10,7 +10,7 @@ export class StringArrayCallsWrapperBase64CodeHelper extends StringArrayCallsWra
|
||||
/**
|
||||
* @returns {string}
|
||||
*/
|
||||
protected getDecodeStringArrayTemplate (): string {
|
||||
protected override getDecodeStringArrayTemplate (): string {
|
||||
const atobFunctionName: string = this.randomGenerator.getRandomString(6);
|
||||
|
||||
const atobPolyfill: string = this.customCodeHelperFormatter.formatTemplate(AtobTemplate(), {
|
||||
|
||||
@@ -97,7 +97,7 @@ export class StringArrayCallsWrapperCodeHelper extends AbstractCustomCodeHelper
|
||||
/**
|
||||
* @returns {string}
|
||||
*/
|
||||
protected getCodeHelperTemplate (): string {
|
||||
protected override getCodeHelperTemplate (): string {
|
||||
const decodeCodeHelperTemplate: string = this.getDecodeStringArrayTemplate();
|
||||
|
||||
const preservedNames: string[] = [`^${this.stringArrayName}$`];
|
||||
|
||||
@@ -11,7 +11,7 @@ export class StringArrayCallsWrapperRc4CodeHelper extends StringArrayCallsWrappe
|
||||
/**
|
||||
* @returns {string}
|
||||
*/
|
||||
protected getDecodeStringArrayTemplate (): string {
|
||||
protected override getDecodeStringArrayTemplate (): string {
|
||||
const atobFunctionName: string = this.randomGenerator.getRandomString(6);
|
||||
|
||||
const atobPolyfill: string = this.customCodeHelperFormatter.formatTemplate(AtobTemplate(), {
|
||||
|
||||
@@ -80,7 +80,7 @@ export class StringArrayCodeHelper extends AbstractCustomCodeHelper {
|
||||
/**
|
||||
* @returns {string}
|
||||
*/
|
||||
protected getCodeHelperTemplate (): string {
|
||||
protected override getCodeHelperTemplate (): string {
|
||||
return this.customCodeHelperFormatter.formatTemplate(StringArrayTemplate(), {
|
||||
stringArrayName: this.stringArrayName,
|
||||
stringArrayStorageItems: this.getEncodedStringArrayStorageItems()
|
||||
|
||||
@@ -87,7 +87,7 @@ export class StringArrayRotateFunctionCodeHelper extends AbstractCustomCodeHelpe
|
||||
/**
|
||||
* @returns {string}
|
||||
*/
|
||||
protected getCodeHelperTemplate (): string {
|
||||
protected override getCodeHelperTemplate (): string {
|
||||
const comparisonExpressionCode: string = NodeUtils.convertStructureToCode([this.comparisonExpressionNode]);
|
||||
|
||||
return this.customCodeHelperFormatter.formatTemplate(
|
||||
|
||||
Reference in New Issue
Block a user