Browse Source
Hide the credit card number once it's submitted
master
Matheus Fernandes
8 years ago
No known key found for this signature in database
GPG Key ID: DD07CA4EA7B65C4F
1 changed files with
2 additions and
1 deletions
-
bin/now-billing-add.js
|
|
@ -136,8 +136,9 @@ module.exports = function (creditCards) { |
|
|
|
state.ccv.placeholder = '#'.repeat(3) |
|
|
|
} |
|
|
|
brand = chalk.cyan(`[${brand}]`) |
|
|
|
const masked = chalk.gray('#### '.repeat(3)) + result.split(' ')[3] |
|
|
|
process.stdout.write( |
|
|
|
`${chalk.cyan('✓')} ${piece.label}${result} ${brand}\n` |
|
|
|
`${chalk.cyan('✓')} ${piece.label}${masked} ${brand}\n` |
|
|
|
) |
|
|
|
} else if (key === 'ccv') { |
|
|
|
process.stdout.write( |
|
|
|