New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

lightning-flow-scanner-core

Package Overview
Dependencies
Maintainers
1
Versions
212
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.50 to 1.0.51

tests/duplicateDMLOperationsByNavigation_Survey.test.ts

3

out/main/rules/DMLStatementInLoop.js

@@ -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');

4

out/main/rules/DuplicateDMLOperationsByNavigation.js

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

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