haraka-plugin-redis
Advanced tools
Comparing version 1.0.2 to 1.0.3
# 1.0.2 - 2017-02-06 | ||
# 1.0.3 - 2017-02-06 | ||
- don't break when no [redis] config exists |
@@ -102,5 +102,9 @@ 'use strict'; | ||
// tests that do not load config | ||
if (!plugin.cfg) plugin.cfg = { redis: {} }; | ||
if (!server) server = { notes: {} }; | ||
// use server-wide redis connection when using default DB id | ||
if (!plugin.cfg.redis || !plugin.cfg.redis.db) { | ||
if (server && server.notes && server.notes.redis) { | ||
if (!plugin.cfg.redis.db) { | ||
if (server.notes.redis) { | ||
server.loginfo(plugin, 'using server.notes.redis'); | ||
@@ -107,0 +111,0 @@ plugin.db = server.notes.redis; |
{ | ||
"name": "haraka-plugin-redis", | ||
"version": "1.0.2", | ||
"description": "Redis plugin for Haraka & other plugins", | ||
"version": "1.0.3", | ||
"description": "Redis plugin for Haraka & other plugins to inherit from", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "directories": { |
@@ -100,5 +100,5 @@ # haraka-plugin-redis | ||
[clim-url]: https://codeclimate.com/github/haraka/haraka-plugin-redis | ||
[apv-img]: https://ci.appveyor.com/api/projects/status/lme4otppxe22me0j/branch/master?svg=true | ||
[apv-url]: https://ci.appveyor.com/project/msimerson/haraka-plugin-redis/branch/master | ||
[apv-img]: https://ci.appveyor.com/api/projects/status/fxk78f25n61nq3lx?svg=true | ||
[apv-url]: https://ci.appveyor.com/project/msimerson/haraka-plugin-redis | ||
[gk-img]: https://badges.greenkeeper.io/haraka/haraka-plugin-redis.svg | ||
[gk-url]: https://greenkeeper.io/ |
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
16801
273