lightning-flow-scanner-core
Advanced tools
Comparing version 1.0.50 to 1.0.51
@@ -13,2 +13,5 @@ "use strict"; | ||
execute(flow) { | ||
if (flow.type[0] === 'Survey') { | ||
return new RuleResult_1.RuleResult(false, this.name, 'pattern', []); | ||
} | ||
const dmlStatementTypes = ['recordLookups', 'recordDeletes', 'recordUpdates', 'recordCreates']; | ||
@@ -15,0 +18,0 @@ const flowElements = flow.nodes.filter(node => node.nodeType === 'element'); |
@@ -14,4 +14,4 @@ "use strict"; | ||
execute(flow) { | ||
if (flow.type === 'Survey') { | ||
return new RuleResult_1.RuleResult(false, this.name, 'pattern'); | ||
if (flow.type[0] === 'Survey') { | ||
return new RuleResult_1.RuleResult(false, this.name, 'pattern', []); | ||
} | ||
@@ -18,0 +18,0 @@ const flowElements = flow.nodes.filter(node => node instanceof FlowElement_1.FlowElement); |
@@ -14,4 +14,4 @@ "use strict"; | ||
execute(flow) { | ||
if (flow.type === 'Survey') { | ||
return new RuleResult_1.RuleResult(false, this.name, 'pattern'); | ||
if (flow.type[0] === 'Survey') { | ||
return new RuleResult_1.RuleResult(false, this.name, 'pattern', []); | ||
} | ||
@@ -18,0 +18,0 @@ const typesWithFaultPath = ['recordLookups', 'recordDeletes', 'recordUpdates', 'recordCreates', 'waits', 'actionCalls']; |
@@ -13,3 +13,3 @@ "use strict"; | ||
execute(flow) { | ||
if (flow.type === 'Survey') { | ||
if (flow.type[0] === 'Survey') { | ||
return new RuleResult_1.RuleResult(false, this.name, 'flow'); | ||
@@ -16,0 +16,0 @@ } |
@@ -13,4 +13,4 @@ "use strict"; | ||
execute(flow) { | ||
if (flow.type === 'Survey') { | ||
return new RuleResult_1.RuleResult(false, this.name, 'pattern'); | ||
if (flow.type[0] === 'Survey') { | ||
return new RuleResult_1.RuleResult(false, this.name, 'pattern', []); | ||
} | ||
@@ -17,0 +17,0 @@ const getOperations = ['recordLookups']; |
@@ -14,4 +14,4 @@ "use strict"; | ||
execute(flow) { | ||
if (flow.type === 'Survey') { | ||
return new RuleResult_1.RuleResult(false, this.name, 'pattern'); | ||
if (flow.type[0] === 'Survey') { | ||
return new RuleResult_1.RuleResult(false, this.name, 'pattern', []); | ||
} | ||
@@ -18,0 +18,0 @@ const flowElements = flow.nodes.filter(node => node instanceof FlowElement_1.FlowElement); |
@@ -15,3 +15,3 @@ "use strict"; | ||
execute(flow) { | ||
if (flow.type === 'Survey') { | ||
if (flow.type[0] === 'Survey') { | ||
return new RuleResult_1.RuleResult(false, this.name, 'pattern'); | ||
@@ -18,0 +18,0 @@ } |
{ | ||
"name": "lightning-flow-scanner-core", | ||
"version": "1.0.50", | ||
"version": "1.0.51", | ||
"main": "out/**", | ||
@@ -5,0 +5,0 @@ "types": "out/index.d.ts", |
@@ -16,2 +16,5 @@ import {IRuleDefinition} from '../interfaces/IRuleDefinition'; | ||
public execute(flow: Flow) : RuleResult { | ||
if(flow.type[0] === 'Survey'){ | ||
return new RuleResult( false, this.name, 'pattern', []); | ||
} | ||
const dmlStatementTypes = ['recordLookups', 'recordDeletes', 'recordUpdates', 'recordCreates']; | ||
@@ -18,0 +21,0 @@ const flowElements: FlowElement[] = flow.nodes.filter(node => node.nodeType === 'element') as FlowElement[]; |
@@ -16,5 +16,4 @@ import {IRuleDefinition} from '../interfaces/IRuleDefinition'; | ||
public execute(flow: Flow) : RuleResult { | ||
if(flow.type === 'Survey'){ | ||
return new RuleResult( false, this.name, 'pattern'); | ||
if(flow.type[0] === 'Survey'){ | ||
return new RuleResult( false, this.name, 'pattern', []); | ||
} | ||
@@ -21,0 +20,0 @@ const flowElements: FlowElement[] = flow.nodes.filter(node => node instanceof FlowElement) as FlowElement[]; |
@@ -17,4 +17,4 @@ import {IRuleDefinition} from '../interfaces/IRuleDefinition'; | ||
public execute(flow: Flow) : RuleResult { | ||
if(flow.type === 'Survey'){ | ||
return new RuleResult( false, this.name, 'pattern'); | ||
if(flow.type[0] === 'Survey'){ | ||
return new RuleResult( false, this.name, 'pattern', []); | ||
} | ||
@@ -21,0 +21,0 @@ const typesWithFaultPath = ['recordLookups', 'recordDeletes', 'recordUpdates', 'recordCreates', 'waits', 'actionCalls']; |
@@ -15,3 +15,3 @@ import {IRuleDefinition} from '../interfaces/IRuleDefinition'; | ||
public execute(flow: Flow) : RuleResult { | ||
if(flow.type === 'Survey'){ | ||
if(flow.type[0] === 'Survey'){ | ||
return new RuleResult( false, this.name, 'flow'); | ||
@@ -18,0 +18,0 @@ } |
@@ -16,4 +16,4 @@ import {IRuleDefinition} from '../interfaces/IRuleDefinition'; | ||
public execute(flow: Flow) : RuleResult { | ||
if(flow.type === 'Survey'){ | ||
return new RuleResult( false, this.name, 'pattern'); | ||
if(flow.type[0] === 'Survey'){ | ||
return new RuleResult( false, this.name, 'pattern', []); | ||
} | ||
@@ -20,0 +20,0 @@ const getOperations = ['recordLookups']; |
@@ -17,4 +17,4 @@ import {IRuleDefinition} from '../interfaces/IRuleDefinition'; | ||
public execute(flow: Flow) : RuleResult { | ||
if(flow.type === 'Survey'){ | ||
return new RuleResult( false, this.name, 'pattern'); | ||
if(flow.type[0] === 'Survey'){ | ||
return new RuleResult( false, this.name, 'pattern', []); | ||
} | ||
@@ -21,0 +21,0 @@ const flowElements: FlowElement[] = flow.nodes.filter(node => node instanceof FlowElement) as FlowElement[]; |
@@ -17,3 +17,3 @@ import {IRuleDefinition} from '../interfaces/IRuleDefinition'; | ||
public execute(flow: Flow) : RuleResult { | ||
if(flow.type === 'Survey'){ | ||
if(flow.type[0] === 'Survey'){ | ||
return new RuleResult( false, this.name, 'pattern'); | ||
@@ -20,0 +20,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
713608
162
26181