@inzombieland/nuxt-common 1.18.31 → 1.18.32

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@inzombieland/nuxt-common",
3
- "version": "1.18.31",
3
+ "version": "1.18.32",
4
4
  "configKey": "nuxt-common",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.6.0",
package/dist/module.mjs CHANGED
@@ -2,7 +2,7 @@ import { fileURLToPath } from 'node:url';
2
2
  import { defineNuxtModule, createResolver, addServerHandler, addImportsDir, addPlugin, addComponent } from '@nuxt/kit';
3
3
 
4
4
  const name = "@inzombieland/nuxt-common";
5
- const version = "1.18.31";
5
+ const version = "1.18.32";
6
6
 
7
7
  const module = defineNuxtModule({
8
8
  meta: {
@@ -72,5 +72,6 @@ declare const fetch: Fetch, getUser: () => Promise<import("src/runtime/packages/
72
72
  }) => Promise<void>;
73
73
  changeAvatar: (body: FormData) => Promise<void>;
74
74
  deleteAvatar: () => Promise<void>;
75
+ logoutFromAllActiveSessions: () => Promise<any>;
75
76
  };
76
77
  export { fetch, getUser, useApiFetch, userActions };
@@ -45,6 +45,7 @@ export declare const changePhone: (body: {
45
45
  }) => Promise<void>;
46
46
  export declare const changeAvatar: (body: FormData) => Promise<void>;
47
47
  export declare const deleteAvatar: () => Promise<void>;
48
+ export declare const logoutFromAllActiveSessions: () => Promise<any>;
48
49
  export declare const signInByCodeSendCode: (body: {
49
50
  username: string;
50
51
  }) => Promise<{
@@ -88,7 +89,6 @@ export declare const logoutActiveSession: (body: {
88
89
  sessionId: string;
89
90
  visitorId: string;
90
91
  }) => Promise<any>;
91
- export declare const logoutFromAllActiveSessions: () => Promise<any>;
92
92
  export declare const deleteAccount: () => Promise<{
93
93
  key: string;
94
94
  }>;
@@ -14,6 +14,7 @@ export const confirmEmailChange = userActions.confirmEmailChange;
14
14
  export const changePhone = userActions.changePhone;
15
15
  export const changeAvatar = userActions.changeAvatar;
16
16
  export const deleteAvatar = userActions.deleteAvatar;
17
+ export const logoutFromAllActiveSessions = userActions.logoutFromAllActiveSessions;
17
18
  export const signInByCodeSendCode = async (body) => {
18
19
  return await fetch("/account/0/signinbycode/sendcode", {
19
20
  body,
@@ -76,9 +77,6 @@ export const fetchActiveSessions = async () => {
76
77
  export const logoutActiveSession = async (body) => {
77
78
  return await fetch("/account/1/logout/session", { body, method: "POST" });
78
79
  };
79
- export const logoutFromAllActiveSessions = async () => {
80
- return await fetch("/account/1/logout/sessions", { method: "POST" });
81
- };
82
80
  export const deleteAccount = async () => {
83
81
  return await fetch("/account/1/delete", { method: "POST" });
84
82
  };
@@ -64,6 +64,7 @@ export declare function initApiFetch($fetch: Fetch, config: FetchConfig): {
64
64
  }) => Promise<void>;
65
65
  changeAvatar: (body: FormData) => Promise<void>;
66
66
  deleteAvatar: () => Promise<void>;
67
+ logoutFromAllActiveSessions: () => Promise<any>;
67
68
  };
68
69
  };
69
70
  export declare const useUserActions: () => Ref<{
@@ -122,6 +123,7 @@ export declare const useUserActions: () => Ref<{
122
123
  }) => Promise<void>;
123
124
  changeAvatar: (body: FormData) => Promise<void>;
124
125
  deleteAvatar: () => Promise<void>;
126
+ logoutFromAllActiveSessions: () => Promise<any>;
125
127
  }, {
126
128
  signIn: (body: Record<string, any>) => Promise<import("./types").GetUserResponse | {
127
129
  key: string;
@@ -178,4 +180,5 @@ export declare const useUserActions: () => Ref<{
178
180
  }) => Promise<void>;
179
181
  changeAvatar: (body: FormData) => Promise<void>;
180
182
  deleteAvatar: () => Promise<void>;
183
+ logoutFromAllActiveSessions: () => Promise<any>;
181
184
  }> | undefined;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inzombieland/core",
3
- "version": "1.18.31",
3
+ "version": "1.18.32",
4
4
  "type": "module",
5
5
  "license": "ISC",
6
6
  "main": "./index.mjs",
@@ -56,4 +56,5 @@ export declare const createApiUserActions: (fetch: Fetch, config: FetchConfig, g
56
56
  }) => Promise<void>;
57
57
  changeAvatar: (body: FormData) => Promise<void>;
58
58
  deleteAvatar: () => Promise<void>;
59
+ logoutFromAllActiveSessions: () => Promise<any>;
59
60
  };
@@ -108,6 +108,9 @@ export const createApiUserActions = once(
108
108
  const user = useUser();
109
109
  await fetch("/account/1/delete/avatar", { body: { avatar: user.value?.avatar }, method: "DELETE" });
110
110
  updateUser({ avatar: "" });
111
+ },
112
+ logoutFromAllActiveSessions: async () => {
113
+ return await fetch("/account/1/logout/sessions", { method: "POST" });
111
114
  }
112
115
  };
113
116
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inzombieland/nuxt-common",
3
- "version": "1.18.31",
3
+ "version": "1.18.32",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "exports": {