Socket
Socket
Sign inDemoInstall

rewire

Package Overview
Dependencies
Maintainers
2
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rewire - npm Package Compare versions

Comparing version 2.1.5 to 2.2.0

5

CHANGELOG.md
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

2

lib/__set__.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc