doix-db 1.0.22 → 1.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/DbCall.js +3 -1
  2. package/package.json +1 -1
package/lib/DbCall.js CHANGED
@@ -89,6 +89,8 @@ class DbCall extends EventEmitter {
89
89
  this.params = params
90
90
  this.options = options
91
91
 
92
+ this.on ('error', error => this.error = error)
93
+
92
94
  }
93
95
 
94
96
  get objectMode () {
@@ -242,7 +244,7 @@ class DbCall extends EventEmitter {
242
244
  }
243
245
  catch (error) {
244
246
 
245
- this.emit ('error', this.error = error)
247
+ this.emit ('error', error)
246
248
 
247
249
  throw error
248
250
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doix-db",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "description": "Shared database related code for doix",
5
5
  "main": "index.js",
6
6
  "files": [