Browse Source

Fix of duplicate identifiers error

sanex3339 5 years ago
parent
commit
2ee1a3b942

File diff suppressed because it is too large
+ 0 - 0
dist/index.browser.js


File diff suppressed because it is too large
+ 0 - 0
dist/index.cli.js


File diff suppressed because it is too large
+ 0 - 0
dist/index.js


+ 1 - 1
src/custom-nodes/domain-lock-nodes/DomainLockNode.ts

@@ -81,7 +81,7 @@ export class DomainLockNode extends AbstractCustomNode {
             : GlobalVariableNoEvalTemplate();
             : GlobalVariableNoEvalTemplate();
 
 
         return this.customNodeFormatter.formatTemplate(DomainLockNodeTemplate(), {
         return this.customNodeFormatter.formatTemplate(DomainLockNodeTemplate(), {
-            domainLockFunctionName: this.identifierNamesGenerator.generate(),
+            domainLockFunctionName: this.randomGenerator.getRandomString(5),
             diff,
             diff,
             domains: hiddenDomainsString,
             domains: hiddenDomainsString,
             globalVariableTemplate,
             globalVariableTemplate,

+ 1 - 1
src/custom-nodes/domain-lock-nodes/group/DomainLockCustomNodeGroup.ts

@@ -91,7 +91,7 @@ export class DomainLockCustomNodeGroup extends AbstractCustomNodeGroup {
             return;
             return;
         }
         }
 
 
-        const callsControllerFunctionName: string = this.identifierNamesGenerator.generate();
+        const callsControllerFunctionName: string = this.randomGenerator.getRandomString(5);
 
 
         const domainLockNode: ICustomNode<TInitialData<DomainLockNode>> =
         const domainLockNode: ICustomNode<TInitialData<DomainLockNode>> =
             this.customNodeFactory(CustomNode.DomainLockNode);
             this.customNodeFactory(CustomNode.DomainLockNode);

+ 1 - 1
src/custom-nodes/self-defending-nodes/SelfDefendingUnicodeNode.ts

@@ -70,7 +70,7 @@ export class SelfDefendingUnicodeNode extends AbstractCustomNode {
     protected getNodeTemplate (): string {
     protected getNodeTemplate (): string {
         return this.obfuscateTemplate(
         return this.obfuscateTemplate(
             this.customNodeFormatter.formatTemplate(SelfDefendingTemplate(this.escapeSequenceEncoder), {
             this.customNodeFormatter.formatTemplate(SelfDefendingTemplate(this.escapeSequenceEncoder), {
-                selfDefendingFunctionName: this.identifierNamesGenerator.generate(),
+                selfDefendingFunctionName: this.randomGenerator.getRandomString(5),
                 singleNodeCallControllerFunctionName: this.callsControllerFunctionName
                 singleNodeCallControllerFunctionName: this.callsControllerFunctionName
             }),
             }),
             {
             {

+ 1 - 1
src/custom-nodes/self-defending-nodes/group/SelfDefendingCustomNodeGroup.ts

@@ -91,7 +91,7 @@ export class SelfDefendingCustomNodeGroup extends AbstractCustomNodeGroup {
             return;
             return;
         }
         }
 
 
-        const callsControllerFunctionName: string = this.identifierNamesGenerator.generate();
+        const callsControllerFunctionName: string = this.randomGenerator.getRandomString(5);
 
 
         const selfDefendingUnicodeNode: ICustomNode<TInitialData<SelfDefendingUnicodeNode>> =
         const selfDefendingUnicodeNode: ICustomNode<TInitialData<SelfDefendingUnicodeNode>> =
             this.customNodeFactory(CustomNode.SelfDefendingUnicodeNode);
             this.customNodeFactory(CustomNode.SelfDefendingUnicodeNode);

Some files were not shown because too many files changed in this diff