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 5.0.0 to 5.0.1

lib/path.js

4

minimatch.js

@@ -14,5 +14,3 @@ const minimatch = module.exports = (p, pattern, options = {}) => {

const path = (() => { try { return require('path') } catch (e) {}})() || {
sep: '/'
}
const path = require('./lib/path.js')
minimatch.sep = path.sep

@@ -19,0 +17,0 @@

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

"description": "a glob matcher in javascript",
"version": "5.0.0",
"version": "5.0.1",
"repository": {

@@ -30,4 +30,5 @@ "type": "git",

"files": [
"minimatch.js"
"minimatch.js",
"lib"
]
}

@@ -239,1 +239,7 @@ # minimatch

checked for validity. Since those two are valid, matching proceeds.
Note that `fnmatch(3)` in libc is an extremely naive string comparison
matcher, which does not do anything special for slashes. This library is
designed to be used in glob searching and file walkers, and so it does do
special things with `/`. Thus, `foo*` will not match `foo/bar` in this
library, even though it would in `fnmatch(3)`.
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