Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lightning-flow-scanner-core

Package Overview
Dependencies
Maintainers
1
Versions
173
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lightning-flow-scanner-core - npm Package Compare versions

Comparing version 1.0.32 to 1.0.33

7

out/main/rules/UnconnectedElements.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc