File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6060 },
6161 "dependencies" : {
6262 "@dataparty/bouncer-db" : " 1.0.1" ,
63- "@dataparty/crypto" : " ^1.1.2 " ,
63+ "@dataparty/crypto" : " file:../dataparty-crypto " ,
6464 "@dataparty/tasker" : " ^0.0.2" ,
6565 "@diva.exchange/i2p-sam" : " ^4.1.8" ,
6666 "@markwylde/liferaft" : " ^1.3.4" ,
Original file line number Diff line number Diff line change 1- const config = new DataParty . Config . LocalStorageConfig ( {
1+ const config = new Dataparty . Config . LocalStorageConfig ( {
22 cloud : {
3- uri : ' http://localhost:4001'
3+ uri : ` http://${ window . location . hostname } :4000`
44 }
55} )
66
7- const party = new DataParty . CloudParty ( {
7+ const party = new Dataparty . CloudParty ( {
88 config,
99} )
1010
@@ -77,7 +77,7 @@ async function main(){
7777 const text = `call deltaMs=<i>${ callTime2 . deltaMs } </i>ms complete ${ complete } `
7878 document . getElementById ( "secure-echo-speed" ) . innerHTML = text
7979
80- } , 250 )
80+ } , 100 )
8181
8282
8383 setInterval ( async ( ) => {
@@ -100,7 +100,7 @@ async function main(){
100100 const text = `call deltaMs=<i>${ callTime2 . deltaMs } </i>ms complete ${ complete } `
101101 document . getElementById ( "echo-speed" ) . innerHTML = text
102102
103- } , 100 )
103+ } , 10000 )
104104
105105}
106106
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ module.exports = class ZangoDb extends IDb {
3939 for ( const name of this . factory . getValidators ( ) ) {
4040 debug ( 'creating collection' , name )
4141
42- const indexSettings = reach ( this . factory , 'model .IndexSettings.' + name )
42+ const indexSettings = reach ( this . factory , 'schemas .IndexSettings.' + name )
4343
4444 const indices = [ '$meta.id' ] . concat ( indexSettings . unique ) . concat ( indexSettings . indices )
4545
Original file line number Diff line number Diff line change @@ -12,8 +12,10 @@ const Config = {
1212 SecureConfig
1313}
1414
15+ const Crypto = require ( '@dataparty/crypto' )
1516
1617let lib = {
18+ Crypto,
1719 Comms,
1820 Config,
1921 ...Party ,
Original file line number Diff line number Diff line change @@ -4,7 +4,11 @@ const Party = require('./party/index-embedded')
44const Topics = require ( './topics' )
55const Bouncer = require ( './bouncer' )
66
7+ const Crypto = require ( '@dataparty/crypto' )
8+
9+
710module . exports = {
11+ Crypto,
812 Comms,
913 Config,
1014 Bouncer,
Original file line number Diff line number Diff line change @@ -6,7 +6,11 @@ const Bouncer = require('./bouncer')
66const Service = require ( './service' )
77const Sandbox = require ( './sandbox' )
88
9+ const Crypto = require ( '@dataparty/crypto' )
10+
11+
912module . exports = {
13+ Crypto,
1014 Comms,
1115 Config,
1216 Bouncer,
You can’t perform that action at this time.
0 commit comments