@event-driven-io/emmett-postgresql 0.43.0-beta.26 → 0.43.0-beta.28
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 +14 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +15 -5
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -866,7 +866,8 @@ const getPostgreSQLEventStore = (connectionString, options = defaultPostgreSQLOp
|
|
|
866
866
|
return streamExists(pool.execute, streamName, options);
|
|
867
867
|
},
|
|
868
868
|
consumer: (consumerOptions) => postgreSQLEventStoreConsumer({
|
|
869
|
-
...
|
|
869
|
+
...consumerOptions,
|
|
870
|
+
observability: (0, _event_driven_io_emmett.mergeObservability)(options.observability, consumerOptions?.observability),
|
|
870
871
|
pool,
|
|
871
872
|
connectionString
|
|
872
873
|
}),
|
|
@@ -3305,17 +3306,26 @@ const postgreSQLEventStoreConsumer = (options) => {
|
|
|
3305
3306
|
processors,
|
|
3306
3307
|
init,
|
|
3307
3308
|
reactor: (processorOptions) => {
|
|
3308
|
-
const processor = postgreSQLReactor(
|
|
3309
|
+
const processor = postgreSQLReactor({
|
|
3310
|
+
...processorOptions,
|
|
3311
|
+
observability: (0, _event_driven_io_emmett.mergeObservability)(options.observability, processorOptions.observability)
|
|
3312
|
+
});
|
|
3309
3313
|
processors.push(processor);
|
|
3310
3314
|
return processor;
|
|
3311
3315
|
},
|
|
3312
3316
|
projector: (processorOptions) => {
|
|
3313
|
-
const processor = postgreSQLProjector(
|
|
3317
|
+
const processor = postgreSQLProjector({
|
|
3318
|
+
...processorOptions,
|
|
3319
|
+
observability: (0, _event_driven_io_emmett.mergeObservability)(options.observability, processorOptions.observability)
|
|
3320
|
+
});
|
|
3314
3321
|
processors.push(processor);
|
|
3315
3322
|
return processor;
|
|
3316
3323
|
},
|
|
3317
3324
|
workflowProcessor: (processorOptions) => {
|
|
3318
|
-
const processor = postgreSQLWorkflowProcessor(
|
|
3325
|
+
const processor = postgreSQLWorkflowProcessor({
|
|
3326
|
+
...processorOptions,
|
|
3327
|
+
observability: (0, _event_driven_io_emmett.mergeObservability)(options.observability, processorOptions.observability)
|
|
3328
|
+
});
|
|
3319
3329
|
processors.push(processor);
|
|
3320
3330
|
return processor;
|
|
3321
3331
|
},
|