New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

config-node

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

config-node - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

5

index.js

@@ -25,3 +25,2 @@ var path = require('path'),

function extension(dir, env) {
var prefix = env + '.';
var file = fs.readdirSync(dir).sort().filter(function(filename) {

@@ -31,3 +30,3 @@ // Directory

// File
filename.indexOf(prefix) === 0;
filename.split('.').slice(0, -1).join('.') === env;
})[0];

@@ -38,3 +37,3 @@

}
return file.slice(prefix.length);
return file.slice(env.length+1);
}

@@ -41,0 +40,0 @@

2

package.json
{
"name": "config-node",
"author": "Ariel Flesler <aflesler@gmail.com>",
"version": "1.2.1",
"version": "1.2.2",
"description": "Flexible lightweight configuration loader for Node",

@@ -6,0 +6,0 @@ "keywords": [

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