@authup/client-web-nuxt 1.0.0-beta.28 → 1.0.0-beta.29
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/dist/module.json
CHANGED
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
storeToRefs
|
|
4
4
|
} from "@authup/client-web-kit";
|
|
5
5
|
import { hasOwnProperty } from "@authup/kit";
|
|
6
|
+
import { BuiltInPolicyType, PolicyData } from "@authup/access";
|
|
6
7
|
import { RouteMetaKey } from "../constants.js";
|
|
7
8
|
export class RoutingInterceptor {
|
|
8
9
|
store;
|
|
@@ -105,7 +106,7 @@ export class RoutingInterceptor {
|
|
|
105
106
|
}
|
|
106
107
|
for (let i = 0; i < route.matched.length; i++) {
|
|
107
108
|
const match = route.matched[i];
|
|
108
|
-
if (!match.meta || !hasOwnProperty(match.meta, RouteMetaKey.REQUIRE_PERMISSIONS)) {
|
|
109
|
+
if (!match || !match.meta || !hasOwnProperty(match.meta, RouteMetaKey.REQUIRE_PERMISSIONS)) {
|
|
109
110
|
continue;
|
|
110
111
|
}
|
|
111
112
|
let permissions = [];
|
|
@@ -122,9 +123,9 @@ export class RoutingInterceptor {
|
|
|
122
123
|
try {
|
|
123
124
|
await this.store.permissionChecker.preCheckOneOf({
|
|
124
125
|
name: permissions,
|
|
125
|
-
input: {
|
|
126
|
-
identity
|
|
127
|
-
}
|
|
126
|
+
input: new PolicyData({
|
|
127
|
+
[BuiltInPolicyType.IDENTITY]: identity
|
|
128
|
+
})
|
|
128
129
|
});
|
|
129
130
|
} catch (e) {
|
|
130
131
|
return false;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@authup/client-web-nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.0-beta.
|
|
4
|
+
"version": "1.0.0-beta.29",
|
|
5
5
|
"description": "Nuxt module for the authup ecosystem",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": {
|
|
@@ -30,19 +30,19 @@
|
|
|
30
30
|
"node": "^20.19.0 || ^22.13.0 || ^23.5.0 || >=24.0.0"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@authup/
|
|
34
|
-
"@authup/
|
|
33
|
+
"@authup/access": "^1.0.0-beta.29",
|
|
34
|
+
"@authup/kit": "^1.0.0-beta.29",
|
|
35
|
+
"@authup/client-web-kit": "^1.0.0-beta.29",
|
|
35
36
|
"@nuxt/kit": "^4.0.0",
|
|
36
|
-
"pathtrace": "^
|
|
37
|
+
"pathtrace": "^2.1.0",
|
|
37
38
|
"smob": "^1.5.0"
|
|
38
39
|
},
|
|
39
40
|
"devDependencies": {
|
|
40
|
-
"@authup/access": "^1.0.0-beta.28",
|
|
41
41
|
"@nuxt/module-builder": "^1.0.2",
|
|
42
42
|
"@pinia/nuxt": "^0.11.3",
|
|
43
|
-
"nuxt": "^4.
|
|
43
|
+
"nuxt": "^4.3.1",
|
|
44
44
|
"pinia": "^3.0.0",
|
|
45
|
-
"vue-router": "^
|
|
45
|
+
"vue-router": "^5.0.2"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"@pinia/nuxt": "*",
|