Socket
Socket
Sign inDemoInstall

requireindex

Package Overview
Dependencies
0
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.5 to 0.1.6

15

index.js

@@ -10,4 +10,17 @@ (function() {

var files = fs.readdirSync(dir);
files.sort(function(a,b) { return a.toLowerCase() - b.toLowerCase() });
// sort files in lowercase alpha for linux
files.sort(function(a,b) {
a = a.toLowerCase();
b = b.toLowerCase();
if (a < b) {
return -1;
} else if (b < a) {
return 1;
} else {
return 0;
}
});
files.forEach(function(filename) {

@@ -14,0 +27,0 @@

2

package.json

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

"version": "0.1.5",
"version": "0.1.6",

@@ -9,0 +9,0 @@ "license" : "MIT",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc