diff --git a/lib/index.js b/lib/index.js index 084db4e..5623c79 100644 --- a/lib/index.js +++ b/lib/index.js @@ -103,7 +103,7 @@ export default class Now extends EventEmitter { }, { retries: 3, minTimeout: 2500, onRetry: this._onRetry }); this._id = deployment.deploymentId; - this._url = deployment.url; + this._host = deployment.url; this._missing = deployment.missing || []; return this._url; @@ -165,8 +165,16 @@ export default class Now extends EventEmitter { this._agent.close(); } + get id () { + return this._id; + } + get url () { - return this._url; + return `https://${this._host}`; + } + + get host () { + return this._host; } get syncAmount () {