AurelicButter / AniList-Node

A lightweight Node.js wrapper for the AniList API
https://katsurin.com/docs/anilist-node/
MIT License
43 stars 18 forks source link

Request Timeout & More #42

Closed Exhabition closed 2 years ago

Exhabition commented 2 years ago

Description

Related Issue

Partly: #30

Other Information:

I added the timeout due to the fact that when AniList goes down the requests get stuck for quite sometime (experienced that today)

Exhabition commented 2 years ago

Looks good to me! Just a few minor things and we should be good to go.

Alright, I will work on that as soon as I have time, shouldn't take too long

Exhabition commented 2 years ago

Everything should be resolved, named the options object InitOptions (since you pass it when you initialize the client) I am not super familiar with types, so please check if what I did there was correct

Also noticed that I had to change the way send was added to Utils, seemed that my original way made it unable to access this as in the Client as was unable to get options (I originally changed that because

send = function

was something eslint didn't like, changed it to work with prototype instead