guildwars2-ts 1.2.2 → 1.2.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.
package/README.md CHANGED
@@ -14,7 +14,7 @@ Full support of all endpoints listed in the [API:2 Wiki](https://wiki.guildwars2
14
14
  ## Request Example
15
15
 
16
16
  ```typescript
17
- import { GW2Api, ApiLanguage } from "guildwars2-ts";
17
+ import { GW2Api, ApiLanguage, setLogLevel, LogLevel } from "guildwars2-ts";
18
18
 
19
19
  const api: GW2Api = new GW2Api({
20
20
  // Token is not required for all of the endpoints
@@ -23,6 +23,9 @@ const api: GW2Api = new GW2Api({
23
23
  rateLimitRetry: true
24
24
  });
25
25
 
26
+ // Set to error by default, so you can set it to info for extra verbosity
27
+ setLogLevel(LogLevel.info);
28
+
26
29
  (async () => {
27
30
  // Obtain names of all characters on the account
28
31
  await api.account.get().then(console.log);
@@ -37,7 +40,9 @@ const api: GW2Api = new GW2Api({
37
40
 
38
41
  ## Contibutions
39
42
 
40
- If you find any kinds of errors in the program code, or wish to add/update any of the functionality provided by this project, please feel free to open a pull request. Validation error logs are extremely helpful, so please include them in the request
43
+ If you find any kinds of errors in the program code, or wish to add/update any of the functionality provided by this project, please feel free to open a pull request against the [development branch](https://gitlab.com/dinckelman/guildwars2-ts/-/tree/dev).
44
+
45
+ In case of runtime errors, request validation error logs are extremely helpful, so please include them in the request.
41
46
 
42
47
  [npm-image]: https://img.shields.io/npm/v/guildwars2-ts
43
48
  [npm-link]: https://www.npmjs.com/package/guildwars2-ts
package/dist/index.js CHANGED
@@ -77,7 +77,7 @@ var LogLevel = /* @__PURE__ */ ((LogLevel2) => {
77
77
  return LogLevel2;
78
78
  })(LogLevel || {});
79
79
  var logger = new tslog.Logger({
80
- minLevel: 3 /* info */,
80
+ minLevel: 5 /* error */,
81
81
  hideLogPositionForProduction: true
82
82
  });
83
83
  var setLogLevel = (minLevel) => {
package/dist/index.mjs CHANGED
@@ -70,7 +70,7 @@ var LogLevel = /* @__PURE__ */ ((LogLevel2) => {
70
70
  return LogLevel2;
71
71
  })(LogLevel || {});
72
72
  var logger = new Logger({
73
- minLevel: 3 /* info */,
73
+ minLevel: 5 /* error */,
74
74
  hideLogPositionForProduction: true
75
75
  });
76
76
  var setLogLevel = (minLevel) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "guildwars2-ts",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "GuildWars 2 API Wrapper in Typescript",
5
5
  "homepage": "https://gitlab.com/dinckelman/guildwars2-ts",
6
6
  "main": "dist/index.js",
@@ -22,15 +22,15 @@
22
22
  "gw2"
23
23
  ],
24
24
  "dependencies": {
25
- "axios": "1.7.8",
25
+ "axios": "1.7.9",
26
26
  "promise-queue": "2.2.5",
27
27
  "tslog": "4.9.3",
28
- "zod": "3.23.8"
28
+ "zod": "3.24.1"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@biomejs/biome": "^1.6.3",
32
32
  "@jest/globals": "^29.7.0",
33
- "@types/node": "^20.12.2",
33
+ "@types/node": "^22.0.0",
34
34
  "@types/promise-queue": "^2.2.3",
35
35
  "jest": "^29.7.0",
36
36
  "ts-jest": "^29.1.2",