realpath-missing
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -1,9 +0,6 @@ | ||
const fs = require('graceful-fs') | ||
const { promisify } = require('util') | ||
const fs = require('fs') | ||
const realpath = promisify(fs.realpath) | ||
module.exports = async function realpathMissing (path) { | ||
try { | ||
return await realpath(path) | ||
return await fs.promises.realpath(path) | ||
} catch (err) { | ||
@@ -10,0 +7,0 @@ if (err.code === 'ENOENT') { |
{ | ||
"name": "realpath-missing", | ||
"version": "1.0.0", | ||
"description": "Canonicalize by following every symlink in every component of the given name recursively, without requirements on components existence", | ||
"main": "index.js", | ||
"files": [ | ||
"index.js", | ||
"index.d.ts" | ||
], | ||
"scripts": { | ||
"test": "node test" | ||
}, | ||
"engines": { | ||
"node": ">=10" | ||
}, | ||
"repository": "https://github.com/zkochan/packages/tree/master/realpath-missing", | ||
"keywords": [], | ||
"author": { | ||
"name": "Zoltan Kochan", | ||
"url": "https://www.kochan.io" | ||
}, | ||
"license": "MIT", | ||
"homepage": "https://github.com/zkochan/packages/tree/master/realpath-missing#readme", | ||
"dependencies": { | ||
"graceful-fs": "4" | ||
}, | ||
"devDependencies": { | ||
"tape": "4.13.2" | ||
} | ||
"name": "realpath-missing", | ||
"version": "1.1.0", | ||
"description": "Canonicalize by following every symlink in every component of the given name recursively, without requirements on components existence", | ||
"main": "index.js", | ||
"files": [ | ||
"index.js", | ||
"index.d.ts" | ||
], | ||
"scripts": { | ||
"test": "node test" | ||
}, | ||
"engines": { | ||
"node": ">=10" | ||
}, | ||
"repository": "https://github.com/zkochan/packages/tree/master/realpath-missing", | ||
"keywords": [], | ||
"author": { | ||
"name": "Zoltan Kochan", | ||
"url": "https://www.kochan.io" | ||
}, | ||
"license": "MIT", | ||
"homepage": "https://github.com/zkochan/packages/tree/master/realpath-missing#readme", | ||
"devDependencies": { | ||
"tape": "^5.1.1" | ||
} | ||
} |
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
2881
0
6
13
2
- Removedgraceful-fs@4
- Removedgraceful-fs@4.2.11(transitive)