resolve-eventstore-base
Advanced tools
Comparing version 0.25.2 to 0.25.3
const wrapEventFilter = loadEvents => async (pool, filter) => { | ||
pool.validateEventFilter(filter); | ||
if (filter.cursor != null) { | ||
try { | ||
if (filter.cursor !== pool.getNextCursor(filter.cursor, [])) { | ||
throw null; // eslint-disable-line no-throw-literal | ||
} | ||
} catch (e) { | ||
throw new Error(`Event filter field "cursor" is malformed: ${JSON.stringify(filter.cursor)}`); | ||
} | ||
} | ||
return await loadEvents(pool, filter); | ||
@@ -4,0 +15,0 @@ }; |
@@ -10,2 +10,13 @@ "use strict"; | ||
pool.validateEventFilter(filter); | ||
if (filter.cursor != null) { | ||
try { | ||
if (filter.cursor !== pool.getNextCursor(filter.cursor, [])) { | ||
throw null; // eslint-disable-line no-throw-literal | ||
} | ||
} catch (e) { | ||
throw new Error(`Event filter field "cursor" is malformed: ${JSON.stringify(filter.cursor)}`); | ||
} | ||
} | ||
return await loadEvents(pool, filter); | ||
@@ -12,0 +23,0 @@ }; |
{ | ||
"name": "resolve-eventstore-base", | ||
"version": "0.25.2", | ||
"version": "0.25.3", | ||
"description": "A base for reSolve eventstore adapters", | ||
@@ -30,3 +30,3 @@ "engines": { | ||
"@babel/runtime": "7.9.6", | ||
"resolve-debug-levels": "0.25.2" | ||
"resolve-debug-levels": "0.25.3" | ||
}, | ||
@@ -33,0 +33,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
157319
1444
+ Addedresolve-debug-levels@0.25.3(transitive)
- Removedresolve-debug-levels@0.25.2(transitive)
Updatedresolve-debug-levels@0.25.3