ldn-inbox-server 1.7.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -201,7 +201,7 @@ Requires configuration properties:
|
|
|
201
201
|
|
|
202
202
|
A handler to send notification that live in the `@outbox` via the LDN protocol to the LDN `target`.
|
|
203
203
|
|
|
204
|
-
If the environoment `DEMO_MODE` is set, no real notifications will be sent.
|
|
204
|
+
If the environoment `DEMO_MODE=NO_NOTIFICATIONS` is set, no real notifications will be sent.
|
|
205
205
|
|
|
206
206
|
### Type handler
|
|
207
207
|
|
|
@@ -19,7 +19,7 @@ async function handle({path,options,config,notification}) {
|
|
|
19
19
|
|
|
20
20
|
logger.info(`Sending ${type} to ${inbox}`);
|
|
21
21
|
|
|
22
|
-
if (process.env.DEMO_MODE) {
|
|
22
|
+
if (process.env.DEMO_MODE && process.env.DEMO_MODE.includes('NO_NOTIFICATIONS')) {
|
|
23
23
|
logger.info(`**demo mode** I will not do anything`);
|
|
24
24
|
return { path, options, success: true };
|
|
25
25
|
}
|