diff --git a/dist/adapter.esm.js b/dist/adapter.esm.js index a7e1c8d81f13ccd323f1c83d321d9141ffbd5036..c8c1dac52e0fb3ef28f64cb2d4f8797f290b3bad 100644 --- a/dist/adapter.esm.js +++ b/dist/adapter.esm.js @@ -69,7 +69,7 @@ class Adapter { */ auth() { return this.axios - .get(`{this.config.api}/token`, { + .get(`${this.config.api}/token`, { params: { client_id: this.config.client_id, secret: this.config.secret, @@ -90,7 +90,7 @@ class Adapter { poll() { return this.getAuthorizationHeader() .then((headers) => { - return this.axios.get(`{this.config.api}/receive`, { + return this.axios.get(`${this.config.api}/receive`, { headers, }); }) @@ -119,7 +119,7 @@ class Adapter { return this.getAuthorizationHeader() .then((headers) => { return this.axios.post( - `{this.config.api}/send`, + `${this.config.api}/send`, { topic, body, @@ -149,7 +149,7 @@ class Adapter { return this.getAuthorizationHeader() .then((headers) => { return this.axios.post( - `{this.config.api}/notify`, + `${this.config.api}/notify`, { body, }, diff --git a/dist/adapter.js b/dist/adapter.js index 031bbba0e742db6d0170ccddab409ef82dde28de..51b0ce26dd3c215f4c38d0e3e3a763abf4b41031 100644 --- a/dist/adapter.js +++ b/dist/adapter.js @@ -71,7 +71,7 @@ class Adapter { */ auth() { return this.axios - .get(`{this.config.api}/token`, { + .get(`${this.config.api}/token`, { params: { client_id: this.config.client_id, secret: this.config.secret, @@ -92,7 +92,7 @@ class Adapter { poll() { return this.getAuthorizationHeader() .then((headers) => { - return this.axios.get(`{this.config.api}/receive`, { + return this.axios.get(`${this.config.api}/receive`, { headers, }); }) @@ -121,7 +121,7 @@ class Adapter { return this.getAuthorizationHeader() .then((headers) => { return this.axios.post( - `{this.config.api}/send`, + `${this.config.api}/send`, { topic, body, @@ -151,7 +151,7 @@ class Adapter { return this.getAuthorizationHeader() .then((headers) => { return this.axios.post( - `{this.config.api}/notify`, + `${this.config.api}/notify`, { body, },