Comparing version 2.1.0 to 2.1.1
@@ -77,6 +77,7 @@ "use strict"; | ||
delete require.cache[file]; | ||
exists = Object.prototype.hasOwnProperty.call(data, options.packageKey); | ||
_this.packageJsonCache.set(file, data); | ||
exists = Object.prototype.hasOwnProperty.call(data, options.packageKey); | ||
if (exists) { | ||
_this.packageJsonCache.set(file, data[options.packageKey]); | ||
} | ||
} else { | ||
@@ -113,4 +114,7 @@ _this.packageJsonCache.delete(file); | ||
delete require.cache[file]; | ||
this.packageJsonCache.set(file, data); | ||
exists = Object.prototype.hasOwnProperty.call(data, options.packageKey); | ||
if (exists) { | ||
this.packageJsonCache.set(file, data[options.packageKey]); | ||
} | ||
} else { | ||
@@ -117,0 +121,0 @@ this.packageJsonCache.delete(file); |
{ | ||
"name": "joycon", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Load config with ease.", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
14701
282