@event-driven-io/emmett-postgresql 0.43.0-beta.2 → 0.43.0-beta.4
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 +7 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -6
- package/dist/index.d.ts +4 -6
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -445,7 +445,7 @@ var reactor = (options) => {
|
|
|
445
445
|
if (isActive) return;
|
|
446
446
|
await init(startOptions);
|
|
447
447
|
isActive = true;
|
|
448
|
-
closeSignal = onShutdown(() => close(
|
|
448
|
+
closeSignal = onShutdown(() => close(startOptions));
|
|
449
449
|
if (lastCheckpoint !== null)
|
|
450
450
|
return {
|
|
451
451
|
lastCheckpoint
|
|
@@ -602,6 +602,9 @@ function assertIsNotNull(result) {
|
|
|
602
602
|
assertNotEqual(result, null);
|
|
603
603
|
assertOk(result);
|
|
604
604
|
}
|
|
605
|
+
function assertIsNull(result) {
|
|
606
|
+
assertEqual(result, null);
|
|
607
|
+
}
|
|
605
608
|
var assertThatArray = (array) => {
|
|
606
609
|
return {
|
|
607
610
|
isEmpty: () => assertEqual(
|
|
@@ -1912,7 +1915,7 @@ var documentDoesNotExist = (options) => (assertOptions) => withCollection(
|
|
|
1912
1915
|
const result = await collection.findOne(
|
|
1913
1916
|
"withId" in options ? { _id: options.withId } : options.matchingFilter
|
|
1914
1917
|
);
|
|
1915
|
-
|
|
1918
|
+
assertIsNull(result);
|
|
1916
1919
|
},
|
|
1917
1920
|
{ ...options, ...assertOptions }
|
|
1918
1921
|
);
|
|
@@ -5101,10 +5104,10 @@ var postgreSQLEventStoreConsumer = (options) => {
|
|
|
5101
5104
|
if (messagePuller) {
|
|
5102
5105
|
_optionalChain([abortController, 'optionalAccess', _141 => _141.abort, 'call', _142 => _142()]);
|
|
5103
5106
|
await messagePuller.stop();
|
|
5104
|
-
messagePuller = void 0;
|
|
5105
|
-
abortController = null;
|
|
5106
5107
|
}
|
|
5107
5108
|
await start;
|
|
5109
|
+
messagePuller = void 0;
|
|
5110
|
+
abortController = null;
|
|
5108
5111
|
await stopProcessors();
|
|
5109
5112
|
};
|
|
5110
5113
|
const init = async () => {
|