@jsreport/jsreport-localization
Advanced tools
Comparing version 3.0.1 to 3.1.0
@@ -6,2 +6,3 @@ const fs = require('fs').promises | ||
let helpers | ||
reporter.initializeListeners.add('assets', async () => { | ||
@@ -11,4 +12,4 @@ helpers = (await fs.readFile(path.join(__dirname, '../static/helpers.js'))).toString() | ||
reporter.beforeRenderListeners.add(definition.name, this, (req, res) => { | ||
req.context.systemHelpers += helpers + '\n' | ||
reporter.registerHelpersListeners.add(definition.name, (req) => { | ||
return helpers | ||
}) | ||
@@ -15,0 +16,0 @@ |
{ | ||
"name": "@jsreport/jsreport-localization", | ||
"version": "3.0.1", | ||
"version": "3.1.0", | ||
"description": "jsreport extension adding localize helper", | ||
@@ -36,5 +36,5 @@ "keywords": [ | ||
"handlebars": "4.7.7", | ||
"@jsreport/jsreport-assets": "3.0.1", | ||
"@jsreport/jsreport-core": "3.1.0", | ||
"@jsreport/jsreport-components": "3.0.0", | ||
"@jsreport/jsreport-assets": "3.1.0", | ||
"@jsreport/jsreport-core": "3.2.0", | ||
"@jsreport/jsreport-components": "3.1.0", | ||
"@jsreport/jsreport-handlebars": "3.0.0", | ||
@@ -44,3 +44,3 @@ "@jsreport/studio-dev": "3.0.1", | ||
"should": "13.2.3", | ||
"standard": "16.0.3" | ||
"standard": "16.0.4" | ||
}, | ||
@@ -47,0 +47,0 @@ "engines": { |
19792