autorequire
Advanced tools
Comparing version
@@ -65,3 +65,3 @@ (function() { | ||
Default.prototype.stripFileExtension = function(fileName) { | ||
return /(.+?)(\.[^.]*$|$)/(fileName)[1]; | ||
return fileName.match(/(.+?)(\.[^.]*$|$)/)[1]; | ||
}; | ||
@@ -68,0 +68,0 @@ Default.prototype.camelCaps = function(pathComponent) { |
@@ -27,3 +27,3 @@ (function() { | ||
stackLines = new Error().stack.split("\n"); | ||
match = this.STACK_PATH_EXTRACTOR(stackLines[offset + 2]); | ||
match = stackLines[offset + 2].match(this.STACK_PATH_EXTRACTOR); | ||
return (match && path.dirname(match[1])) || process.cwd(); | ||
@@ -30,0 +30,0 @@ } |
{ | ||
"name": "autorequire", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "Automatically requires source for a module/project, provided you follow a convention.", | ||
@@ -25,3 +25,3 @@ "keywords": ["require", "autorequire", "autoload", "modules", "load", "loader"], | ||
"engines": { | ||
"node": "v0.4.0 - v0.4.12" | ||
"node": "v0.4.0 - v0.4.12 || v0.5.0 - v0.5.10" | ||
}, | ||
@@ -28,0 +28,0 @@ "dependencies": {}, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
153942
0.03%