@authup/client-web-nuxt 1.0.0-beta.27 → 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
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@authup/client-web-nuxt",
3
3
  "configKey": "authup",
4
- "version": "1.0.0-beta.27",
4
+ "version": "1.0.0-beta.29",
5
5
  "builder": {
6
- "@nuxt/module-builder": "1.0.1",
7
- "unbuild": "3.5.0"
6
+ "@nuxt/module-builder": "1.0.2",
7
+ "unbuild": "3.6.1"
8
8
  }
9
9
  }
package/dist/module.mjs CHANGED
@@ -2,7 +2,7 @@ import { defineNuxtModule, installModule, createResolver, addTemplate, addPlugin
2
2
  import { merge } from 'smob';
3
3
  import { fileURLToPath } from 'node:url';
4
4
 
5
- const module = defineNuxtModule({
5
+ const module$1 = defineNuxtModule({
6
6
  meta: {
7
7
  name: "@authup/client-web-nuxt",
8
8
  configKey: "authup"
@@ -52,4 +52,4 @@ const module = defineNuxtModule({
52
52
  }
53
53
  });
54
54
 
55
- export { module as default };
55
+ export { module$1 as default };
@@ -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.27",
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": {
@@ -15,7 +15,6 @@
15
15
  "import": "./dist/module.mjs"
16
16
  }
17
17
  },
18
- "main": "./dist/module.mjs",
19
18
  "module": "./dist/module.mjs",
20
19
  "types": "./dist/types.d.mts",
21
20
  "files": [
@@ -27,20 +26,23 @@
27
26
  "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
28
27
  "lint": "eslint ."
29
28
  },
29
+ "engines": {
30
+ "node": "^20.19.0 || ^22.13.0 || ^23.5.0 || >=24.0.0"
31
+ },
30
32
  "dependencies": {
31
- "@authup/kit": "^1.0.0-beta.27",
32
- "@authup/client-web-kit": "^1.0.0-beta.27",
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",
33
36
  "@nuxt/kit": "^4.0.0",
34
- "pathtrace": "^1.1.0",
37
+ "pathtrace": "^2.1.0",
35
38
  "smob": "^1.5.0"
36
39
  },
37
40
  "devDependencies": {
38
- "@authup/access": "^1.0.0-beta.27",
39
- "@nuxt/module-builder": "^1.0.1",
40
- "@pinia/nuxt": "^0.11.1",
41
- "nuxt": "^4.0.0",
41
+ "@nuxt/module-builder": "^1.0.2",
42
+ "@pinia/nuxt": "^0.11.3",
43
+ "nuxt": "^4.3.1",
42
44
  "pinia": "^3.0.0",
43
- "vue-router": "^4.4.5"
45
+ "vue-router": "^5.0.2"
44
46
  },
45
47
  "peerDependencies": {
46
48
  "@pinia/nuxt": "*",