Socket
Socket
Sign inDemoInstall

glob

Package Overview
Dependencies
Maintainers
1
Versions
155
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

glob - npm Package Compare versions

Comparing version 7.0.6 to 7.1.0

1

common.js

@@ -83,2 +83,3 @@ exports.alphasort = alphasort

self.noprocess = !!options.noprocess
self.absolute = !!options.absolute

@@ -85,0 +86,0 @@ self.maxLength = options.maxLength || Infinity

15

glob.js

@@ -460,5 +460,2 @@ // Approach:

if (this.matches[index][e])
return
if (isIgnored(this, e))

@@ -474,2 +471,11 @@ return

if (this.mark)
e = this._mark(e)
if (this.absolute)
e = abs
if (this.matches[index][e])
return
if (this.nodir) {

@@ -481,5 +487,2 @@ var c = this.cache[abs]

if (this.mark)
e = this._mark(e)
this.matches[index][e] = true

@@ -486,0 +489,0 @@

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

"description": "a little globber",
"version": "7.0.6",
"version": "7.1.0",
"repository": {

@@ -31,3 +31,3 @@ "type": "git",

"rimraf": "^2.2.8",
"tap": "^5.7.0",
"tap": "^7.1.2",
"tick": "0.0.6"

@@ -34,0 +34,0 @@ },

@@ -276,2 +276,5 @@ # Glob

broken symlink)
* `absolute` Set to true to always receive absolute paths for matched
files. Unlike `realpath`, this also affects the values returned in
the `match` event.

@@ -278,0 +281,0 @@ ## Comparisons to other fnmatch/glob implementations

@@ -19,2 +19,3 @@ module.exports = globSync

var childrenIgnored = common.childrenIgnored
var isIgnored = common.isIgnored

@@ -191,3 +192,3 @@ function globSync (pattern, options) {

}
this.matches[index][e] = true
this._emitMatch(index, e)
}

@@ -214,6 +215,14 @@ // This was the last one, and no stats were needed

GlobSync.prototype._emitMatch = function (index, e) {
if (isIgnored(this, e))
return
var abs = this._makeAbs(e)
if (this.mark)
e = this._mark(e)
if (this.absolute) {
e = abs
}
if (this.matches[index][e])

@@ -223,3 +232,3 @@ return

if (this.nodir) {
var c = this.cache[this._makeAbs(e)]
var c = this.cache[abs]
if (c === 'DIR' || Array.isArray(c))

@@ -230,2 +239,3 @@ return

this.matches[index][e] = true
if (this.stat)

@@ -407,3 +417,3 @@ this._stat(e)

// Mark this as a match
this.matches[index][prefix] = true
this._emitMatch(index, prefix)
}

@@ -410,0 +420,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