Skip to content

Commit bd5f627

Browse files
DreadPirateSergeyjakesylvestremoaxacadependabot[bot]
authored
Remove mutating of original redisClient object. (#37)
* Add link to node redis library * Bump stringstream from 0.0.5 to 0.0.6 (#27) Bumps [stringstream](https://github.com/mhart/StringStream) from 0.0.5 to 0.0.6. - [Release notes](https://github.com/mhart/StringStream/releases) - [Commits](mhart/StringStream@v0.0.5...v0.0.6) Signed-off-by: dependabot[bot] <[email protected]> * Remove mutating of original redisClient object Co-authored-by: Jake <[email protected]> Co-authored-by: Matthew Oaxaca <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 71d4a87 commit bd5f627

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Async Redis
88
[![Maintainability](https://api.codeclimate.com/v1/badges/141c7e0d80d10b10c42a/maintainability)](https://codeclimate.com/github/moaxaca/async-redis/maintainability)
99
[![Known Vulnerabilities](https://snyk.io/test/github/moaxaca/async-redis/badge.svg?targetFile=package.json)](https://snyk.io/test/github/moaxaca/async-redis?targetFile=package.json)
1010

11-
Light weight wrapper over the node_redis library with first class async & promise support.
11+
Light weight wrapper over the [node_redis](https://github.com/NodeRedis/node_redis) library with first class async & promise support.
1212

1313
## Installation
1414
To install the stable version:

src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ const promisify = function (object, method) {
3434
}
3535

3636
AsyncRedis.decorate = redisClient => objectDecorator(redisClient, (name, method) => {
37+
const asyncClient = Object.create(redisClient);
38+
3739
if (commandSet.has(name)) {
3840
return promisify(redisClient, method);
3941
} else if (queueCommandSet.has(name)) {

yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2433,8 +2433,8 @@ string_decoder@~1.0.3:
24332433
safe-buffer "~5.1.0"
24342434

24352435
stringstream@~0.0.4, stringstream@~0.0.5:
2436-
version "0.0.5"
2437-
resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.5.tgz#4e484cd4de5a0bbbee18e46307710a8a81621878"
2436+
version "0.0.6"
2437+
resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.6.tgz#7880225b0d4ad10e30927d167a1d6f2fd3b33a72"
24382438

24392439
strip-ansi@^3.0.0, strip-ansi@^3.0.1:
24402440
version "3.0.1"

0 commit comments

Comments
 (0)