Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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 4.5.2 to 4.5.3

17

glob.js

@@ -182,8 +182,7 @@ // Approach:

if (n === 0)
return this.finish()
return this._finish()
var self = this
this.matches.forEach(function (matchset, index) {
self._realpathSet(index, next)
})
for (var i = 0; i < this.matches.length; i++)
this._realpathSet(i, next)

@@ -197,5 +196,10 @@ function next () {

Glob.prototype._realpathSet = function (index, cb) {
var found = Object.keys(this.matches[index])
var matchset = this.matches[index]
if (!matchset)
return cb()
var found = Object.keys(matchset)
var self = this
var n = found.length
if (n === 0)

@@ -209,2 +213,3 @@ return cb()

// resolved. just return the abs value in that case.
p = self._makeAbs(p)
fs.realpath(p, self.realpathCache, function (er, real) {

@@ -214,3 +219,3 @@ if (!er)

else if (er.syscall === 'stat')
set[self._makeAbs(p)] = true
set[p] = true
else

@@ -217,0 +222,0 @@ self.emit('error', er) // srsly wtf right here

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

"description": "a little globber",
"version": "4.5.2",
"version": "4.5.3",
"repository": {

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

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

try {
p = self._makeAbs(p)
var real = fs.realpathSync(p, this.realpathCache)

@@ -61,0 +62,0 @@ set[real] = true

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