native-process-working-directory
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -19,3 +19,2 @@ "use strict"; | ||
} | ||
path = fs.realpathSync(path); | ||
return path; | ||
@@ -22,0 +21,0 @@ } |
@@ -18,3 +18,2 @@ import * as fs from 'fs' | ||
} | ||
path = fs.realpathSync(path) | ||
return path | ||
@@ -21,0 +20,0 @@ } |
{ | ||
"name": "native-process-working-directory", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "types": "index", |
var assert = require('assert'); | ||
var fs = require('fs'); | ||
var mod = require('.'); | ||
@@ -7,3 +8,3 @@ | ||
assert.equal( | ||
mod.getWorkingDirectoryFromPID(process.pid), | ||
fs.realpathSync(mod.getWorkingDirectoryFromPID(process.pid)), | ||
process.cwd(), | ||
@@ -13,3 +14,3 @@ ); | ||
assert.equal( | ||
mod.getWorkingDirectoryFromPID(process.pid), | ||
fs.realpathSync(mod.getWorkingDirectoryFromPID(process.pid)), | ||
process.cwd(), | ||
@@ -19,3 +20,3 @@ ); | ||
assert.equal( | ||
mod.getWorkingDirectoryFromPID(process.pid), | ||
fs.realpathSync(mod.getWorkingDirectoryFromPID(process.pid)), | ||
process.cwd(), | ||
@@ -22,0 +23,0 @@ ); |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
10592
84
2