resolve
Advanced tools
Comparing version 1.1.6 to 1.1.7
@@ -8,2 +8,7 @@ var path = require('path'); | ||
; | ||
// ensure that `start` is an absolute path at this point, | ||
// resolving against the process' current working directory | ||
start = path.resolve(start); | ||
var prefix = '/'; | ||
@@ -15,8 +20,5 @@ if (/^([A-Za-z]:)/.test(start)) { | ||
} | ||
var splitRe = process.platform === 'win32' ? /[\/\\]/ : /\/+/; | ||
// ensure that `start` is an absolute path at this point, | ||
// resolving againt the process' current working directory | ||
start = path.resolve(start); | ||
var parts = start.split(splitRe); | ||
@@ -23,0 +25,0 @@ |
{ | ||
"name": "resolve", | ||
"description": "resolve like require.resolve() on behalf of files asynchronously and synchronously", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
43486