@webiny/pubsub
Advanced tools
Comparing version 5.41.1 to 5.41.2-beta.0
15
index.js
@@ -42,3 +42,16 @@ "use strict"; | ||
for (const cb of subscribers) { | ||
await cb(event); | ||
try { | ||
await cb(event); | ||
} catch (e) { | ||
console.error(`An error occurred while publishing an event (topic: ${topicName}).`, { | ||
topicName: topicName, | ||
error: { | ||
message: e.message, | ||
code: e.code, | ||
data: e.data, | ||
stack: e.stack | ||
} | ||
}); | ||
throw e; | ||
} | ||
} | ||
@@ -45,0 +58,0 @@ } |
{ | ||
"name": "@webiny/pubsub", | ||
"version": "5.41.1", | ||
"version": "5.41.2-beta.0", | ||
"main": "index.js", | ||
@@ -22,4 +22,4 @@ "repository": { | ||
"@babel/runtime": "7.24.1", | ||
"@webiny/cli": "5.41.1", | ||
"@webiny/project-utils": "5.41.1", | ||
"@webiny/cli": "5.41.2-beta.0", | ||
"@webiny/project-utils": "5.41.2-beta.0", | ||
"rimraf": "5.0.5", | ||
@@ -33,3 +33,3 @@ "ttypescript": "1.5.15", | ||
}, | ||
"gitHead": "4d34943dbfc5a776afc74fffd2cfd2dca60bffcd" | ||
"gitHead": "a259e2af938ceb1e2d35b2bef9edcee4459352de" | ||
} |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
8754
76
2