single-file-core 1.3.11 → 1.3.12

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.3.11",
3
+ "version": "1.3.12",
4
4
  "description": "SingleFile Core",
5
5
  "author": "Gildas Lormeau",
6
6
  "license": "AGPL-3.0-or-later",
@@ -140,7 +140,7 @@ async function extract(content, { password, prompt = () => { }, shadowRootScript
140
140
  await zipReader.close();
141
141
  indexPages.sort(sortByFilenameLengthDec);
142
142
  textResources.sort(sortByFilenameLengthInc);
143
- resources = resources.concat(...textResources).concat(...indexPages);
143
+ resources = resources.sort(sortByFilenameLengthDec).concat(...textResources).concat(...indexPages);
144
144
  for (const resource of resources) {
145
145
  let { textContent, mimeType, filename } = resource;
146
146
  if (textContent !== undefined) {