@athenna/logger 4.14.0 → 4.15.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@athenna/logger",
3
- "version": "4.14.0",
3
+ "version": "4.15.0",
4
4
  "description": "The Athenna logging solution. Log in stdout, files and buckets.",
5
5
  "license": "MIT",
6
6
  "author": "João Lenon <lenon@athenna.io>",
@@ -65,10 +65,10 @@
65
65
  "cls-rtracer": "^2.6.3"
66
66
  },
67
67
  "devDependencies": {
68
- "@athenna/common": "^4.27.0",
69
- "@athenna/config": "^4.12.0",
70
- "@athenna/ioc": "^4.13.0",
71
- "@athenna/test": "^4.18.0",
68
+ "@athenna/common": "^4.32.0",
69
+ "@athenna/config": "^4.14.0",
70
+ "@athenna/ioc": "^4.14.0",
71
+ "@athenna/test": "^4.21.0",
72
72
  "@athenna/tsconfig": "^4.12.0",
73
73
  "@typescript-eslint/eslint-plugin": "^6.7.4",
74
74
  "@typescript-eslint/parser": "^6.7.4",
@@ -17,8 +17,10 @@ export class DiscordDriver extends Driver {
17
17
  const formatted = this.format(level, message, true);
18
18
  debug('[%s] Transporting logs with username %s and in url %s.', DiscordDriver.name, this.configs.username, this.configs.url);
19
19
  return HttpClient.builder(true).post(this.configs.url, {
20
- username: this.configs.username,
21
- content: formatted
20
+ body: {
21
+ username: this.configs.username,
22
+ content: formatted
23
+ }
22
24
  });
23
25
  }
24
26
  }
@@ -16,6 +16,10 @@ export class SlackDriver extends Driver {
16
16
  }
17
17
  const formatted = this.format(level, message, true);
18
18
  debug('[%s] Transporting logs in url %s.', SlackDriver.name, this.configs.url);
19
- return HttpClient.builder(true).post(this.configs.url, { text: formatted });
19
+ return HttpClient.builder(true).post(this.configs.url, {
20
+ body: {
21
+ text: formatted
22
+ }
23
+ });
20
24
  }
21
25
  }