Comparing version 1.6.8 to 1.6.9
@@ -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 { |
{ | ||
"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 |
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
159063
4315
555