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",
|
"name": "tn-api.js",
|
||||||
"version": "0.4.1",
|
"version": "0.4.2",
|
||||||
"description": "A Public Template for npm",
|
"description": "A Public Template for npm",
|
||||||
"main": "build/index.js",
|
"main": "build/index.js",
|
||||||
"repository": "https://source.thundernetwork.org/ThunderNetworkRaD/tn-api.js",
|
"repository": "https://source.thundernetwork.org/ThunderNetworkRaD/tn-api.js",
|
||||||
|
@ -9,6 +9,7 @@
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
|
"publish": "npm run build && npm publish",
|
||||||
"test": "yarn build && node build/test.js"
|
"test": "yarn build && node build/test.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -12,6 +12,6 @@ export default class IAManager {
|
||||||
async get(id: number) {
|
async get(id: number) {
|
||||||
let req = await axios.get(`${this.URL}/IA/${id}`);
|
let req = await axios.get(`${this.URL}/IA/${id}`);
|
||||||
if (req.status == 404) throw new Error("User not Found");
|
if (req.status == 404) throw new Error("User not Found");
|
||||||
return req.data;
|
return req.data.user;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue