vite-plugin-singlefile-compression 1.2.3 → 1.2.4

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/README.md CHANGED
@@ -102,7 +102,7 @@ vite v6.0.6 building for production...
102
102
  ✓ 45 modules transformed.
103
103
  rendering chunks (1)...
104
104
 
105
- vite-plugin-singlefile-compression 1.2.3 building...
105
+ vite-plugin-singlefile-compression 1.2.4 building...
106
106
 
107
107
  file:///D:/bddjr/Desktop/code/js/vite-plugin-singlefile-compression/test/dist/index.html
108
108
  101.02 KiB -> 46.52 KiB
@@ -110,7 +110,7 @@ vite-plugin-singlefile-compression 1.2.3 building...
110
110
  Finish.
111
111
 
112
112
  dist/index.html 47.64 kB
113
- ✓ built in 687ms
113
+ ✓ built in 690ms
114
114
  ```
115
115
 
116
116
  ## Clone
@@ -1 +1 @@
1
- {const a={"":""};for(const n in a){for(const e of document.querySelectorAll(`[src="data:${n}"]`))e.src=a[n];for(const e of document.querySelectorAll(`[href="data:${n}"]`))e.href=a[n]}}
1
+ {let e={"":""};for(let o in e){for(let r of document.querySelectorAll(`[src="data:${o}"]`))r.src=e[o];for(let r of document.querySelectorAll(`[href="data:${o}"]`))r.href=e[o]}}
package/dist/template.js CHANGED
@@ -1 +1 @@
1
- fetch("data:application/gzip;base64,{<script>}").then(r=>new Response(r.body.pipeThrough(new DecompressionStream("gzip")),{headers:{"Content-Type":"text/javascript"}}).blob()).then(b=>import(b=URL.createObjectURL(b)).finally(()=>URL.revokeObjectURL(b)))
1
+ fetch("data:application/gzip;base64,{<script>}").then(e=>new Response(e.body.pipeThrough(new DecompressionStream("gzip")),{headers:{"Content-Type":"text/javascript"}}).blob()).then(e=>import(e=URL.createObjectURL(e)).finally(()=>URL.revokeObjectURL(e)))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-singlefile-compression",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "files": [