@inzombieland/nuxt-common 1.16.25 → 1.16.26

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.16.25",
3
+ "version": "1.16.26",
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.16.25";
5
+ const version = "1.16.26";
6
6
 
7
7
  const module = defineNuxtModule({
8
8
  meta: {
@@ -1,5 +1,3 @@
1
- import { type Ref } from "vue";
2
- import type { ActiveSession } from "../packages/api";
3
- export declare const useActiveSessions: () => Ref<ActiveSession[]>;
4
- declare const _default: () => Ref<ActiveSession[], ActiveSession[]>;
5
- export default _default;
1
+ import { useActiveSessions } from "../packages/api";
2
+ export { useActiveSessions };
3
+ export default useActiveSessions;
@@ -1,15 +1,3 @@
1
- import { useState } from "#imports";
2
- import { onMounted } from "vue";
3
- import { useUserActions } from "./use-user-actions.mjs";
4
- export const useActiveSessions = () => useState("activeSessions", () => []);
5
- export default () => {
6
- const { fetchActiveSessions } = useUserActions();
7
- const activeSessions = useActiveSessions();
8
- onMounted(async () => {
9
- if (activeSessions.value.length === 0) {
10
- const data = await fetchActiveSessions();
11
- activeSessions.value = data?.sessions ?? [];
12
- }
13
- });
14
- return activeSessions;
15
- };
1
+ import { useActiveSessions } from "../packages/api/index.mjs";
2
+ export { useActiveSessions };
3
+ export default useActiveSessions;
@@ -3,6 +3,7 @@ import type { ActiveSession, Fetch, FetchConfig, User } from "./types";
3
3
  export type { ActiveSession, Fetch, FetchConfig, User };
4
4
  export { useUser } from "./composables/use-user";
5
5
  export { useSubscribe } from "./composables/use-subscribe";
6
+ export { useActiveSessions } from "./composables/use-active-sessions";
6
7
  export { getVisitor, getVisitorId, type Visitor } from "./get-visitor";
7
8
  export declare function initApiFetch($fetch: Fetch, config: FetchConfig): {
8
9
  fetch: Fetch;
@@ -11,6 +11,7 @@ import { createApiRefreshToken } from "./refresh-token.mjs";
11
11
  import { createApiUserActions } from "./user-actions.mjs";
12
12
  export { useUser } from "./composables/use-user.mjs";
13
13
  export { useSubscribe } from "./composables/use-subscribe.mjs";
14
+ export { useActiveSessions } from "./composables/use-active-sessions.mjs";
14
15
  export { getVisitor, getVisitorId } from "./get-visitor.mjs";
15
16
  const apiActions = useApiActions();
16
17
  let userActions;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inzombieland/api",
3
- "version": "1.16.25",
3
+ "version": "1.16.26",
4
4
  "type": "module",
5
5
  "license": "ISC",
6
6
  "main": "./index.mjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inzombieland/nuxt-common",
3
- "version": "1.16.25",
3
+ "version": "1.16.26",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "exports": {