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.3 to 1.0.4

12

index.js

@@ -84,2 +84,10 @@ var fs = require('fs');

var allFilter = new FunctionFilter(function() {
return true;
});
allFilter.toString = function() {
return '*';
}
function PathFilters() {

@@ -140,3 +148,5 @@ this._filters = [];

if (typeof filter === 'string') {
if (isSimpleRegExp(filter)) {
if (filter === '*') {
return allFilter;
} else if (isSimpleRegExp(filter)) {
return new RegExpFilter(createSimpleRegExp(filter), matchResult);

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

2

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

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

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