Socket
Socket
Sign inDemoInstall

minimatch

Package Overview
Dependencies
Maintainers
1
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minimatch - npm Package Compare versions

Comparing version 6.0.3 to 6.0.4

4

dist/cjs/index.d.ts

@@ -54,4 +54,4 @@ export interface MinimatchOptions {

partial: boolean;
globSet?: string[];
globParts?: string[][];
globSet: string[];
globParts: string[][];
regexp: false | null | MMRegExp;

@@ -58,0 +58,0 @@ constructor(pattern: string, options?: MinimatchOptions);

@@ -170,3 +170,2 @@ "use strict";

this.options = options;
this.set = [];
this.pattern = pattern;

@@ -184,2 +183,5 @@ this.windowsPathsNoEscape =

this.partial = !!options.partial;
this.globSet = [];
this.globParts = [];
this.set = [];
// make the set of regexps etc.

@@ -204,7 +206,7 @@ this.make();

// step 2: expand braces
const globSet = (this.globSet = this.braceExpand());
this.globSet = this.braceExpand();
if (options.debug) {
this.debug = (...args) => console.error(...args);
}
this.debug(this.pattern, globSet);
this.debug(this.pattern, this.globSet);
// step 3: now we have a set, so turn each one into a series of path-portion

@@ -215,3 +217,3 @@ // matching patterns.

// and will not contain any / characters
const rawGlobParts = globSet.map(s => s.split(slashSplit));
const rawGlobParts = this.globSet.map(s => s.split(slashSplit));
// consecutive globstars are an unncessary perf killer

@@ -218,0 +220,0 @@ this.globParts = this.options.noglobstar

@@ -54,4 +54,4 @@ export interface MinimatchOptions {

partial: boolean;
globSet?: string[];
globParts?: string[][];
globSet: string[];
globParts: string[][];
regexp: false | null | MMRegExp;

@@ -58,0 +58,0 @@ constructor(pattern: string, options?: MinimatchOptions);

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

this.options = options;
this.set = [];
this.pattern = pattern;

@@ -172,2 +171,5 @@ this.windowsPathsNoEscape =

this.partial = !!options.partial;
this.globSet = [];
this.globParts = [];
this.set = [];
// make the set of regexps etc.

@@ -192,7 +194,7 @@ this.make();

// step 2: expand braces
const globSet = (this.globSet = this.braceExpand());
this.globSet = this.braceExpand();
if (options.debug) {
this.debug = (...args) => console.error(...args);
}
this.debug(this.pattern, globSet);
this.debug(this.pattern, this.globSet);
// step 3: now we have a set, so turn each one into a series of path-portion

@@ -203,3 +205,3 @@ // matching patterns.

// and will not contain any / characters
const rawGlobParts = globSet.map(s => s.split(slashSplit));
const rawGlobParts = this.globSet.map(s => s.split(slashSplit));
// consecutive globstars are an unncessary perf killer

@@ -206,0 +208,0 @@ this.globParts = this.options.noglobstar

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

"description": "a glob matcher in javascript",
"version": "6.0.3",
"version": "6.0.4",
"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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc