Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

haraka-plugin-redis

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

haraka-plugin-redis - npm Package Compare versions

Comparing version 1.0.0 to 1.0.2

.codeclimate.yml

26

.eslintrc.json
{
"env": {
"node": true,
"mocha": true,
"es6": true
},
"extends": "eslint:recommended",
"installedESLint": true,
"root": true,
"plugins": [
"haraka"
],
"extends": ["eslint:recommended", "plugin:haraka/recommended"],
"rules": {
"comma-dangle": [2, "only-multiline"],
"dot-notation": 2,
"indent": [2, 4, {"SwitchCase": 1}],
"one-var": [2, "never"],
"no-trailing-spaces": [2, { "skipBlankLines": false }],
"keyword-spacing": [2, {
"before": true,
"after": true
}],
"no-delete-var": 2,
"no-empty": ["error", { "allowEmptyCatch": true }],
"no-label-var": 2,
"no-shadow": 2,
"no-unused-vars": [ 1, { "args": "none" }],
"no-console": 0
}
}

@@ -11,3 +11,3 @@ 'use strict';

// some other plugin doing: inherits('redis')
// some other plugin doing: inherits('haraka-plugin-redis')
if (plugin.name !== 'redis') return;

@@ -104,4 +104,4 @@

// use server-wide redis connection when using default DB id
if (!plugin.cfg.redis.db) {
if (server.notes.redis) {
if (!plugin.cfg.redis || !plugin.cfg.redis.db) {
if (server && server.notes && server.notes.redis) {
server.loginfo(plugin, 'using server.notes.redis');

@@ -120,3 +120,3 @@ plugin.db = server.notes.redis;

}
if (server && server.notes.redis) {
if (server && server.notes && server.notes.redis) {
server.notes.redis.quit();

@@ -126,3 +126,3 @@ }

exports.redis_ping = function(done) {
exports.redis_ping = function (done) {
var plugin = this;

@@ -129,0 +129,0 @@ var nope = function (err) {

{
"name": "haraka-plugin-redis",
"version": "1.0.0",
"version": "1.0.2",
"description": "Redis plugin for Haraka & other plugins",

@@ -14,2 +14,3 @@ "main": "index.js",

"eslint": "^3.14.1",
"eslint-plugin-haraka": "*",
"haraka-test-fixtures": "*",

@@ -20,2 +21,3 @@ "nodeunit": "*"

"lint": "./node_modules/.bin/eslint *.js test/*.js",
"lintfix": "./node_modules/.bin/eslint --fix *.js test/*.js",
"test": "./run_tests"

@@ -22,0 +24,0 @@ },

# haraka-plugin-redis
[![Build Status][ci-img]][ci-url]
[![Code Climate][clim-img]][clim-url]
[![Windows Build status][apv-img]][apv-url]
[![Greenkeeper badge][gk-img]][gk-url]
Connects to a redis instance. By default it stores a `redis`

@@ -78,2 +83,3 @@ connection handle at `server.notes.redis`. See below to get a custom DB handle

[INFO] [-] [redis] connected to redis://172.16.15.16:6379 v3.2.6
[INFO] [-] [limit] connected to redis://172.16.15.16:6379/1 v3.2.6
[INFO] [-] [karma] connected to redis://172.16.15.16:6379/2 v3.2.6

@@ -84,1 +90,16 @@ [INFO] [-] [known-senders] connected to redis://172.16.15.16:6379/3 v3.2.6

message.
`[![Coverage Status][cov-img]][cov-url]` nyet
[ci-img]: https://travis-ci.org/haraka/haraka-plugin-redis.svg
[ci-url]: https://travis-ci.org/haraka/haraka-plugin-redis
[cov-img]: https://codecov.io/github/haraka/haraka-plugin-redis/coverage.svg
[cov-url]: https://codecov.io/github/haraka/haraka-plugin-redis?branch=master
[clim-img]: https://codeclimate.com/github/haraka/haraka-plugin-redis/badges/gpa.svg
[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
[gk-img]: https://badges.greenkeeper.io/haraka/haraka-plugin-redis.svg
[gk-url]: https://greenkeeper.io/
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc