@inzombieland/nuxt-common 1.18.32 → 1.18.33

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.32",
3
+ "version": "1.18.33",
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.32";
5
+ const version = "1.18.33";
6
6
 
7
7
  const module = defineNuxtModule({
8
8
  meta: {
@@ -72,6 +72,10 @@ 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
+ logoutActiveSession: (body: {
76
+ sessionId: string;
77
+ visitorId: string;
78
+ }) => Promise<any>;
75
79
  logoutFromAllActiveSessions: () => Promise<any>;
76
80
  };
77
81
  export { fetch, getUser, useApiFetch, userActions };
@@ -45,6 +45,10 @@ 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 logoutActiveSession: (body: {
49
+ sessionId: string;
50
+ visitorId: string;
51
+ }) => Promise<any>;
48
52
  export declare const logoutFromAllActiveSessions: () => Promise<any>;
49
53
  export declare const signInByCodeSendCode: (body: {
50
54
  username: string;
@@ -85,10 +89,6 @@ export declare const resetPassword: (body: {
85
89
  export declare const fetchActiveSessions: () => Promise<{
86
90
  sessions: ActiveSession[];
87
91
  }>;
88
- export declare const logoutActiveSession: (body: {
89
- sessionId: string;
90
- visitorId: string;
91
- }) => 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 logoutActiveSession = userActions.logoutActiveSession;
17
18
  export const logoutFromAllActiveSessions = userActions.logoutFromAllActiveSessions;
18
19
  export const signInByCodeSendCode = async (body) => {
19
20
  return await fetch("/account/0/signinbycode/sendcode", {
@@ -74,9 +75,6 @@ export const resetPassword = async (body) => {
74
75
  export const fetchActiveSessions = async () => {
75
76
  return await fetch("/account/1/sessions");
76
77
  };
77
- export const logoutActiveSession = async (body) => {
78
- return await fetch("/account/1/logout/session", { body, method: "POST" });
79
- };
80
78
  export const deleteAccount = async () => {
81
79
  return await fetch("/account/1/delete", { method: "POST" });
82
80
  };
@@ -64,6 +64,10 @@ 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
+ logoutActiveSession: (body: {
68
+ sessionId: string;
69
+ visitorId: string;
70
+ }) => Promise<any>;
67
71
  logoutFromAllActiveSessions: () => Promise<any>;
68
72
  };
69
73
  };
@@ -123,6 +127,10 @@ export declare const useUserActions: () => Ref<{
123
127
  }) => Promise<void>;
124
128
  changeAvatar: (body: FormData) => Promise<void>;
125
129
  deleteAvatar: () => Promise<void>;
130
+ logoutActiveSession: (body: {
131
+ sessionId: string;
132
+ visitorId: string;
133
+ }) => Promise<any>;
126
134
  logoutFromAllActiveSessions: () => Promise<any>;
127
135
  }, {
128
136
  signIn: (body: Record<string, any>) => Promise<import("./types").GetUserResponse | {
@@ -180,5 +188,9 @@ export declare const useUserActions: () => Ref<{
180
188
  }) => Promise<void>;
181
189
  changeAvatar: (body: FormData) => Promise<void>;
182
190
  deleteAvatar: () => Promise<void>;
191
+ logoutActiveSession: (body: {
192
+ sessionId: string;
193
+ visitorId: string;
194
+ }) => Promise<any>;
183
195
  logoutFromAllActiveSessions: () => Promise<any>;
184
196
  }> | undefined;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inzombieland/core",
3
- "version": "1.18.32",
3
+ "version": "1.18.33",
4
4
  "type": "module",
5
5
  "license": "ISC",
6
6
  "main": "./index.mjs",
@@ -56,5 +56,9 @@ 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
+ logoutActiveSession: (body: {
60
+ sessionId: string;
61
+ visitorId: string;
62
+ }) => Promise<any>;
59
63
  logoutFromAllActiveSessions: () => Promise<any>;
60
64
  };
@@ -109,6 +109,9 @@ export const createApiUserActions = once(
109
109
  await fetch("/account/1/delete/avatar", { body: { avatar: user.value?.avatar }, method: "DELETE" });
110
110
  updateUser({ avatar: "" });
111
111
  },
112
+ logoutActiveSession: async (body) => {
113
+ return await fetch("/account/1/logout/session", { body, method: "POST" });
114
+ },
112
115
  logoutFromAllActiveSessions: async () => {
113
116
  return await fetch("/account/1/logout/sessions", { method: "POST" });
114
117
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inzombieland/nuxt-common",
3
- "version": "1.18.32",
3
+ "version": "1.18.33",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "exports": {