shogun-core 3.0.1 → 3.0.2

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.
@@ -91309,17 +91309,17 @@ class CoreInitializer {
91309
91309
  try {
91310
91310
  if (config.gunInstance && config.gunInstance instanceof (gun_default())) {
91311
91311
  console.log("config.gunInstance", config.gunInstance);
91312
- this.core.gun = config.gunInstance;
91312
+ this.core._gun = config.gunInstance;
91313
91313
  }
91314
91314
  else {
91315
91315
  console.log("config.gunOptions", config.gunOptions);
91316
- this.core.gun = createGun(config.gunOptions);
91316
+ this.core._gun = createGun(config.gunOptions);
91317
91317
  // Explicitly apply peers configuration if not already set
91318
91318
  if (config.gunOptions?.peers &&
91319
91319
  Array.isArray(config.gunOptions.peers)) {
91320
91320
  console.log("Applying peers configuration:", config.gunOptions.peers);
91321
- this.core.gun.opt({ peers: config.gunOptions.peers });
91322
- console.log("Peers after explicit application:", this.core.gun?.opt?.peers);
91321
+ this.core._gun.opt({ peers: config.gunOptions.peers });
91322
+ console.log("Peers after explicit application:", this.core._gun?.opt?.peers);
91323
91323
  }
91324
91324
  }
91325
91325
  }
@@ -91332,7 +91332,7 @@ class CoreInitializer {
91332
91332
  try {
91333
91333
  console.log("Initialize Gun instance", this.core.gun);
91334
91334
  this.core.db = new DataBase(this.core.gun, config.gunOptions.scope || "");
91335
- this.core.gun = this.core.db.gun;
91335
+ this.core._gun = this.core.db.gun;
91336
91336
  }
91337
91337
  catch (error) {
91338
91338
  if (typeof console !== "undefined" && console.error) {
@@ -91494,7 +91494,7 @@ class CoreInitializer {
91494
91494
  * @since 2.0.0
91495
91495
  */
91496
91496
  class ShogunCore {
91497
- static API_VERSION = "^3.0.5";
91497
+ static API_VERSION = "^3.0.1";
91498
91498
  db;
91499
91499
  storage;
91500
91500
  provider;