single-file-core 1.1.75 → 1.1.76

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.
Files changed (2) hide show
  1. package/core/helper.js +1 -1
  2. package/package.json +1 -1
package/core/helper.js CHANGED
@@ -276,7 +276,7 @@ function getElementsInfo(win, doc, element, options, data = { usedFonts: new Map
276
276
  }
277
277
 
278
278
  function getStylesheetsContent(styleSheets) {
279
- return styleSheets ? Array.from(styleSheets).map(stylesheet => Array.from(stylesheet.cssRules).map(cssRule => cssRule.cssText).join("\n")) : "";
279
+ return styleSheets ? Array.from(styleSheets).map(stylesheet => Array.from(stylesheet.cssRules).map(cssRule => cssRule.cssText).join("\n")) : [];
280
280
  }
281
281
 
282
282
  function getResourcesInfo(win, doc, element, options, data, elementHidden, computedStyle) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "single-file-core",
3
- "version": "1.1.75",
3
+ "version": "1.1.76",
4
4
  "description": "SingleFile Core",
5
5
  "author": "Gildas Lormeau",
6
6
  "license": "AGPL-3.0-or-later",