New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@jsreport/jsreport-pptx

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jsreport/jsreport-pptx - npm Package Compare versions

Comparing version 4.1.0 to 4.2.0

2

lib/postprocess/chart.js

@@ -240,3 +240,3 @@ const path = require('path')

const newChartPath = path.join(
const newChartPath = path.posix.join(
path.posix.relative(

@@ -243,0 +243,0 @@ path.posix.dirname(slidePath),

@@ -17,3 +17,15 @@ const { nodeListToArray } = require('../utils')

const cleanup = () => {
if (slides.length === 0) {
return
}
// removing the container to the original slide
if (doc.documentElement.localName === 'container') {
doc.replaceChild(slides[0], doc.documentElement)
}
}
if (slides.length <= 1) {
cleanup()
continue

@@ -106,5 +118,4 @@ }

// removing the container to the original slide
doc.replaceChild(slides[0], doc.documentElement)
cleanup()
}
}

@@ -25,3 +25,3 @@

if (concatenating) {
if (elements[i].parentNode.previousSibling.localName === 'r') {
if (elements[i].parentNode.previousSibling?.localName === 'r') {
validSiblings = elements[i].parentNode.previousSibling === elements[i - 1].parentNode

@@ -28,0 +28,0 @@ } else {

@@ -35,2 +35,4 @@ const regexp = /{{pptxSlides [^{}]{0,500}}}/

}
} else if (el.textContent.includes('{{#pptxSlides')) {
throw new Error('pptxSlides helper must be called as a simple helper call "{{pptxSlides ...}}", block helper call "{{#pptxSlides ...}}" is not supported')
}

@@ -37,0 +39,0 @@ }

@@ -61,3 +61,3 @@ const { DOMParser, XMLSerializer } = require('@xmldom/xmldom')

const { content: newContent } = await reporter.render({
const res = await reporter.render({
template: {

@@ -71,2 +71,4 @@ content: contentToRender,

const newContent = await res.output.getBuffer()
// we remove NUL, VERTICAL TAB unicode characters, which are characters that are illegal in XML.

@@ -73,0 +75,0 @@ // NOTE: we should likely find a way to remove illegal characters more generally, using some kind of unicode ranges

{
"name": "@jsreport/jsreport-pptx",
"version": "4.1.0",
"version": "4.2.0",
"description": "jsreport recipe rendering pptx files",

@@ -36,5 +36,5 @@ "keywords": [

"dependencies": {
"@jsreport/office": "4.0.0",
"@jsreport/office": "4.1.0",
"@xmldom/xmldom": "0.8.6",
"axios": "1.6.2",
"axios": "1.6.7",
"html-entities": "2.4.0",

@@ -46,4 +46,4 @@ "image-size": "0.7.4",

"devDependencies": {
"@jsreport/jsreport-assets": "4.0.2",
"@jsreport/jsreport-core": "4.1.0",
"@jsreport/jsreport-assets": "4.1.0",
"@jsreport/jsreport-core": "4.2.0",
"@jsreport/jsreport-handlebars": "4.0.1",

@@ -50,0 +50,0 @@ "@jsreport/studio-dev": "4.0.0",

@@ -10,2 +10,9 @@ # @jsreport/jsreport-pptx

### 4.2.0
- fix concat tags logic
- fix can not render report using pptxSlides with one item array
- throw better error when pptxSlides is used as a block helper call
- internal changes to support new `response.output` api
### 4.1.0

@@ -12,0 +19,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc