Comparing version 1.0.0-alpha.36 to 1.0.0-alpha.37
{ | ||
"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) { |
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
1151908
129
1961