Comparing version 2.1.5 to 2.2.0
Changelog | ||
--------- | ||
### 2.2.0 | ||
- Add support for dot notation in __set__(env) calls [#39](https://github.com/jhnns/rewire/issues/39) | ||
### 2.1.5 | ||
- Fix issues with reverting nested properties | ||
- Fix issues with reverting nested properties [#39](https://github.com/jhnns/rewire/issues/39) | ||
@@ -7,0 +10,0 @@ ### 2.1.4 |
@@ -27,3 +27,3 @@ /** | ||
arguments.varValue = arguments.env[arguments.varName]; | ||
arguments.src += arguments.varName + " = arguments.env." + arguments.varName + "; "; | ||
arguments.src += arguments.varName + " = arguments.env[" + JSON.stringify(arguments.varName) + "]; "; | ||
arguments.revertArgs[0][arguments.varName] = eval(arguments.varName); | ||
@@ -30,0 +30,0 @@ } |
{ | ||
"name": "rewire", | ||
"version": "2.1.5", | ||
"version": "2.2.0", | ||
"description": "Easy dependency injection for node.js unit testing", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
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
23098