0.4.2
This commit is contained in:
parent
ff7c42eeb2
commit
7999a59d1d
2 changed files with 3 additions and 2 deletions
|
@ -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": {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue