@jsreport/jsreport-pptx
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -5,3 +5,2 @@ const path = require('path') | ||
module.exports = (reporter, definition) => { | ||
let helpersScript | ||
reporter.extensionsManager.recipes.push({ | ||
@@ -20,10 +19,10 @@ name: 'pptx', | ||
let helpersScript | ||
reporter.initializeListeners.add('pptx', async () => { | ||
helpersScript = await fs.readFile(path.join(__dirname, '../static/helpers.js'), 'utf8') | ||
}) | ||
reporter.beforeRenderListeners.insert({ after: 'templates' }, 'pptx', async (req) => { | ||
if (req.template.recipe === 'pptx') { | ||
if (!helpersScript) { | ||
helpersScript = await fs.readFile(path.join(__dirname, '../static/helpers.js'), 'utf8') | ||
} | ||
req.template.helpers = helpersScript + '\n' + (req.template.helpers || '') | ||
} | ||
req.context.systemHelpers += helpersScript + '\n' | ||
}) | ||
} |
{ | ||
"name": "@jsreport/jsreport-pptx", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "jsreport recipe rendering pptx files", | ||
@@ -36,12 +36,12 @@ "keywords": [ | ||
"dependencies": { | ||
"image-size": "0.7.4", | ||
"@jsreport/office": "3.0.0", | ||
"@xmldom/xmldom": "0.7.0" | ||
"@xmldom/xmldom": "0.7.0", | ||
"image-size": "0.7.4" | ||
}, | ||
"devDependencies": { | ||
"@jsreport/jsreport-assets": "3.0.1", | ||
"@jsreport/jsreport-core": "3.1.0", | ||
"@jsreport/jsreport-handlebars": "3.0.0", | ||
"@jsreport/studio-dev": "3.0.1", | ||
"handlebars": "4.7.7", | ||
"@jsreport/jsreport-assets": "3.0.0", | ||
"@jsreport/jsreport-core": "3.0.0", | ||
"@jsreport/jsreport-handlebars": "3.0.0", | ||
"@jsreport/studio-dev": "3.0.0", | ||
"mocha": "6.1.4", | ||
@@ -48,0 +48,0 @@ "should": "13.2.3", |
@@ -10,2 +10,6 @@ # @jsreport/jsreport-pptx | ||
### 3.0.1 | ||
- fix errorLine in stack trace when propagating from pptx | ||
### 3.0.0-beta.1 | ||
@@ -12,0 +16,0 @@ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
59848
19
0
1013