socketio-jwt
Advanced tools
Comparing version 4.4.0 to 4.4.1
var express = require('express'); | ||
var app=express(); | ||
var app = express(); | ||
var http = require('http').Server(app); | ||
@@ -16,3 +16,3 @@ var io = require('socket.io')(http); | ||
app.set('views', __dirname + '/views'); | ||
app.set('view engine', 'jade'); | ||
app.set('view engine', 'pug'); | ||
@@ -31,5 +31,5 @@ io | ||
}); | ||
app.use(express.static(__dirname + '/public')); | ||
app.get('/', function (req, res) { | ||
@@ -42,2 +42,1 @@ res.render('index', { env: env }); | ||
}); | ||
@@ -9,8 +9,8 @@ { | ||
"dependencies": { | ||
"dotenv": "^1.2.0", | ||
"express": "^4.13.3", | ||
"jade": "^1.11.0", | ||
"socket.io": "^1.3.7", | ||
"dotenv": "^2.0.0", | ||
"express": "^4.13.4", | ||
"pug": "^2.0.0-beta2", | ||
"socket.io": "^1.4.6", | ||
"socketio-jwt": "^4.3.3" | ||
} | ||
} |
@@ -44,3 +44,3 @@ var xtend = require('xtend'); | ||
if(typeof data.token !== "string") { | ||
if(!data || typeof data.token !== "string") { | ||
return onError({message: 'invalid token datatype'}, 'invalid_token'); | ||
@@ -47,0 +47,0 @@ } |
{ | ||
"name": "socketio-jwt", | ||
"version": "4.4.0", | ||
"version": "4.4.1", | ||
"description": "authenticate socket.io connections using JWTs", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
35852