socketio-jwt
Advanced tools
Comparing version 4.3.0 to 4.3.1
@@ -12,7 +12,8 @@ var express = require('express'); | ||
app.configure(function(){ | ||
this.use(express.json()); | ||
this.use(express.static(__dirname + '/public')); | ||
}); | ||
var serveStatic = require('serve-static'); | ||
var bodyParser = require('body-parser'); | ||
app.use(serveStatic('public', {'index': ['index.html']})); | ||
app.use(bodyParser.json()); | ||
app.post('/login', function (req, res) { | ||
@@ -19,0 +20,0 @@ var profile = { |
{ | ||
"name": "socketio-jwt", | ||
"version": "4.3.0", | ||
"version": "4.3.1", | ||
"description": "authenticate socket.io connections using JWTs", | ||
@@ -29,7 +29,8 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"connect": "~2.7.11", | ||
"express": "~3.1.2", | ||
"body-parser": "~1.13.3", | ||
"express": "~4.10.6", | ||
"mocha": "~1.17.0", | ||
"passport-local": "~0.1.6", | ||
"request": "~2.19.0", | ||
"serve-static": "^1.7.1", | ||
"server-destroy": "~1.0.1", | ||
@@ -36,0 +37,0 @@ "should": "~1.2.2", |
@@ -10,2 +10,3 @@ var express = require('express'); | ||
var xtend = require('xtend'); | ||
var bodyParser = require('body-parser'); | ||
@@ -30,6 +31,3 @@ var server, sio; | ||
app.configure(function(){ | ||
this.use(express.json()); | ||
this.use(express.urlencoded()); | ||
}); | ||
app.use(bodyParser.json()); | ||
@@ -36,0 +34,0 @@ app.post('/login', function (req, res) { |
@@ -10,2 +10,3 @@ var express = require('express'); | ||
var xtend = require('xtend'); | ||
var bodyParser = require('body-parser'); | ||
@@ -30,6 +31,3 @@ var server, sio; | ||
app.configure(function(){ | ||
this.use(express.json()); | ||
this.use(express.urlencoded()); | ||
}); | ||
app.use(bodyParser.json()); | ||
@@ -36,0 +34,0 @@ app.post('/login', function (req, res) { |
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
24846
10
450