From e3d8a002459a745e344b0bcb0d18aeb61b219031 Mon Sep 17 00:00:00 2001 From: "Md. Sazzad Hossain Sharkar" Date: Fri, 16 Aug 2024 20:57:27 +0600 Subject: [PATCH] Build: August 16, 2024, 08:57:27 PM --- out/cli.cjs | 7 +++---- out/github-action.cjs | 5 ++--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/out/cli.cjs b/out/cli.cjs index 333de90..0d91784 100755 --- a/out/cli.cjs +++ b/out/cli.cjs @@ -44639,7 +44639,7 @@ function G3(t2, e3) { // package.json var package_default = { name: "gitwz", - version: "8.0.0", + version: "8.1.0", description: "Transform your git commits quickly and easily with AI (OpenAI GPT). Using this tool, you can make your git commits more visually appealing. It only takes a few seconds to create eye-catching git commits that stand out.", type: "module", license: "MIT", @@ -61285,9 +61285,8 @@ var getConfig = () => { const validator = configValidators[configKey]; config8[configKey] = validator(config8[configKey] ?? configFromEnv[configKey], config8); } catch (error) { - $e( - `'${configKey}' name is invalid, it should be either 'GW_${configKey.toUpperCase()}' or it doesn't exist.` - ); + const suggestedKey = configKey.startsWith("GW_") ? configKey : `GW_${configKey}`; + $e(`'${configKey}' name is invalid, it should be '${suggestedKey}' or it doesn't exist.`); $e(`Manually fix the '.env' file or global '~/.gitwz' config file.`); process.exit(1); } diff --git a/out/github-action.cjs b/out/github-action.cjs index 294bd3d..6bdc3eb 100644 --- a/out/github-action.cjs +++ b/out/github-action.cjs @@ -76526,9 +76526,8 @@ var getConfig = () => { const validator = configValidators[configKey]; config7[configKey] = validator(config7[configKey] ?? configFromEnv[configKey], config7); } catch (error) { - $e( - `'${configKey}' name is invalid, it should be either 'GW_${configKey.toUpperCase()}' or it doesn't exist.` - ); + const suggestedKey = configKey.startsWith("GW_") ? configKey : `GW_${configKey}`; + $e(`'${configKey}' name is invalid, it should be '${suggestedKey}' or it doesn't exist.`); $e(`Manually fix the '.env' file or global '~/.gitwz' config file.`); process.exit(1); }