From c1290c37b3df52018b4a8139a5c6e475ddea415b Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Mon, 3 Jan 2022 17:48:19 +0200 Subject: [PATCH] chore: fix a few typos --- src/commands/base-command.js | 6 +++--- src/utils/addons/prompts.js | 2 +- src/utils/traffic-mesh.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/commands/base-command.js b/src/commands/base-command.js index 54353a43132..a1bf3551ecc 100644 --- a/src/commands/base-command.js +++ b/src/commands/base-command.js @@ -41,8 +41,8 @@ const FALLBACK_HELP_CMD_WIDTH = 80 const HELP_$ = NETLIFY_CYAN('$') // indent on commands or description on the help page const HELP_INDENT_WIDTH = 2 -// seperator width between term and description -const HELP_SEPERATOR_WIDTH = 5 +// separator width between term and description +const HELP_SEPARATOR_WIDTH = 5 /** * Formats a help list correctly with the correct indent @@ -213,7 +213,7 @@ class BaseCommand extends Command { const bang = isCommand ? `${HELP_$} ` : '' if (description) { - const pad = termWidth + HELP_SEPERATOR_WIDTH + const pad = termWidth + HELP_SEPARATOR_WIDTH const fullText = `${bang}${term.padEnd(pad - (isCommand ? 2 : 0))}${chalk.grey(description)}` return helper.wrap(fullText, helpWidth - HELP_INDENT_WIDTH, pad) } diff --git a/src/utils/addons/prompts.js b/src/utils/addons/prompts.js index ae610ca4b93..211892c5133 100644 --- a/src/utils/addons/prompts.js +++ b/src/utils/addons/prompts.js @@ -20,7 +20,7 @@ module.exports = function generatePrompts(settings) { console.log('') } - // Handle shorthand config. Probably will be removed. Severly limited + not great UX + // Handle shorthand config. Probably will be removed. Severely limited + not great UX if (typeof setting === 'string' || typeof setting === 'boolean') { if (typeof setting === 'string') { prompt = { diff --git a/src/utils/traffic-mesh.js b/src/utils/traffic-mesh.js index cc86cf1f61a..484f503f5b4 100644 --- a/src/utils/traffic-mesh.js +++ b/src/utils/traffic-mesh.js @@ -196,7 +196,7 @@ const forwardMessagesToLog = ({ subprocess }) => { stopSpinner({ spinner, error: true, - text: `${NETLIFYDEVERR} An error occured while bundling processing the messages from routing-local-proxy: ${err}`, + text: `${NETLIFYDEVERR} An error occurred while bundling processing the messages from routing-local-proxy: ${err}`, }) firstBundleReject(err)