@ -424,9 +404,7 @@ module.exports = class Alias extends Now {
}
if(code==='cert_missing'){
console.log(
`> Provisioning certificate for ${chalk.underline(chalk.bold(alias))}`
)
console.log(`> Provisioning certificate for ${chalk.underline(chalk.bold(alias))}`)
try{
awaitthis.createCert(alias)
@ -442,9 +420,7 @@ module.exports = class Alias extends Now {
}
if(code==='cert_expired'){
console.log(
`> Renewing certificate for ${chalk.underline(chalk.bold(alias))}`
)
console.log(`> Renewing certificate for ${chalk.underline(chalk.bold(alias))}`)
try{
awaitthis.createCert(alias,{renew:true})
@ -546,12 +522,8 @@ module.exports = class Alias extends Now {
if(canBePurchased){
constprice=awaitpricePromise
info(
`The domain ${aliasParam} is ${chalk.bold('available for purchase')}! ${elapsed()}`
)
constconfirmation=awaitpromptBool(
`Buy now for ${chalk.bold(`$${price}`)} (${chalk.bold((currentTeam&¤tTeam.slug)||user.username||user.email)})?`
)
info(`The domain ${aliasParam} is ${chalk.bold('available for purchase')}! ${elapsed()}`)
constconfirmation=awaitpromptBool(`Buy now for ${chalk.bold(`$${price}`)} (${chalk.bold((currentTeam&¤tTeam.slug)||user.username||user.email)})?`)
eraseLines(1)
if(!confirmation){
info('Aborted')
@ -591,16 +563,12 @@ module.exports = class Alias extends Now {
error(
'The nameservers are pending propagation. Please try again shortly'
)
info(
`The ${tld} servers might take some extra time to reflect changes`
)
info(`The ${tld} servers might take some extra time to reflect changes`)
gracefulExit()
}
}
console.log(
`> Verifying the DNS settings for ${chalk.bold(chalk.underline(alias))} (see ${chalk.underline('https://zeit.world')} for help)`
)
console.log(`> Verifying the DNS settings for ${chalk.bold(chalk.underline(alias))} (see ${chalk.underline('https://zeit.world')} for help)`)
const_domain=publicSuffixList.parse(alias).domain
const_domainInfo=awaitthis.getDomain(_domain)
@ -617,13 +585,9 @@ module.exports = class Alias extends Now {
if(this._debug){
if(domainInfo){
console.log(
`> [debug] Found domain ${domain} with verified:${domainInfo.verified}`
)
console.log(`> [debug] Found domain ${domain} with verified:${domainInfo.verified}`)
}else{
console.log(
`> [debug] Found domain ${domain} and nameservers ${nameservers}`
)
console.log(`> [debug] Found domain ${domain} and nameservers ${nameservers}`)
}
}
@ -641,9 +605,7 @@ module.exports = class Alias extends Now {