File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -77,9 +77,8 @@ export class DefaultApiConfiguration implements ApiConfiguration {
7777 return stateMachine ;
7878 }
7979
80-
8180 private findStateByCode ( stateMachine : StateMachine , stateCode : number ) : State {
82- const stateContainer = stateMachine . states [ 0 ] ;
81+ const stateContainer = stateMachine . states ;
8382 const statesArray = Array . isArray ( stateContainer ?. State )
8483 ? stateContainer . State
8584 : stateContainer ?. State
@@ -95,6 +94,7 @@ export class DefaultApiConfiguration implements ApiConfiguration {
9594 return result ;
9695 }
9796
97+
9898 private findComponentByName ( componentName : string ) : Component {
9999 const result = this . findComponent ( component => component . name === componentName ) ;
100100 if ( ! result ) {
@@ -170,12 +170,10 @@ export class DefaultApiConfiguration implements ApiConfiguration {
170170 messageType : string
171171 ) : ApiCommunication | undefined {
172172 const raw = this . _config . deployment . clientAPICommunication . publish ;
173- console . debug ( 'debug publisher 1:' + JSON . stringify ( raw ) ) ;
174173
175174 const publishArrayRaw = Array . isArray ( raw ) ? raw : [ raw ] ;
176175 const publishArray = publishArrayRaw . map ( normalizeCommunication ) ;
177176
178- console . debug ( 'debug publisher 2:' + JSON . stringify ( publishArray ) ) ;
179177 return publishArray . find (
180178 pub =>
181179 Number ( pub . attributes . componentCode ) === componentCode &&
Original file line number Diff line number Diff line change @@ -15,10 +15,7 @@ export class DefaultApiConfigurationParser implements ApiConfigurationParser {
1515 const result = parseXmlToJson ( xmlConfig ) ; // voir fonction ci-dessous
1616 const rawConfig = result as ParsedApiConfiguration ;
1717
18- console . log ( 'debug DefaultApiConfigurationParser: ' + JSON . stringify ( rawConfig ?. deployment ) ) ;
1918 if ( rawConfig ?. deployment ) {
20- console . log ( 'debug DefaultApiConfigurationParser2 : ' + JSON . stringify ( new DefaultApiConfiguration ( rawConfig ) ) ) ;
21-
2219 resolve ( new DefaultApiConfiguration ( rawConfig ) ) ;
2320 } else {
2421 reject ( new Error ( 'Invalid parsed XML structure' ) ) ;
You can’t perform that action at this time.
0 commit comments