@elevenback/mdb-client
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -19,3 +19,3 @@ "use strict"; | ||
async getAtomValue(atomId) { | ||
const { data: { value }, } = await axios_1.default.get(`${this.apiOrigin}/atoms/${atomId}`, { | ||
const { data: { value }, } = await axios_1.default.get(`${this.apiOrigin}/api/v1/atoms/${atomId}`, { | ||
headers: { | ||
@@ -28,3 +28,3 @@ Authorization: `Bearer ${this.token}`, | ||
async updateAtomValue(atomId, value) { | ||
await axios_1.default.put(`${this.apiOrigin}/atoms/${atomId}`, { | ||
await axios_1.default.put(`${this.apiOrigin}/api/v1/atoms/${atomId}`, { | ||
value, | ||
@@ -31,0 +31,0 @@ }, { |
@@ -24,3 +24,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const { data: { value }, } = yield axios.get(`${this.apiOrigin}/atoms/${atomId}`, { | ||
const { data: { value }, } = yield axios.get(`${this.apiOrigin}/api/v1/atoms/${atomId}`, { | ||
headers: { | ||
@@ -35,3 +35,3 @@ Authorization: `Bearer ${this.token}`, | ||
return __awaiter(this, void 0, void 0, function* () { | ||
yield axios.put(`${this.apiOrigin}/atoms/${atomId}`, { | ||
yield axios.put(`${this.apiOrigin}/api/v1/atoms/${atomId}`, { | ||
value, | ||
@@ -38,0 +38,0 @@ }, { |
{ | ||
"name": "@elevenback/mdb-client", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"main": "./dist/cjs/index.js", | ||
@@ -5,0 +5,0 @@ "module": "./dist/esm/index.js", |
@@ -23,3 +23,3 @@ import axios from 'axios'; | ||
data: { value }, | ||
} = await axios.get<{ value: string }>(`${this.apiOrigin}/atoms/${atomId}`, { | ||
} = await axios.get<{ value: string }>(`${this.apiOrigin}/api/v1/atoms/${atomId}`, { | ||
headers: { | ||
@@ -34,3 +34,3 @@ Authorization: `Bearer ${this.token}`, | ||
await axios.put<undefined>( | ||
`${this.apiOrigin}/atoms/${atomId}`, | ||
`${this.apiOrigin}/api/v1/atoms/${atomId}`, | ||
{ | ||
@@ -37,0 +37,0 @@ value, |
7873