@inzombieland/nuxt-common 1.19.7 → 1.19.9

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.19.7",
3
+ "version": "1.19.9",
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.19.7";
5
+ const version = "1.19.9";
6
6
 
7
7
  const module = defineNuxtModule({
8
8
  meta: {
@@ -29,6 +29,7 @@ export function initApiFetch($fetch, config) {
29
29
  let cometClient;
30
30
  const bus = useBus();
31
31
  bus.subscribe("user:onUpdated", (user) => {
32
+ console.log("IO user updated", user);
32
33
  if (user) {
33
34
  cometClient || (cometClient = newCometClient(user, cometServerURL));
34
35
  if (!cometClient.isStarted) {
@@ -15,7 +15,7 @@ function initApplication() {
15
15
  const i18n = useI18n();
16
16
  const userActions = useUserActions();
17
17
  watch(user, (user2) => {
18
- if (user2 && user2.theme !== theme.value?.value) {
18
+ if (user2 && user2.theme && user2.theme !== theme.value?.value) {
19
19
  theme.value = { value: user2.theme };
20
20
  }
21
21
  if (user2 && user2.locale !== locale.value?.value) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inzombieland/core",
3
- "version": "1.19.7",
3
+ "version": "1.19.9",
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.19.7",
3
+ "version": "1.19.9",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "exports": {