@jsreport/jsreport-core 3.11.0 → 3.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -282,6 +282,10 @@ jsreport.documentStore.collection('templates')
282
282
 
283
283
  ## Changelog
284
284
 
285
+ ### 3.11.1
286
+
287
+ - fix error when trying to read `req.options` on reporter main code when `enableRequestReportTimeout` is enabled
288
+
285
289
  ### 3.11.0
286
290
 
287
291
  - log when worker returns bad res.content
@@ -378,6 +378,7 @@ class MainReporter extends Reporter {
378
378
  req.context.id = req.context.rootId
379
379
  req.context.reportCounter = ++reportCounter
380
380
  req.context.startTimestamp = new Date().getTime()
381
+ req.options = Object.assign({}, req.options)
381
382
 
382
383
  let worker
383
384
  let workerAborted
@@ -416,6 +417,7 @@ class MainReporter extends Reporter {
416
417
  }
417
418
 
418
419
  req = Request(req)
420
+ options.onReqReady?.(req)
419
421
 
420
422
  // TODO: we will probably validate in the thread
421
423
  if (this.entityTypeValidator.getSchema('TemplateType') != null) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsreport/jsreport-core",
3
- "version": "3.11.0",
3
+ "version": "3.11.2",
4
4
  "description": "javascript based business reporting",
5
5
  "keywords": [
6
6
  "report",