@event-driven-io/emmett-postgresql 0.43.0-beta.11 → 0.43.0-beta.12

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/dist/index.cjs CHANGED
@@ -1035,10 +1035,8 @@ var workflowProcessor = (options) => {
1035
1035
  return;
1036
1036
  }
1037
1037
  if (_optionalChain([options, 'access', _52 => _52.outputHandler, 'optionalAccess', _53 => _53.canHandle, 'access', _54 => _54.includes, 'call', _55 => _55(messageType)]) === true) {
1038
- const handledOutputMessages = await options.outputHandler.handle(
1039
- message2,
1040
- context
1041
- );
1038
+ const recordedMessage = message2;
1039
+ const handledOutputMessages = options.outputHandler.eachBatch ? await options.outputHandler.eachBatch([recordedMessage], context) : await options.outputHandler.eachMessage(recordedMessage, context);
1042
1040
  if (handledOutputMessages instanceof EmmettError) {
1043
1041
  return {
1044
1042
  type: "STOP",