Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eventstore

Package Overview
Dependencies
Maintainers
2
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eventstore - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

4

lib/databases/mongodb.js

@@ -85,7 +85,7 @@ 'use strict';

self.events = new mongo.Collection(client, options.eventsCollectionName);
self.events.ensureIndex({ streamId: 1, aggregateId: 1, aggregate: 1, context: 1, commitId: 1 },
self.events.ensureIndex({ streamId: 1, aggregateId: 1, aggregate: 1, context: 1, commitId: 1, commitStamp: 1, commitSequence: 1 },
function (err) { if (err) { debug(err); } });
self.snapshots = new mongo.Collection(client, options.snapshotsCollectionName);
self.snapshots.ensureIndex({ streamId: 1, aggregateId: 1, aggregate: 1, context: 1 },
self.snapshots.ensureIndex({ streamId: 1, aggregateId: 1, aggregate: 1, context: 1, commitStamp: 1, revision: 1, version: 1 },
function (err) { if (err) { debug(err); } });

@@ -92,0 +92,0 @@

@@ -40,7 +40,7 @@ 'use strict';

this.events = this.db.collection(options.eventsCollectionName + '.tingo');
this.events.ensureIndex({ streamId: 1, aggregateId: 1, aggregate: 1, context: 1, commitId: 1 },
this.events.ensureIndex({ streamId: 1, aggregateId: 1, aggregate: 1, context: 1, commitId: 1, commitStamp: 1, commitSequence: 1 },
function (err) { if (err) { debug(err); } });
this.snapshots = this.db.collection(options.snapshotsCollectionName + '.tingo');
this.snapshots.ensureIndex({ streamId: 1, aggregateId: 1, aggregate: 1, context: 1 },
this.snapshots.ensureIndex({ streamId: 1, aggregateId: 1, aggregate: 1, context: 1, commitStamp: 1, revision: 1, version: 1 },
function (err) { if (err) { debug(err); } });

@@ -47,0 +47,0 @@

{
"author": "adrai",
"name": "eventstore",
"version": "1.0.1",
"version": "1.0.2",
"contributors": [

@@ -6,0 +6,0 @@ {

@@ -0,1 +1,7 @@

#### v1.0.2
- optimized indexes
#### v1.0.1
- optimized getSnapshot when using versioning of same revision
#### v1.0.0

@@ -2,0 +8,0 @@ - refactored whole module

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