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

cqrs-saga

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cqrs-saga - npm Package Compare versions

Comparing version 1.6.8 to 1.6.9

5

lib/revisionGuardStore/databases/mongodb.js

@@ -81,3 +81,6 @@ 'use strict';

if (options.username) {
if (options.authSource && options.username) {
// Authenticate with authSource
client.authenticate(options.username, options.password, {authSource: options.authSource}, finish);
} else if (options.username) {
client.authenticate(options.username, options.password, finish);

@@ -84,0 +87,0 @@ } else {

@@ -83,3 +83,6 @@ 'use strict';

if (options.username) {
if (options.authSource && options.username) {
// Authenticate with authSource
client.authenticate(options.username, options.password, {authSource: options.authSource}, finish);
} else if (options.username) {
client.authenticate(options.username, options.password, finish);

@@ -86,0 +89,0 @@ } else {

2

package.json
{
"author": "adrai",
"name": "cqrs-saga",
"version": "1.6.8",
"version": "1.6.9",
"private": false,

@@ -6,0 +6,0 @@ "main": "index.js",

@@ -38,2 +38,3 @@ # Introduction

timeout: 10000 // optional
// authSource: 'authedicationDatabase', // optional
// username: 'technicalDbUser', // optional

@@ -199,3 +200,3 @@ // password: 'secret' // optional

pm.getLastEvent(function (err, evt) {
if (event.occurredAt < Date.now()) {

@@ -375,4 +376,4 @@ // ...

}, function (evt, saga, callback) {
// if you have multiple concurrent events that targets the same saga, you can catch it like this:
// if you have multiple concurrent events that targets the same saga, you can catch it like this:
if (saga.actionOnCommit === 'create') {

@@ -385,3 +386,3 @@ return this.retry(callback);

}
saga.set('orderId', evt.aggregate.id);

@@ -455,3 +456,3 @@ saga.set('totalCosts', evt.payload.totalCosts);

//});
//
//
// optional define a function that checks if an event should be handled

@@ -458,0 +459,0 @@ //.defineShouldHandle(function (evt, saga) {

@@ -0,1 +1,4 @@

## [v1.6.9](https://github.com/adrai/node-cqrs-saga/compare/v1.6.8...v1.6.9)
- give possibility to use mongodb with authSource
## [v1.6.8](https://github.com/adrai/node-cqrs-saga/compare/v1.6.7...v1.6.8)

@@ -2,0 +5,0 @@ - updated dep

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