diff --git a/package.json b/package.json index 394d47fa..68b8919e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gun", - "version": "0.2020.514", + "version": "0.2020.520", "description": "A realtime, decentralized, offline-first, graph data synchronization engine.", "types": "index.d.ts", "main": "index.js", @@ -60,6 +60,7 @@ "ws": "^7.2.1" }, "optionalDependencies": { + "@peculiar/webcrypto": "^1.1.1", "text-encoding": "^0.7.0", "emailjs": "^2.2.0", "buffer": "^5.4.3" diff --git a/sea.js b/sea.js index d940813e..75c15d36 100644 --- a/sea.js +++ b/sea.js @@ -189,7 +189,7 @@ api.ossl = api.subtle = new WebCrypto({directory: 'ossl'}).subtle // ECDH } catch(e){ - console.log("text-encoding and peculiar/nwebcrypto may not be included by default, please add it to your package.json!"); + console.log("text-encoding and @peculiar/webcrypto may not be included by default, please add it to your package.json!"); }} module.exports = api @@ -710,8 +710,7 @@ ;USE(function(module){ var Gun = USE('./sea').Gun; - Gun.chain.then = function(cb, opt = {}){ - opt = {wait: 200, ...opt} + Gun.chain.then = function(cb, opt){ var gun = this, p = (new Promise(function(res, rej){ gun.once(res, opt); })); @@ -1091,7 +1090,7 @@ /** * returns the decrypted value, encrypted by secret * @returns {Promise} - */ + // Mark needs to review 1st before officially supported User.prototype.decrypt = function(cb) { let gun = this, path = '' @@ -1124,6 +1123,7 @@ return res }) } + */ module.exports = User })(USE, './create');