resolvewithplus
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "resolvewithplus", | ||
"version": "0.1.1", | ||
"license" : "MIT", | ||
"version": "0.1.2", | ||
"license": "MIT", | ||
"main": "src/resolvewithplus", | ||
@@ -15,8 +15,8 @@ "readmeFilename": "README.md", | ||
"browserify", | ||
"browser", | ||
"commonjs", | ||
"browser", | ||
"commonjs", | ||
"resolve", | ||
"file" | ||
], | ||
"devDependencies" : { | ||
"devDependencies": { | ||
"jasmine": "2.5.3", | ||
@@ -26,5 +26,5 @@ "jasmine-spec-reporter": "3.2.0", | ||
}, | ||
"scripts" : { | ||
"scripts": { | ||
"test": "jasmine --verbose" | ||
} | ||
} |
@@ -187,4 +187,4 @@ // Filename: resolvewithplus.js | ||
return (function next (dirarr, x) { | ||
return !x-- ? null : (o.getasfileordir(path.join(dirarr[x], n), null, opts) || next(dirarr, x)); | ||
return (function next (dirarr, x, len = x - 1) { | ||
return !x-- ? null : (o.getasfileordir(path.join(dirarr[len - x], n), null, opts) || next(dirarr, x, len)); | ||
}(dirarr, dirarr.length)); | ||
@@ -191,0 +191,0 @@ }; |
14567