Skip to content

Commit c54ea96

Browse files
committed
expirementing
1 parent e8e0e5b commit c54ea96

4 files changed

Lines changed: 9 additions & 5 deletions

File tree

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
"context": "browser",
1515
"source": "src/index-browser.js",
1616
"optimize": false,
17+
"includeNodeModules": true,
18+
"scopeHoist": true,
1719
"engines": {
1820
"browsers": "Chrome 80"
1921
}
@@ -43,7 +45,7 @@
4345
],
4446
"scripts": {
4547
"test": "npx lab",
46-
"build": "npx parcel build ",
48+
"build": "npx parcel build",
4749
"prepare": "npm run build",
4850
"watch": "parcel watch",
4951
"clean": "rm -rf node_modules; rm package-lock.json; npm i",
@@ -95,7 +97,8 @@
9597
"uuid": "^3.2.1",
9698
"uuidv4": "^6.2.12",
9799
"vm2": "^3.9.2",
98-
"websocket": "github:sevenbitbyte/WebSocket-Node#parcel-build"
100+
"websocket": "github:sevenbitbyte/WebSocket-Node#parcel-build",
101+
"zangodb": "github:sevenbitbyte/zangodb#hash-patch"
99102
},
100103
"devDependencies": {
101104
"@dataparty/bouncer-model": "1.4.3",
@@ -104,6 +107,7 @@
104107
"assert": "^2.0.0",
105108
"better-docs": "^1.1.6",
106109
"browserify-zlib": "^0.2.0",
110+
"crypto-browserify": "^3.12.0",
107111
"docdash": "^1.1.1",
108112
"fake-indexeddb": "^4.0.0",
109113
"https-browserify": "^1.0.0",

src/bouncer/db/zango-db.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
const IDb = require('../idb')
44
const Hoek = require('@hapi/hoek')
5-
const zango = require('zangodb')
5+
import zango from 'zangodb'
66
const reach = require('../../utils/reach')
77
const ObjectId = require('bson-objectid')
88

src/bouncer/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ module.exports = {
77

88
LokiDb: require('./db/loki-db'),
99
TingoDb: require('./db/tingo-db'),
10-
//ZangoDb: require('./db/zango-db')
10+
ZangoDb: require('./db/zango-db')
1111
}

src/party/index-browser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const IParty = require('./iparty')
22
const PeerParty = require('./peer/peer-party')
33
const CloudParty = require('./cloud/cloud-party')
44
const LokiParty = require('./local/loki-party')
5-
const ZangoParty = null//require('./local/zango-party')
5+
const ZangoParty = require('./local/zango-party')
66

77
const IDocument = require('./idocument')
88
const DocumentFactory = require('./document-factory')

0 commit comments

Comments
 (0)