ldn-inbox-server
Advanced tools
Comparing version 1.6.8 to 1.6.9
@@ -21,4 +21,11 @@ const logger = require('../../lib/util.js').getLogger(); | ||
logger.info(`Sending ${type} to ${inbox}`); | ||
await sendNotification(inbox, notification); | ||
if (process.env.DEMO_MODE) { | ||
logger.info(`**demo mode** I will not do anything`); | ||
return { path, options, success: true }; | ||
} | ||
else { | ||
await sendNotification(inbox, notification); | ||
} | ||
return { path, options, success: true }; | ||
@@ -25,0 +32,0 @@ } |
{ | ||
"name": "ldn-inbox-server", | ||
"version": "1.6.8", | ||
"version": "1.6.9", | ||
"description": "A demonstration Event Notifications Inbox server", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -204,2 +204,4 @@ # ldn-inbox-server | ||
If the environoment `DEMO_MODE` is set, no real notifications will be sent. | ||
### Type handler | ||
@@ -206,0 +208,0 @@ |
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
71202
1574
278
36