pptx-glimpse 0.7.1 → 0.8.0

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/dist/index.cjs CHANGED
@@ -8813,6 +8813,9 @@ async function convertPptxToSvg(input, options) {
8813
8813
  const data = parsePptxData(input);
8814
8814
  setScriptFonts(data.theme.fontScheme.majorFontJpan, data.theme.fontScheme.minorFontJpan);
8815
8815
  const targetSlides = options?.slides ? data.slidePaths.filter((s) => options.slides.includes(s.slideNumber)) : data.slidePaths;
8816
+ if (data.slidePaths.length === 0) {
8817
+ warn("presentation.noSlides", "No slides found in the PPTX file");
8818
+ }
8816
8819
  const results = [];
8817
8820
  for (const { slideNumber, path } of targetSlides) {
8818
8821
  const parsed = parseSlideWithLayout(slideNumber, path, data);
package/dist/index.js CHANGED
@@ -8776,6 +8776,9 @@ async function convertPptxToSvg(input, options) {
8776
8776
  const data = parsePptxData(input);
8777
8777
  setScriptFonts(data.theme.fontScheme.majorFontJpan, data.theme.fontScheme.minorFontJpan);
8778
8778
  const targetSlides = options?.slides ? data.slidePaths.filter((s) => options.slides.includes(s.slideNumber)) : data.slidePaths;
8779
+ if (data.slidePaths.length === 0) {
8780
+ warn("presentation.noSlides", "No slides found in the PPTX file");
8781
+ }
8779
8782
  const results = [];
8780
8783
  for (const { slideNumber, path } of targetSlides) {
8781
8784
  const parsed = parseSlideWithLayout(slideNumber, path, data);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pptx-glimpse",
3
- "version": "0.7.1",
3
+ "version": "0.8.0",
4
4
  "description": "A lightweight JavaScript library for rendering PowerPoint (.pptx) files as SVG or PNG in Node.js. No LibreOffice required.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",