gun-eth 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +12 -0
- 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
|