Socket
Book a DemoInstallSign in
Socket

path-resolver

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

path-resolver - npm Package Compare versions

Comparing version

to
0.0.2

test.coffee

6

lib/path-resolver.js

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.