logixlysia 2.0.0 → 2.0.1

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/.czrc ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "path": "cz-conventional-changelog"
3
+ }
@@ -0,0 +1,2 @@
1
+ CHANGELOG.md
2
+ node_modules/
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.0.1](https://github.com/PunGrumpy/logixlysia/compare/v2.0.0...v2.0.1) (2024-01-03)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **index:** elysia `0.8.8` doesn't contain `app` variable ([72f2314](https://github.com/PunGrumpy/logixlysia/commit/72f2314adf392b2e5387bb731f1417bf689e2dd9))
9
+
3
10
  ## [2.0.0](https://github.com/PunGrumpy/logixlysia/compare/v1.0.0...v2.0.0) (2023-11-19)
4
11
 
5
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "logixlysia",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "🦊 Logixlysia is a logger for Elysia",
5
5
  "type": "module",
6
6
  "module": "src/index.ts",
@@ -63,21 +63,20 @@
63
63
  "elysia",
64
64
  "elysiajs",
65
65
  "logixlysia",
66
- "middleware",
67
66
  "middleware"
68
67
  ],
69
68
  "dependencies": {
70
- "@typescript-eslint/eslint-plugin": "^6.9.1",
71
- "@typescript-eslint/parser": "^6.9.1",
69
+ "@typescript-eslint/eslint-plugin": "^6.13.2",
70
+ "@typescript-eslint/parser": "^6.13.2",
72
71
  "chalk": "^5.3.0",
73
- "elysia": "^0.7.21",
74
- "eslint": "^8.53.0"
72
+ "elysia": "^0.8.3",
73
+ "eslint": "^8.55.0"
75
74
  },
76
75
  "devDependencies": {
77
- "bun-types": "^1.0.8",
76
+ "bun-types": "^1.0.15",
78
77
  "husky": "^8.0.3",
79
- "lint-staged": "^15.0.2",
80
- "prettier": "^3.0.3"
78
+ "lint-staged": "^15.2.0",
79
+ "prettier": "^3.1.0"
81
80
  },
82
81
  "peerDependencies": {
83
82
  "typescript": "^5.0.0"
package/src/index.ts CHANGED
@@ -25,7 +25,7 @@ export const logger = (): Elysia => {
25
25
  name: 'Logixlysia'
26
26
  })
27
27
  .onStart(ctx => {
28
- startString(ctx.app.server as Server)
28
+ startString(ctx.server as Server)
29
29
  })
30
30
  .onRequest(ctx => {
31
31
  ctx.store = { beforeTime: process.hrtime.bigint() } as {
@@ -34,7 +34,7 @@ function startString(config: Server): void {
34
34
  console.log(`
35
35
  ┌${border}┐
36
36
  │${createBoxText('', boxWidth)} │
37
- │${createBoxText(title, boxWidth)}
37
+ │${createBoxText(title, boxWidth)}│
38
38
  │${createBoxText('', boxWidth)} │
39
39
  │${createBoxText(message, boxWidth)}│
40
40
  │${createBoxText('', boxWidth)} │