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.1.10 to 6.2.0

1

dist/cjs/index.d.ts

@@ -14,2 +14,3 @@ export interface MinimatchOptions {

nocase?: boolean;
nocaseMagicOnly?: boolean;
matchBase?: boolean;

@@ -16,0 +17,0 @@ flipNegate?: boolean;

2

dist/cjs/index.js

@@ -902,3 +902,3 @@ "use strict";

// if it's nocase, and the lcase/uppercase don't match, it's magic
if (options.nocase && !hasMagic) {
if (options.nocase && !hasMagic && !options.nocaseMagicOnly) {
hasMagic = pattern.toUpperCase() !== pattern.toLowerCase();

@@ -905,0 +905,0 @@ }

@@ -14,2 +14,3 @@ export interface MinimatchOptions {

nocase?: boolean;
nocaseMagicOnly?: boolean;
matchBase?: boolean;

@@ -16,0 +17,0 @@ flipNegate?: boolean;

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

// if it's nocase, and the lcase/uppercase don't match, it's magic
if (options.nocase && !hasMagic) {
if (options.nocase && !hasMagic && !options.nocaseMagicOnly) {
hasMagic = pattern.toUpperCase() !== pattern.toLowerCase();

@@ -893,0 +893,0 @@ }

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

"description": "a glob matcher in javascript",
"version": "6.1.10",
"version": "6.2.0",
"repository": {

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

@@ -190,2 +190,12 @@ # minimatch

### nocaseMagicOnly
When used with `{nocase: true}`, create regular expressions that
are case-insensitive, but leave string match portions untouched.
Has no effect when used without `{nocase: true}`
Useful when some other form of case-insensitive matching is used,
or if the original string representation is useful in some other
way.
### nonull

@@ -192,0 +202,0 @@

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