miolo 3.0.0-beta.220 → 3.0.0-beta.222
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.
|
|
3
|
+
"version": "3.0.0-beta.222",
|
|
4
4
|
"description": "all-in-one koa-based server",
|
|
5
5
|
"author": "Donato Lorenzo <donato@afialapis.com>",
|
|
6
6
|
"contributors": [
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
"@babel/plugin-proposal-decorators": "^7.29.7",
|
|
48
48
|
"@babel/preset-env": "^7.29.7",
|
|
49
49
|
"@babel/preset-react": "^7.29.7",
|
|
50
|
-
"@dotenvx/dotenvx": "^1.
|
|
50
|
+
"@dotenvx/dotenvx": "^2.1.4",
|
|
51
51
|
"@koa/bodyparser": "^6.1.0",
|
|
52
52
|
"@koa/cors": "^5.0.0",
|
|
53
|
-
"@koa/router": "^15.
|
|
53
|
+
"@koa/router": "^15.7.0",
|
|
54
54
|
"@maxmind/geoip2-node": "^7.0.0",
|
|
55
55
|
"@rollup/plugin-alias": "^6.0.0",
|
|
56
56
|
"@rollup/plugin-babel": "^7.1.0",
|
|
@@ -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.
|
|
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.
|
|
97
|
+
"vite": "^8.1.3",
|
|
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
|
-
|
|
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
|
package/template/biome.json
CHANGED
package/template/package.json
CHANGED
|
@@ -27,15 +27,15 @@
|
|
|
27
27
|
"#static/*": "./src/static/*"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@radix-ui/react-avatar": "^1.2.
|
|
31
|
-
"@radix-ui/react-collapsible": "^1.1.
|
|
32
|
-
"@radix-ui/react-dialog": "^1.1.
|
|
33
|
-
"@radix-ui/react-dropdown-menu": "^2.1.
|
|
34
|
-
"@radix-ui/react-label": "^2.1.
|
|
35
|
-
"@radix-ui/react-select": "^2.3.
|
|
36
|
-
"@radix-ui/react-separator": "^1.1.
|
|
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.
|
|
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",
|
|
@@ -44,16 +44,16 @@
|
|
|
44
44
|
"farrapa": "^3.0.0-beta.10",
|
|
45
45
|
"intre": "^3.0.0-beta.4",
|
|
46
46
|
"joi": "^18.2.3",
|
|
47
|
-
"lucide-react": "^1.
|
|
48
|
-
"miolo-cli": "^3.0.0-beta.
|
|
47
|
+
"lucide-react": "^1.23.0",
|
|
48
|
+
"miolo-cli": "^3.0.0-beta.222",
|
|
49
49
|
"miolo-model": "file:../miolo-model",
|
|
50
|
-
"miolo-react": "^3.0.0-beta.
|
|
50
|
+
"miolo-react": "^3.0.0-beta.222",
|
|
51
51
|
"next-themes": "^0.4.6",
|
|
52
|
-
"radix-ui": "^1.6.
|
|
52
|
+
"radix-ui": "^1.6.1",
|
|
53
53
|
"react": "^19.2.7",
|
|
54
54
|
"react-dom": "^19.2.7",
|
|
55
|
-
"react-router": "^
|
|
56
|
-
"recharts": "^3.9.
|
|
55
|
+
"react-router": "^8.1.0",
|
|
56
|
+
"recharts": "^3.9.2",
|
|
57
57
|
"sonner": "^2.0.7",
|
|
58
58
|
"tailwind": "^4.0.0",
|
|
59
59
|
"tailwind-merge": "^3.6.0",
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"tw-animate-css": "^1.4.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@biomejs/biome": "2.5.
|
|
65
|
-
"miolo": "^3.0.0-beta.
|
|
64
|
+
"@biomejs/biome": "2.5.2",
|
|
65
|
+
"miolo": "^3.0.0-beta.222",
|
|
66
66
|
"sass-embedded": "^1.100.0"
|
|
67
67
|
},
|
|
68
68
|
"overrides": {
|