@adobe/helix-html-pipeline 3.7.7 → 3.7.9
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/CHANGELOG.md +14 -0
- package/package.json +3 -3
- package/src/html-pipe.js +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [3.7.9](https://github.com/adobe/helix-html-pipeline/compare/v3.7.8...v3.7.9) (2022-12-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** update external fixes ([5c4340f](https://github.com/adobe/helix-html-pipeline/commit/5c4340ff20a5e51d9d067b51af03f53e4a6940ae))
|
|
7
|
+
|
|
8
|
+
## [3.7.8](https://github.com/adobe/helix-html-pipeline/compare/v3.7.7...v3.7.8) (2022-12-09)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* handle cloudflare url error gracefully (issue [#216](https://github.com/adobe/helix-html-pipeline/issues/216)) ([3d7e5fb](https://github.com/adobe/helix-html-pipeline/commit/3d7e5fb6dea06737c3d4f70b816c8bf70df8b2cd))
|
|
14
|
+
|
|
1
15
|
## [3.7.7](https://github.com/adobe/helix-html-pipeline/compare/v3.7.6...v3.7.7) (2022-12-08)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-html-pipeline",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.9",
|
|
4
4
|
"description": "Helix HTML Pipeline",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@adobe/remark-gridtables": "1.0.0",
|
|
46
46
|
"cookie": "0.5.0",
|
|
47
47
|
"github-slugger": "2.0.0",
|
|
48
|
-
"hast-util-raw": "7.2.
|
|
48
|
+
"hast-util-raw": "7.2.3",
|
|
49
49
|
"hast-util-select": "5.0.2",
|
|
50
50
|
"hast-util-to-html": "8.0.3",
|
|
51
51
|
"hast-util-to-string": "2.0.0",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"js-yaml": "4.1.0",
|
|
93
93
|
"jsdom": "20.0.3",
|
|
94
94
|
"junit-report-builder": "3.0.1",
|
|
95
|
-
"lint-staged": "13.0
|
|
95
|
+
"lint-staged": "13.1.0",
|
|
96
96
|
"mocha": "10.1.0",
|
|
97
97
|
"mocha-multi-reporters": "1.5.1",
|
|
98
98
|
"remark-gfm": "3.0.1",
|
package/src/html-pipe.js
CHANGED
|
@@ -144,7 +144,9 @@ export async function htmlPipe(state, req) {
|
|
|
144
144
|
|
|
145
145
|
// turn any URL errors into a 400, since they are user input
|
|
146
146
|
// see https://github.com/adobe/helix-pipeline-service/issues/346
|
|
147
|
-
if (e.code === 'ERR_INVALID_URL'
|
|
147
|
+
if (e.code === 'ERR_INVALID_URL' // node runtime
|
|
148
|
+
/* c8 ignore next */
|
|
149
|
+
|| (e instanceof TypeError && e.message === 'Invalid URL string.')) { // cloudflare runtime
|
|
148
150
|
res.status = 400;
|
|
149
151
|
res.headers.set('x-error', cleanupHeaderValue(`invalid url: ${e.input}`));
|
|
150
152
|
}
|