config-file
Advanced tools
+1
-1
| { | ||
| "name": "config-file", | ||
| "version": "0.1.3", | ||
| "version": "0.1.4", | ||
| "main": [ | ||
@@ -5,0 +5,0 @@ "index.js" |
+5
-3
@@ -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; | ||
| } | ||
| }; |
+1
-1
| { | ||
| "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": { |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
8183
1.31%147
1.38%