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 7.0.1 to 7.0.3

11

common.js

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

self.cwdAbs = makeAbs(self, self.cwd)
self.nomount = !!options.nomount

@@ -157,3 +158,7 @@

all = all.filter(function (e) {
return !(/\/$/.test(e))
var notDir = !(/\/$/.test(e))
var c = self.cache[e] || self.cache[makeAbs(self, e)]
if (notDir && c)
notDir = c !== 'DIR' && !Array.isArray(c)
return notDir
})

@@ -206,2 +211,6 @@ }

}
if (process.platform === 'win32')
abs = abs.replace(/\\/g, '/')
return abs

@@ -208,0 +217,0 @@ }

9

glob.js

@@ -583,6 +583,7 @@ // Approach:

case 'ENOTDIR': // totally normal. means it *does* exist.
this.cache[this._makeAbs(f)] = 'FILE'
if (f === this.cwd) {
var error = new Error(er.code + ' invalid cwd ' + f)
error.path = f
var abs = this._makeAbs(f)
this.cache[abs] = 'FILE'
if (abs === this.cwdAbs) {
var error = new Error(er.code + ' invalid cwd ' + this.cwd)
error.path = this.cwd
error.code = er.code

@@ -589,0 +590,0 @@ this.emit('error', error)

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

"description": "a little globber",
"version": "7.0.1",
"version": "7.0.3",
"repository": {

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

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

@@ -33,0 +33,0 @@ },

@@ -308,6 +308,7 @@ module.exports = globSync

case 'ENOTDIR': // totally normal. means it *does* exist.
this.cache[this._makeAbs(f)] = 'FILE'
if (f === this.cwd) {
var error = new Error(er.code + ' invalid cwd ' + f)
error.path = f
var abs = this._makeAbs(f)
this.cache[abs] = 'FILE'
if (abs === this.cwdAbs) {
var error = new Error(er.code + ' invalid cwd ' + this.cwd)
error.path = this.cwd
error.code = er.code

@@ -314,0 +315,0 @@ throw error

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