Skip to content

Commit 9b36ea2

Browse files
committed
closes #82
1 parent c53cb86 commit 9b36ea2

6 files changed

Lines changed: 17 additions & 7 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
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",

public/app.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
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

src/bouncer/db/zango-db.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/index-browser.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ const Config = {
1212
SecureConfig
1313
}
1414

15+
const Crypto = require('@dataparty/crypto')
1516

1617
let lib = {
18+
Crypto,
1719
Comms,
1820
Config,
1921
...Party,

src/index-embedded.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ const Party = require('./party/index-embedded')
44
const Topics = require('./topics')
55
const Bouncer = require('./bouncer')
66

7+
const Crypto = require('@dataparty/crypto')
8+
9+
710
module.exports = {
11+
Crypto,
812
Comms,
913
Config,
1014
Bouncer,

src/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ const Bouncer = require('./bouncer')
66
const Service = require('./service')
77
const Sandbox = require('./sandbox')
88

9+
const Crypto = require('@dataparty/crypto')
10+
11+
912
module.exports = {
13+
Crypto,
1014
Comms,
1115
Config,
1216
Bouncer,

0 commit comments

Comments
 (0)