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

server

Package Overview
Dependencies
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

server - npm Package Compare versions

Comparing version 1.0.0-alpha.36 to 1.0.0-alpha.37

others/router.js

2

package.json
{
"name": "server",
"version": "1.0.0-alpha.36",
"version": "1.0.0-alpha.37",
"description": "A modern and powerful server for Node.js",

@@ -5,0 +5,0 @@ "main": "server.js",

@@ -13,7 +13,2 @@ module.exports = ctx => {

// Public folder
if (options.public) {
connect.before.push(modern(ctx.express.static(options.public)));
}
// Compress

@@ -25,2 +20,7 @@ if (options.compress) {

// Public folder
if (options.public) {
connect.before.push(modern(ctx.express.static(options.public)));
}
if (options.session) {

@@ -27,0 +27,0 @@ options.session.secret = options.session.secret || ctx.options.secret;

@@ -17,4 +17,6 @@ // Create a socket plugin

},
init: ctx => {
ctx.io = socketIO(ctx.server);
},
launch: ctx => {
ctx.io = socketIO(ctx.server);
ctx.io.on('connect', socket => {

@@ -21,0 +23,0 @@ for (name in listeners) {

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