@jsreport/jsreport-express
Advanced tools
Comparing version 3.1.0 to 3.2.0
@@ -34,3 +34,3 @@ const { pipeline } = require('stream') | ||
function httpRender (renderRequestContent, req, res, stream, next) { | ||
res.setTimeout(reporter.options.reportTimeout * 1.2) | ||
res.setTimeout((reporter.options.reportTimeout + reporter.options.reportTimeoutMargin) * 1.2) | ||
res.setHeader('X-XSS-Protection', 0) | ||
@@ -129,3 +129,4 @@ | ||
} else { | ||
reporter.express.render(req.body, req, res, next) | ||
// support for browser client sending renderRequestContent in form element | ||
reporter.express.render(req.body.renderRequestContent || req.body, req, res, next) | ||
} | ||
@@ -132,0 +133,0 @@ } |
{ | ||
"name": "@jsreport/jsreport-express", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"description": "jsreport extension adding API", | ||
@@ -42,5 +42,5 @@ "keywords": [ | ||
"devDependencies": { | ||
"@jsreport/jsreport-core": "3.1.0", | ||
"@jsreport/jsreport-core": "3.2.0", | ||
"@jsreport/jsreport-jsrender": "3.0.0", | ||
"@jsreport/jsreport-scripts": "3.0.0", | ||
"@jsreport/jsreport-scripts": "3.0.1", | ||
"@jsreport/studio-dev": "3.0.1", | ||
@@ -51,3 +51,3 @@ "axios": "0.23.0", | ||
"should": "13.2.3", | ||
"standard": "16.0.3", | ||
"standard": "16.0.4", | ||
"supertest": "3.3.0" | ||
@@ -54,0 +54,0 @@ }, |
55571
1220