Comparing version 1.1.1 to 1.2.0
@@ -99,5 +99,6 @@ | ||
* Used to help find the root directory of a module. | ||
* Optionally accepts an filename argument to skip when searching for the invoking filename | ||
*/ | ||
exports.getFileName = function getFileName () { | ||
exports.getFileName = function getFileName (calling_file) { | ||
var origPST = Error.prepareStackTrace | ||
@@ -114,3 +115,9 @@ , origSTL = Error.stackTraceLimit | ||
if (fileName !== __filename) { | ||
return | ||
if (calling_file) { | ||
if (fileName !== calling_file) { | ||
return | ||
} | ||
} else { | ||
return | ||
} | ||
} | ||
@@ -117,0 +124,0 @@ } |
{ "name": "bindings" | ||
, "description": "Helper module for loading your native module's .node file" | ||
, "keywords": [ "native", "addon", "bindings", "gyp", "waf", "c", "c++" ] | ||
, "version": "1.1.1" | ||
, "version": "1.2.0" | ||
, "author": "Nathan Rajlich <nathan@tootallnate.net> (http://tootallnate.net)" | ||
@@ -6,0 +6,0 @@ , "repository": { "type": "git", "url": "git://github.com/TooTallNate/node-bindings.git" } |
8366
146