Socket
Socket
Sign inDemoInstall

glob

Package Overview
Dependencies
6
Maintainers
1
Versions
152
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.2.0 to 7.2.3

2

common.js

@@ -113,2 +113,4 @@ exports.setopts = setopts

options.nocomment = true
// always treat \ in patterns as escapes, not path separators
options.allowWindowsEscape = false

@@ -115,0 +117,0 @@ self.minimatch = new Minimatch(pattern, options)

5

glob.js

@@ -345,3 +345,6 @@ // Approach:

read = '.'
else if (isAbsolute(prefix) || isAbsolute(pattern.join('/'))) {
else if (isAbsolute(prefix) ||
isAbsolute(pattern.map(function (p) {
return typeof p === 'string' ? p : '[*]'
}).join('/'))) {
if (!prefix || !isAbsolute(prefix))

@@ -348,0 +351,0 @@ prefix = '/' + prefix

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

"description": "a little globber",
"version": "7.2.0",
"version": "7.2.3",
"publishConfig": {
"tag": "v7-legacy"
},
"repository": {

@@ -24,3 +27,3 @@ "type": "git",

"inherits": "2",
"minimatch": "^3.0.4",
"minimatch": "^3.1.1",
"once": "^1.3.0",

@@ -27,0 +30,0 @@ "path-is-absolute": "^1.0.0"

@@ -51,3 +51,3 @@ module.exports = globSync

GlobSync.prototype._finish = function () {
assert(this instanceof GlobSync)
assert.ok(this instanceof GlobSync)
if (this.realpath) {

@@ -76,3 +76,3 @@ var self = this

GlobSync.prototype._process = function (pattern, index, inGlobStar) {
assert(this instanceof GlobSync)
assert.ok(this instanceof GlobSync)

@@ -114,3 +114,6 @@ // Get the first [n] parts of pattern that are all strings.

read = '.'
else if (isAbsolute(prefix) || isAbsolute(pattern.join('/'))) {
else if (isAbsolute(prefix) ||
isAbsolute(pattern.map(function (p) {
return typeof p === 'string' ? p : '[*]'
}).join('/'))) {
if (!prefix || !isAbsolute(prefix))

@@ -117,0 +120,0 @@ prefix = '/' + prefix

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc