express-socket.io-session
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -9,3 +9,3 @@ var app = require('express')(), | ||
}), | ||
sharedSession = require("../"); | ||
sharedsession = require("../"); | ||
@@ -17,3 +17,3 @@ | ||
io.use(sharedSession(session)); | ||
io.use(sharedsession(session)); | ||
@@ -29,3 +29,3 @@ | ||
req.session.save(); | ||
res.redirect("/ ") | ||
res.redirect("/ "); | ||
}); | ||
@@ -36,3 +36,3 @@ // Unset session data via express request | ||
req.session.save(); | ||
res.redirect("/ ") | ||
res.redirect("/ "); | ||
}); | ||
@@ -39,0 +39,0 @@ |
@@ -39,6 +39,6 @@ var cookieParser = require('cookie-parser')(); | ||
session(req, res, function(req, res) { | ||
next() | ||
next(); | ||
}); | ||
}); | ||
}; | ||
} | ||
}; |
{ | ||
"name": "express-socket.io-session", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Share a cookie-based express-session middleware with socket.io", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -38,3 +38,3 @@ express-socket.io-session | ||
}), | ||
sharedSession = require("express-socket.io-session"); | ||
sharedsession = require("express-socket.io-session"); | ||
@@ -47,3 +47,3 @@ | ||
io.use(sharedSession(session)); | ||
io.use(sharedsession(session)); | ||
@@ -50,0 +50,0 @@ server.listen(3000); |
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
8455
9