ddd-es-node
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -37,7 +37,13 @@ "use strict"; | ||
const USE_DYNAMO_DB = !(/false/i.test((process.env.USE_DYNAMO_DB || 'false'))); | ||
const esCongig = USE_DYNAMO_DB ? { | ||
type: 'dynamodb', | ||
useUndispatchedEventsTable: false | ||
} : {}; | ||
const es = (eventstore(esCongig)); | ||
let esConfig = {}; | ||
if (USE_DYNAMO_DB) { | ||
esConfig = { | ||
type: 'dynamodb', | ||
useUndispatchedEventsTable: false | ||
}; | ||
} | ||
if (process.env.RAW_ES_CONFIG) { | ||
esConfig = JSON.parse(process.env.USE_DYNAMO_DB + ''); | ||
} | ||
const es = (eventstore(esConfig)); | ||
es.init(); | ||
@@ -44,0 +50,0 @@ const hydrateEventStream = (events) => { |
{ | ||
"name": "ddd-es-node", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "ddd-es-node", | ||
@@ -5,0 +5,0 @@ "main": "./dist/src/index.js", |
@@ -65,7 +65,13 @@ import { | ||
const esCongig : Object = USE_DYNAMO_DB ? { | ||
type:'dynamodb', | ||
useUndispatchedEventsTable: false | ||
} : {}; | ||
const es : EventStoreLib.EventStoreType = ((<EventStoreLib.EventStoreTypeFactory>eventstore)(esCongig)); | ||
let esConfig : Object = {}; | ||
if(USE_DYNAMO_DB) { | ||
esConfig = { | ||
type:'dynamodb', | ||
useUndispatchedEventsTable: false | ||
}; | ||
} | ||
if(process.env.RAW_ES_CONFIG) { | ||
esConfig = JSON.parse(process.env.USE_DYNAMO_DB + ''); | ||
} | ||
const es : EventStoreLib.EventStoreType = ((<EventStoreLib.EventStoreTypeFactory>eventstore)(esConfig)); | ||
es.init(); | ||
@@ -72,0 +78,0 @@ |
Sorry, the diff of this file is not supported yet
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
69922
41
1485