New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@acuris/eventstore-api

Package Overview
Dependencies
Maintainers
4
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@acuris/eventstore-api - npm Package Compare versions

Comparing version 1.3.4 to 1.3.5

1

dist/LocalEventSource.d.ts

@@ -37,2 +37,3 @@ import { EventBatchWriter, EventHeader, EventReader, EventRecord, EventSource, EventStreamReader, EventStreamWriter, NewEvent, Position, PositionCodec, ResolvedEvent, ResolvedEventHeader, StreamId } from "./EventSource";

write(streamId: StreamId, events: NewEvent[], expectedEventNumber?: number): Promise<void>;
writeAsAt(timestamp: Date, streamId: StreamId, events: NewEvent[], expectedEventNumber?: number): Promise<void>;
private lastEventNumber;

@@ -39,0 +40,0 @@ close(): Promise<void>;

4

dist/LocalEventSource.js

@@ -93,4 +93,6 @@ "use strict";

write(streamId, events, expectedEventNumber) {
return this.writeAsAt(new Date(), streamId, events, expectedEventNumber);
}
writeAsAt(timestamp, streamId, events, expectedEventNumber) {
let lastEventNumber = this.lastEventNumber(streamId);
const timestamp = new Date();
if (expectedEventNumber !== undefined && lastEventNumber !== expectedEventNumber)

@@ -97,0 +99,0 @@ return Promise.reject(new Error(`Wrong expected version ${streamId.category}/${streamId.id}: at ${lastEventNumber}, expected ${expectedEventNumber}`));

{
"name": "@acuris/eventstore-api",
"private": false,
"version": "1.3.4",
"version": "1.3.5",
"description": "API for accessing event stores",

@@ -6,0 +6,0 @@ "keywords": [

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