@inzombieland/nuxt-common 1.18.11 → 1.18.12

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.11",
3
+ "version": "1.18.12",
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.11";
5
+ const version = "1.18.12";
6
6
 
7
7
  const module = defineNuxtModule({
8
8
  meta: {
@@ -1,6 +1,6 @@
1
1
  <script setup lang="ts">
2
2
  import { onMounted, ref } from "vue"
3
- import bus from "./bus"
3
+ import { bus } from "./api-client"
4
4
  import { useThemeMode, useUser } from "./index"
5
5
  import type { ConfigProviderTheme } from "vant"
6
6
  import "@vant/touch-emulator"
@@ -1,4 +1,6 @@
1
+ import bus from "./bus";
1
2
  import type { Fetch, FetchConfig, FetchExtraOptions as FetchOptions, User } from "./types";
3
+ export { bus };
2
4
  export declare const setUser: (newUser?: User | null) => void;
3
5
  export declare const updateUser: (newUser: Partial<User>) => void;
4
6
  export declare const getToken: () => string | null | undefined;
@@ -1,6 +1,7 @@
1
1
  import bus from "./bus.mjs";
2
2
  import { useApiActions, useUser, useVisitor } from "./composables/index.mjs";
3
3
  import { apiHelper, once } from "./helpers/index.mjs";
4
+ export { bus };
4
5
  let token = null;
5
6
  export const setUser = (newUser) => {
6
7
  const user = useUser();
@@ -1,6 +1,5 @@
1
1
  import { Centrifuge } from "centrifuge";
2
- import { getToken } from "./api-client.mjs";
3
- import bus from "./bus.mjs";
2
+ import { bus, getToken } from "./api-client.mjs";
4
3
  import { useApiActions } from "./composables/index.mjs";
5
4
  import { apiHelper } from "./helpers/index.mjs";
6
5
  if (typeof window !== "undefined" && import.meta.env.MODE !== "production") {
@@ -1,7 +1,6 @@
1
1
  import { useLocalStorage } from "@vueuse/core";
2
2
  import { ref } from "vue";
3
- import { createApiFetch } from "./api-client.mjs";
4
- import bus from "./bus.mjs";
3
+ import { bus, createApiFetch } from "./api-client.mjs";
5
4
  import { newCometClient } from "./comet-client.mjs";
6
5
  import { useApiActions } from "./composables/index.mjs";
7
6
  import { createApiGetUser } from "./get-user.mjs";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inzombieland/core",
3
- "version": "1.18.11",
3
+ "version": "1.18.12",
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.18.11",
3
+ "version": "1.18.12",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "exports": {