miolo 3.0.0-beta.220 → 3.0.0-beta.221

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": "miolo",
3
- "version": "3.0.0-beta.220",
3
+ "version": "3.0.0-beta.221",
4
4
  "description": "all-in-one koa-based server",
5
5
  "author": "Donato Lorenzo <donato@afialapis.com>",
6
6
  "contributors": [
@@ -83,7 +83,7 @@
83
83
  "koa-session": "^7.0.2",
84
84
  "koa-static": "^5.0.0",
85
85
  "nanoid": "^5.1.16",
86
- "nodemailer": "^9.0.1",
86
+ "nodemailer": "^9.0.3",
87
87
  "passport-google-oauth20": "^2.0.0",
88
88
  "passport-local": "^1.0.0",
89
89
  "rollup": "^4.62.2",
@@ -94,7 +94,7 @@
94
94
  "statuses": "^2.0.2",
95
95
  "tailwindcss": "^4.3.2",
96
96
  "tinguir": "^0.0.7",
97
- "vite": "^8.1.0",
97
+ "vite": "^8.1.2",
98
98
  "winston": "^3.19.0",
99
99
  "winston-daily-rotate-file": "^5.0.0",
100
100
  "yargs-parser": "^22.0.0"
@@ -19,7 +19,19 @@ function _validate_ip(ipaddress) {
19
19
  }
20
20
 
21
21
  const _get_ip = (ctx) => {
22
- const chances = [ctx.headers["x-real-ip"], ctx.headers["x-orig-ip"], ctx.ip, "127.0.0.1"]
22
+ // 1. ctx.ips contiene la cadena de proxies (de más externo a más interno) si app.proxy = true
23
+ if (ctx.ips && ctx.ips.length > 0) {
24
+ for (const ip of ctx.ips) {
25
+ if (_validate_ip(ip)) return ip
26
+ }
27
+ }
28
+
29
+ const chances = [
30
+ ctx.ip, // Koa ya procesa X-Forwarded-For aquí de forma nativa
31
+ ctx.headers["x-real-ip"],
32
+ ctx.headers["x-orig-ip"],
33
+ "127.0.0.1"
34
+ ]
23
35
  for (const ch of chances) {
24
36
  if (_validate_ip(ch)) {
25
37
  return ch
@@ -55,8 +55,8 @@ services:
55
55
  #- /var/run/sendmail:/var/run/sendmail
56
56
  - /etc/localtime:/etc/localtime:ro
57
57
  - /etc/timezone:/etc/timezone:ro
58
- ports:
59
- - "8001:8001"
58
+ expose:
59
+ - "8001"
60
60
  depends_on:
61
61
  - redis
62
62
  - postgres
@@ -27,15 +27,15 @@
27
27
  "#static/*": "./src/static/*"
28
28
  },
29
29
  "dependencies": {
30
- "@radix-ui/react-avatar": "^1.2.0",
31
- "@radix-ui/react-collapsible": "^1.1.14",
32
- "@radix-ui/react-dialog": "^1.1.17",
33
- "@radix-ui/react-dropdown-menu": "^2.1.18",
34
- "@radix-ui/react-label": "^2.1.10",
35
- "@radix-ui/react-select": "^2.3.1",
36
- "@radix-ui/react-separator": "^1.1.10",
30
+ "@radix-ui/react-avatar": "^1.2.1",
31
+ "@radix-ui/react-collapsible": "^1.1.15",
32
+ "@radix-ui/react-dialog": "^1.1.18",
33
+ "@radix-ui/react-dropdown-menu": "^2.1.19",
34
+ "@radix-ui/react-label": "^2.1.11",
35
+ "@radix-ui/react-select": "^2.3.2",
36
+ "@radix-ui/react-separator": "^1.1.11",
37
37
  "@radix-ui/react-slot": "^1.3.0",
38
- "@radix-ui/react-tooltip": "^1.2.10",
38
+ "@radix-ui/react-tooltip": "^1.2.11",
39
39
  "@stepperize/react": "^7.0.0",
40
40
  "@tailwindcss/postcss": "^4.3.2",
41
41
  "@tanstack/react-table": "^8.21.3",
@@ -45,15 +45,15 @@
45
45
  "intre": "^3.0.0-beta.4",
46
46
  "joi": "^18.2.3",
47
47
  "lucide-react": "^1.22.0",
48
- "miolo-cli": "^3.0.0-beta.220",
48
+ "miolo-cli": "^3.0.0-beta.221",
49
49
  "miolo-model": "file:../miolo-model",
50
- "miolo-react": "^3.0.0-beta.220",
50
+ "miolo-react": "^3.0.0-beta.221",
51
51
  "next-themes": "^0.4.6",
52
- "radix-ui": "^1.6.0",
52
+ "radix-ui": "^1.6.1",
53
53
  "react": "^19.2.7",
54
54
  "react-dom": "^19.2.7",
55
- "react-router": "^7.16.0",
56
- "recharts": "^3.9.0",
55
+ "react-router": "^8.1.0",
56
+ "recharts": "^3.9.1",
57
57
  "sonner": "^2.0.7",
58
58
  "tailwind": "^4.0.0",
59
59
  "tailwind-merge": "^3.6.0",
@@ -62,7 +62,7 @@
62
62
  },
63
63
  "devDependencies": {
64
64
  "@biomejs/biome": "2.5.1",
65
- "miolo": "^3.0.0-beta.220",
65
+ "miolo": "^3.0.0-beta.221",
66
66
  "sass-embedded": "^1.100.0"
67
67
  },
68
68
  "overrides": {