Skip to content

Commit 26dca3a

Browse files
committed
build errors
1 parent 3ea29a1 commit 26dca3a

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"events": "eventemitter3",
1111
"process": "process/browser.js",
1212
"path": "path-browserify",
13-
"assert": "assert",
1413
"crypto": "crypto-browserify"
1514
},
1615
"targets": {
@@ -59,7 +58,7 @@
5958
},
6059
"dependencies": {
6160
"@dataparty/bouncer-db": "1.0.1",
62-
"@dataparty/crypto": "datapartyjs/dataparty-crypto#parcel-build",
61+
"@dataparty/crypto": "datapartyjs/dataparty-crypto#seed-phrase",
6362
"@dataparty/tasker": "^0.0.2",
6463
"@diva.exchange/i2p-sam": "^4.1.8",
6564
"@hapi/joi": "^17.1.1",
@@ -114,7 +113,6 @@
114113
"@dataparty/bouncer-model": "1.4.3",
115114
"@hapi/code": "^9.0.1",
116115
"@hapi/lab": "^25.0.1",
117-
"assert": "^2.0.0",
118116
"better-docs": "^1.1.6",
119117
"browserify-zlib": "^0.2.0",
120118
"crypto-browserify": "^3.12.0",
@@ -127,7 +125,7 @@
127125
"parcel": "^2.3.1",
128126
"path-browserify": "^1.0.1",
129127
"process": "^0.11.10",
130-
"punycode": "2.3.0",
128+
"punycode": "^1.4.1",
131129
"querystring-es3": "^0.2.1",
132130
"stream-browserify": "^3.0.0",
133131
"stream-http": "^3.2.0",

src/bouncer/idb.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module.exports = class IDb extends EventEmitter {
2424
for(const collectionName of this.factory.getValidators()){
2525
debug('creating collection', collectionName)
2626

27-
const indexSettings = reach(this.factory, 'model.schemas.IndexSettings.'+collectionName)
27+
const indexSettings = reach(this.factory, 'schemas.IndexSettings.'+collectionName)
2828
await this.createCollection(collectionName, indexSettings)
2929
}
3030
}

src/comms/i2p-socket-comms.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class I2pSocketComms extends PeerComms {
8989
debug('init')
9090

9191
if(!this.host && !this.stream){
92-
debug('opening client connection to -',this.destination, ' via SAM', JSON.stringify({this.samHost,null,2}))
92+
debug('opening client connection to -',this.destination, ' via SAM', JSON.stringify(this.samHost,null,2))
9393

9494
this.stream = await SAM.createStream({
9595
sam: this.samHost,
@@ -113,4 +113,4 @@ class I2pSocketComms extends PeerComms {
113113
}
114114

115115

116-
module.exports = I2pSocketComms
116+
module.exports = I2pSocketComms

src/party/document-factory.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@ class DocumentFactory {
1515
this.factories = factories || {}
1616
this.party = party || null
1717
this.ajv = new Ajv()
18-
this.model = model
18+
//this.model = model
1919
this.documentClass = documentClass || IDocument
2020
this.validators = {}
2121

22-
if(this.model){
22+
if(model){
2323

24-
for(let schema of this.model.schemas.JSONSchema){
24+
this.schemas = reach(this.model, 'schemas', model)
25+
26+
for(let schema of this.schemas.JSONSchema){
2527
const v = this.ajv.compile(schema)
2628
this.validators[schema.title] = v
2729
debug(schema.title)
@@ -144,4 +146,4 @@ class DocumentFactory {
144146
}
145147
}
146148

147-
module.exports = DocumentFactory
149+
module.exports = DocumentFactory

0 commit comments

Comments
 (0)