浏览代码

Renamed custom code helpers group method names

sanex 4 年之前
父节点
当前提交
65cbb8bfe6

文件差异内容过多而无法显示
+ 0 - 0
dist/index.browser.js


文件差异内容过多而无法显示
+ 0 - 0
dist/index.cli.js


文件差异内容过多而无法显示
+ 0 - 0
dist/index.js


+ 1 - 1
src/custom-code-helpers/console-output/group/ConsoleOutputCodeHelperGroup.ts

@@ -58,7 +58,7 @@ export class ConsoleOutputCodeHelperGroup extends AbstractCustomCodeHelperGroup
      * @param {TNodeWithStatements} nodeWithStatements
      * @param {ICallsGraphData[]} callsGraphData
      */
-    public appendOnPreparing (nodeWithStatements: TNodeWithStatements, callsGraphData: ICallsGraphData[]): void {
+    public appendOnPreparingStage (nodeWithStatements: TNodeWithStatements, callsGraphData: ICallsGraphData[]): void {
         if (!this.options.disableConsoleOutput) {
             return;
         }

+ 1 - 1
src/custom-code-helpers/debug-protection/group/DebugProtectionCodeHelperGroup.ts

@@ -61,7 +61,7 @@ export class DebugProtectionCodeHelperGroup extends AbstractCustomCodeHelperGrou
      * @param {TNodeWithStatements} nodeWithStatements
      * @param {ICallsGraphData[]} callsGraphData
      */
-    public appendOnPreparing (nodeWithStatements: TNodeWithStatements, callsGraphData: ICallsGraphData[]): void {
+    public appendOnPreparingStage (nodeWithStatements: TNodeWithStatements, callsGraphData: ICallsGraphData[]): void {
         if (!this.options.debugProtection) {
             return;
         }

+ 1 - 1
src/custom-code-helpers/domain-lock/group/DomainLockCustomCodeHelperGroup.ts

@@ -58,7 +58,7 @@ export class DomainLockCustomCodeHelperGroup extends AbstractCustomCodeHelperGro
      * @param {TNodeWithStatements} nodeWithStatements
      * @param {ICallsGraphData[]} callsGraphData
      */
-    public appendOnPreparing (nodeWithStatements: TNodeWithStatements, callsGraphData: ICallsGraphData[]): void {
+    public appendOnPreparingStage (nodeWithStatements: TNodeWithStatements, callsGraphData: ICallsGraphData[]): void {
         if (!this.options.domainLock.length) {
             return;
         }

+ 1 - 1
src/custom-code-helpers/self-defending/group/SelfDefendingCodeHelperGroup.ts

@@ -58,7 +58,7 @@ export class SelfDefendingCodeHelperGroup extends AbstractCustomCodeHelperGroup
      * @param {TNodeWithStatements} nodeWithStatements
      * @param {ICallsGraphData[]} callsGraphData
      */
-    public appendOnPreparing (nodeWithStatements: TNodeWithStatements, callsGraphData: ICallsGraphData[]): void {
+    public appendOnPreparingStage (nodeWithStatements: TNodeWithStatements, callsGraphData: ICallsGraphData[]): void {
         if (!this.options.selfDefending) {
             return;
         }

+ 1 - 1
src/custom-code-helpers/string-array/group/StringArrayCodeHelperGroup.ts

@@ -75,7 +75,7 @@ export class StringArrayCodeHelperGroup extends AbstractCustomCodeHelperGroup {
      * @param {TNodeWithStatements} nodeWithStatements
      * @param {ICallsGraphData[]} callsGraphData
      */
-    public appendOnFinalizing (nodeWithStatements: TNodeWithStatements, callsGraphData: ICallsGraphData[]): void {
+    public appendOnFinalizingStage (nodeWithStatements: TNodeWithStatements, callsGraphData: ICallsGraphData[]): void {
         if (!this.stringArrayStorage.getLength()) {
             return;
         }

+ 2 - 2
src/node-transformers/preparing-transformers/CustomCodeHelpersTransformer.ts

@@ -133,7 +133,7 @@ export class CustomCodeHelpersTransformer extends AbstractNodeTransformer {
             .getStorage()
             .forEach((customCodeHelperGroup: ICustomCodeHelperGroup) => {
                 customCodeHelperGroup.initialize();
-                customCodeHelperGroup.appendOnPreparing?.(node, this.callsGraphData);
+                customCodeHelperGroup.appendOnPreparingStage?.(node, this.callsGraphData);
             });
     }
 
@@ -150,7 +150,7 @@ export class CustomCodeHelpersTransformer extends AbstractNodeTransformer {
         this.customCodeHelperGroupStorage
             .getStorage()
             .forEach((customCodeHelperGroup: ICustomCodeHelperGroup) => {
-                const methodName = <TCustomCodeHelpersGroupAppendMethodName>`appendOn${nodeTransformationStage}`;
+                const methodName = <TCustomCodeHelpersGroupAppendMethodName>`appendOn${nodeTransformationStage}Stage`;
 
                 customCodeHelperGroup[methodName]?.(node, this.callsGraphData);
             });

+ 1 - 1
src/types/custom-code-helpers/TCustomCodeHelpersGroupAppendMethodName.ts

@@ -1,3 +1,3 @@
 import { NodeTransformationStage } from '../../enums/node-transformers/NodeTransformationStage';
 
-export type TCustomCodeHelpersGroupAppendMethodName = `appendOn${Capitalize<NodeTransformationStage>}`;
+export type TCustomCodeHelpersGroupAppendMethodName = `appendOn${Capitalize<NodeTransformationStage>}Stage`;

部分文件因为文件数量过多而无法显示