Skip to content

Commit

Permalink
ensure statusText cannot have \n
Browse files Browse the repository at this point in the history
  • Loading branch information
dmail committed Nov 12, 2024
1 parent 5f8cb17 commit 09ba33f
Show file tree
Hide file tree
Showing 15 changed files with 28 additions and 24 deletions.
2 changes: 2 additions & 0 deletions dist/jsenv_core.js
Original file line number Diff line number Diff line change
Expand Up @@ -4850,6 +4850,8 @@ const writeHead = (
});
if (statusText === undefined) {
statusText = statusTextFromStatus(status);
} else {
statusText = statusText.replace(/\\n/g, "\n");
}
if (responseIsServerHttp2Stream) {
nodeHeaders = {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jsenv/core",
"version": "39.5.19",
"version": "39.5.20",
"description": "Tool to develop, test and build js projects",
"license": "MIT",
"author": {
Expand Down Expand Up @@ -81,7 +81,7 @@
"@jsenv/plugin-supervisor": "1.5.25",
"@jsenv/plugin-transpilation": "1.4.84",
"@jsenv/runtime-compat": "1.3.1",
"@jsenv/server": "15.3.1",
"@jsenv/server": "15.3.2",
"@jsenv/sourcemap": "1.2.25",
"@jsenv/url-meta": "8.5.2",
"@jsenv/urls": "2.5.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/independent/fetch/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jsenv/fetch",
"version": "1.1.74",
"version": "1.1.75",
"description": "Unified url fetcher (http, http, file, data)",
"license": "MIT",
"author": {
Expand Down Expand Up @@ -33,7 +33,7 @@
],
"dependencies": {
"@jsenv/urls": "2.5.2",
"@jsenv/server": "15.3.1",
"@jsenv/server": "15.3.2",
"node-fetch": "3.3.2"
}
}
2 changes: 1 addition & 1 deletion packages/independent/server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jsenv/server",
"version": "15.3.1",
"version": "15.3.2",
"description": "Write your Node.js server using pure functions",
"license": "MIT",
"author": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ const writeHead = (
});
if (statusText === undefined) {
statusText = statusTextFromStatus(status);
} else {
statusText = statusText.replace(/\\n/g, "\n");
}
if (responseIsServerHttp2Stream) {
nodeHeaders = {
Expand Down
4 changes: 2 additions & 2 deletions packages/independent/snapshot/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jsenv/snapshot",
"version": "2.11.17",
"version": "2.11.18",
"description": "Snapshot testing",
"license": "MIT",
"author": {
Expand Down Expand Up @@ -35,7 +35,7 @@
"@jsenv/exception": "1.1.3",
"@jsenv/humanize": "1.2.8",
"@jsenv/filesystem": "4.10.11",
"@jsenv/terminal-recorder": "1.4.15",
"@jsenv/terminal-recorder": "1.4.16",
"@jsenv/urls": "2.5.2",
"@jsenv/utils": "2.1.2",
"ansi-regex": "6.1.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/independent/terminal-recorder/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jsenv/terminal-recorder",
"version": "1.4.15",
"version": "1.4.16",
"description": "Record terminal output as .svg, .gif, .webm, .mp4",
"license": "MIT",
"repository": {
Expand Down Expand Up @@ -38,7 +38,7 @@
},
"dependencies": {
"@jsenv/humanize": "1.2.8",
"@jsenv/server": "15.3.1",
"@jsenv/server": "15.3.2",
"@playwright/browser-chromium": "1.48.2",
"ansi-regex": "6.1.0",
"he": "1.2.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/independent/workflow/github-check-run/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jsenv/github-check-run",
"version": "0.2.1",
"version": "0.2.2",
"description": "Interact with GitHub check rest API",
"license": "MIT",
"author": {
Expand Down Expand Up @@ -30,7 +30,7 @@
"/src/"
],
"dependencies": {
"@jsenv/fetch": "1.1.74",
"@jsenv/fetch": "1.1.75",
"@jsenv/humanize": "1.2.8"
}
}
2 changes: 1 addition & 1 deletion packages/related/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jsenv/cli",
"version": "0.2.3",
"version": "0.2.4",
"description": "Command Line Interface for jsenv",
"license": "MIT",
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions packages/related/cli/template-node-package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
},
"devDependencies": {
"@jsenv/assert": "4.4.2",
"@jsenv/core": "39.5.19",
"@jsenv/core": "39.5.20",
"@jsenv/eslint-config-relax": "1.2.12",
"@jsenv/test": "3.5.22",
"@jsenv/test": "3.5.23",
"eslint": "9.14.0",
"prettier": "3.3.3"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/related/cli/template-web-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
"@babel/plugin-syntax-import-attributes": "7.26.0",
"@jsenv/custom-elements-redefine": "0.0.1",
"@jsenv/assert": "4.4.2",
"@jsenv/core": "39.5.19",
"@jsenv/core": "39.5.20",
"@jsenv/plugin-bundling": "2.7.16",
"@jsenv/plugin-minification": "1.5.10",
"@jsenv/eslint-config-relax": "1.2.12",
"@jsenv/test": "3.5.22",
"@jsenv/test": "3.5.23",
"eslint": "9.14.0",
"open": "10.1.0",
"@playwright/browser-chromium": "1.48.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/related/cli/template-web-preact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
"@babel/plugin-syntax-import-attributes": "7.26.0",
"@babel/plugin-transform-react-jsx": "7.25.9",
"@jsenv/assert": "4.4.2",
"@jsenv/core": "39.5.19",
"@jsenv/core": "39.5.20",
"@jsenv/plugin-preact": "1.6.25",
"@jsenv/plugin-bundling": "2.7.16",
"@jsenv/plugin-minification": "1.5.10",
"@jsenv/eslint-config-relax": "1.2.12",
"@jsenv/test": "3.5.22",
"@jsenv/test": "3.5.23",
"eslint": "9.14.0",
"open": "10.1.0",
"@playwright/browser-chromium": "1.48.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/related/cli/template-web-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
"@babel/plugin-syntax-import-attributes": "7.26.0",
"@babel/plugin-transform-react-jsx": "7.25.9",
"@jsenv/assert": "4.4.2",
"@jsenv/core": "39.5.19",
"@jsenv/core": "39.5.20",
"@jsenv/plugin-react": "1.5.44",
"@jsenv/plugin-bundling": "2.7.16",
"@jsenv/plugin-minification": "1.5.10",
"@jsenv/eslint-config-relax": "1.2.12",
"@jsenv/test": "3.5.22",
"@jsenv/test": "3.5.23",
"eslint": "9.14.0",
"open": "10.1.0",
"@playwright/browser-chromium": "1.48.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/related/cli/template-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
"devDependencies": {
"@babel/plugin-syntax-import-attributes": "7.26.0",
"@jsenv/assert": "4.4.2",
"@jsenv/core": "39.5.19",
"@jsenv/core": "39.5.20",
"@jsenv/eslint-config-relax": "1.2.12",
"@jsenv/plugin-bundling": "2.7.16",
"@jsenv/plugin-minification": "1.5.10",
"@jsenv/test": "3.5.22",
"@jsenv/test": "3.5.23",
"eslint": "9.14.0",
"open": "10.1.0",
"@playwright/browser-chromium": "1.48.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/related/test/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jsenv/test",
"version": "3.5.22",
"version": "3.5.23",
"license": "MIT",
"repository": {
"type": "git",
Expand Down Expand Up @@ -40,7 +40,7 @@
"@jsenv/ast": "6.3.5",
"@jsenv/exception": "1.1.3",
"@jsenv/filesystem": "4.10.11",
"@jsenv/github-check-run": "0.2.1",
"@jsenv/github-check-run": "0.2.2",
"@jsenv/node-esm-resolution": "1.0.6",
"@jsenv/humanize": "1.2.8",
"@jsenv/plugin-supervisor": "1.5.25",
Expand Down

0 comments on commit 09ba33f

Please sign in to comment.