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

path-filters

Package Overview
Dependencies
Maintainers
3
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.6 to 1.1.0

2

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

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

var fs = require('fs');
var simpleRegExpReplacements = {
'*': '.*?',
'*': '[^/]*?',
'**': '.*?',
'?': '.?'

@@ -73,3 +74,3 @@ };

function createSimpleRegExp(str) {
return new RegExp('^' + str.replace(/[\*\?]|[^\*\?]*/g, function(match) {
return new RegExp('^' + str.replace(/\*+|\?|[^\*\?]*/g, function(match) {
return simpleRegExpReplacements[match] || escapeRegExpStr(match);

@@ -76,0 +77,0 @@ }) + '$');

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