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.2.1 to 4.2.2

6

common.js

@@ -37,9 +37,7 @@ exports.alphasort = alphasort

function alphasorti (a, b) {
a = a.toLowerCase()
b = b.toLowerCase()
return alphasort(a, b)
return a.toLowerCase().localeCompare(b.toLowerCase())
}
function alphasort (a, b) {
return a > b ? 1 : a < b ? -1 : 0
return a.localeCompare(b)
}

@@ -46,0 +44,0 @@

@@ -53,3 +53,2 @@ // Approach:

var alphasort = common.alphasort
var alphasorti = common.alphasorti
var isAbsolute = common.isAbsolute

@@ -454,3 +453,3 @@ var setopts = common.setopts

else
self._readdirEntries(abs, entries, cb)
self._readdirEntries(abs, entries.sort(alphasort), cb)
}

@@ -457,0 +456,0 @@ }

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

"description": "a little globber",
"version": "4.2.1",
"version": "4.2.2",
"repository": {

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

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

var alphasort = common.alphasort
var alphasorti = common.alphasorti
var isAbsolute = common.isAbsolute

@@ -240,3 +239,3 @@ var setopts = common.setopts

try {
return this._readdirEntries(abs, fs.readdirSync(abs))
return this._readdirEntries(abs, fs.readdirSync(abs).sort(alphasort))
} catch (er) {

@@ -243,0 +242,0 @@ this._readdirError(abs, er)

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