From 23b60dc1975db38c280d8a123aff97544d1673e0 Mon Sep 17 00:00:00 2001 From: HelenHuang <LinHuang@pollex.com.tw> Date: 星期四, 09 六月 2022 15:34:21 +0800 Subject: [PATCH] TODO#139890 FAQ 常見問題 1-文案調整 --- PAMapp/node_modules/jest-resolve/build/fileWalkers.js | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/PAMapp/node_modules/jest-resolve/build/fileWalkers.js b/PAMapp/node_modules/jest-resolve/build/fileWalkers.js index 1199069..d621fcf 100644 --- a/PAMapp/node_modules/jest-resolve/build/fileWalkers.js +++ b/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; -- Gitblit v1.8.0