From 394bf46ecad30d7e2f7890fdc6276f72a15748cc Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 5 Jan 2021 17:51:26 +0200 Subject: [PATCH] fix(cloudcmd) validateRoot: import -> simport: forEachKey is not a function (#311) --- bin/cloudcmd.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/cloudcmd.mjs b/bin/cloudcmd.mjs index a84113ee..ad89eb22 100755 --- a/bin/cloudcmd.mjs +++ b/bin/cloudcmd.mjs @@ -217,7 +217,7 @@ async function main() { config.write(); await tryToCatch(checkUpdate); - await importConfig(config); + await simportConfig(config); } async function validateRoot(root, config) { @@ -270,7 +270,7 @@ async function readConfig(name) { return; const tryToCatch = await simport('try-to-catch'); - const forEachKey = await import('for-each-key'); + const forEachKey = await simport('for-each-key'); const [error, data] = await tryToCatch(simport, name);