path-resolver
Advanced tools
Comparing version
@@ -14,3 +14,3 @@ // Generated by CoffeeScript 1.6.3 | ||
path = p.normalize(path); | ||
return p.resolve(__dirname, path); | ||
return p.resolve(process.cwd(), path); | ||
}, | ||
@@ -22,3 +22,3 @@ sync: function(path) { | ||
path = p.normalize(path); | ||
path = p.resolve(__dirname, path); | ||
path = p.resolve(process.cwd(), path); | ||
if (fs.existsSync(path)) { | ||
@@ -35,3 +35,3 @@ return path; | ||
path = p.normalize(path); | ||
path = p.resolve(__dirname, path); | ||
path = p.resolve(process.cwd(), path); | ||
return fs.exists(path, function(exists) { | ||
@@ -38,0 +38,0 @@ if (exists) { |
{ | ||
"name": "path-resolver", | ||
"description": "returns a valid filesystem path.", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"homepage": "https://github.com/b3ngr33ni3r/path-resolver", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -7,2 +7,6 @@ path-resolver | ||
New stuff: | ||
+ v0.0.2 | ||
- resolves to `process.cwd()` if they aren't absolute paths | ||
## What? | ||
@@ -9,0 +13,0 @@ |
Sorry, the diff of this file is not supported yet
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
5088
7.52%8
33.33%44
12.82%50
8.7%2
100%