shogun-core 3.0.3 → 3.0.5

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.
@@ -78,6 +78,12 @@ export class CoreInitializer {
78
78
  console.log("Applying peers configuration:", config.gunOptions.peers);
79
79
  this.core._gun.opt({ peers: config.gunOptions.peers });
80
80
  console.log("Peers after explicit application:", this.core._gun?.opt?.peers);
81
+ // Force peer connection
82
+ console.log("Forcing peer connections...");
83
+ config.gunOptions.peers.forEach((peer) => {
84
+ console.log("Connecting to peer:", peer);
85
+ this.core._gun.opt({ peers: [peer] });
86
+ });
81
87
  }
82
88
  }
83
89
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shogun-core",
3
- "version": "3.0.3",
3
+ "version": "3.0.5",
4
4
  "description": "SHOGUN CORE - Core library for Shogun Ecosystem",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",