You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

autorequire

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autorequire - npm Package Compare versions

Comparing version

to
0.2.4

2

lib/conventions/default.js

@@ -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