shogun-core 3.0.2 → 3.0.3

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.
@@ -104,7 +104,7 @@ export class CoreInitializer {
104
104
  */
105
105
  async initializeGunUser() {
106
106
  try {
107
- this.core.user = this.core.gun.user().recall({ sessionStorage: true });
107
+ this.core._user = this.core.gun.user().recall({ sessionStorage: true });
108
108
  }
109
109
  catch (error) {
110
110
  if (typeof console !== "undefined" && console.error) {
@@ -113,7 +113,7 @@ export class CoreInitializer {
113
113
  throw new Error(`Failed to initialize Gun user: ${error}`);
114
114
  }
115
115
  this.core.gun.on("auth", (user) => {
116
- this.core.user = this.core.gun.user().recall({ sessionStorage: true });
116
+ this.core._user = this.core.gun.user().recall({ sessionStorage: true });
117
117
  this.core.emit("auth:login", {
118
118
  userPub: user.pub,
119
119
  method: "password",
@@ -117,6 +117,7 @@ export interface IShogunCore extends PluginManager {
117
117
  gun: GunInstance;
118
118
  _gun: GunInstance;
119
119
  user: GunUserInstance | null;
120
+ _user: GunUserInstance | null;
120
121
  db: DataBase;
121
122
  rx: RxJS;
122
123
  storage: ShogunStorage;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shogun-core",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "description": "SHOGUN CORE - Core library for Shogun Ecosystem",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",