Comparing version 0.1.2 to 0.1.3
@@ -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 |
{ | ||
"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
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
61624
349
224