Comparing version 0.2.2 to 0.2.3
@@ -11,3 +11,3 @@ | ||
, exists = fs.existsSync || path.existsSync | ||
, arrow = process.platform == 'win32' ? '\u2192' : '\u21B3' | ||
, arrow = process.platform == 'win32' ? '-' : '\u21B3' | ||
, defaults = { | ||
@@ -139,3 +139,4 @@ compiled: 'compiled' | ||
// Got to the top | ||
throw new Error('Could not find module root given file: ' + file) | ||
throw new Error('Could not find module root given file: "' + file | ||
+ '". Do you have a `package.json` file? ') | ||
} | ||
@@ -155,11 +156,5 @@ // Try the parent dir next | ||
function parseVersion (str) { | ||
var regexp = /^(\d+)\.(\d+)/ | ||
str = String(str) | ||
if (str[0] === 'v') { | ||
str = str.substring(1) | ||
} | ||
var m = str.match(regexp) | ||
var m = String(str).match(/(\d+)\.(\d+)/) | ||
return m ? m[0] : null | ||
} | ||
exports.parseVersion = parseVersion |
{ "name": "bindings" | ||
, "description": "Helper module for loading your native module's bindings in a cross-platform way" | ||
, "keywords": [ "native", "addon", "bindings", "gyp" ] | ||
, "version": "0.2.2" | ||
, "version": "0.2.3" | ||
, "author": "Nathan Rajlich <nathan@tootallnate.net> (http://tootallnate.net)" | ||
@@ -6,0 +6,0 @@ , "repository": { "type": "git", "url": "git://github.com/TooTallNate/node-bindings.git" } |
8524
135