@tapni/auth 0.0.119 → 0.0.121

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tapni/auth",
3
- "version": "0.0.119",
3
+ "version": "0.0.121",
4
4
  "type": "module",
5
5
  "main": "./dist/TapniAuth.umd.js",
6
6
  "module": "./dist/TapniAuth.es.js",
package/src/App.vue CHANGED
@@ -96,8 +96,10 @@ import {EventBus} from "./store/event-bus.js";
96
96
  import AuthMixin from "@/mixins/auth.mixin.js";
97
97
  import Language from "@/components/Language.vue";
98
98
  import ReactiveStorage from '@tapni/capacitor-reactive-localstorage-vue3'
99
+ import store from './store/store.js';
99
100
 
100
101
  export default {
102
+ store,
101
103
  name: 'TapniAuth',
102
104
  mixins: [ReactiveStorage, AuthMixin],
103
105
  data () {
package/src/install.js CHANGED
@@ -1,11 +1,17 @@
1
+ import Vue from 'vue'; // Import Vue
1
2
  import App from "./App.vue";
2
- import AuthMixin from './mixins/auth.mixin.js'
3
+ import store from './store/store.js';
4
+ import AuthMixin from './mixins/auth.mixin.js';
5
+
6
+ // Register Vuex globally
7
+ Vue.use(store);
3
8
 
4
9
  // Export the component by default
5
10
  export default {
6
11
  TapniAuth: App,
7
12
  AuthMixin: AuthMixin,
8
13
  install: (app, options) => {
14
+ // Register the component
9
15
  app.component('TapniAuth', App);
10
16
  }
11
17
  };