Socket
Socket
Sign inDemoInstall

minimatch

Package Overview
Dependencies
2
Maintainers
1
Versions
107
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.1.8 to 6.1.9

14

dist/cjs/index.js

@@ -281,2 +281,4 @@ "use strict";

else {
// do this swap BEFORE the reduce, so that we can turn a string
// of **/*/**/* into */*/**/** and then reduce the **'s into one
for (const parts of rawGlobParts) {

@@ -296,5 +298,13 @@ let swapped;

this.globParts = rawGlobParts.map(parts => parts.reduce((set, part) => {
if (part !== '**' || set[set.length - 1] !== '**') {
set.push(part);
const prev = set[set.length - 1];
if (part === '**' && prev === '**') {
return set;
}
if (part === '..') {
if (prev && prev !== '..' && prev !== '.' && prev !== '**') {
set.pop();
return set;
}
}
set.push(part);
return set;

@@ -301,0 +311,0 @@ }, []));

@@ -269,2 +269,4 @@ export const minimatch = (p, pattern, options = {}) => {

else {
// do this swap BEFORE the reduce, so that we can turn a string
// of **/*/**/* into */*/**/** and then reduce the **'s into one
for (const parts of rawGlobParts) {

@@ -284,5 +286,13 @@ let swapped;

this.globParts = rawGlobParts.map(parts => parts.reduce((set, part) => {
if (part !== '**' || set[set.length - 1] !== '**') {
set.push(part);
const prev = set[set.length - 1];
if (part === '**' && prev === '**') {
return set;
}
if (part === '..') {
if (prev && prev !== '..' && prev !== '.' && prev !== '**') {
set.pop();
return set;
}
}
set.push(part);
return set;

@@ -289,0 +299,0 @@ }, []));

2

package.json

@@ -5,3 +5,3 @@ {

"description": "a glob matcher in javascript",
"version": "6.1.8",
"version": "6.1.9",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc