mirror of
https://github.com/amark/gun.git
synced 2025-06-06 14:16:44 +00:00
tell Travis to use module :P
This commit is contained in:
parent
125e1384c1
commit
9e811e882c
@ -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"
|
||||
|
8
sea.js
8
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<any>}
|
||||
*/
|
||||
// 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');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user