gun-eth 1.1.2 → 1.1.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.
Files changed (2) hide show
  1. package/index.js +12 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -94,6 +94,18 @@ Gun.chain.getAndDecryptPair = async function (address, signature) {
94
94
  };
95
95
 
96
96
  Gun.chain.shine = function (chain, nodeId, data, callback) {
97
+ console.log("SHINE plugin called with:", { chain, nodeId, data });
98
+
99
+ if (typeof callback !== "function") {
100
+ console.error("Callback must be a function");
101
+ return this;
102
+ }
103
+
104
+ if (typeof data !== "object" || data === null) {
105
+ callback({ err: "Data must be a non-null object" });
106
+ return this;
107
+ }
108
+
97
109
  const gun = this;
98
110
 
99
111
  // select address based on chain
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gun-eth",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "A GunDB plugin for Ethereum, and Web3",
5
5
  "main": "index.js",
6
6
  "scripts": {