File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -77,9 +77,8 @@ export class DefaultApiConfiguration implements ApiConfiguration {
77
77
return stateMachine ;
78
78
}
79
79
80
-
81
80
private findStateByCode ( stateMachine : StateMachine , stateCode : number ) : State {
82
- const stateContainer = stateMachine . states [ 0 ] ;
81
+ const stateContainer = stateMachine . states ;
83
82
const statesArray = Array . isArray ( stateContainer ?. State )
84
83
? stateContainer . State
85
84
: stateContainer ?. State
@@ -95,6 +94,7 @@ export class DefaultApiConfiguration implements ApiConfiguration {
95
94
return result ;
96
95
}
97
96
97
+
98
98
private findComponentByName ( componentName : string ) : Component {
99
99
const result = this . findComponent ( component => component . name === componentName ) ;
100
100
if ( ! result ) {
@@ -170,12 +170,10 @@ export class DefaultApiConfiguration implements ApiConfiguration {
170
170
messageType : string
171
171
) : ApiCommunication | undefined {
172
172
const raw = this . _config . deployment . clientAPICommunication . publish ;
173
- console . debug ( 'debug publisher 1:' + JSON . stringify ( raw ) ) ;
174
173
175
174
const publishArrayRaw = Array . isArray ( raw ) ? raw : [ raw ] ;
176
175
const publishArray = publishArrayRaw . map ( normalizeCommunication ) ;
177
176
178
- console . debug ( 'debug publisher 2:' + JSON . stringify ( publishArray ) ) ;
179
177
return publishArray . find (
180
178
pub =>
181
179
Number ( pub . attributes . componentCode ) === componentCode &&
Original file line number Diff line number Diff line change @@ -15,10 +15,7 @@ export class DefaultApiConfigurationParser implements ApiConfigurationParser {
15
15
const result = parseXmlToJson ( xmlConfig ) ; // voir fonction ci-dessous
16
16
const rawConfig = result as ParsedApiConfiguration ;
17
17
18
- console . log ( 'debug DefaultApiConfigurationParser: ' + JSON . stringify ( rawConfig ?. deployment ) ) ;
19
18
if ( rawConfig ?. deployment ) {
20
- console . log ( 'debug DefaultApiConfigurationParser2 : ' + JSON . stringify ( new DefaultApiConfiguration ( rawConfig ) ) ) ;
21
-
22
19
resolve ( new DefaultApiConfiguration ( rawConfig ) ) ;
23
20
} else {
24
21
reject ( new Error ( 'Invalid parsed XML structure' ) ) ;
You can’t perform that action at this time.
0 commit comments