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