@event-driven-io/emmett-sqlite 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
@@ -1153,10 +1153,8 @@ var workflowProcessor = (options) => {
1153
1153
  return;
1154
1154
  }
1155
1155
  if (_optionalChain([options, 'access', _52 => _52.outputHandler, 'optionalAccess', _53 => _53.canHandle, 'access', _54 => _54.includes, 'call', _55 => _55(messageType)]) === true) {
1156
- const handledOutputMessages = await options.outputHandler.handle(
1157
- message2,
1158
- context
1159
- );
1156
+ const recordedMessage = message2;
1157
+ const handledOutputMessages = options.outputHandler.eachBatch ? await options.outputHandler.eachBatch([recordedMessage], context) : await options.outputHandler.eachMessage(recordedMessage, context);
1160
1158
  if (handledOutputMessages instanceof EmmettError) {
1161
1159
  return {
1162
1160
  type: "STOP",