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

async-redis

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-redis - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

LICENSE.md

11

package.json
{
"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

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