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.2.0 to 8.0.1

2

common.js

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

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

@@ -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,3 @@ {

"description": "a little globber",
"version": "7.2.0",
"version": "8.0.1",
"repository": {

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

"engines": {
"node": "*"
"node": ">=12"
},

@@ -25,3 +25,3 @@ "dependencies": {

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

@@ -34,3 +34,3 @@ "path-is-absolute": "^1.0.0"

"rimraf": "^2.2.8",
"tap": "^15.0.6",
"tap": "^16.0.1",
"tick": "0.0.6"

@@ -41,2 +41,6 @@ },

"after": "test/zz-cleanup.js",
"statements": 90,
"branches": 90,
"functions": 90,
"lines": 90,
"jobs": 1

@@ -43,0 +47,0 @@ },

@@ -112,3 +112,6 @@ module.exports = globSync

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))

@@ -115,0 +118,0 @@ prefix = '/' + prefix

Sorry, the diff of this file is not supported yet

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