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

socketio-jwt

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

socketio-jwt - npm Package Compare versions

Comparing version 4.3.0 to 4.3.1

9

example/server.js

@@ -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) {

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