@superhero/eventflow-spoke 4.5.4 → 4.5.6

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/consume.js +5 -4
  2. package/package.json +3 -3
package/consume.js CHANGED
@@ -70,10 +70,11 @@ export default class ConsumeService
70
70
  }
71
71
  catch(reason)
72
72
  {
73
- const error = new Error('consumer failed to handle event')
74
- error.code = 'E_EVENTFLOW_SPOKE_CONSUMER_FAILED'
75
- error.cause = reason
76
- error.consumer = consumer
73
+ const error = new Error('consumer failed to handle event')
74
+ error.code = 'E_EVENTFLOW_SPOKE_CONSUMER_FAILED'
75
+ error.cause = reason
76
+ error.event = { ...event }
77
+ delete error.event.data
77
78
 
78
79
  if('function' === typeof service.onError)
79
80
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superhero/eventflow-spoke",
3
- "version": "4.5.4",
3
+ "version": "4.5.6",
4
4
  "description": "Eventflow spoke is the client component in the eventflow ecosystem.",
5
5
  "keywords": [
6
6
  "eventflow",
@@ -16,8 +16,8 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "@superhero/deep": "^4.3.0",
19
- "@superhero/eventflow-certificates": "^4.4.6",
20
- "@superhero/eventflow-db": "^4.4.0",
19
+ "@superhero/eventflow-certificates": "^4.4.7",
20
+ "@superhero/eventflow-db": "^4.4.1",
21
21
  "@superhero/id-name-generator": "^4.0.0",
22
22
  "@superhero/log": "^4.0.2",
23
23
  "@superhero/tcp-record-channel": "^4.2.2"