anilink-api-wrapper 1.17.1 → 1.17.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32,21 +32,7 @@ const sendRequest = (url, method, data, token) => __awaiter(void 0, void 0, void
32
32
  return response.data;
33
33
  }
34
34
  catch (error) {
35
- if (error.response) {
36
- // The request was made and the server responded with a status code
37
- // that falls out of the range of 2xx
38
- throw error.response;
39
- }
40
- else if (error.request) {
41
- // The request was made but no response was received
42
- // `error.request` is an instance of XMLHttpRequest in the browser and an instance of
43
- // http.ClientRequest in node.js
44
- throw error.request;
45
- }
46
- else {
47
- // Something happened in setting up the request that triggered an Error
48
- throw error.message;
49
- }
35
+ throw error;
50
36
  }
51
37
  });
52
38
  exports.sendRequest = sendRequest;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anilink-api-wrapper",
3
- "version": "1.17.1",
3
+ "version": "1.17.3",
4
4
  "description": "Anilist API Wrapper",
5
5
  "main": "dist/AniLink.js",
6
6
  "scripts": {