Matheus Fernandes
8 years ago
No known key found for this signature in database
GPG Key ID: DD07CA4EA7B65C4F
1 changed files with
0 additions and
5 deletions
-
lib/domains.js
|
|
@ -6,7 +6,6 @@ const chalk = require('chalk') |
|
|
|
|
|
|
|
// Ours
|
|
|
|
const Now = require('../lib') |
|
|
|
const cfg = require('../lib/cfg') |
|
|
|
const isZeitWorld = require('./is-zeit-world') |
|
|
|
const { DNS_VERIFICATION_ERROR } = require('./errors') |
|
|
|
|
|
|
@ -130,7 +129,6 @@ module.exports = class Domains extends Now { |
|
|
|
} |
|
|
|
|
|
|
|
async buy(name) { |
|
|
|
const { token } = await cfg.read() |
|
|
|
if (!name) { |
|
|
|
throw new Error('`name` is not defined') |
|
|
|
} |
|
|
@ -149,9 +147,6 @@ module.exports = class Domains extends Now { |
|
|
|
} |
|
|
|
const res = await this._fetch(`/domains/buy`, { |
|
|
|
method: 'POST', |
|
|
|
headers: { |
|
|
|
Authorization: `Bearer ${token}` |
|
|
|
}, |
|
|
|
body |
|
|
|
}) |
|
|
|
const json = await res.json() |
|
|
|