shogun-core 4.0.1 → 4.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.
@@ -148189,9 +148189,8 @@ class CoreInitializer {
148189
148189
  */
148190
148190
  async initializeGun(config) {
148191
148191
  try {
148192
- let peers = [];
148193
- if (config.gunOptions?.peers && config.gunOptions?.relays.length === 0) {
148194
- peers = await (0, shogun_relays_1.forceListUpdate)();
148192
+ let peers = await (0, shogun_relays_1.forceListUpdate)();
148193
+ if (config.gunOptions?.peers && config.gunOptions?.peers.length === 0) {
148195
148194
  config.gunOptions.peers = peers;
148196
148195
  }
148197
148196
  if (config.gunInstance && config.gunOptions === undefined) {
@@ -148217,7 +148216,6 @@ class CoreInitializer {
148217
148216
  }
148218
148217
  try {
148219
148218
  this.core.db = new gundb_1.DataBase(this.core._gun, config.gunOptions?.scope || "");
148220
- // Note: user is a getter that returns _user, so we don't need to assign it
148221
148219
  }
148222
148220
  catch (error) {
148223
148221
  if (typeof console !== "undefined" && console.error) {