We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c252ed0 + 1ee6e71 commit e02adc7Copy full SHA for e02adc7
package.json
@@ -1,6 +1,6 @@
1
{
2
"private": false,
3
- "version": "1.1.3",
+ "version": "1.1.4",
4
"name": "async-redis",
5
"keywords": [
6
"redis",
src/index.js
@@ -4,8 +4,8 @@ const redis = require('redis');
const commands = require('redis-commands').list;
const objectDecorator = require('./object-decorator');
7
-const AsyncRedis = function (...args) {
8
- const client = redis.createClient(args);
+const AsyncRedis = function (args) {
+ const client = Array.isArray(args) ? redis.createClient(...args) : redis.createClient(args);
9
return AsyncRedis.decorate(client);
10
};
11
0 commit comments