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

catbox-redis

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

catbox-redis - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

lib/index.js

@@ -22,3 +22,3 @@ // Load modules

this.settings = Hoek.applyToDefaults(internals.defaults, options || {});
this.settings = Hoek.applyToDefaults(internals.defaults, options);
this.client = null;

@@ -25,0 +25,0 @@ return this;

{
"name": "catbox-redis",
"description": "Redis adapter for catbox",
"version": "1.0.1",
"version": "1.0.2",
"author": "Eran Hammer <eran@hueniverse.com> (http://hueniverse.com)",

@@ -21,7 +21,7 @@ "contributors": [

"redis": "0.10.x",
"hoek": "1.x.x"
"hoek": "2.x.x"
},
"devDependencies": {
"catbox": "2.x.x",
"lab": "1.x.x"
"lab": "3.x.x"
},

@@ -28,0 +28,0 @@ "scripts": {

@@ -10,4 +10,4 @@ catbox-redis

- `host` - the Redis server hostname. Defaults to `'127.0.0.1'`.
- `port` - the Redis server port. Defaults to `6379`.
- `port` - the Redis server port or unix domain socket path. Defaults to `6379`.
- `password` - the Redis authentication password when required.

@@ -552,3 +552,3 @@ // Load modules

it('passes an error to the callback when there is an error with the envelope structure', function (done) {
it('passes an error to the callback when there is an error with the envelope structure (stored)', function (done) {

@@ -576,2 +576,25 @@ var options = {

it('passes an error to the callback when there is an error with the envelope structure (item)', function (done) {
var options = {
host: '127.0.0.1',
port: 6379
};
var redis = new Redis(options);
redis.client = {
get: function (item, callback) {
callback(null, '{ "stored": "123" }');
}
};
redis.get('test', function (err) {
expect(err).to.exist;
expect(err.message).to.equal('Incorrect envelope structure');
done();
});
});
it('is able to retrieve an object thats stored when connection is started', function (done) {

@@ -578,0 +601,0 @@

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