保誠-保戶業務員媒合平台
HelenHuang
2022-06-09 23b60dc1975db38c280d8a123aff97544d1673e0
PAMapp/node_modules/jest-resolve/build/fileWalkers.js
@@ -4,10 +4,10 @@
  value: true
});
exports.clearFsCache = clearFsCache;
exports.readPackageCached = readPackageCached;
exports.findClosestPackageJson = findClosestPackageJson;
exports.isFile = isFile;
exports.isDirectory = isDirectory;
exports.isFile = isFile;
exports.readPackageCached = readPackageCached;
exports.realpathSync = realpathSync;
function _path() {
@@ -114,7 +114,10 @@
  let stat;
  try {
    stat = fs().statSync(path);
    // @ts-expect-error TS2554 - throwIfNoEntry is only available in recent version of node, but inclusion of the option is a backward compatible no-op.
    stat = fs().statSync(path, {
      throwIfNoEntry: false
    });
  } catch (e) {
    if (!(e && (e.code === 'ENOENT' || e.code === 'ENOTDIR'))) {
      throw e;