nuxt-users 1.6.1 → 1.6.3

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/CHANGELOG.md CHANGED
@@ -1,6 +1,38 @@
1
1
  # Changelog
2
2
 
3
3
 
4
+ ## v1.6.3
5
+
6
+ [compare changes](https://github.com/rrd108/nuxt-users/compare/v1.6.2...v1.6.3)
7
+
8
+ ### 🩹 Fixes
9
+
10
+ - Import paths ([ab7f530](https://github.com/rrd108/nuxt-users/commit/ab7f530))
11
+
12
+ ### 🏡 Chore
13
+
14
+ - **release:** V1.6.2 ([e000fad](https://github.com/rrd108/nuxt-users/commit/e000fad))
15
+
16
+ ### ❤️ Contributors
17
+
18
+ - Rrd108 ([@rrd108](https://github.com/rrd108))
19
+
20
+ ## v1.6.2
21
+
22
+ [compare changes](https://github.com/rrd108/nuxt-users/compare/v1.6.1...v1.6.2)
23
+
24
+ ### 🩹 Fixes
25
+
26
+ - Exports `getCurrentUserFromToken` from utils index ([5c67e24](https://github.com/rrd108/nuxt-users/commit/5c67e24))
27
+
28
+ ### 🏡 Chore
29
+
30
+ - **release:** V1.6.1 ([6e02e68](https://github.com/rrd108/nuxt-users/commit/6e02e68))
31
+
32
+ ### ❤️ Contributors
33
+
34
+ - Rrd108 ([@rrd108](https://github.com/rrd108))
35
+
4
36
  ## v1.6.1
5
37
 
6
38
  [compare changes](https://github.com/rrd108/nuxt-users/compare/v1.6.0...v1.6.1)
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-users",
3
3
  "configKey": "nuxtUsers",
4
- "version": "1.6.1",
4
+ "version": "1.6.3",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.1",
7
7
  "unbuild": "3.6.0"
@@ -1,4 +1,4 @@
1
- import type { PasswordValidationResult } from '../../utils/password-validation.js';
1
+ import type { PasswordValidationResult } from '../../utils/index.js';
2
2
  interface Props {
3
3
  password: string;
4
4
  validationResult: PasswordValidationResult | null;
@@ -1,4 +1,4 @@
1
- import { type PasswordValidationResult, type PasswordValidationOptions } from '../../utils/password-validation.js';
1
+ import { type PasswordValidationResult, type PasswordValidationOptions } from '../../utils/index.js';
2
2
  import type { ModuleOptions } from '../../types.js';
3
3
  export declare const usePasswordValidation: (moduleOptions?: ModuleOptions, options?: PasswordValidationOptions) => {
4
4
  password: import("vue").Ref<string, string>;
@@ -1,5 +1,5 @@
1
1
  import { ref, computed } from "vue";
2
- import { validatePassword, getPasswordValidationOptions, getPasswordStrengthColor, getPasswordStrengthText } from "../../utils/password-validation";
2
+ import { validatePassword, getPasswordValidationOptions, getPasswordStrengthColor, getPasswordStrengthText } from "../../utils";
3
3
  export const usePasswordValidation = (moduleOptions, options) => {
4
4
  const passwordOptions = getPasswordValidationOptions(moduleOptions);
5
5
  const finalOptions = { ...passwordOptions, ...options };
@@ -1,7 +1,7 @@
1
1
  import { defineEventHandler, readBody, createError, H3Error } from "h3";
2
2
  import { resetPassword } from "../../services/password.js";
3
3
  import { useRuntimeConfig } from "#imports";
4
- import { validatePassword, getPasswordValidationOptions } from "../../../../utils/password-validation";
4
+ import { validatePassword, getPasswordValidationOptions } from "../../../../utils";
5
5
  export default defineEventHandler(async (event) => {
6
6
  const body = await readBody(event);
7
7
  const { token, email, password, password_confirmation } = body;
@@ -1,8 +1,7 @@
1
1
  import { createError, defineEventHandler, getCookie, readBody } from "h3";
2
2
  import bcrypt from "bcrypt";
3
3
  import { useRuntimeConfig } from "#imports";
4
- import { getCurrentUserFromToken, updateUserPassword } from "../../../utils/user";
5
- import { validatePassword, getPasswordValidationOptions } from "../../../utils/password-validation";
4
+ import { getCurrentUserFromToken, updateUserPassword, validatePassword, getPasswordValidationOptions } from "../../../utils";
6
5
  export default defineEventHandler(async (event) => {
7
6
  const { nuxtUsers } = useRuntimeConfig();
8
7
  const options = nuxtUsers;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-users",
3
- "version": "1.6.1",
3
+ "version": "1.6.3",
4
4
  "description": "A comprehensive user management module for Nuxt 3 applications with authentication, database support, and CLI tools",
5
5
  "keywords": [
6
6
  "nuxt",