Comparing version 1.15.1 to 1.16.0
@@ -8,2 +8,4 @@ var fs = require('fs'); | ||
var realpath = typeof fs.realpath.native === 'function' ? fs.realpath.native : fs.realpath; | ||
var defaultIsFile = function isFile(file, cb) { | ||
@@ -31,3 +33,3 @@ fs.stat(file, function (err, stat) { | ||
if (opts && opts.preserveSymlinks === false) { | ||
fs.realpath(x, function (realPathErr, realPath) { | ||
realpath(x, function (realPathErr, realPath) { | ||
if (realPathErr && realPathErr.code !== 'ENOENT') cb(realPathErr); | ||
@@ -34,0 +36,0 @@ else cb(null, realPathErr ? x : realPath); |
@@ -19,3 +19,3 @@ { | ||
"fs": true, | ||
"fs/promises": ">= 10 && < 10.1", | ||
"fs/promises": [">= 10 && < 10.1", ">= 14"], | ||
"_http_agent": ">= 0.11.1", | ||
@@ -22,0 +22,0 @@ "_http_client": ">= 0.11.1", |
@@ -8,2 +8,4 @@ var isCore = require('./is-core'); | ||
var realpath = typeof fs.realpathSync.native === 'function' ? fs.realpathSync.native : fs.realpathSync; | ||
var defaultIsFile = function isFile(file) { | ||
@@ -32,3 +34,3 @@ try { | ||
try { | ||
return fs.realpathSync(x); | ||
return realpath(x); | ||
} catch (realPathErr) { | ||
@@ -35,0 +37,0 @@ if (realPathErr.code !== 'ENOENT') { |
{ | ||
"name": "resolve", | ||
"description": "resolve like require.resolve() on behalf of files asynchronously and synchronously", | ||
"version": "1.15.1", | ||
"version": "1.16.0", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
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
99500
2262