@event-driven-io/emmett-postgresql 0.43.0-alpha.1 → 0.43.0-apha.2
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 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/package.json +4 -7
package/dist/index.cjs
CHANGED
|
@@ -1741,6 +1741,11 @@ var expectPongoDocuments = {
|
|
|
1741
1741
|
|
|
1742
1742
|
|
|
1743
1743
|
|
|
1744
|
+
|
|
1745
|
+
|
|
1746
|
+
|
|
1747
|
+
|
|
1748
|
+
|
|
1744
1749
|
var appendToStreamSQL = createFunctionIfDoesNotExistSQL(
|
|
1745
1750
|
"emt_append_to_stream",
|
|
1746
1751
|
_dumbo.SQL`CREATE OR REPLACE FUNCTION emt_append_to_stream(
|
|
@@ -1919,7 +1924,9 @@ var toExpectedVersion = (expected) => {
|
|
|
1919
1924
|
if (expected == STREAM_EXISTS) return null;
|
|
1920
1925
|
return expected;
|
|
1921
1926
|
};
|
|
1922
|
-
var isOptimisticConcurrencyError = (error) => error
|
|
1927
|
+
var isOptimisticConcurrencyError = (error) => _dumbo.DumboError.isInstanceOf(error, {
|
|
1928
|
+
errorType: _dumbo.UniqueConstraintError.ErrorType
|
|
1929
|
+
});
|
|
1923
1930
|
var appendEventsRaw = (execute, streamId, streamType, messages, options) => _dumbo.single.call(void 0,
|
|
1924
1931
|
execute.command(
|
|
1925
1932
|
callAppendToStream({
|