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