mirror of
https://github.com/amark/gun.git
synced 2025-06-05 21:56:51 +00:00
tell Travis to use module :P
This commit is contained in:
parent
125e1384c1
commit
9e811e882c
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "gun",
|
"name": "gun",
|
||||||
"version": "0.2020.514",
|
"version": "0.2020.520",
|
||||||
"description": "A realtime, decentralized, offline-first, graph data synchronization engine.",
|
"description": "A realtime, decentralized, offline-first, graph data synchronization engine.",
|
||||||
"types": "index.d.ts",
|
"types": "index.d.ts",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
@ -60,6 +60,7 @@
|
|||||||
"ws": "^7.2.1"
|
"ws": "^7.2.1"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
|
"@peculiar/webcrypto": "^1.1.1",
|
||||||
"text-encoding": "^0.7.0",
|
"text-encoding": "^0.7.0",
|
||||||
"emailjs": "^2.2.0",
|
"emailjs": "^2.2.0",
|
||||||
"buffer": "^5.4.3"
|
"buffer": "^5.4.3"
|
||||||
|
8
sea.js
8
sea.js
@ -189,7 +189,7 @@
|
|||||||
api.ossl = api.subtle = new WebCrypto({directory: 'ossl'}).subtle // ECDH
|
api.ossl = api.subtle = new WebCrypto({directory: 'ossl'}).subtle // ECDH
|
||||||
}
|
}
|
||||||
catch(e){
|
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
|
module.exports = api
|
||||||
@ -710,8 +710,7 @@
|
|||||||
|
|
||||||
;USE(function(module){
|
;USE(function(module){
|
||||||
var Gun = USE('./sea').Gun;
|
var Gun = USE('./sea').Gun;
|
||||||
Gun.chain.then = function(cb, opt = {}){
|
Gun.chain.then = function(cb, opt){
|
||||||
opt = {wait: 200, ...opt}
|
|
||||||
var gun = this, p = (new Promise(function(res, rej){
|
var gun = this, p = (new Promise(function(res, rej){
|
||||||
gun.once(res, opt);
|
gun.once(res, opt);
|
||||||
}));
|
}));
|
||||||
@ -1091,7 +1090,7 @@
|
|||||||
/**
|
/**
|
||||||
* returns the decrypted value, encrypted by secret
|
* returns the decrypted value, encrypted by secret
|
||||||
* @returns {Promise<any>}
|
* @returns {Promise<any>}
|
||||||
*/
|
// Mark needs to review 1st before officially supported
|
||||||
User.prototype.decrypt = function(cb) {
|
User.prototype.decrypt = function(cb) {
|
||||||
let gun = this,
|
let gun = this,
|
||||||
path = ''
|
path = ''
|
||||||
@ -1124,6 +1123,7 @@
|
|||||||
return res
|
return res
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
module.exports = User
|
module.exports = User
|
||||||
})(USE, './create');
|
})(USE, './create');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user