persistence
Advanced tools
Comparing version 2.0.0-alpha.4 to 2.0.0
@@ -155,4 +155,3 @@ var Redis = require('ioredis'), | ||
Connection.prototype.connectSentinel = function (config, callback) { | ||
var sentinel, | ||
options = { role: 'sentinel' }, | ||
var options = { role: 'sentinel' }, | ||
sentinelMaster = config.id, | ||
@@ -170,3 +169,3 @@ sentinels = config.sentinels; | ||
sentinel = new Redis({ | ||
const sentinel = new Redis({ | ||
sentinels, | ||
@@ -173,0 +172,0 @@ name: sentinelMaster, |
@@ -9,3 +9,3 @@ var logging = require('minilog')('persistence'), | ||
var Persistence = { } | ||
const Persistence = { } | ||
@@ -71,4 +71,4 @@ Persistence.connect = function(done) { | ||
Persistence.readOrderedWithScores = function(key, policy, callback) { | ||
var multi = Persistence.redis().multi(); | ||
var replyCount = 0; | ||
const multi = Persistence.redis().multi(); | ||
let replyCount = 0; | ||
switch(arguments.length) { | ||
@@ -247,4 +247,2 @@ case 3: | ||
Persistence.isConnectionReady = () => Persistence.redis() && Persistence.pubsub(); | ||
module.exports = Persistence; |
{ | ||
"name": "persistence", | ||
"version": "2.0.0-alpha.4", | ||
"version": "2.0.0", | ||
"description": "An abstraction library for redis and sentinel connection management", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
51464
1155