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 3.0.1 to 3.0.2

testLib/.babelrc

3

CHANGELOG.md
Changelog
---------
### 3.0.2
- Fix a bug where rewire used the project's .babelrc [#119](https://github.com/jhnns/rewire/issues/119) [#123](https://github.com/jhnns/rewire/pull/123)
### 3.0.1

@@ -5,0 +8,0 @@ - Fix Unknown Plugin "transform-es2015-block-scoping" [#121](https://github.com/jhnns/rewire/issues/121) [#122](https://github.com/jhnns/rewire/pull/122)

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ var rewireModule = require("./rewire.js");

3

lib/moduleEnv.js

@@ -81,3 +81,4 @@ "use strict";

retainLines: true,
filename: filename
filename: filename,
babelrc: false
}).code;

@@ -84,0 +85,0 @@ _compile.call(module, content, filename);

@@ -0,0 +0,0 @@ var Module = require("module"),

{
"name": "rewire",
"version": "3.0.1",
"version": "3.0.2",
"description": "Easy dependency injection for node.js unit testing",

@@ -5,0 +5,0 @@ "keywords": [

@@ -0,0 +0,0 @@ rewire

module.exports = true;

@@ -0,0 +0,0 @@ const someOtherModule = require("./someOtherModule");

@@ -0,0 +0,0 @@ implicitGlobal = "this is an implicit global var ..." +

@@ -0,0 +0,0 @@ "use strict"; // run code in ES5 strict mode

module.exports = null;

@@ -0,0 +0,0 @@ var obj = {};

@@ -0,0 +0,0 @@ // Don't run code in ES5 strict mode.

@@ -0,0 +0,0 @@ "use strict"; // run code in ES5 strict mode

@@ -0,0 +0,0 @@ // Using const here because we know that Babel will transform that part

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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