Comparing version 2.0.2 to 3.0.0
@@ -0,1 +1,9 @@ | ||
3.0.0 / 2018-11-20 | ||
================== | ||
* Ensure config array items and objects are sealed @fgheorghe | ||
- This required a major version bump in case someone | ||
- relied on the ability to mutate non-sealed data. | ||
2.0.2 / 2018-08-28 | ||
@@ -2,0 +10,0 @@ ================== |
@@ -425,2 +425,5 @@ // config.js (c) 2010-2015 Loren West and other contributors | ||
} else if (Array.isArray(value)) { | ||
// Ensure object items of this array are also immutable. | ||
value.forEach((item, index) => { if (util.isObject(item) || Array.isArray(item)) util.makeImmutable(item) }) | ||
Object.defineProperty(object, propertyName, { | ||
@@ -436,2 +439,5 @@ value: Object.freeze(value) | ||
// Ensure new properties can not be added. | ||
Object.preventExtensions(object) | ||
// Call recursively if an object. | ||
@@ -438,0 +444,0 @@ if (util.isObject(value)) { |
{ | ||
"name": "config", | ||
"version": "2.0.2", | ||
"version": "3.0.0", | ||
"main": "./lib/config.js", | ||
@@ -5,0 +5,0 @@ "description": "Configuration control for production node deployments", |
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
80697
1497