@jsenv/core 29.0.0 → 29.0.1
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/main.js +12 -1
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -22551,7 +22551,18 @@ const writeHead = (responseStream, {
|
|
|
22551
22551
|
return;
|
|
22552
22552
|
}
|
|
22553
22553
|
|
|
22554
|
-
|
|
22554
|
+
try {
|
|
22555
|
+
responseStream.writeHead(status, statusText, nodeHeaders);
|
|
22556
|
+
} catch (e) {
|
|
22557
|
+
if (e.code === "ERR_INVALID_CHAR" && e.message.includes("Invalid character in statusMessage")) {
|
|
22558
|
+
throw new Error(`Invalid character in statusMessage
|
|
22559
|
+
--- status message ---
|
|
22560
|
+
${statusText}`);
|
|
22561
|
+
}
|
|
22562
|
+
|
|
22563
|
+
throw e;
|
|
22564
|
+
}
|
|
22565
|
+
|
|
22555
22566
|
onHeadersSent({
|
|
22556
22567
|
nodeHeaders,
|
|
22557
22568
|
status,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/core",
|
|
3
|
-
"version": "29.0.
|
|
3
|
+
"version": "29.0.1",
|
|
4
4
|
"description": "Tool to develop, test and build js projects",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"@jsenv/integrity": "0.0.1",
|
|
74
74
|
"@jsenv/log": "3.3.0",
|
|
75
75
|
"@jsenv/node-esm-resolution": "0.1.0",
|
|
76
|
-
"@jsenv/server": "14.1.
|
|
76
|
+
"@jsenv/server": "14.1.4",
|
|
77
77
|
"@jsenv/sourcemap": "1.0.5",
|
|
78
78
|
"@jsenv/uneval": "1.6.0",
|
|
79
79
|
"@jsenv/url-meta": "7.0.0",
|