@iankibetsh/shframework 0.8.8 → 0.8.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/library.js CHANGED
@@ -4160,7 +4160,7 @@ const useUserStore = pinia.defineStore('user-store', {
4160
4160
  }
4161
4161
  this.user = user;
4162
4162
  shApis.doGet('auth/user').then(res => {
4163
- const user = res.data;
4163
+ const user = res.data.user;
4164
4164
  ShStorage.setItem('user',res.data);
4165
4165
  user.isAllowedTo = function (slug) {
4166
4166
  if (this.permissions) {
package/dist/library.mjs CHANGED
@@ -4148,7 +4148,7 @@ const useUserStore = defineStore('user-store', {
4148
4148
  }
4149
4149
  this.user = user;
4150
4150
  shApis.doGet('auth/user').then(res => {
4151
- const user = res.data;
4151
+ const user = res.data.user;
4152
4152
  ShStorage.setItem('user',res.data);
4153
4153
  user.isAllowedTo = function (slug) {
4154
4154
  if (this.permissions) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iankibetsh/shframework",
3
- "version": "0.8.8",
3
+ "version": "0.8.9",
4
4
  "description": "Vue library for handling laravel backend",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.mjs",