@mdvp/cli 1.9.0 → 1.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.mjs +1 -1
- package/package.json +1 -1
package/cli.mjs
CHANGED
|
@@ -262,7 +262,7 @@ async function cmdLogin() {
|
|
|
262
262
|
async function cmdBalance({ json, apiKey }) {
|
|
263
263
|
if (!apiKey) { console.error(`${RED}No API key. Run: npx mdvp login${R}`); process.exit(1) }
|
|
264
264
|
const d = await new Promise((resolve, reject) => {
|
|
265
|
-
|
|
265
|
+
httpsGet(`${API}/token/balance`, { headers: { Accept: "application/json", "x-api-key": apiKey } }, (res) => {
|
|
266
266
|
let body = ""
|
|
267
267
|
res.on("data", (c) => (body += c))
|
|
268
268
|
res.on("end", () => resolve(JSON.parse(body)))
|