Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

config-file

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

config-file - npm Package Compare versions

Comparing version
0.1.3
to
0.1.4
+1
-1
bower.json
{
"name": "config-file",
"version": "0.1.3",
"version": "0.1.4",
"main": [

@@ -5,0 +5,0 @@ "index.js"

@@ -44,3 +44,2 @@ /**

var localConfig = file.findFile(local(filepath || pkg));
if(localConfig !== null) {

@@ -68,2 +67,4 @@ return localConfig;

var opts = _.extend({parse: 'json'}, options);
// If no filename is specified, config.find will
// automatically load 'package.json'
var configfile = config.find(filename, opts);

@@ -73,3 +74,3 @@ try {

} catch(e) {
console.warn('\n Unable to find: %s. config.load failed.\n', e.message);
console.warn('\n Unable to find config file. config.load failed.\n', e.message);
return null;

@@ -79,2 +80,3 @@ }

/**

@@ -103,5 +105,5 @@ * Searches for a config file in the

} catch (e) {
console.warn('\n Unable to find: %s. config.npmLoad failed.\n', e.message);
console.warn('\n Unable to find config file. config.npmLoad failed.\n', e.message);
return null;
}
};
{
"name": "config-file",
"version": "0.1.3",
"version": "0.1.4",
"description": "Find and load a YAML or JSON config file from a local project, installed npm module, or the user's home directory.",

@@ -5,0 +5,0 @@ "repository": {