connect-redis
Advanced tools
Comparing version 2.5.0 to 2.5.1
2.5.1 / 2015-09-18 | ||
================== | ||
* Prevent RedisStore constructor from being called as a normal function [venning] | ||
2.5.0 / 2015-08-28 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -50,2 +50,6 @@ /*! | ||
function RedisStore (options) { | ||
if (!(this instanceof RedisStore)) { | ||
throw new TypeError('Cannot call RedisStore constructor as a function'); | ||
} | ||
var self = this; | ||
@@ -52,0 +56,0 @@ |
{ | ||
"name": "connect-redis", | ||
"description": "Redis session store for Connect", | ||
"version": "2.5.0", | ||
"version": "2.5.1", | ||
"author": "TJ Holowaychuk <tj@vision-media.ca>", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
@@ -50,2 +50,3 @@ var P = require('bluebird'); | ||
test('basic', function (t) { | ||
t.throws(RedisStore, TypeError, 'constructor not callable as function'); | ||
var store = new RedisStore({ port: 8543 }); | ||
@@ -52,0 +53,0 @@ return lifecycleTest(store, t); |
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
18484
351