@athenna/logger 3.1.6 → 3.2.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.
Files changed (57) hide show
  1. package/package.json +27 -27
  2. package/{build → src}/Factories/DriverFactory.js +2 -1
  3. package/{build → src}/Factories/FormatterFactory.js +2 -1
  4. /package/{build → src}/Constants/VanillaChannels.d.ts +0 -0
  5. /package/{build → src}/Constants/VanillaChannels.js +0 -0
  6. /package/{build → src}/Drivers/ConsoleDriver.d.ts +0 -0
  7. /package/{build → src}/Drivers/ConsoleDriver.js +0 -0
  8. /package/{build → src}/Drivers/DiscordDriver.d.ts +0 -0
  9. /package/{build → src}/Drivers/DiscordDriver.js +0 -0
  10. /package/{build → src}/Drivers/Driver.d.ts +0 -0
  11. /package/{build → src}/Drivers/Driver.js +0 -0
  12. /package/{build → src}/Drivers/FileDriver.d.ts +0 -0
  13. /package/{build → src}/Drivers/FileDriver.js +0 -0
  14. /package/{build → src}/Drivers/NullDriver.d.ts +0 -0
  15. /package/{build → src}/Drivers/NullDriver.js +0 -0
  16. /package/{build → src}/Drivers/SlackDriver.d.ts +0 -0
  17. /package/{build → src}/Drivers/SlackDriver.js +0 -0
  18. /package/{build → src}/Drivers/StackDriver.d.ts +0 -0
  19. /package/{build → src}/Drivers/StackDriver.js +0 -0
  20. /package/{build → src}/Drivers/TelegramDriver.d.ts +0 -0
  21. /package/{build → src}/Drivers/TelegramDriver.js +0 -0
  22. /package/{build → src}/Exceptions/DriverExistException.d.ts +0 -0
  23. /package/{build → src}/Exceptions/DriverExistException.js +0 -0
  24. /package/{build → src}/Exceptions/FormatterExistException.d.ts +0 -0
  25. /package/{build → src}/Exceptions/FormatterExistException.js +0 -0
  26. /package/{build → src}/Exceptions/NotFoundDriverException.d.ts +0 -0
  27. /package/{build → src}/Exceptions/NotFoundDriverException.js +0 -0
  28. /package/{build → src}/Exceptions/NotFoundFormatterException.d.ts +0 -0
  29. /package/{build → src}/Exceptions/NotFoundFormatterException.js +0 -0
  30. /package/{build → src}/Exceptions/NotImplementedConfigException.d.ts +0 -0
  31. /package/{build → src}/Exceptions/NotImplementedConfigException.js +0 -0
  32. /package/{build → src}/Facades/Log.d.ts +0 -0
  33. /package/{build → src}/Facades/Log.js +0 -0
  34. /package/{build → src}/Factories/DriverFactory.d.ts +0 -0
  35. /package/{build → src}/Factories/FormatterFactory.d.ts +0 -0
  36. /package/{build → src}/Formatters/CliFormatter.d.ts +0 -0
  37. /package/{build → src}/Formatters/CliFormatter.js +0 -0
  38. /package/{build → src}/Formatters/Formatter.d.ts +0 -0
  39. /package/{build → src}/Formatters/Formatter.js +0 -0
  40. /package/{build → src}/Formatters/JsonFormatter.d.ts +0 -0
  41. /package/{build → src}/Formatters/JsonFormatter.js +0 -0
  42. /package/{build → src}/Formatters/MessageFormatter.d.ts +0 -0
  43. /package/{build → src}/Formatters/MessageFormatter.js +0 -0
  44. /package/{build → src}/Formatters/NoneFormatter.d.ts +0 -0
  45. /package/{build → src}/Formatters/NoneFormatter.js +0 -0
  46. /package/{build → src}/Formatters/RequestFormatter.d.ts +0 -0
  47. /package/{build → src}/Formatters/RequestFormatter.js +0 -0
  48. /package/{build → src}/Formatters/SimpleFormatter.d.ts +0 -0
  49. /package/{build → src}/Formatters/SimpleFormatter.js +0 -0
  50. /package/{build → src}/Helpers/FactoryHelper.d.ts +0 -0
  51. /package/{build → src}/Helpers/FactoryHelper.js +0 -0
  52. /package/{build → src}/Logger/Logger.d.ts +0 -0
  53. /package/{build → src}/Logger/Logger.js +0 -0
  54. /package/{build → src}/Providers/LoggerProvider.d.ts +0 -0
  55. /package/{build → src}/Providers/LoggerProvider.js +0 -0
  56. /package/{build → src}/index.d.ts +0 -0
  57. /package/{build → src}/index.js +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@athenna/logger",
3
- "version": "3.1.6",
3
+ "version": "3.2.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>",
@@ -21,40 +21,41 @@
21
21
  "esm"
22
22
  ],
23
23
  "scripts": {
24
- "build": "sh node bin/build.ts",
25
- "lint:fix": "eslint \"{src,tests}/**/*.ts\" --fix",
24
+ "lint:fix": "eslint \"{bin,src,tests}/**/*.ts\" --fix",
26
25
  "test": "npm run --silent lint:fix && sh node bin/test.ts",
27
26
  "test:debug": "cross-env DEBUG=api:* sh node --inspect bin/test.ts",
28
27
  "test:coverage": "c8 npm run --silent test"
29
28
  },
30
29
  "files": [
31
- "build/*.js",
32
- "build/*.d.ts",
33
- "build/**/*.js",
34
- "build/**/*.d.ts",
35
- "templates/**"
30
+ "src/*.js",
31
+ "src/*.d.ts",
32
+ "src/**/*.js",
33
+ "src/**/*.d.ts",
34
+ "templates"
36
35
  ],
37
36
  "type": "module",
38
- "main": "./build/index.js",
39
- "types": "./build/index.d.ts",
37
+ "main": "./src/index.js",
38
+ "types": "./src/index.d.ts",
39
+ "exports": {
40
+ ".": "./src/index.js",
41
+ "./providers/LoggerProvider": "./src/Providers/LoggerProvider.js"
42
+ },
40
43
  "imports": {
41
- "#src/*": "./build/*.js",
42
- "#src": "./build/index.js",
44
+ "#bin/*": "./bin/*.js",
45
+ "#bin": "./bin/index.js",
46
+ "#src/*": "./src/*.js",
47
+ "#src": "./src/index.js",
43
48
  "#tests/*": "./tests/*.js",
44
49
  "#tests": "./tests/index.js"
45
50
  },
46
- "exports": {
47
- ".": "./build/index.js",
48
- "./providers/LoggerProvider": "./build/Providers/LoggerProvider.js"
49
- },
50
51
  "dependencies": {
51
52
  "telegraf": "^4.11.2"
52
53
  },
53
54
  "devDependencies": {
54
- "@athenna/common": "^3.4.2",
55
- "@athenna/config": "^3.2.1",
56
- "@athenna/ioc": "^3.1.6",
57
- "@athenna/test": "^3.2.2",
55
+ "@athenna/common": "^3.5.0",
56
+ "@athenna/config": "^3.3.0",
57
+ "@athenna/ioc": "^3.2.0",
58
+ "@athenna/test": "^3.3.0",
58
59
  "@japa/assert": "^1.3.6",
59
60
  "@japa/run-failed-tests": "^1.1.0",
60
61
  "@japa/runner": "^2.2.2",
@@ -68,15 +69,15 @@
68
69
  "@types/ms": "^0.7.31",
69
70
  "@types/pluralize": "^0.0.29",
70
71
  "@types/uuid": "^9.0.0",
71
- "@typescript-eslint/eslint-plugin": "^5.48.1",
72
- "@typescript-eslint/parser": "^5.48.1",
72
+ "@typescript-eslint/eslint-plugin": "^5.56.0",
73
+ "@typescript-eslint/parser": "^5.56.0",
73
74
  "c8": "^7.12.0",
74
75
  "cls-rtracer": "^2.6.2",
75
76
  "commitizen": "^4.2.6",
76
77
  "cross-env": "^7.0.3",
77
78
  "cz-conventional-changelog": "^3.3.0",
78
- "eslint": "^8.32.0",
79
- "eslint-config-prettier": "^8.6.0",
79
+ "eslint": "^8.36.0",
80
+ "eslint-config-prettier": "^8.8.0",
80
81
  "eslint-config-standard": "^17.0.0",
81
82
  "eslint-plugin-import": "^2.27.5",
82
83
  "eslint-plugin-n": "^15.6.1",
@@ -85,12 +86,11 @@
85
86
  "husky": "^3.1.0",
86
87
  "lint-staged": "^12.5.0",
87
88
  "minimist": "^1.2.7",
88
- "prettier": "^2.8.3",
89
+ "prettier": "^2.8.7",
89
90
  "reflect-metadata": "^0.1.13",
90
- "rimraf": "^3.0.2",
91
91
  "sinon": "^15.0.2",
92
92
  "ts-node": "^10.9.1",
93
- "typescript": "^4.9.4"
93
+ "typescript": "^5.0.2"
94
94
  },
95
95
  "c8": {
96
96
  "all": true,
@@ -19,7 +19,7 @@ import { TelegramDriver } from '#src/Drivers/TelegramDriver';
19
19
  import { DriverExistException } from '#src/Exceptions/DriverExistException';
20
20
  import { NotFoundDriverException } from '#src/Exceptions/NotFoundDriverException';
21
21
  import { NotImplementedConfigException } from '#src/Exceptions/NotImplementedConfigException';
22
- export class DriverFactory {
22
+ class DriverFactory {
23
23
  /**
24
24
  * Drivers of DriverFactory.
25
25
  */
@@ -91,3 +91,4 @@ export class DriverFactory {
91
91
  return channelConfig;
92
92
  }
93
93
  }
94
+ export { DriverFactory };
@@ -14,7 +14,7 @@ import { MessageFormatter } from '#src/Formatters/MessageFormatter';
14
14
  import { RequestFormatter } from '#src/Formatters/RequestFormatter';
15
15
  import { FormatterExistException } from '#src/Exceptions/FormatterExistException';
16
16
  import { NotFoundFormatterException } from '#src/Exceptions/NotFoundFormatterException';
17
- export class FormatterFactory {
17
+ class FormatterFactory {
18
18
  /**
19
19
  * Formatters of FormatterFactory.
20
20
  */
@@ -55,3 +55,4 @@ export class FormatterFactory {
55
55
  this.formatters.set(name, { Formatter: formatter });
56
56
  }
57
57
  }
58
+ export { FormatterFactory };
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes