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 3.3.0 to 3.4.0

7

lib/postprocess/slides.js

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

const doc = file.doc
const slides = doc.getElementsByTagName('p:sld')
const slides = nodeListToArray(doc.getElementsByTagName('p:sld'))
const originalSlideNumber = parseInt(file.path.replace('ppt/slides/slide', '').replace('.xml', ''))

@@ -52,3 +52,3 @@

doc.removeChild(slides[i])
slides[i].parentNode.removeChild(slides[i])

@@ -100,3 +100,6 @@ const sldIdEl = presentation.createElement('p:sldId')

}
// removing the container to the original slide
doc.replaceChild(slides[0], doc.documentElement)
}
}
const regexp = /{{pptxSlides [^{}]{0,500}}}/
module.exports = (files) => {
for (const doc of files.filter(f => f.path.includes('ppt/slides/slide')).map(f => f.doc)) {
for (const f of files.filter(f => f.path.includes('ppt/slides/slide'))) {
const doc = f.doc
const elements = doc.getElementsByTagName('a:t')

@@ -20,6 +21,12 @@

doc.appendChild(endFake)
const pSld = doc.getElementsByTagName('p:sld')[0]
pSld.parentNode.insertBefore(startFake, pSld)
const containerEl = doc.createElement('container')
// code to replace the document element to another container
containerEl.appendChild(startFake)
containerEl.appendChild(pSld)
containerEl.appendChild(endFake)
doc.appendChild(containerEl)
if (el.textContent === '') {

@@ -26,0 +33,0 @@ const toRemove = el.parentNode.parentNode.parentNode.parentNode

{
"name": "@jsreport/jsreport-pptx",
"version": "3.3.0",
"version": "3.4.0",
"description": "jsreport recipe rendering pptx files",

@@ -42,4 +42,4 @@ "keywords": [

"devDependencies": {
"@jsreport/jsreport-assets": "3.5.0",
"@jsreport/jsreport-core": "3.9.0",
"@jsreport/jsreport-assets": "3.6.0",
"@jsreport/jsreport-core": "3.10.0",
"@jsreport/jsreport-handlebars": "3.2.1",

@@ -46,0 +46,0 @@ "@jsreport/studio-dev": "3.2.0",

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

### 3.4.0
- fix pptxSlides issues with updates after xmldom dep update
### 3.3.0

@@ -12,0 +16,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