daf-message-handler
Advanced tools
Comparing version 7.0.0-beta.26 to 7.0.0-beta.27
@@ -140,2 +140,3 @@ "use strict"; | ||
debug('Emitting event', exports.EventTypes.savedMessage); | ||
this.emit(exports.EventTypes.savedMessage, message); | ||
_a.label = 4; | ||
@@ -145,3 +146,4 @@ case 4: return [2 /*return*/, message]; | ||
error_1 = _a.sent(); | ||
// this.emit(EventTypes.error, error) | ||
debug('Error', error_1); | ||
this.emit(exports.EventTypes.error, error_1); | ||
return [2 /*return*/, Promise.reject(error_1)]; | ||
@@ -148,0 +150,0 @@ case 6: return [2 /*return*/]; |
@@ -6,2 +6,13 @@ # Change Log | ||
# [7.0.0-beta.27](https://github.com/uport-project/daf/compare/v7.0.0-beta.26...v7.0.0-beta.27) (2020-09-30) | ||
### Bug Fixes | ||
* MessageHandler ([21a78e3](https://github.com/uport-project/daf/commit/21a78e3a16257d2c9d956acfc46576955688aed4)) | ||
# [7.0.0-beta.26](https://github.com/uport-project/daf/compare/v7.0.0-beta.25...v7.0.0-beta.26) (2020-09-29) | ||
@@ -8,0 +19,0 @@ |
{ | ||
"name": "daf-message-handler", | ||
"description": "DAF Message Handler", | ||
"version": "7.0.0-beta.26", | ||
"version": "7.0.0-beta.27", | ||
"main": "build/index.js", | ||
@@ -11,3 +11,3 @@ "types": "build/index.d.ts", | ||
"dependencies": { | ||
"daf-core": "^7.0.0-beta.26" | ||
"daf-core": "^7.0.0-beta.27" | ||
}, | ||
@@ -27,3 +27,3 @@ "devDependencies": { | ||
"keywords": [], | ||
"gitHead": "96117e706cb641eec24bb26c01552eed2e9bed18" | ||
"gitHead": "465327c92d2bc78c9ef38802710dbe82dfacd096" | ||
} |
@@ -66,7 +66,8 @@ import { EventEmitter } from 'events' | ||
debug('Emitting event', EventTypes.savedMessage) | ||
// this.emit(EventTypes.savedMessage, message) | ||
this.emit(EventTypes.savedMessage, message) | ||
} | ||
return message | ||
} catch (error) { | ||
// this.emit(EventTypes.error, error) | ||
debug('Error', error) | ||
this.emit(EventTypes.error, error) | ||
return Promise.reject(error) | ||
@@ -73,0 +74,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
42052
504
Updateddaf-core@^7.0.0-beta.27