@cypsela/sailplane-node
Advanced tools
Comparing version 2.1.4 to 2.1.5
{ | ||
"name": "@cypsela/sailplane-node", | ||
"version": "2.1.4", | ||
"version": "2.1.5", | ||
"description": "collaborative file system on ipfs", | ||
@@ -5,0 +5,0 @@ "files": [ |
@@ -11,4 +11,5 @@ | ||
const errors = { | ||
notStarted: () => new Error('sharedfs was started') | ||
errors = { | ||
...errors, | ||
notStarted: () => new Error('sharedfs was not started') | ||
} | ||
@@ -82,3 +83,2 @@ | ||
this._CID = this._emptyFile.cid.constructor | ||
this._onDbUpdate() | ||
this._db.events.on('replicated', this._onDbUpdate) | ||
@@ -93,2 +93,3 @@ this.events.on('upload', this._onDbUpdate) | ||
this.running = true | ||
this._onDbUpdate() | ||
this.events.emit('start') | ||
@@ -95,0 +96,0 @@ } |
17078
268