Comparing version 2.4.0 to 2.4.1
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)) |
@@ -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": [ |
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
2089343