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

flowx

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flowx - npm Package Compare versions

Comparing version 5.0.2 to 5.0.3

11

lib/matchers.js
'use strict'
const _ = require('lodash')
const matchRule = (rule, action, separator) => {

@@ -49,6 +47,7 @@ const ruleArray = rule.split(separator || '.')

const matchList = (rule, actionsList) => {
const action = _.find(actionsList, {value: rule.when})
if (action) {
return ((rule.type === undefined && action.type === undefined) || action.type === rule.type) &&
((rule.confidence === undefined && action.confidence === undefined) || action.confidence > rule.confidence)
for (var i = 0; i < actionsList.length; i++) {
if (matchOne(rule.when, actionsList[i].value)) {
return ((rule.type === undefined && actionsList[i].type === undefined) || actionsList[i].type === rule.type) &&
((rule.confidence === undefined && actionsList[i].confidence === undefined) || actionsList[i].confidence > rule.confidence)
}
}

@@ -55,0 +54,0 @@ return false

{
"name": "flowx",
"version": "5.0.2",
"version": "5.0.3",
"description": "",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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