Compare commits

..

12 Commits

Author SHA1 Message Date
95becbb66a changed package name 2025-10-10 00:37:34 -07:00
ab9443fe29 1.2.2 2025-10-10 00:15:24 -07:00
9438275f56 1.2.1 2025-10-09 23:47:46 -07:00
f67e461cdc got rid of appealdate 2025-10-09 23:47:39 -07:00
b3b8eff9fb 1.2.0 2025-10-09 23:42:54 -07:00
159473250c changed checkusers endpoint 2025-10-09 23:42:48 -07:00
8318d5c820 Changed behavior of validate 2025-10-09 23:41:47 -07:00
e7e94c16dc 1.1.0 2025-10-09 23:40:25 -07:00
9e66471360 1.0.7 2025-10-09 22:48:18 -07:00
c6063d5a6d ok this actually pmo 2025-10-09 22:48:13 -07:00
8ead1c47be 1.0.6 2025-10-09 22:47:42 -07:00
e58196bd9f i just removed those 2025-10-09 22:47:38 -07:00
4 changed files with 11 additions and 12 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "npm",
"version": "1.0.0",
"version": "1.2.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "npm",
"version": "1.0.0",
"version": "1.2.2",
"license": "MIT",
"devDependencies": {
"tsup": "^8.5.0",

View File

@ -1,6 +1,6 @@
{
"name": "tase-api",
"version": "1.0.5",
"name": "tase",
"version": "1.2.2",
"description": "The official NPM wrapper for The All Seeing Eye's API",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
@ -11,7 +11,10 @@
"require": "./dist/index.js"
}
},
"files": ["dist", "README.md"],
"files": [
"dist",
"README.md"
],
"repository": {
"url": "https://git.thegoober.xyz/TGP/tase-api-node"
},

View File

@ -21,14 +21,14 @@ export class TASEClient {
* @returns A boolean indicating if the current token can be used on TASE's API.
*/
async validate(): Promise<boolean> {
const Response = await fetch(TASEApi + `/api/v1/key/validate`, {
const Response = await fetch(TASEApi + `/api/v1/auth/validate`, {
headers: {
authorization: `Bearer ${this.token}`
},
method: "GET"
})
return Response.ok
return (await Response.json()).authenticated
}
/**
@ -72,7 +72,7 @@ export class TASEClient {
if(UserIDs.length > 10000) throw new Error("The amount of UserIDs must be less than 10,000.")
if(UserIDs.length < 1) throw new Error("The amount of UserIDs must be atleast 1 character.")
const Response = await fetch(TASEApi + `/api/v1/mass-check`, {
const Response = await fetch(TASEApi + `/api/v1/check/mass`, {
headers: {
authorization: `Bearer ${this.token}`,
"content-type": "application/json"

View File

@ -42,10 +42,6 @@ export interface CheckResult {
* What is the ID of the user?
*/
userId: string,
/**
* When did this user appeal? (if they have appealed.)
*/
appealDate?: Date
/**
* The summed up score of all the `guilds`.
*/