nitropack-nightly 2.13.0-20251216-102150-8c601a37 → 2.13.0-20251216-111546-8e342728
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/dist/core/index.mjs
CHANGED
|
@@ -1728,8 +1728,9 @@ async function compressPublicAssets(nitro) {
|
|
|
1728
1728
|
dot: true,
|
|
1729
1729
|
ignore: ["**/*.gz", "**/*.br"]
|
|
1730
1730
|
});
|
|
1731
|
-
await
|
|
1732
|
-
|
|
1731
|
+
await runParallel(
|
|
1732
|
+
new Set(publicFiles),
|
|
1733
|
+
async (fileName) => {
|
|
1733
1734
|
const filePath = resolve(nitro.options.output.publicDir, fileName);
|
|
1734
1735
|
if (existsSync(filePath + ".gz") || existsSync(filePath + ".br")) {
|
|
1735
1736
|
return;
|
|
@@ -1770,7 +1771,8 @@ async function compressPublicAssets(nitro) {
|
|
|
1770
1771
|
await fsp.writeFile(compressedPath, compressedBuff);
|
|
1771
1772
|
})
|
|
1772
1773
|
);
|
|
1773
|
-
}
|
|
1774
|
+
},
|
|
1775
|
+
{ concurrency: 10 }
|
|
1774
1776
|
);
|
|
1775
1777
|
}
|
|
1776
1778
|
function isTextMime(mimeType) {
|
package/dist/meta/index.mjs
CHANGED
|
@@ -7,6 +7,7 @@ const ws = import.meta._websocket ? wsAdapter(nitroApp.h3App.websocket) : void 0
|
|
|
7
7
|
const server = Bun.serve({
|
|
8
8
|
port: process.env.NITRO_PORT || process.env.PORT || 3e3,
|
|
9
9
|
host: process.env.NITRO_HOST || process.env.HOST,
|
|
10
|
+
idleTimeout: Number.parseInt(process.env.NITRO_BUN_IDLE_TIMEOUT) || void 0,
|
|
10
11
|
websocket: import.meta._websocket ? ws.websocket : void 0,
|
|
11
12
|
async fetch(req, server2) {
|
|
12
13
|
if (import.meta._websocket && req.headers.get("upgrade") === "websocket") {
|
package/package.json
CHANGED