lightning-flow-scanner-core
Advanced tools
Comparing version 1.0.32 to 1.0.33
@@ -71,2 +71,3 @@ "use strict"; | ||
findStart(flow, nodes) { | ||
let result = null; | ||
let post43APIStart = nodes.findIndex(n => { | ||
@@ -76,3 +77,3 @@ return n.subtype === 'start'; | ||
if (post43APIStart !== -1) { | ||
return post43APIStart; | ||
result = post43APIStart; | ||
} | ||
@@ -87,6 +88,6 @@ else { | ||
if (pre43APIStart) { | ||
return pre43APIStart; | ||
result = pre43APIStart; | ||
} | ||
} | ||
return null; | ||
return result; | ||
} | ||
@@ -93,0 +94,0 @@ } |
{ | ||
"name": "lightning-flow-scanner-core", | ||
"version": "1.0.32", | ||
"version": "1.0.33", | ||
"main": "out/**", | ||
@@ -5,0 +5,0 @@ "types": "out/index.d.ts", |
@@ -73,10 +73,12 @@ import {IRuleDefinition} from '../interfaces/IRuleDefinition'; | ||
// Todo find start reference (< 43.0 API) | ||
private findStart(flow: Flow, nodes: FlowNode[]) { | ||
private findStart(flow, nodes) { | ||
let result = null; | ||
let post43APIStart = nodes.findIndex(n => { | ||
return n.subtype === 'start'; | ||
}); | ||
if(post43APIStart !== -1){ | ||
return post43APIStart; | ||
} else { | ||
if(flow.startElementReference){ | ||
if (post43APIStart !== -1) { | ||
result = post43APIStart; | ||
} | ||
else { | ||
if (flow.startElementReference) { | ||
let pre43APIStart = nodes.findIndex(n => { | ||
@@ -87,9 +89,9 @@ let test1 = flow.startElementReference[0]; | ||
}); | ||
if(pre43APIStart){ | ||
return pre43APIStart; | ||
if (pre43APIStart) { | ||
result = pre43APIStart; | ||
} | ||
} | ||
return null; | ||
return result; | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
742955
28796