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

redis

Package Overview
Dependencies
Maintainers
7
Versions
156
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redis - npm Package Compare versions

Comparing version 2.4.0 to 2.4.1

.nyc_output/29863.json

8

changelog.md
Changelog
=========
## v.2.4.1 - 25 Nov, 2015
Bugfixes
- Fixed a js parser regression introduced in 2.4.0 ([@BridgeAR](https://github.com/BridgeAR))
## v.2.4.0 - 25 Nov, 2015

@@ -8,3 +14,3 @@

- Added `tls` option to iniate a connection to a redis server behind a TLS proxy. Thanks ([@paddybyers](https://github.com/paddybyers))
- Added `tls` option to initiate a connection to a redis server behind a TLS proxy. Thanks ([@paddybyers](https://github.com/paddybyers))
- Added `prefix` option to auto key prefix any command with the provided prefix ([@luin](https://github.com/luin) & [@BridgeAR](https://github.com/BridgeAR))

@@ -11,0 +17,0 @@ - Added `url` option to pass the connection url with the options object ([@BridgeAR](https://github.com/BridgeAR))

18

lib/parsers/javascript.js

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

this._offset = 0;
this._big_offset = 0;
this._big_str_size = 0;
this._chunks_size = 0;

@@ -57,3 +57,3 @@ this._buffers = [];

this._chunks_size = this._buffer.length - this._offset - 2;
this._big_offset = packetHeader;
this._big_str_size = packetHeader;
throw new IncompleteReadBuffer('Wait for more data.');

@@ -90,8 +90,8 @@ }

JavascriptReplyParser.prototype.execute = function (buffer) {
if (this._chunks_size !== 0 && this._big_offset > this._chunks_size + buffer.length) {
this._buffers.push(buffer);
this._chunks_size += buffer.length;
return;
}
if (this._buffers.length !== 0) {
if (this._chunks_size !== 0) {
if (this._big_str_size > this._chunks_size + buffer.length) {
this._buffers.push(buffer);
this._chunks_size += buffer.length;
return;
}
this._buffers.unshift(this._offset === 0 ? this._buffer : this._buffer.slice(this._offset));

@@ -101,3 +101,3 @@ this._buffers.push(buffer);

this._buffers = [];
this._big_offset = 0;
this._big_str_size = 0;
this._chunks_size = 0;

@@ -104,0 +104,0 @@ } else if (this._offset >= this._buffer.length) {

{
"name": "redis",
"version": "2.4.0",
"version": "2.4.1",
"description": "Redis client library",

@@ -5,0 +5,0 @@ "keywords": [

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