@event-driven-io/emmett-postgresql 0.43.0-beta.23 → 0.43.0-beta.24
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 +8 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -865,8 +865,8 @@ const getPostgreSQLEventStore = (connectionString, options = defaultPostgreSQLOp
|
|
|
865
865
|
await ensureSchemaExists();
|
|
866
866
|
return streamExists(pool.execute, streamName, options);
|
|
867
867
|
},
|
|
868
|
-
consumer: (
|
|
869
|
-
...
|
|
868
|
+
consumer: (consumerOptions) => postgreSQLEventStoreConsumer({
|
|
869
|
+
...(0, _event_driven_io_emmett.mergeObservabilityOptions)(consumerOptions ?? {}, options.observability),
|
|
870
870
|
pool,
|
|
871
871
|
connectionString
|
|
872
872
|
}),
|
|
@@ -3327,18 +3327,18 @@ const postgreSQLEventStoreConsumer = (options) => {
|
|
|
3327
3327
|
whenStarted: () => startedAwaiter.wait,
|
|
3328
3328
|
processors,
|
|
3329
3329
|
init,
|
|
3330
|
-
reactor: (
|
|
3331
|
-
const processor = postgreSQLReactor(options);
|
|
3330
|
+
reactor: (processorOptions) => {
|
|
3331
|
+
const processor = postgreSQLReactor((0, _event_driven_io_emmett.mergeObservabilityOptions)(processorOptions, options.observability));
|
|
3332
3332
|
processors.push(processor);
|
|
3333
3333
|
return processor;
|
|
3334
3334
|
},
|
|
3335
|
-
projector: (
|
|
3336
|
-
const processor = postgreSQLProjector(options);
|
|
3335
|
+
projector: (processorOptions) => {
|
|
3336
|
+
const processor = postgreSQLProjector((0, _event_driven_io_emmett.mergeObservabilityOptions)(processorOptions, options.observability));
|
|
3337
3337
|
processors.push(processor);
|
|
3338
3338
|
return processor;
|
|
3339
3339
|
},
|
|
3340
|
-
workflowProcessor: (
|
|
3341
|
-
const processor = postgreSQLWorkflowProcessor(options);
|
|
3340
|
+
workflowProcessor: (processorOptions) => {
|
|
3341
|
+
const processor = postgreSQLWorkflowProcessor((0, _event_driven_io_emmett.mergeObservabilityOptions)(processorOptions, options.observability));
|
|
3342
3342
|
processors.push(processor);
|
|
3343
3343
|
return processor;
|
|
3344
3344
|
},
|