@@ -6,8 +6,8 @@ import { ICustomNode } from '../../../interfaces/custom-nodes/ICustomNode';
66import { ICustomNodeGroup } from '../../../interfaces/custom-nodes/ICustomNodeGroup' ;
77import { IOptions } from '../../../interfaces/options/IOptions' ;
88
9- import { CustomNodes } from '../../../enums/container/custom-nodes/CustomNodes ' ;
10- import { CustomNodeGroups } from '../../../enums/container/custom-nodes/CustomNodeGroups ' ;
9+ import { CustomNode } from '../../../enums/container/custom-nodes/CustomNode ' ;
10+ import { CustomNodeGroup } from '../../../enums/container/custom-nodes/CustomNodeGroup ' ;
1111
1212import { ConsoleOutputCustomNodeGroup } from '../../../custom-nodes/console-output-nodes/group/ConsoleOutputCustomNodeGroup' ;
1313import { DebugProtectionCustomNodeGroup } from '../../../custom-nodes/debug-protection-nodes/group/DebugProtectionCustomNodeGroup' ;
@@ -39,109 +39,109 @@ export const customNodesModule: interfaces.ContainerModule = new ContainerModule
3939 // custom nodes
4040 bind < interfaces . Newable < ICustomNode > > ( ServiceIdentifiers . Newable__ICustomNode )
4141 . toConstructor ( BinaryExpressionFunctionNode )
42- . whenTargetNamed ( CustomNodes . BinaryExpressionFunctionNode ) ;
42+ . whenTargetNamed ( CustomNode . BinaryExpressionFunctionNode ) ;
4343
4444 bind < interfaces . Newable < ICustomNode > > ( ServiceIdentifiers . Newable__ICustomNode )
4545 . toConstructor ( BlockStatementControlFlowFlatteningNode )
46- . whenTargetNamed ( CustomNodes . BlockStatementControlFlowFlatteningNode ) ;
46+ . whenTargetNamed ( CustomNode . BlockStatementControlFlowFlatteningNode ) ;
4747
4848 bind < interfaces . Newable < ICustomNode > > ( ServiceIdentifiers . Newable__ICustomNode )
4949 . toConstructor ( CallExpressionControlFlowStorageCallNode )
50- . whenTargetNamed ( CustomNodes . CallExpressionControlFlowStorageCallNode ) ;
50+ . whenTargetNamed ( CustomNode . CallExpressionControlFlowStorageCallNode ) ;
5151
5252 bind < interfaces . Newable < ICustomNode > > ( ServiceIdentifiers . Newable__ICustomNode )
5353 . toConstructor ( CallExpressionFunctionNode )
54- . whenTargetNamed ( CustomNodes . CallExpressionFunctionNode ) ;
54+ . whenTargetNamed ( CustomNode . CallExpressionFunctionNode ) ;
5555
5656 bind < interfaces . Newable < ICustomNode > > ( ServiceIdentifiers . Newable__ICustomNode )
5757 . toConstructor ( ControlFlowStorageNode )
58- . whenTargetNamed ( CustomNodes . ControlFlowStorageNode ) ;
58+ . whenTargetNamed ( CustomNode . ControlFlowStorageNode ) ;
5959
6060 bind < interfaces . Newable < ICustomNode > > ( ServiceIdentifiers . Newable__ICustomNode )
6161 . toConstructor ( ConsoleOutputDisableExpressionNode )
62- . whenTargetNamed ( CustomNodes . ConsoleOutputDisableExpressionNode ) ;
62+ . whenTargetNamed ( CustomNode . ConsoleOutputDisableExpressionNode ) ;
6363
6464 bind < interfaces . Newable < ICustomNode > > ( ServiceIdentifiers . Newable__ICustomNode )
6565 . toConstructor ( DebugProtectionFunctionCallNode )
66- . whenTargetNamed ( CustomNodes . DebugProtectionFunctionCallNode ) ;
66+ . whenTargetNamed ( CustomNode . DebugProtectionFunctionCallNode ) ;
6767
6868 bind < interfaces . Newable < ICustomNode > > ( ServiceIdentifiers . Newable__ICustomNode )
6969 . toConstructor ( DebugProtectionFunctionIntervalNode )
70- . whenTargetNamed ( CustomNodes . DebugProtectionFunctionIntervalNode ) ;
70+ . whenTargetNamed ( CustomNode . DebugProtectionFunctionIntervalNode ) ;
7171
7272 bind < interfaces . Newable < ICustomNode > > ( ServiceIdentifiers . Newable__ICustomNode )
7373 . toConstructor ( DebugProtectionFunctionNode )
74- . whenTargetNamed ( CustomNodes . DebugProtectionFunctionNode ) ;
74+ . whenTargetNamed ( CustomNode . DebugProtectionFunctionNode ) ;
7575
7676 bind < interfaces . Newable < ICustomNode > > ( ServiceIdentifiers . Newable__ICustomNode )
7777 . toConstructor ( DomainLockNode )
78- . whenTargetNamed ( CustomNodes . DomainLockNode ) ;
78+ . whenTargetNamed ( CustomNode . DomainLockNode ) ;
7979
8080 bind < interfaces . Newable < ICustomNode > > ( ServiceIdentifiers . Newable__ICustomNode )
8181 . toConstructor ( ExpressionWithOperatorControlFlowStorageCallNode )
82- . whenTargetNamed ( CustomNodes . ExpressionWithOperatorControlFlowStorageCallNode ) ;
82+ . whenTargetNamed ( CustomNode . ExpressionWithOperatorControlFlowStorageCallNode ) ;
8383
8484 bind < interfaces . Newable < ICustomNode > > ( ServiceIdentifiers . Newable__ICustomNode )
8585 . toConstructor ( LogicalExpressionFunctionNode )
86- . whenTargetNamed ( CustomNodes . LogicalExpressionFunctionNode ) ;
86+ . whenTargetNamed ( CustomNode . LogicalExpressionFunctionNode ) ;
8787
8888 bind < interfaces . Newable < ICustomNode > > ( ServiceIdentifiers . Newable__ICustomNode )
8989 . toConstructor ( NodeCallsControllerFunctionNode )
90- . whenTargetNamed ( CustomNodes . NodeCallsControllerFunctionNode ) ;
90+ . whenTargetNamed ( CustomNode . NodeCallsControllerFunctionNode ) ;
9191
9292 bind < interfaces . Newable < ICustomNode > > ( ServiceIdentifiers . Newable__ICustomNode )
9393 . toConstructor ( SelfDefendingUnicodeNode )
94- . whenTargetNamed ( CustomNodes . SelfDefendingUnicodeNode ) ;
94+ . whenTargetNamed ( CustomNode . SelfDefendingUnicodeNode ) ;
9595
9696 bind < interfaces . Newable < ICustomNode > > ( ServiceIdentifiers . Newable__ICustomNode )
9797 . toConstructor ( StringArrayCallsWrapper )
98- . whenTargetNamed ( CustomNodes . StringArrayCallsWrapper ) ;
98+ . whenTargetNamed ( CustomNode . StringArrayCallsWrapper ) ;
9999
100100 bind < interfaces . Newable < ICustomNode > > ( ServiceIdentifiers . Newable__ICustomNode )
101101 . toConstructor ( StringArrayNode )
102- . whenTargetNamed ( CustomNodes . StringArrayNode ) ;
102+ . whenTargetNamed ( CustomNode . StringArrayNode ) ;
103103
104104 bind < interfaces . Newable < ICustomNode > > ( ServiceIdentifiers . Newable__ICustomNode )
105105 . toConstructor ( StringArrayRotateFunctionNode )
106- . whenTargetNamed ( CustomNodes . StringArrayRotateFunctionNode ) ;
106+ . whenTargetNamed ( CustomNode . StringArrayRotateFunctionNode ) ;
107107
108108 bind < interfaces . Newable < ICustomNode > > ( ServiceIdentifiers . Newable__ICustomNode )
109109 . toConstructor ( StringLiteralControlFlowStorageCallNode )
110- . whenTargetNamed ( CustomNodes . StringLiteralControlFlowStorageCallNode ) ;
110+ . whenTargetNamed ( CustomNode . StringLiteralControlFlowStorageCallNode ) ;
111111
112112 bind < interfaces . Newable < ICustomNode > > ( ServiceIdentifiers . Newable__ICustomNode )
113113 . toConstructor ( StringLiteralNode )
114- . whenTargetNamed ( CustomNodes . StringLiteralNode ) ;
114+ . whenTargetNamed ( CustomNode . StringLiteralNode ) ;
115115
116116 // node groups
117117 bind < ICustomNodeGroup > ( ServiceIdentifiers . ICustomNodeGroup )
118118 . to ( ConsoleOutputCustomNodeGroup )
119- . whenTargetNamed ( CustomNodeGroups . ConsoleOutputCustomNodeGroup ) ;
119+ . whenTargetNamed ( CustomNodeGroup . ConsoleOutputCustomNodeGroup ) ;
120120
121121 bind < ICustomNodeGroup > ( ServiceIdentifiers . ICustomNodeGroup )
122122 . to ( DebugProtectionCustomNodeGroup )
123- . whenTargetNamed ( CustomNodeGroups . DebugProtectionCustomNodeGroup ) ;
123+ . whenTargetNamed ( CustomNodeGroup . DebugProtectionCustomNodeGroup ) ;
124124
125125 bind < ICustomNodeGroup > ( ServiceIdentifiers . ICustomNodeGroup )
126126 . to ( DomainLockCustomNodeGroup )
127- . whenTargetNamed ( CustomNodeGroups . DomainLockCustomNodeGroup ) ;
127+ . whenTargetNamed ( CustomNodeGroup . DomainLockCustomNodeGroup ) ;
128128
129129 bind < ICustomNodeGroup > ( ServiceIdentifiers . ICustomNodeGroup )
130130 . to ( SelfDefendingCustomNodeGroup )
131- . whenTargetNamed ( CustomNodeGroups . SelfDefendingCustomNodeGroup ) ;
131+ . whenTargetNamed ( CustomNodeGroup . SelfDefendingCustomNodeGroup ) ;
132132
133133 bind < ICustomNodeGroup > ( ServiceIdentifiers . ICustomNodeGroup )
134134 . to ( StringArrayCustomNodeGroup )
135- . whenTargetNamed ( CustomNodeGroups . StringArrayCustomNodeGroup ) ;
135+ . whenTargetNamed ( CustomNodeGroup . StringArrayCustomNodeGroup ) ;
136136
137137 // customNode factory
138138 bind < ICustomNode > ( ServiceIdentifiers . Factory__ICustomNode )
139139 . toFactory < ICustomNode > ( ( context : interfaces . Context ) => {
140- const cache : Map < CustomNodes , interfaces . Newable < ICustomNode > > = new Map ( ) ;
140+ const cache : Map < CustomNode , interfaces . Newable < ICustomNode > > = new Map ( ) ;
141141
142142 let cachedOptions : IOptions ;
143143
144- return ( customNodeName : CustomNodes ) => {
144+ return ( customNodeName : CustomNode ) => {
145145 if ( ! cachedOptions ) {
146146 cachedOptions = context . container . get < IOptions > ( ServiceIdentifiers . IOptions ) ;
147147 }
@@ -165,5 +165,5 @@ export const customNodesModule: interfaces.ContainerModule = new ContainerModule
165165 // customNodeGroup factory
166166 bind < ICustomNodeGroup > ( ServiceIdentifiers . Factory__ICustomNodeGroup )
167167 . toFactory < ICustomNodeGroup > ( InversifyContainerFacade
168- . getFactory < CustomNodeGroups , ICustomNodeGroup > ( ServiceIdentifiers . ICustomNodeGroup ) ) ;
168+ . getFactory < CustomNodeGroup , ICustomNodeGroup > ( ServiceIdentifiers . ICustomNodeGroup ) ) ;
169169} ) ;
0 commit comments