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 1.3.1 to 1.3.2

2

package.json
{
"name": "flowx",
"version": "1.3.1",
"version": "1.3.2",
"description": "",

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

@@ -5,3 +5,3 @@ 'use strict'

externals.matchRule = (rule, test, separator) => {
module.exports.matchRule = (rule, test, separator) => {
const ruleArray = rule.split(separator || '.')

@@ -22,12 +22,12 @@ const testArray = test.split(separator || '.')

externals.matchRegExp = (rule, test) => {
module.exports.matchRegExp = (rule, test) => {
const ruleArray = rule.split('/')
const exp = {}
if (rule.ruleArray > 1)
exp = new RegExp(ruleArray[0], ruleArray[1])
else
exp = new RegExp(ruleArray[0])
let exp = {}
console.log(JSON.stringify(ruleArray))
if (ruleArray.length > 2) {
exp = new RegExp(ruleArray[1], ruleArray[2])
} else {
exp = new RegExp(ruleArray[1])
}
return exp.test(test)
}
module.exports = externals
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