@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.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AssertionError, ConsumerStartPositions, EmmettError, ExpectedVersionConflictError, JSONSerializer, NO_CONCURRENCY_CHECK, STREAM_DOES_NOT_EXIST, STREAM_EXISTS, assertDeepEqual, assertEqual, assertExpectedVersionMatchesCurrent, assertFails, assertIsNotNull, assertIsNull, assertThatArray, assertTrue, asyncAwaiter, asyncRetry, bigInt, bigIntProcessorCheckpoint, defaultProcessorPartition, defaultProcessorVersion, downcastRecordedMessages, getCheckpoint, getProcessorInstanceId, getProjectorId, getWorkflowId, hashText, inMemoryCheckpointer, isBigint, isErrorConstructor,
|
|
1
|
+
import { AssertionError, ConsumerStartPositions, EmmettError, ExpectedVersionConflictError, JSONSerializer, NO_CONCURRENCY_CHECK, STREAM_DOES_NOT_EXIST, STREAM_EXISTS, assertDeepEqual, assertEqual, assertExpectedVersionMatchesCurrent, assertFails, assertIsNotNull, assertIsNull, assertThatArray, assertTrue, asyncAwaiter, asyncRetry, bigInt, bigIntProcessorCheckpoint, defaultProcessorPartition, defaultProcessorVersion, downcastRecordedMessages, getCheckpoint, getProcessorInstanceId, getProjectorId, getWorkflowId, hashText, inMemoryCheckpointer, isBigint, isErrorConstructor, mergeObservability, noopScope, projection, projector, reactor, reduceAsync, unknownTag, upcastRecordedMessage, workflowProcessor } from "@event-driven-io/emmett";
|
|
2
2
|
import { DumboError, JSONSerializer as JSONSerializer$1, SQL, UniqueConstraintError, dumbo, fromDatabaseDriverType, getFormatter, mapRows, runSQLMigrations, single, singleOrNull, sqlMigration } from "@event-driven-io/dumbo";
|
|
3
3
|
import { pongoClient } from "@event-driven-io/pongo";
|
|
4
4
|
import { pgDriver } from "@event-driven-io/pongo/pg";
|
|
@@ -865,7 +865,8 @@ const getPostgreSQLEventStore = (connectionString, options = defaultPostgreSQLOp
|
|
|
865
865
|
return streamExists(pool.execute, streamName, options);
|
|
866
866
|
},
|
|
867
867
|
consumer: (consumerOptions) => postgreSQLEventStoreConsumer({
|
|
868
|
-
...
|
|
868
|
+
...consumerOptions,
|
|
869
|
+
observability: mergeObservability(options.observability, consumerOptions?.observability),
|
|
869
870
|
pool,
|
|
870
871
|
connectionString
|
|
871
872
|
}),
|
|
@@ -3304,17 +3305,26 @@ const postgreSQLEventStoreConsumer = (options) => {
|
|
|
3304
3305
|
processors,
|
|
3305
3306
|
init,
|
|
3306
3307
|
reactor: (processorOptions) => {
|
|
3307
|
-
const processor = postgreSQLReactor(
|
|
3308
|
+
const processor = postgreSQLReactor({
|
|
3309
|
+
...processorOptions,
|
|
3310
|
+
observability: mergeObservability(options.observability, processorOptions.observability)
|
|
3311
|
+
});
|
|
3308
3312
|
processors.push(processor);
|
|
3309
3313
|
return processor;
|
|
3310
3314
|
},
|
|
3311
3315
|
projector: (processorOptions) => {
|
|
3312
|
-
const processor = postgreSQLProjector(
|
|
3316
|
+
const processor = postgreSQLProjector({
|
|
3317
|
+
...processorOptions,
|
|
3318
|
+
observability: mergeObservability(options.observability, processorOptions.observability)
|
|
3319
|
+
});
|
|
3313
3320
|
processors.push(processor);
|
|
3314
3321
|
return processor;
|
|
3315
3322
|
},
|
|
3316
3323
|
workflowProcessor: (processorOptions) => {
|
|
3317
|
-
const processor = postgreSQLWorkflowProcessor(
|
|
3324
|
+
const processor = postgreSQLWorkflowProcessor({
|
|
3325
|
+
...processorOptions,
|
|
3326
|
+
observability: mergeObservability(options.observability, processorOptions.observability)
|
|
3327
|
+
});
|
|
3318
3328
|
processors.push(processor);
|
|
3319
3329
|
return processor;
|
|
3320
3330
|
},
|