single-file-core 1.0.49 → 1.0.50

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "single-file-core",
3
- "version": "1.0.49",
3
+ "version": "1.0.50",
4
4
  "description": "SingleFile Core",
5
5
  "author": "Gildas Lormeau",
6
6
  "license": "AGPL-3.0-or-later",
@@ -733,7 +733,7 @@ class Processor {
733
733
  noscriptPlaceholders.set(placeholderElement, noscriptElement);
734
734
  });
735
735
  this.doc.querySelectorAll("meta[http-equiv=refresh], meta[disabled-http-equiv]").forEach(element => element.remove());
736
- Array.from(noscriptPlaceholders).forEach(([placeholderElement, noscriptElement]) => {
736
+ noscriptPlaceholders.forEach((noscriptElement, placeholderElement) => {
737
737
  noscriptElement.dataset.singleFileDisabledNoscript = placeholderElement.innerHTML;
738
738
  placeholderElement.replaceWith(noscriptElement);
739
739
  });
@@ -438,7 +438,7 @@ function postProcessDoc(doc, markedElements, invalidElements) {
438
438
  element.removeAttribute(STYLE_ATTRIBUTE_NAME);
439
439
  });
440
440
  if (invalidElements) {
441
- Array.from(invalidElements.entries()).forEach(([element, placeholderElement]) => placeholderElement.replaceWith(element));
441
+ invalidElements.forEach((placeholderElement, element) => placeholderElement.replaceWith(element));
442
442
  }
443
443
  }
444
444