async-redis
Advanced tools
Comparing version 1.1.3 to 1.1.4
{ | ||
"private": false, | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"name": "async-redis", | ||
@@ -22,6 +22,6 @@ "keywords": [ | ||
"lint": "eslint --fix --ext .js, src", | ||
"test": "mocha test --recursive", | ||
"version:patch": "npm --no-git-tag-version version patch", | ||
"version:minor": "npm --no-git-tag-version version minor", | ||
"version:major": "npm --no-git-tag-version version major" | ||
"test": "mocha", | ||
"version:patch": "npm version patch", | ||
"version:minor": "npm version minor", | ||
"version:major": "npm version major" | ||
}, | ||
@@ -34,2 +34,3 @@ "dependencies": { | ||
"chai": "^3.5.0", | ||
"chai-as-promised": "^7.1.1", | ||
"coveralls": "^3.0.0", | ||
@@ -36,0 +37,0 @@ "eslint": "^4.17.0", |
@@ -7,4 +7,4 @@ /* eslint func-names: ["error", "as-needed"] */ | ||
const AsyncRedis = function (...args) { | ||
const client = redis.createClient(args); | ||
const AsyncRedis = function (args) { | ||
const client = Array.isArray(args) ? redis.createClient(...args) : redis.createClient(args); | ||
return AsyncRedis.decorate(client); | ||
@@ -11,0 +11,0 @@ }; |
@@ -50,2 +50,9 @@ const { assert } = require('chai'); | ||
}); | ||
describe('test rejection', function () { | ||
it('should reject promise on throw', async () => { | ||
let promise = redisClient.set('hello'); | ||
assert.isRejected(promise, Error); | ||
}); | ||
}); | ||
}); |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
104315
18
203
0
10