single-file-core 1.5.18 → 1.5.19

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/core/index.js CHANGED
@@ -1183,7 +1183,7 @@ class Processor {
1183
1183
  if (element.textContent) {
1184
1184
  const indexContent = scriptContents.indexOf(element.textContent);
1185
1185
  if (indexContent == -1) {
1186
- this.options.inlineStylesheets.set(scriptContents.length, element);
1186
+ this.options.inlineStylesheets.set(scriptContents.length, element.textContent);
1187
1187
  scriptContents.push(element.textContent);
1188
1188
  } else {
1189
1189
  this.options.inlineStylesheetsRefs.set(element, indexContent);
@@ -116,8 +116,7 @@ function getProcessorHelperClass(utilInstance) {
116
116
  if (styleSheetRefIndex === undefined) {
117
117
  styleElement.textContent = this.generateStylesheetContent(stylesheetInfo.stylesheet, options);
118
118
  } else {
119
- const styleElementRef = options.inlineStylesheets.get(styleSheetRefIndex);
120
- styleElement.textContent = styleElementRef.textContent;
119
+ styleElement.textContent = options.inlineStylesheets.get(styleSheetRefIndex);
121
120
  }
122
121
  if (stylesheetInfo.mediaText) {
123
122
  styleElement.media = stylesheetInfo.mediaText;
@@ -118,8 +118,7 @@ function getProcessorHelperClass(utilInstance) {
118
118
  if (styleSheetRefIndex === undefined) {
119
119
  styleElement.textContent = this.generateStylesheetContent(stylesheetInfo.stylesheet, options);
120
120
  } else {
121
- const styleElementRef = options.inlineStylesheets.get(styleSheetRefIndex);
122
- styleElement.textContent = styleElementRef.textContent;
121
+ styleElement.textContent = options.inlineStylesheets.get(styleSheetRefIndex);
123
122
  }
124
123
  }
125
124
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "single-file-core",
3
- "version": "1.5.18",
3
+ "version": "1.5.19",
4
4
  "description": "SingleFile Core",
5
5
  "author": "Gildas Lormeau",
6
6
  "license": "AGPL-3.0-or-later",