From 7999a59d1d34ed42285dd07b705c3aa6d4e8dd30 Mon Sep 17 00:00:00 2001 From: KillerBossOriginal Date: Sat, 9 Dec 2023 19:24:02 +0100 Subject: [PATCH] 0.4.2 --- package.json | 3 ++- src/IAManager.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index c14a818..806a764 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tn-api.js", - "version": "0.4.1", + "version": "0.4.2", "description": "A Public Template for npm", "main": "build/index.js", "repository": "https://source.thundernetwork.org/ThunderNetworkRaD/tn-api.js", @@ -9,6 +9,7 @@ "type": "module", "scripts": { "build": "tsc", + "publish": "npm run build && npm publish", "test": "yarn build && node build/test.js" }, "dependencies": { diff --git a/src/IAManager.ts b/src/IAManager.ts index 8271f36..b352465 100644 --- a/src/IAManager.ts +++ b/src/IAManager.ts @@ -12,6 +12,6 @@ export default class IAManager { async get(id: number) { let req = await axios.get(`${this.URL}/IA/${id}`); if (req.status == 404) throw new Error("User not Found"); - return req.data; + return req.data.user; } } \ No newline at end of file