diff --git a/package.json b/package.json index 560ab28..efb2aae 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,7 @@ "@adonisjs/hash": "^9.0.5", "@nuxt/kit": "^3.14.159", "defu": "^6.1.4", + "h3": "^1.13.0", "hookable": "^5.5.3", "ofetch": "^1.4.1", "ohash": "^1.1.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d882100..c5686be 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -23,6 +23,9 @@ importers: defu: specifier: ^6.1.4 version: 6.1.4 + h3: + specifier: ^1.13.0 + version: 1.13.0 hookable: specifier: ^5.5.3 version: 5.5.3 @@ -47,7 +50,7 @@ importers: version: 1.2.11 '@nuxt/devtools': specifier: latest - version: 1.4.2(rollup@4.24.4)(vite@5.4.6(@types/node@22.5.5)(terser@5.33.0))(vue@3.5.12(typescript@5.6.3)) + version: 1.6.0(rollup@4.24.4)(vite@5.4.6(@types/node@22.5.5)(terser@5.33.0))(vue@3.5.12(typescript@5.6.3)) '@nuxt/eslint-config': specifier: ^0.6.1 version: 0.6.1(eslint@9.14.0(jiti@2.4.0))(typescript@5.6.3) @@ -98,10 +101,10 @@ importers: version: 1.2.3 nuxt: specifier: ^3.14.159 - version: 3.14.159(@parcel/watcher@2.4.1)(@types/node@22.5.5)(better-sqlite3@11.5.0)(eslint@9.14.0(jiti@2.4.0))(ioredis@5.4.1)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.24.4)(terser@5.33.0)(typescript@5.6.3)(vite@5.4.6(@types/node@22.5.5)(terser@5.33.0))(vue-tsc@2.1.10(typescript@5.6.3)) + version: 3.14.159(@parcel/watcher@2.4.1)(@types/node@22.5.5)(better-sqlite3@11.5.0)(eslint@9.14.0(jiti@2.4.0))(ioredis@5.4.1)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.24.4)(terser@5.33.0)(typescript@5.6.3)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0))(vue-tsc@2.1.10(typescript@5.6.3)) nuxt-auth-utils: specifier: latest - version: 0.3.8(magicast@0.3.5)(rollup@4.24.4) + version: 0.5.3(@simplewebauthn/browser@11.0.0)(@simplewebauthn/server@11.0.0)(magicast@0.3.5)(rollup@4.24.4) zod: specifier: ^3.23.8 version: 3.23.8 @@ -192,10 +195,6 @@ packages: resolution: {integrity: sha512-LABppdt+Lp/RlBxqrh4qgf1oEH/WxdzQNDJIu5gC/W1GyvPVrOBiItmmM8wan2fm4oYqFuFfkXmlGpLQhPY8CA==} engines: {node: '>=6.9.0'} - '@babel/helper-module-imports@7.24.7': - resolution: {integrity: sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA==} - engines: {node: '>=6.9.0'} - '@babel/helper-module-imports@7.25.9': resolution: {integrity: sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw==} engines: {node: '>=6.9.0'} @@ -1123,30 +1122,15 @@ packages: '@nuxt/devalue@2.0.2': resolution: {integrity: sha512-GBzP8zOc7CGWyFQS6dv1lQz8VVpz5C2yRszbXufwG/9zhStTIH50EtD87NmWbTMwXDvZLNg8GIpb1UFdH93JCA==} - '@nuxt/devtools-kit@1.4.2': - resolution: {integrity: sha512-8a5PhVnC7E94318/sHbNSe9mI2MlsQ8+pJLGs2Hh1OJyidB9SWe6hoFc8q4K9VOtXak9uCFVb5V2JGXS1q+1aA==} - peerDependencies: - vite: '*' - '@nuxt/devtools-kit@1.6.0': resolution: {integrity: sha512-kJ8mVKwTSN3tdEVNy7mxKCiQk9wsG5t3oOrRMWk6IEbTSov+5sOULqQSM/+OWxWsEDmDfA7QlS5sM3Ti9uMRqQ==} peerDependencies: vite: '*' - '@nuxt/devtools-wizard@1.4.2': - resolution: {integrity: sha512-TyhmPBg/xJKPOdnwR3DAh8KMUt6/0dUNABCxGVeY7PYbIiXt4msIGVJkBc4y+WwIJHOYPrSRClmZVsXQfRlB4A==} - hasBin: true - '@nuxt/devtools-wizard@1.6.0': resolution: {integrity: sha512-n+mzz5NwnKZim0tq1oBi+x1nNXb21fp7QeBl7bYKyDT1eJ0XCxFkVTr/kB/ddkkLYZ+o8TykpeNPa74cN+xAyQ==} hasBin: true - '@nuxt/devtools@1.4.2': - resolution: {integrity: sha512-Ok3g2P7iwKyK8LiwozbYVAZTo8t91iXSmlJj2ozeo1okKQ2Qi1AtwB6nYgIlkUHZmo155ZjG/LCHYI5uhQ/sGw==} - hasBin: true - peerDependencies: - vite: '*' - '@nuxt/devtools@1.6.0': resolution: {integrity: sha512-xNorMapzpM8HaW7NnAsEEO38OrmrYBzGvkkqfBU5nNh5XEymmIfCbQc7IA/GIOH9pXOV4gRutCjHCWXHYbOl3A==} hasBin: true @@ -1166,10 +1150,6 @@ packages: '@nuxt/icon@1.7.0': resolution: {integrity: sha512-NhDKs7r1QVcYYYks0PTQawH7Asmiex2s2GXov2+ZDkhqpLiU08KEXeGnpphthoSTX9qrVg3N1IMcQaKbfIi8dQ==} - '@nuxt/kit@3.13.2': - resolution: {integrity: sha512-KvRw21zU//wdz25IeE1E5m/aFSzhJloBRAQtv+evcFeZvuroIxpIQuUqhbzuwznaUwpiWbmwlcsp5uOWmi4vwA==} - engines: {node: ^14.18.0 || >=16.10.0} - '@nuxt/kit@3.14.159': resolution: {integrity: sha512-ZqxsCI1NKV/gjfEUUZjMcr82sg0MKYZOuyB6bu9QY5Zr7NGpfIZY/z5Z822AKTmFxKGChnuz9M0UaS4ze6p42g==} engines: {node: ^14.18.0 || >=16.10.0} @@ -1181,10 +1161,6 @@ packages: '@nuxt/kit': ^3.13.1 nuxi: ^3.13.1 - '@nuxt/schema@3.13.2': - resolution: {integrity: sha512-CCZgpm+MkqtOMDEgF9SWgGPBXlQ01hV/6+2reDEpJuqFPGzV8HYKPBcIFvn7/z5ahtgutHLzjP71Na+hYcqSpw==} - engines: {node: ^14.18.0 || >=16.10.0} - '@nuxt/schema@3.14.159': resolution: {integrity: sha512-ggXA3F2f9udQoEy5WwrY6bTMvpDaErUYRLSEzdMqqCqjOQ5manfFgfuScGj3ooZiXLIX2TGLVTzcll4nnpDlnQ==} engines: {node: ^14.18.0 || >=16.10.0} @@ -2527,14 +2503,6 @@ packages: resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} engines: {node: '>= 8'} - crossws@0.2.4: - resolution: {integrity: sha512-DAxroI2uSOgUKLz00NX6A8U/8EE3SZHmIND+10jkVSaypvyt57J5JEOxAQOL6lQxyzi/wZbTIwssU1uy69h5Vg==} - peerDependencies: - uWebSockets.js: '*' - peerDependenciesMeta: - uWebSockets.js: - optional: true - crossws@0.3.1: resolution: {integrity: sha512-HsZgeVYaG+b5zA+9PbIPGq4+J/CJynJuearykPsXx4V/eMhyQ5EDVg3Ak2FBZtVXCiOLu/U7IiwDHTr9MA+IKw==} @@ -3897,8 +3865,16 @@ packages: engines: {node: ^16.10.0 || >=18.0.0} hasBin: true - nuxt-auth-utils@0.3.8: - resolution: {integrity: sha512-wIED0FXCiBH1FV9LtJbQ3aP/JCK+FEqpAO4ap/h2GRsfGpa5TMPnXb2QcGDdvSGLlDsILQwzL3uw3BteWH+/EA==} + nuxt-auth-utils@0.5.3: + resolution: {integrity: sha512-APDKcRHn1gROwPUXB5C7NIV7P/4w6oqLINfTLtRyD69VUUSoY2CC0I1OqDnMsUxD3LHIvlEideRZ/rjYBQtfOg==} + peerDependencies: + '@simplewebauthn/browser': ^11.0.0 + '@simplewebauthn/server': ^11.0.0 + peerDependenciesMeta: + '@simplewebauthn/browser': + optional: true + '@simplewebauthn/server': + optional: true nuxt@3.14.159: resolution: {integrity: sha512-1xz6AfFkun+byUIkBNX3/CTOTShPRFJe0y9HqWZX2aV9xdoz5ByeaHZfktokhOOSbvabjDyzkTbbHh3V673qHw==} @@ -3931,9 +3907,6 @@ packages: resolution: {integrity: sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==} engines: {node: '>= 6'} - ofetch@1.3.4: - resolution: {integrity: sha512-KLIET85ik3vhEfS+3fDlc/BAZiAp+43QEC/yCo5zkNoY2YaKvNkOaFr/6wCFgFH1kuYQM5pMNi0Tg8koiIemtw==} - ofetch@1.4.1: resolution: {integrity: sha512-QZj2DfGplQAr2oj9KzceK9Hwz6Whxazmn85yYeVuS3u9XTMOGMRx0kO95MQ+vLsj/S/NwBDMMLU5hpxvI6Tklw==} @@ -5181,11 +5154,6 @@ packages: peerDependencies: vite: ^3.0.0-0 || ^4.0.0-0 || ^5.0.0-0 - vite-plugin-vue-inspector@5.2.0: - resolution: {integrity: sha512-wWxyb9XAtaIvV/Lr7cqB1HIzmHZFVUJsTNm3yAxkS87dgh/Ky4qr2wDEWNxF23fdhVa3jQ8MZREpr4XyiuaRqA==} - peerDependencies: - vite: ^3.0.0-0 || ^4.0.0-0 || ^5.0.0-0 - vite@5.4.10: resolution: {integrity: sha512-1hvaPshuPUtxeQ0hsVH3Mud0ZanOLwVTneA1EgbAM5LhaZEqyPWGRQ7BtaMvUrTDeEaC8pxtj6a6jku3x4z6SQ==} engines: {node: ^18.0.0 || >=20.0.0} @@ -5527,7 +5495,7 @@ snapshots: '@babel/generator@7.25.6': dependencies: - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 '@jridgewell/gen-mapping': 0.3.5 '@jridgewell/trace-mapping': 0.3.25 jsesc: 2.5.2 @@ -5542,7 +5510,7 @@ snapshots: '@babel/helper-annotate-as-pure@7.24.7': dependencies: - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 '@babel/helper-compilation-targets@7.25.2': dependencies: @@ -5568,22 +5536,28 @@ snapshots: '@babel/helper-optimise-call-expression': 7.24.7 '@babel/helper-replace-supers': 7.25.0(@babel/core@7.25.2) '@babel/helper-skip-transparent-expression-wrappers': 7.24.7 - '@babel/traverse': 7.25.6 + '@babel/traverse': 7.25.9 semver: 6.3.1 transitivePeerDependencies: - supports-color - '@babel/helper-member-expression-to-functions@7.24.8': + '@babel/helper-create-class-features-plugin@7.25.4(@babel/core@7.26.0)': dependencies: - '@babel/traverse': 7.25.6 - '@babel/types': 7.25.6 + '@babel/core': 7.26.0 + '@babel/helper-annotate-as-pure': 7.24.7 + '@babel/helper-member-expression-to-functions': 7.24.8 + '@babel/helper-optimise-call-expression': 7.24.7 + '@babel/helper-replace-supers': 7.25.0(@babel/core@7.26.0) + '@babel/helper-skip-transparent-expression-wrappers': 7.24.7 + '@babel/traverse': 7.25.9 + semver: 6.3.1 transitivePeerDependencies: - supports-color - '@babel/helper-module-imports@7.24.7': + '@babel/helper-member-expression-to-functions@7.24.8': dependencies: - '@babel/traverse': 7.25.6 - '@babel/types': 7.25.6 + '@babel/traverse': 7.25.9 + '@babel/types': 7.26.0 transitivePeerDependencies: - supports-color @@ -5597,10 +5571,10 @@ snapshots: '@babel/helper-module-transforms@7.25.2(@babel/core@7.25.2)': dependencies: '@babel/core': 7.25.2 - '@babel/helper-module-imports': 7.24.7 + '@babel/helper-module-imports': 7.25.9 '@babel/helper-simple-access': 7.24.7 '@babel/helper-validator-identifier': 7.24.7 - '@babel/traverse': 7.25.6 + '@babel/traverse': 7.25.9 transitivePeerDependencies: - supports-color @@ -5615,7 +5589,7 @@ snapshots: '@babel/helper-optimise-call-expression@7.24.7': dependencies: - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 '@babel/helper-plugin-utils@7.24.8': {} @@ -5624,21 +5598,30 @@ snapshots: '@babel/core': 7.25.2 '@babel/helper-member-expression-to-functions': 7.24.8 '@babel/helper-optimise-call-expression': 7.24.7 - '@babel/traverse': 7.25.6 + '@babel/traverse': 7.25.9 + transitivePeerDependencies: + - supports-color + + '@babel/helper-replace-supers@7.25.0(@babel/core@7.26.0)': + dependencies: + '@babel/core': 7.26.0 + '@babel/helper-member-expression-to-functions': 7.24.8 + '@babel/helper-optimise-call-expression': 7.24.7 + '@babel/traverse': 7.25.9 transitivePeerDependencies: - supports-color '@babel/helper-simple-access@7.24.7': dependencies: - '@babel/traverse': 7.25.6 - '@babel/types': 7.25.6 + '@babel/traverse': 7.25.9 + '@babel/types': 7.26.0 transitivePeerDependencies: - supports-color '@babel/helper-skip-transparent-expression-wrappers@7.24.7': dependencies: - '@babel/traverse': 7.25.6 - '@babel/types': 7.25.6 + '@babel/traverse': 7.25.9 + '@babel/types': 7.26.0 transitivePeerDependencies: - supports-color @@ -5656,8 +5639,8 @@ snapshots: '@babel/helpers@7.25.6': dependencies: - '@babel/template': 7.25.0 - '@babel/types': 7.25.6 + '@babel/template': 7.25.9 + '@babel/types': 7.26.0 '@babel/helpers@7.26.0': dependencies: @@ -5679,28 +5662,28 @@ snapshots: dependencies: '@babel/types': 7.26.0 - '@babel/plugin-proposal-decorators@7.24.7(@babel/core@7.25.2)': + '@babel/plugin-proposal-decorators@7.24.7(@babel/core@7.26.0)': dependencies: - '@babel/core': 7.25.2 - '@babel/helper-create-class-features-plugin': 7.25.4(@babel/core@7.25.2) + '@babel/core': 7.26.0 + '@babel/helper-create-class-features-plugin': 7.25.4(@babel/core@7.26.0) '@babel/helper-plugin-utils': 7.24.8 - '@babel/plugin-syntax-decorators': 7.24.7(@babel/core@7.25.2) + '@babel/plugin-syntax-decorators': 7.24.7(@babel/core@7.26.0) transitivePeerDependencies: - supports-color - '@babel/plugin-syntax-decorators@7.24.7(@babel/core@7.25.2)': + '@babel/plugin-syntax-decorators@7.24.7(@babel/core@7.26.0)': dependencies: - '@babel/core': 7.25.2 + '@babel/core': 7.26.0 '@babel/helper-plugin-utils': 7.24.8 - '@babel/plugin-syntax-import-attributes@7.25.6(@babel/core@7.25.2)': + '@babel/plugin-syntax-import-attributes@7.25.6(@babel/core@7.26.0)': dependencies: - '@babel/core': 7.25.2 + '@babel/core': 7.26.0 '@babel/helper-plugin-utils': 7.24.8 - '@babel/plugin-syntax-import-meta@7.10.4(@babel/core@7.25.2)': + '@babel/plugin-syntax-import-meta@7.10.4(@babel/core@7.26.0)': dependencies: - '@babel/core': 7.25.2 + '@babel/core': 7.26.0 '@babel/helper-plugin-utils': 7.24.8 '@babel/plugin-syntax-jsx@7.24.7(@babel/core@7.25.2)': @@ -5708,11 +5691,21 @@ snapshots: '@babel/core': 7.25.2 '@babel/helper-plugin-utils': 7.24.8 + '@babel/plugin-syntax-jsx@7.24.7(@babel/core@7.26.0)': + dependencies: + '@babel/core': 7.26.0 + '@babel/helper-plugin-utils': 7.24.8 + '@babel/plugin-syntax-typescript@7.25.4(@babel/core@7.25.2)': dependencies: '@babel/core': 7.25.2 '@babel/helper-plugin-utils': 7.24.8 + '@babel/plugin-syntax-typescript@7.25.4(@babel/core@7.26.0)': + dependencies: + '@babel/core': 7.26.0 + '@babel/helper-plugin-utils': 7.24.8 + '@babel/plugin-transform-typescript@7.25.2(@babel/core@7.25.2)': dependencies: '@babel/core': 7.25.2 @@ -5724,6 +5717,17 @@ snapshots: transitivePeerDependencies: - supports-color + '@babel/plugin-transform-typescript@7.25.2(@babel/core@7.26.0)': + dependencies: + '@babel/core': 7.26.0 + '@babel/helper-annotate-as-pure': 7.24.7 + '@babel/helper-create-class-features-plugin': 7.25.4(@babel/core@7.26.0) + '@babel/helper-plugin-utils': 7.24.8 + '@babel/helper-skip-transparent-expression-wrappers': 7.24.7 + '@babel/plugin-syntax-typescript': 7.25.4(@babel/core@7.26.0) + transitivePeerDependencies: + - supports-color + '@babel/standalone@7.25.6': {} '@babel/standalone@7.26.2': {} @@ -5732,7 +5736,7 @@ snapshots: dependencies: '@babel/code-frame': 7.24.7 '@babel/parser': 7.25.6 - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 '@babel/template@7.25.9': dependencies: @@ -5745,8 +5749,8 @@ snapshots: '@babel/code-frame': 7.24.7 '@babel/generator': 7.25.6 '@babel/parser': 7.25.6 - '@babel/template': 7.25.0 - '@babel/types': 7.25.6 + '@babel/template': 7.25.9 + '@babel/types': 7.26.0 debug: 4.3.7(supports-color@9.4.0) globals: 11.12.0 transitivePeerDependencies: @@ -6282,12 +6286,12 @@ snapshots: '@nuxt/devalue@2.0.2': {} - '@nuxt/devtools-kit@1.4.2(magicast@0.3.5)(rollup@4.24.4)(vite@5.4.6(@types/node@22.5.5)(terser@5.33.0))': + '@nuxt/devtools-kit@1.6.0(magicast@0.3.5)(rollup@4.24.4)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0))': dependencies: '@nuxt/kit': 3.14.159(magicast@0.3.5)(rollup@4.24.4) '@nuxt/schema': 3.14.159(magicast@0.3.5)(rollup@4.24.4) execa: 7.2.0 - vite: 5.4.6(@types/node@22.5.5)(terser@5.33.0) + vite: 5.4.10(@types/node@22.5.5)(terser@5.33.0) transitivePeerDependencies: - magicast - rollup @@ -6306,19 +6310,6 @@ snapshots: - supports-color - webpack-sources - '@nuxt/devtools-wizard@1.4.2': - dependencies: - consola: 3.2.3 - diff: 7.0.0 - execa: 7.2.0 - global-directory: 4.0.1 - magicast: 0.3.5 - pathe: 1.1.2 - pkg-types: 1.2.1 - prompts: 2.4.2 - rc9: 2.1.2 - semver: 7.6.3 - '@nuxt/devtools-wizard@1.6.0': dependencies: consola: 3.2.3 @@ -6332,13 +6323,13 @@ snapshots: rc9: 2.1.2 semver: 7.6.3 - '@nuxt/devtools@1.4.2(rollup@4.24.4)(vite@5.4.6(@types/node@22.5.5)(terser@5.33.0))(vue@3.5.12(typescript@5.6.3))': + '@nuxt/devtools@1.6.0(rollup@4.24.4)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0))(vue@3.5.12(typescript@5.6.3))': dependencies: '@antfu/utils': 0.7.10 - '@nuxt/devtools-kit': 1.4.2(magicast@0.3.5)(rollup@4.24.4)(vite@5.4.6(@types/node@22.5.5)(terser@5.33.0)) - '@nuxt/devtools-wizard': 1.4.2 + '@nuxt/devtools-kit': 1.6.0(magicast@0.3.5)(rollup@4.24.4)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0)) + '@nuxt/devtools-wizard': 1.6.0 '@nuxt/kit': 3.14.159(magicast@0.3.5)(rollup@4.24.4) - '@vue/devtools-core': 7.4.4(vite@5.4.6(@types/node@22.5.5)(terser@5.33.0))(vue@3.5.12(typescript@5.6.3)) + '@vue/devtools-core': 7.4.4(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0))(vue@3.5.12(typescript@5.6.3)) '@vue/devtools-kit': 7.4.4 birpc: 0.2.17 consola: 3.2.3 @@ -6367,9 +6358,9 @@ snapshots: sirv: 2.0.4 tinyglobby: 0.2.6 unimport: 3.12.0(rollup@4.24.4) - vite: 5.4.6(@types/node@22.5.5)(terser@5.33.0) - vite-plugin-inspect: 0.8.7(@nuxt/kit@3.14.159(magicast@0.3.5)(rollup@4.24.4))(rollup@4.24.4)(vite@5.4.6(@types/node@22.5.5)(terser@5.33.0)) - vite-plugin-vue-inspector: 5.2.0(vite@5.4.6(@types/node@22.5.5)(terser@5.33.0)) + vite: 5.4.10(@types/node@22.5.5)(terser@5.33.0) + vite-plugin-inspect: 0.8.7(@nuxt/kit@3.14.159(magicast@0.3.5)(rollup@4.24.4))(rollup@4.24.4)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0)) + vite-plugin-vue-inspector: 5.1.3(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0)) which: 3.0.1 ws: 8.18.0 transitivePeerDependencies: @@ -6403,18 +6394,18 @@ snapshots: launch-editor: 2.9.1 local-pkg: 0.5.0 magicast: 0.3.5 - nypm: 0.3.12 + nypm: 0.3.11 ohash: 1.1.4 pathe: 1.1.2 perfect-debounce: 1.0.0 - pkg-types: 1.2.1 + pkg-types: 1.2.0 rc9: 2.1.2 scule: 1.3.0 semver: 7.6.3 simple-git: 3.27.0 sirv: 2.0.4 - tinyglobby: 0.2.10 - unimport: 3.13.1(rollup@4.24.4) + tinyglobby: 0.2.6 + unimport: 3.12.0(rollup@4.24.4) vite: 5.4.6(@types/node@22.5.5)(terser@5.33.0) vite-plugin-inspect: 0.8.7(@nuxt/kit@3.14.159(magicast@0.3.5)(rollup@4.24.4))(rollup@4.24.4)(vite@5.4.6(@types/node@22.5.5)(terser@5.33.0)) vite-plugin-vue-inspector: 5.1.3(vite@5.4.6(@types/node@22.5.5)(terser@5.33.0)) @@ -6483,34 +6474,6 @@ snapshots: - vue - webpack-sources - '@nuxt/kit@3.13.2(magicast@0.3.5)(rollup@4.24.4)': - dependencies: - '@nuxt/schema': 3.13.2(rollup@4.24.4) - c12: 1.11.2(magicast@0.3.5) - consola: 3.2.3 - defu: 6.1.4 - destr: 2.0.3 - globby: 14.0.2 - hash-sum: 2.0.0 - ignore: 5.3.2 - jiti: 1.21.6 - klona: 2.0.6 - knitwork: 1.1.0 - mlly: 1.7.1 - pathe: 1.1.2 - pkg-types: 1.2.0 - scule: 1.3.0 - semver: 7.6.3 - ufo: 1.5.4 - unctx: 2.3.1 - unimport: 3.12.0(rollup@4.24.4) - untyped: 1.4.2 - transitivePeerDependencies: - - magicast - - rollup - - supports-color - - webpack-sources - '@nuxt/kit@3.14.159(magicast@0.3.5)(rollup@4.24.4)': dependencies: '@nuxt/schema': 3.14.159(magicast@0.3.5)(rollup@4.24.4) @@ -6559,25 +6522,6 @@ snapshots: - vue-tsc - webpack-sources - '@nuxt/schema@3.13.2(rollup@4.24.4)': - dependencies: - compatx: 0.1.8 - consola: 3.2.3 - defu: 6.1.4 - hookable: 5.5.3 - pathe: 1.1.2 - pkg-types: 1.2.1 - scule: 1.3.0 - std-env: 3.7.0 - ufo: 1.5.4 - uncrypto: 0.1.3 - unimport: 3.13.1(rollup@4.24.4) - untyped: 1.5.1 - transitivePeerDependencies: - - rollup - - supports-color - - webpack-sources - '@nuxt/schema@3.14.159(magicast@0.3.5)(rollup@4.24.4)': dependencies: c12: 2.0.1(magicast@0.3.5) @@ -6692,7 +6636,6 @@ snapshots: - sortablejs - supports-color - ts-node - - uWebSockets.js - universal-cookie - vite - vue @@ -6738,7 +6681,6 @@ snapshots: - sortablejs - supports-color - ts-node - - uWebSockets.js - universal-cookie - vite - vue @@ -6799,7 +6741,6 @@ snapshots: - supports-color - terser - typescript - - uWebSockets.js - vls - vti - vue-tsc @@ -6837,7 +6778,6 @@ snapshots: - rollup - supports-color - ts-node - - uWebSockets.js - webpack-sources '@parcel/watcher-android-arm64@2.4.1': @@ -7551,12 +7491,12 @@ snapshots: '@vue/babel-plugin-jsx@1.2.5(@babel/core@7.25.2)': dependencies: - '@babel/helper-module-imports': 7.24.7 + '@babel/helper-module-imports': 7.25.9 '@babel/helper-plugin-utils': 7.24.8 '@babel/plugin-syntax-jsx': 7.24.7(@babel/core@7.25.2) - '@babel/template': 7.25.0 - '@babel/traverse': 7.25.6 - '@babel/types': 7.25.6 + '@babel/template': 7.25.9 + '@babel/traverse': 7.25.9 + '@babel/types': 7.26.0 '@vue/babel-helper-vue-transform-on': 1.2.5 '@vue/babel-plugin-resolve-type': 1.2.5(@babel/core@7.25.2) html-tags: 3.3.1 @@ -7566,14 +7506,42 @@ snapshots: transitivePeerDependencies: - supports-color + '@vue/babel-plugin-jsx@1.2.5(@babel/core@7.26.0)': + dependencies: + '@babel/helper-module-imports': 7.25.9 + '@babel/helper-plugin-utils': 7.24.8 + '@babel/plugin-syntax-jsx': 7.24.7(@babel/core@7.26.0) + '@babel/template': 7.25.9 + '@babel/traverse': 7.25.9 + '@babel/types': 7.26.0 + '@vue/babel-helper-vue-transform-on': 1.2.5 + '@vue/babel-plugin-resolve-type': 1.2.5(@babel/core@7.26.0) + html-tags: 3.3.1 + svg-tags: 1.0.0 + optionalDependencies: + '@babel/core': 7.26.0 + transitivePeerDependencies: + - supports-color + '@vue/babel-plugin-resolve-type@1.2.5(@babel/core@7.25.2)': dependencies: - '@babel/code-frame': 7.24.7 + '@babel/code-frame': 7.26.2 '@babel/core': 7.25.2 - '@babel/helper-module-imports': 7.24.7 + '@babel/helper-module-imports': 7.25.9 '@babel/helper-plugin-utils': 7.24.8 - '@babel/parser': 7.25.6 - '@vue/compiler-sfc': 3.5.6 + '@babel/parser': 7.26.2 + '@vue/compiler-sfc': 3.5.12 + transitivePeerDependencies: + - supports-color + + '@vue/babel-plugin-resolve-type@1.2.5(@babel/core@7.26.0)': + dependencies: + '@babel/code-frame': 7.26.2 + '@babel/core': 7.26.0 + '@babel/helper-module-imports': 7.25.9 + '@babel/helper-plugin-utils': 7.24.8 + '@babel/parser': 7.26.2 + '@vue/compiler-sfc': 3.5.12 transitivePeerDependencies: - supports-color @@ -7644,6 +7612,18 @@ snapshots: '@vue/devtools-api@6.6.4': {} + '@vue/devtools-core@7.4.4(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0))(vue@3.5.12(typescript@5.6.3))': + dependencies: + '@vue/devtools-kit': 7.4.4 + '@vue/devtools-shared': 7.4.5 + mitt: 3.0.1 + nanoid: 3.3.7 + pathe: 1.1.2 + vite-hot-client: 0.2.3(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0)) + vue: 3.5.12(typescript@5.6.3) + transitivePeerDependencies: + - vite + '@vue/devtools-core@7.4.4(vite@5.4.6(@types/node@22.5.5)(terser@5.33.0))(vue@3.5.12(typescript@5.6.3))': dependencies: '@vue/devtools-kit': 7.4.4 @@ -8229,8 +8209,6 @@ snapshots: shebang-command: 2.0.0 which: 2.0.2 - crossws@0.2.4: {} - crossws@0.3.1: dependencies: uncrypto: 0.1.3 @@ -9029,7 +9007,7 @@ snapshots: h3@1.13.0: dependencies: cookie-es: 1.2.2 - crossws: 0.2.4 + crossws: 0.3.1 defu: 6.1.4 destr: 2.0.3 iron-webcrypto: 1.2.1 @@ -9038,8 +9016,6 @@ snapshots: ufo: 1.5.4 uncrypto: 0.1.3 unenv: 1.10.0 - transitivePeerDependencies: - - uWebSockets.js has-flag@3.0.0: {} @@ -9407,8 +9383,6 @@ snapshots: ufo: 1.5.4 untun: 0.1.3 uqr: 0.1.2 - transitivePeerDependencies: - - uWebSockets.js local-pkg@0.5.0: dependencies: @@ -9713,7 +9687,6 @@ snapshots: - mysql2 - supports-color - typescript - - uWebSockets.js - webpack-sources node-abi@3.68.0: @@ -9770,21 +9743,141 @@ snapshots: nuxi@3.15.0: {} - nuxt-auth-utils@0.3.8(magicast@0.3.5)(rollup@4.24.4): + nuxt-auth-utils@0.5.3(@simplewebauthn/browser@11.0.0)(@simplewebauthn/server@11.0.0)(magicast@0.3.5)(rollup@4.24.4): dependencies: - '@nuxt/kit': 3.13.2(magicast@0.3.5)(rollup@4.24.4) + '@adonisjs/hash': 9.0.5 + '@nuxt/kit': 3.14.159(magicast@0.3.5)(rollup@4.24.4) defu: 6.1.4 hookable: 5.5.3 - ofetch: 1.3.4 + ofetch: 1.4.1 ohash: 1.1.4 pathe: 1.1.2 scule: 1.3.0 uncrypto: 0.1.3 + optionalDependencies: + '@simplewebauthn/browser': 11.0.0 + '@simplewebauthn/server': 11.0.0 + transitivePeerDependencies: + - argon2 + - bcrypt + - magicast + - rollup + - supports-color + - webpack-sources + + nuxt@3.14.159(@parcel/watcher@2.4.1)(@types/node@22.5.5)(better-sqlite3@11.5.0)(eslint@9.14.0(jiti@2.4.0))(ioredis@5.4.1)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.24.4)(terser@5.33.0)(typescript@5.6.3)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0))(vue-tsc@2.1.10(typescript@5.6.3)): + dependencies: + '@nuxt/devalue': 2.0.2 + '@nuxt/devtools': 1.6.0(rollup@4.24.4)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0))(vue@3.5.12(typescript@5.6.3)) + '@nuxt/kit': 3.14.159(magicast@0.3.5)(rollup@4.24.4) + '@nuxt/schema': 3.14.159(magicast@0.3.5)(rollup@4.24.4) + '@nuxt/telemetry': 2.6.0(magicast@0.3.5)(rollup@4.24.4) + '@nuxt/vite-builder': 3.14.159(@types/node@22.5.5)(eslint@9.14.0(jiti@2.4.0))(magicast@0.3.5)(optionator@0.9.4)(rollup@4.24.4)(terser@5.33.0)(typescript@5.6.3)(vue-tsc@2.1.10(typescript@5.6.3))(vue@3.5.12(typescript@5.6.3)) + '@unhead/dom': 1.11.11 + '@unhead/shared': 1.11.11 + '@unhead/ssr': 1.11.11 + '@unhead/vue': 1.11.11(vue@3.5.12(typescript@5.6.3)) + '@vue/shared': 3.5.12 + acorn: 8.14.0 + c12: 2.0.1(magicast@0.3.5) + chokidar: 4.0.1 + compatx: 0.1.8 + consola: 3.2.3 + cookie-es: 1.2.2 + defu: 6.1.4 + destr: 2.0.3 + devalue: 5.1.1 + errx: 0.1.0 + esbuild: 0.24.0 + escape-string-regexp: 5.0.0 + estree-walker: 3.0.3 + globby: 14.0.2 + h3: 1.13.0 + hookable: 5.5.3 + ignore: 6.0.2 + impound: 0.2.0(rollup@4.24.4) + jiti: 2.4.0 + klona: 2.0.6 + knitwork: 1.1.0 + magic-string: 0.30.12 + mlly: 1.7.2 + nanotar: 0.1.1 + nitropack: 2.10.4(better-sqlite3@11.5.0)(typescript@5.6.3) + nuxi: 3.15.0 + nypm: 0.3.12 + ofetch: 1.4.1 + ohash: 1.1.4 + pathe: 1.1.2 + perfect-debounce: 1.0.0 + pkg-types: 1.2.1 + radix3: 1.1.2 + scule: 1.3.0 + semver: 7.6.3 + std-env: 3.7.0 + strip-literal: 2.1.0 + tinyglobby: 0.2.10 + ufo: 1.5.4 + ultrahtml: 1.5.3 + uncrypto: 0.1.3 + unctx: 2.3.1 + unenv: 1.10.0 + unhead: 1.11.11 + unimport: 3.13.1(rollup@4.24.4) + unplugin: 1.15.0 + unplugin-vue-router: 0.10.8(rollup@4.24.4)(vue-router@4.4.5(vue@3.5.12(typescript@5.6.3)))(vue@3.5.12(typescript@5.6.3)) + unstorage: 1.13.1(ioredis@5.4.1) + untyped: 1.5.1 + vue: 3.5.12(typescript@5.6.3) + vue-bundle-renderer: 2.1.1 + vue-devtools-stub: 0.1.0 + vue-router: 4.4.5(vue@3.5.12(typescript@5.6.3)) + optionalDependencies: + '@parcel/watcher': 2.4.1 + '@types/node': 22.5.5 transitivePeerDependencies: + - '@azure/app-configuration' + - '@azure/cosmos' + - '@azure/data-tables' + - '@azure/identity' + - '@azure/keyvault-secrets' + - '@azure/storage-blob' + - '@biomejs/biome' + - '@capacitor/preferences' + - '@electric-sql/pglite' + - '@libsql/client' + - '@netlify/blobs' + - '@planetscale/database' + - '@upstash/redis' + - '@vercel/kv' + - better-sqlite3 + - bufferutil + - drizzle-orm + - encoding + - eslint + - idb-keyval + - ioredis + - less + - lightningcss - magicast + - meow + - mysql2 + - optionator - rollup + - sass + - sass-embedded + - stylelint + - stylus + - sugarss - supports-color + - terser + - typescript + - utf-8-validate + - vite + - vls + - vti + - vue-tsc - webpack-sources + - xml2js nuxt@3.14.159(@parcel/watcher@2.4.1)(@types/node@22.5.5)(better-sqlite3@11.5.0)(eslint@9.14.0(jiti@2.4.0))(ioredis@5.4.1)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.24.4)(terser@5.33.0)(typescript@5.6.3)(vite@5.4.6(@types/node@22.5.5)(terser@5.33.0))(vue-tsc@2.1.10(typescript@5.6.3)): dependencies: @@ -9892,7 +9985,6 @@ snapshots: - supports-color - terser - typescript - - uWebSockets.js - utf-8-validate - vite - vls @@ -9923,12 +10015,6 @@ snapshots: object-hash@3.0.0: {} - ofetch@1.3.4: - dependencies: - destr: 2.0.3 - node-fetch-native: 1.6.4 - ufo: 1.5.4 - ofetch@1.4.1: dependencies: destr: 2.0.3 @@ -11145,8 +11231,6 @@ snapshots: ufo: 1.5.4 optionalDependencies: ioredis: 5.4.1 - transitivePeerDependencies: - - uWebSockets.js untun@0.1.3: dependencies: @@ -11220,6 +11304,10 @@ snapshots: vary@1.1.2: {} + vite-hot-client@0.2.3(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0)): + dependencies: + vite: 5.4.10(@types/node@22.5.5)(terser@5.33.0) + vite-hot-client@0.2.3(vite@5.4.6(@types/node@22.5.5)(terser@5.33.0)): dependencies: vite: 5.4.6(@types/node@22.5.5)(terser@5.33.0) @@ -11264,6 +11352,24 @@ snapshots: typescript: 5.6.3 vue-tsc: 2.1.10(typescript@5.6.3) + vite-plugin-inspect@0.8.7(@nuxt/kit@3.14.159(magicast@0.3.5)(rollup@4.24.4))(rollup@4.24.4)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0)): + dependencies: + '@antfu/utils': 0.7.10 + '@rollup/pluginutils': 5.1.0(rollup@4.24.4) + debug: 4.3.7(supports-color@9.4.0) + error-stack-parser-es: 0.1.5 + fs-extra: 11.2.0 + open: 10.1.0 + perfect-debounce: 1.0.0 + picocolors: 1.1.0 + sirv: 2.0.4 + vite: 5.4.10(@types/node@22.5.5)(terser@5.33.0) + optionalDependencies: + '@nuxt/kit': 3.14.159(magicast@0.3.5)(rollup@4.24.4) + transitivePeerDependencies: + - rollup + - supports-color + vite-plugin-inspect@0.8.7(@nuxt/kit@3.14.159(magicast@0.3.5)(rollup@4.24.4))(rollup@4.24.4)(vite@5.4.6(@types/node@22.5.5)(terser@5.33.0)): dependencies: '@antfu/utils': 0.7.10 @@ -11282,30 +11388,30 @@ snapshots: - rollup - supports-color - vite-plugin-vue-inspector@5.1.3(vite@5.4.6(@types/node@22.5.5)(terser@5.33.0)): + vite-plugin-vue-inspector@5.1.3(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0)): dependencies: - '@babel/core': 7.25.2 - '@babel/plugin-proposal-decorators': 7.24.7(@babel/core@7.25.2) - '@babel/plugin-syntax-import-attributes': 7.25.6(@babel/core@7.25.2) - '@babel/plugin-syntax-import-meta': 7.10.4(@babel/core@7.25.2) - '@babel/plugin-transform-typescript': 7.25.2(@babel/core@7.25.2) - '@vue/babel-plugin-jsx': 1.2.5(@babel/core@7.25.2) - '@vue/compiler-dom': 3.5.6 + '@babel/core': 7.26.0 + '@babel/plugin-proposal-decorators': 7.24.7(@babel/core@7.26.0) + '@babel/plugin-syntax-import-attributes': 7.25.6(@babel/core@7.26.0) + '@babel/plugin-syntax-import-meta': 7.10.4(@babel/core@7.26.0) + '@babel/plugin-transform-typescript': 7.25.2(@babel/core@7.26.0) + '@vue/babel-plugin-jsx': 1.2.5(@babel/core@7.26.0) + '@vue/compiler-dom': 3.5.12 kolorist: 1.8.0 magic-string: 0.30.12 - vite: 5.4.6(@types/node@22.5.5)(terser@5.33.0) + vite: 5.4.10(@types/node@22.5.5)(terser@5.33.0) transitivePeerDependencies: - supports-color - vite-plugin-vue-inspector@5.2.0(vite@5.4.6(@types/node@22.5.5)(terser@5.33.0)): + vite-plugin-vue-inspector@5.1.3(vite@5.4.6(@types/node@22.5.5)(terser@5.33.0)): dependencies: - '@babel/core': 7.25.2 - '@babel/plugin-proposal-decorators': 7.24.7(@babel/core@7.25.2) - '@babel/plugin-syntax-import-attributes': 7.25.6(@babel/core@7.25.2) - '@babel/plugin-syntax-import-meta': 7.10.4(@babel/core@7.25.2) - '@babel/plugin-transform-typescript': 7.25.2(@babel/core@7.25.2) - '@vue/babel-plugin-jsx': 1.2.5(@babel/core@7.25.2) - '@vue/compiler-dom': 3.5.6 + '@babel/core': 7.26.0 + '@babel/plugin-proposal-decorators': 7.24.7(@babel/core@7.26.0) + '@babel/plugin-syntax-import-attributes': 7.25.6(@babel/core@7.26.0) + '@babel/plugin-syntax-import-meta': 7.10.4(@babel/core@7.26.0) + '@babel/plugin-transform-typescript': 7.25.2(@babel/core@7.26.0) + '@vue/babel-plugin-jsx': 1.2.5(@babel/core@7.26.0) + '@vue/compiler-dom': 3.5.12 kolorist: 1.8.0 magic-string: 0.30.12 vite: 5.4.6(@types/node@22.5.5)(terser@5.33.0) diff --git a/src/module.ts b/src/module.ts index e0f0f84..f359583 100644 --- a/src/module.ts +++ b/src/module.ts @@ -14,6 +14,7 @@ import { join } from 'pathe' import { defu } from 'defu' import { randomUUID } from 'uncrypto' import type { ScryptConfig } from '@adonisjs/hash/types' +import type { SessionConfig } from 'h3' // Module options TypeScript interface definition export interface ModuleOptions { @@ -38,6 +39,10 @@ declare module 'nuxt/schema' { hash: { scrypt: ScryptConfig } + /** + * Session configuration + */ + session: SessionConfig } } @@ -122,7 +127,7 @@ export default defineNuxtModule({ cookie: { sameSite: 'lax', }, - }) + }) as SessionConfig runtimeConfig.hash = defu(runtimeConfig.hash, { scrypt: options.hash?.scrypt,