Comparing version 0.1.3 to 0.1.4
@@ -8,2 +8,3 @@ /** | ||
var path = require('path'); | ||
var cloneDeep = require('lodash.clonedeep'); | ||
var fs = require('fs'); | ||
@@ -66,3 +67,3 @@ | ||
if (configMap[rcPath] === void 0) { | ||
// we need to populate the | ||
// we need to populate the cache | ||
if (loader.length === 2) { | ||
@@ -83,3 +84,4 @@ if (sync) { | ||
} | ||
rcConfig = configMap[rcPath]; | ||
// clone the cached copy so that people can't fuck with them | ||
rcConfig = cloneDeep(configMap[rcPath]); | ||
} | ||
@@ -91,3 +93,4 @@ | ||
return sync ? rcConfig : cb(void 0, rcConfig); | ||
if (sync) return rcConfig; | ||
cb(void 0, rcConfig); | ||
} | ||
@@ -94,0 +97,0 @@ |
{ | ||
"name": "rcfinder", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Find a config file (like .jshintrc) by walking up from a specific directory.", | ||
@@ -26,3 +26,5 @@ "main": "index.js", | ||
}, | ||
"dependencies": {}, | ||
"dependencies": { | ||
"lodash.clonedeep": "~2.4.1" | ||
}, | ||
"repository": { | ||
@@ -29,0 +31,0 @@ "type": "git", |
@@ -5,2 +5,4 @@ # rcfinder | ||
**This module provides the file lookup logic for the generally more useful [rcloader](https://www.npmjs.org/package/rcloader) package**. | ||
Find a config file (like .jshintrc) by walking up from a specific directory. | ||
@@ -7,0 +9,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9948
233
53
1
+ Addedlodash.clonedeep@~2.4.1
+ Addedlodash._arraypool@2.4.1(transitive)
+ Addedlodash._basebind@2.4.1(transitive)
+ Addedlodash._baseclone@2.4.1(transitive)
+ Addedlodash._basecreate@2.4.1(transitive)
+ Addedlodash._basecreatecallback@2.4.1(transitive)
+ Addedlodash._basecreatewrapper@2.4.1(transitive)
+ Addedlodash._createwrapper@2.4.1(transitive)
+ Addedlodash._getarray@2.4.1(transitive)
+ Addedlodash._isnative@2.4.1(transitive)
+ Addedlodash._maxpoolsize@2.4.1(transitive)
+ Addedlodash._objecttypes@2.4.1(transitive)
+ Addedlodash._releasearray@2.4.1(transitive)
+ Addedlodash._setbinddata@2.4.1(transitive)
+ Addedlodash._shimkeys@2.4.1(transitive)
+ Addedlodash._slice@2.4.1(transitive)
+ Addedlodash.assign@2.4.1(transitive)
+ Addedlodash.bind@2.4.1(transitive)
+ Addedlodash.clonedeep@2.4.1(transitive)
+ Addedlodash.foreach@2.4.1(transitive)
+ Addedlodash.forown@2.4.1(transitive)
+ Addedlodash.identity@2.4.1(transitive)
+ Addedlodash.isarray@2.4.1(transitive)
+ Addedlodash.isfunction@2.4.1(transitive)
+ Addedlodash.isobject@2.4.1(transitive)
+ Addedlodash.keys@2.4.1(transitive)
+ Addedlodash.noop@2.4.1(transitive)
+ Addedlodash.support@2.4.1(transitive)