@elevenback/mdb-client
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -19,3 +19,3 @@ "use strict"; | ||
async getAtomValue(atomId) { | ||
const { data: { value }, } = await axios_1.default.get(`${this.apiOrigin}/atom/${atomId}`, { | ||
const { data: { value }, } = await axios_1.default.get(`${this.apiOrigin}/atoms/${atomId}`, { | ||
headers: { | ||
@@ -22,0 +22,0 @@ Authorization: `Bearer ${this.token}`, |
@@ -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}/atom/${atomId}`, { | ||
const { data: { value }, } = yield axios.get(`${this.apiOrigin}/atoms/${atomId}`, { | ||
headers: { | ||
@@ -27,0 +27,0 @@ Authorization: `Bearer ${this.token}`, |
{ | ||
"name": "@elevenback/mdb-client", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"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}/atom/${atomId}`, { | ||
} = await axios.get<{ value: string }>(`${this.apiOrigin}/atoms/${atomId}`, { | ||
headers: { | ||
@@ -26,0 +26,0 @@ Authorization: `Bearer ${this.token}`, |
7831