@astrojs/node
Advanced tools
Comparing version 5.1.1 to 5.1.2
# @astrojs/node | ||
## 5.1.2 | ||
### Patch Changes | ||
- [#6935](https://github.com/withastro/astro/pull/6935) [`c405cef64`](https://github.com/withastro/astro/commit/c405cef64711a7b6a480e8b4068cd2bf3cf889a9) Thanks [@matthewp](https://github.com/matthewp)! - Catch errors that occur within the stream in the Node adapter | ||
- Updated dependencies [[`a98df9374`](https://github.com/withastro/astro/commit/a98df9374dec65c678fa47319cb1481b1af123e2), [`ac57b5549`](https://github.com/withastro/astro/commit/ac57b5549f828a17bdbebdaca7ace075307a3c9d), [`50975f2ea`](https://github.com/withastro/astro/commit/50975f2ea3a59f9e023cc631a9372c0c7986eec9), [`ebae1eaf8`](https://github.com/withastro/astro/commit/ebae1eaf87f49399036033c673b513338f7d9c42), [`dc062f669`](https://github.com/withastro/astro/commit/dc062f6695ce577dc569781fc0678c903012c336)]: | ||
- astro@2.3.3 | ||
- @astrojs/webapi@2.1.1 | ||
## 5.1.1 | ||
@@ -4,0 +14,0 @@ |
@@ -41,4 +41,9 @@ import { responseIterator } from "./response-iterator"; | ||
if (webResponse.body) { | ||
for await (const chunk of responseIterator(webResponse)) { | ||
res.write(chunk); | ||
try { | ||
for await (const chunk of responseIterator(webResponse)) { | ||
res.write(chunk); | ||
} | ||
} catch (err) { | ||
console.error((err == null ? void 0 : err.stack) || (err == null ? void 0 : err.message) || String(err)); | ||
res.write("Internal server error"); | ||
} | ||
@@ -45,0 +50,0 @@ } |
{ | ||
"name": "@astrojs/node", | ||
"description": "Deploy your site to a Node.js server", | ||
"version": "5.1.1", | ||
"version": "5.1.2", | ||
"type": "module", | ||
@@ -27,3 +27,3 @@ "types": "./dist/index.d.ts", | ||
"dependencies": { | ||
"@astrojs/webapi": "^2.1.0", | ||
"@astrojs/webapi": "^2.1.1", | ||
"send": "^0.18.0", | ||
@@ -33,3 +33,3 @@ "server-destroy": "^1.0.1" | ||
"peerDependencies": { | ||
"astro": "^2.2.0" | ||
"astro": "^2.3.3" | ||
}, | ||
@@ -39,4 +39,2 @@ "devDependencies": { | ||
"@types/server-destroy": "^1.0.1", | ||
"astro": "2.2.0", | ||
"astro-scripts": "0.0.14", | ||
"chai": "^4.3.6", | ||
@@ -46,3 +44,5 @@ "cheerio": "^1.0.0-rc.11", | ||
"node-mocks-http": "^1.11.0", | ||
"undici": "^5.20.0" | ||
"undici": "^5.22.0", | ||
"astro": "2.3.3", | ||
"astro-scripts": "0.0.14" | ||
}, | ||
@@ -49,0 +49,0 @@ "scripts": { |
@@ -54,4 +54,9 @@ import type { NodeApp } from 'astro/app/node'; | ||
if (webResponse.body) { | ||
for await (const chunk of responseIterator(webResponse) as unknown as Readable) { | ||
res.write(chunk); | ||
try { | ||
for await (const chunk of responseIterator(webResponse) as unknown as Readable) { | ||
res.write(chunk); | ||
} | ||
} catch (err: any) { | ||
console.error(err?.stack || err?.message || String(err)); | ||
res.write('Internal server error'); | ||
} | ||
@@ -58,0 +63,0 @@ } |
{ | ||
"name": "@test/nodejs-encoded", | ||
"name": "@test/nodejs-prerender", | ||
"version": "0.0.0", | ||
@@ -4,0 +4,0 @@ "private": true, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
103026
68
1546
Updated@astrojs/webapi@^2.1.1