feature(package) find-up v6.1.0

This commit is contained in:
coderaiser 2021-09-30 17:07:03 +03:00
parent eab9df4490
commit 057ec42b25
2 changed files with 2 additions and 2 deletions

View file

@ -100,7 +100,7 @@
"execon": "^1.2.0",
"express": "^4.13.0",
"files-io": "^4.0.0",
"find-up": "^5.0.0",
"find-up": "^6.1.0",
"for-each-key": "^2.0.0",
"format-io": "^2.0.0",
"fullstore": "^3.0.0",

View file

@ -8,7 +8,6 @@ const {join} = require('path');
const montag = require('montag');
const tryToCatch = require('try-to-catch');
const currify = require('currify');
const findUp = require('find-up');
const threadIt = require('thread-it');
const {codeframe} = require('putout');
const putout = threadIt(require.resolve('putout'));
@ -44,6 +43,7 @@ async function onGET({req, res, menuName}) {
if (url === '/default')
return sendDefaultMenu(res);
const {findUp} = await import('find-up');
const [errorFind, currentMenuPath] = await tryToCatch(findUp, [
menuName,
], {cwd: dir});