lightning-flow-scanner-core
Advanced tools
Comparing version 3.3.0 to 3.4.0
@@ -30,5 +30,6 @@ "use strict"; | ||
function FixFlows(flow, ruleResults) { | ||
var _a, _b, _c, _d; | ||
const unusedVariableReferences = (_b = (_a = ruleResults.find((r) => r.ruleName === 'UnusedVariable').details) === null || _a === void 0 ? void 0 : _a.map((d) => d.name)) !== null && _b !== void 0 ? _b : []; | ||
const unconnectedElementsReferences = (_d = (_c = ruleResults.find((r) => r.ruleName === 'UnconnectedElement').details) === null || _c === void 0 ? void 0 : _c.map((d) => d.name)) !== null && _d !== void 0 ? _d : []; | ||
const unusedVariableRes = ruleResults.find((r) => r.ruleName === 'UnusedVariable'); | ||
const unusedVariableReferences = (unusedVariableRes.details && unusedVariableRes.details.length > 0) ? unusedVariableRes.details.map((d) => d.name) : []; | ||
const unconnectedElementsRes = ruleResults.find((r) => r.ruleName === 'UnconnectedElement'); | ||
const unconnectedElementsReferences = (unconnectedElementsRes.details && unconnectedElementsRes.details.length > 0) ? unconnectedElementsRes.details.map((d) => d.name) : []; | ||
const nodesToBuild = flow.elements.filter(node => { | ||
@@ -35,0 +36,0 @@ switch (node.metaType) { |
{ | ||
"name": "lightning-flow-scanner-core", | ||
"version": "3.3.0", | ||
"version": "3.4.0", | ||
"main": "out/**", | ||
@@ -5,0 +5,0 @@ "types": "index.d.ts", |
@@ -6,4 +6,6 @@ import { BuildFlow } from './BuildFlow'; | ||
const unusedVariableReferences = ruleResults.find((r) => r.ruleName === 'UnusedVariable').details?.map((d) => d.name) ?? []; | ||
const unconnectedElementsReferences = ruleResults.find((r) => r.ruleName === 'UnconnectedElement').details?.map((d) => d.name) ?? []; | ||
const unusedVariableRes = ruleResults.find((r) => r.ruleName === 'UnusedVariable'); | ||
const unusedVariableReferences = (unusedVariableRes.details && unusedVariableRes.details.length > 0) ? unusedVariableRes.details.map((d) => d.name) : []; | ||
const unconnectedElementsRes = ruleResults.find((r) => r.ruleName === 'UnconnectedElement'); | ||
const unconnectedElementsReferences = (unconnectedElementsRes.details && unconnectedElementsRes.details.length > 0) ? unconnectedElementsRes.details.map((d) => d.name) : []; | ||
const nodesToBuild = flow.elements.filter(node => { | ||
@@ -10,0 +12,0 @@ switch (node.metaType) { |
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
1036067
34296