Comparing version 0.7.0 to 0.7.1
@@ -15,2 +15,7 @@ var path = require('path'); | ||
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); | ||
@@ -17,0 +22,0 @@ |
{ | ||
"name" : "resolve", | ||
"description" : "resolve like require.resolve() on behalf of files asynchronously and synchronously", | ||
"version" : "0.7.0", | ||
"version" : "0.7.1", | ||
"repository" : { | ||
@@ -6,0 +6,0 @@ "type" : "git", |
@@ -0,1 +1,2 @@ | ||
var path = require('path'); | ||
var test = require('tap').test; | ||
@@ -36,2 +37,13 @@ var resolve = require('../'); | ||
}); | ||
// ensure that relative paths still resolve against the | ||
// regular `node_modules` correctly | ||
resolve('tap', { | ||
paths: [ | ||
'node_path', | ||
], | ||
basedir: 'node_path/x', | ||
}, function (err, res) { | ||
t.equal(res, path.resolve(__dirname, '..', 'node_modules/tap/lib/main.js')); | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37653
990