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

persistence

Package Overview
Dependencies
Maintainers
11
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

persistence - npm Package Compare versions

Comparing version 2.0.0-alpha.4 to 2.0.0

5

lib/connection.js

@@ -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,

8

lib/persistence.js

@@ -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

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