Comparing version 1.0.32 to 1.0.33
{ | ||
"name": "server", | ||
"version": "1.0.32", | ||
"version": "1.0.33", | ||
"description": "A modern and powerful server for Node.js", | ||
@@ -5,0 +5,0 @@ "homepage": "https://serverjs.io/", |
@@ -33,3 +33,6 @@ const join = require('../src/join'); | ||
ctx.req.solved = true; | ||
if (!ctx.res.headersSent) { | ||
ctx.res.end(); | ||
} | ||
}; | ||
}; |
@@ -9,3 +9,6 @@ const join = require('../src/join'); | ||
ctx.req.solved = true; | ||
if (!ctx.res.headersSent) { | ||
ctx.res.end(); | ||
} | ||
} | ||
}; |
@@ -12,3 +12,3 @@ // Unit - test the router on its own | ||
req: { url, path, method }, | ||
res: { send: () => {} }, | ||
res: { send: () => {}, end: () => {} }, | ||
options: {} | ||
@@ -15,0 +15,0 @@ }); |
@@ -6,3 +6,3 @@ const load = require('loadware'); | ||
// Recursively resolve possible function returns | ||
const processReturn = async (ctx, ret) => { | ||
const processReturn = (ctx, ret) => { | ||
if (!ret) return; | ||
@@ -12,3 +12,3 @@ | ||
if (ret.constructor.name === 'Reply') { | ||
return await ret.exec(ctx); | ||
return ret.exec(ctx); | ||
} | ||
@@ -20,3 +20,3 @@ | ||
const fn = typeof ret === 'number' ? 'status' : 'send'; | ||
return await reply[fn](ret).exec(ctx); | ||
return reply[fn](ret).exec(ctx); | ||
}; | ||
@@ -23,0 +23,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
790538
4014