@commonpub/layer 0.3.19 → 0.3.20
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": "@commonpub/layer",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.20",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./nuxt.config.ts",
|
|
6
6
|
"files": [
|
|
@@ -44,15 +44,15 @@
|
|
|
44
44
|
"vue": "^3.4.0",
|
|
45
45
|
"vue-router": "^4.3.0",
|
|
46
46
|
"zod": "^4.3.6",
|
|
47
|
-
"@commonpub/auth": "0.5.0",
|
|
48
|
-
"@commonpub/docs": "0.5.2",
|
|
49
47
|
"@commonpub/config": "0.7.0",
|
|
48
|
+
"@commonpub/docs": "0.5.2",
|
|
49
|
+
"@commonpub/auth": "0.5.0",
|
|
50
50
|
"@commonpub/editor": "0.5.0",
|
|
51
|
-
"@commonpub/learning": "0.5.0",
|
|
52
51
|
"@commonpub/protocol": "0.9.4",
|
|
53
|
-
"@commonpub/
|
|
52
|
+
"@commonpub/learning": "0.5.0",
|
|
54
53
|
"@commonpub/schema": "0.8.12",
|
|
55
|
-
"@commonpub/ui": "0.7.1"
|
|
54
|
+
"@commonpub/ui": "0.7.1",
|
|
55
|
+
"@commonpub/server": "2.13.0"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {}
|
|
58
58
|
}
|
|
@@ -145,8 +145,12 @@ export default defineEventHandler(async (event) => {
|
|
|
145
145
|
return;
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
// Handle auth API routes
|
|
149
|
-
|
|
148
|
+
// Handle auth API routes — skip our custom federated/oauth2 routes (Nitro handles those)
|
|
149
|
+
const isBetterAuthRoute = pathname.startsWith('/api/auth')
|
|
150
|
+
&& !pathname.startsWith('/api/auth/federated/')
|
|
151
|
+
&& !pathname.startsWith('/api/auth/oauth2/');
|
|
152
|
+
|
|
153
|
+
if (isBetterAuthRoute) {
|
|
150
154
|
try {
|
|
151
155
|
const response = await middleware.handleAuthRoute(
|
|
152
156
|
toWebRequest(event),
|