From 1891a62641fd978c3f9b46dedfcc1123d5490fde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Gra=C3=A7a?= Date: Wed, 18 Nov 2020 14:40:22 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20pad-right?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pad-right is no longer a dependency of a dependency. because of that we need to stop relying on it. `String.padEnd` is the correct alternative and is supported on NodeJS>=8.2.1 --- lib/questions/type.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/questions/type.js b/lib/questions/type.js index f20b75e0..2f8daab0 100644 --- a/lib/questions/type.js +++ b/lib/questions/type.js @@ -5,7 +5,7 @@ const typeToListItem = ({types, disableEmoji}, type) => { const prefix = emoji && !disableEmoji ? emoji + ' ' : ''; return { - name: prefix + value.padEnd(12, ' ') + description, + name: prefix + (value + ':').padEnd(12, ' ') + description, value }; };