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
0
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 4.7.0 to 4.7.1

main/rules/TriggerOrder.d.ts

1

main/models/Flow.d.ts

@@ -17,2 +17,3 @@ import { FlowElement } from "./FlowElement";

startReference: any;
triggerOrder?: number;
private flowVariables;

@@ -19,0 +20,0 @@ private flowResources;

@@ -99,2 +99,3 @@ "use strict";

this.type = this.xmldata.processType;
this.triggerOrder = this.xmldata.triggerOrder;
const allNodes = [];

@@ -101,0 +102,0 @@ for (const nodeType in this.xmldata) {

export declare class FlowType {
static autolaunchedType: string;
static backEndTypes: string[];

@@ -3,0 +4,0 @@ static processBuilder: string[];

5

main/models/FlowType.js
"use strict";
var _a;
Object.defineProperty(exports, "__esModule", { value: true });

@@ -7,4 +8,6 @@ exports.FlowType = void 0;

exports.FlowType = FlowType;
_a = FlowType;
FlowType.autolaunchedType = "AutoLaunchedFlow";
FlowType.backEndTypes = [
"AutoLaunchedFlow",
_a.autolaunchedType,
"CustomEvent",

@@ -11,0 +14,0 @@ "InvocableProcess",

@@ -53,6 +53,8 @@ "use strict";

if (!isBeforeSaveType || !isQualifiedTriggerTypes) {
return new core.RuleResult(this, []);
return new core.RuleResult(this, results);
}
const resultDetails = [];
const potentialElements = (_c = flow.elements) === null || _c === void 0 ? void 0 : _c.filter((node) => node.subtype === "recordUpdates");
if (potentialElements == null || typeof potentialElements[Symbol.iterator] !== "function") {
return new core.RuleResult(this, results);
}
for (const node of potentialElements) {

@@ -62,8 +64,8 @@ if (typeof node.element === "object" &&

node.element.inputReference === "$Record") {
resultDetails.push(new core.ResultDetails(node));
results.push(new core.ResultDetails(node));
}
}
return new core.RuleResult(this, resultDetails);
return new core.RuleResult(this, results);
}
}
exports.SameRecordFieldUpdates = SameRecordFieldUpdates;
{
"name": "lightning-flow-scanner-core",
"version": "4.7.0",
"version": "4.7.1",
"main": "out/index.js",

@@ -5,0 +5,0 @@ "types": "index.d.ts",

@@ -34,2 +34,3 @@ [![Lightning Flow Scanner Banner](./src/media/bannerslim.png)](https://github.com/Lightning-Flow-Scanner)

| **Same Record Field Updates** ([`SameRecordFieldUpdates`](https://github.com/Lightning-Flow-Scanner/lightning-flow-scanner-core/tree/master/src/main/rules/SameRecordFieldUpdates.ts)) | Much like triggers, before contexts can update the same record by accessing the trigger variables `$Record` without needing to invoke a DML. |
| **Trigger Order** ([`TriggerOrder`](https://github.com/Lightning-Flow-Scanner/lightning-flow-scanner-core/tree/master/src/main/rules/TriggerOrder.ts)) | Guarantee your flow execution order with the Trigger Order property introduced in Spring '22 |

@@ -36,0 +37,0 @@ ## Core Functions

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