Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rewire

Package Overview
Dependencies
Maintainers
1
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 0.1.2 to 0.1.3

7

lib/rewire.js

@@ -39,2 +39,9 @@ "use strict"; // run code in ES5 strict mode

filename = Module._resolveFilename(filename, parentModule); // resolve full filename relative to the parent module
// Special support for older node versions that returned an array on Module._resolveFilename
// @see https://github.com/joyent/node/blob/865b077819a9271a29f982faaef99dc635b57fbc/lib/module.js#L319
if (Array.isArray(filename)) {
filename = filename[1];
}
testModule = new Module(filename, parentModule);

@@ -41,0 +48,0 @@ nodeRequire = testModule.require; // caching original node require

4

package.json
{
"name" : "rewire",
"version" : "0.1.2",
"version" : "0.1.3",
"description" : "Dependency injection for node.js applications",

@@ -28,3 +28,3 @@ "keywords" : [

"engines" : {
"node" : ">=0.6.15"
"node" : "0.6.x"
},

@@ -31,0 +31,0 @@ "dependencies": {

@@ -16,6 +16,2 @@ rewire

##Important note:
rewire works currently only with node >=0.6.15. In doubt run `npm test`.
-----------------------------------------------------------------

@@ -29,2 +25,7 @@ <br />

### For older node versions
rewire is tested with node 0.6.x. I recommend to run the unit tests via `mocha` in the rewire-folder before
using rewire with older node versions.
-----------------------------------------------------------------

@@ -31,0 +32,0 @@ <br />

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