@event-driven-io/emmett-postgresql 0.43.0-beta.2 → 0.43.0-beta.3
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 +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -3
- package/dist/index.d.ts +1 -3
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
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
|
);
|