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

path-filters

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

path-filters - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

6

index.js

@@ -105,5 +105,6 @@ var fs = require('fs');

for (var i = 0, len = this._filters.length; i < len; i++) {
var result = this._filters[i].test(path);
var filter = this._filters[i];
var result = filter.test(path);
if (result !== false) {
matches.push(result);
matches.push(filter);
}

@@ -140,3 +141,2 @@ }

if (isSimpleRegExp(filter)) {
console.log('regex filter ' + filter);
return new RegExpFilter(createSimpleRegExp(filter), matchResult);

@@ -143,0 +143,0 @@ } else {

{
"name": "path-filters",
"description": "Manages a collection of path-based filters",
"version": "1.0.2",
"version": "1.0.3",
"homepage": "https://github.com/philidem/node-path-filters",

@@ -6,0 +6,0 @@ "authors": [

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