Socket
Socket
Sign inDemoInstall

resolve-eventstore-base

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

resolve-eventstore-base - npm Package Compare versions

Comparing version 0.25.2 to 0.25.3

11

es/wrap-event-filter.js
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 @@ };

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc