@superhero/eventflow-spoke 4.5.13 → 4.5.15
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.
- package/consume.js +1 -1
- package/index.js +1 -1
- package/package.json +6 -6
package/consume.js
CHANGED
|
@@ -72,8 +72,8 @@ export default class ConsumeService
|
|
|
72
72
|
{
|
|
73
73
|
const error = new Error('consumer failed to handle event')
|
|
74
74
|
error.code = 'E_EVENTFLOW_SPOKE_CONSUMER_FAILED'
|
|
75
|
-
error.cause = reason
|
|
76
75
|
error.event = { ...event }
|
|
76
|
+
error.cause = reason
|
|
77
77
|
delete error.event.data
|
|
78
78
|
|
|
79
79
|
if('function' === typeof service.onError)
|
package/index.js
CHANGED
|
@@ -236,8 +236,8 @@ export default class Spoke
|
|
|
236
236
|
{
|
|
237
237
|
const error = new Error(`spoke callback failed to consume event ${event.domain} › ${event.name} › ${event.pid} › ${event.id}`)
|
|
238
238
|
error.code = 'E_EVENTFLOW_SPOKE_CONSUME_OBSERVER_ERROR'
|
|
239
|
-
error.cause = reason
|
|
240
239
|
error.event = event
|
|
240
|
+
error.cause = reason
|
|
241
241
|
|
|
242
242
|
await this.db.updateEventPublishedToFailed(event.id)
|
|
243
243
|
const message = `failed to consume event ${event.domain} › ${event.name} › ${event.pid} › ${event.id}`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superhero/eventflow-spoke",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.15",
|
|
4
4
|
"description": "Eventflow spoke is the client component in the eventflow ecosystem.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eventflow",
|
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@superhero/deep": "^4.5.0",
|
|
19
|
-
"@superhero/eventflow-certificates": "^4.
|
|
20
|
-
"@superhero/eventflow-db": "^4.
|
|
19
|
+
"@superhero/eventflow-certificates": "^4.5.0",
|
|
20
|
+
"@superhero/eventflow-db": "^4.5.0",
|
|
21
21
|
"@superhero/id-name-generator": "^4.0.0",
|
|
22
|
-
"@superhero/log": "^4.
|
|
22
|
+
"@superhero/log": "^4.1.10",
|
|
23
23
|
"@superhero/tcp-record-channel": "^4.2.2"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@superhero/locator": "^4.4.
|
|
27
|
-
"@superhero/eventflow-hub": "^4.
|
|
26
|
+
"@superhero/locator": "^4.4.5",
|
|
27
|
+
"@superhero/eventflow-hub": "^4.5.0"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"test-build": "npm explore @superhero/eventflow-db -- npm run test-build",
|