@adobe/helix-html-pipeline 1.8.12 → 1.8.14
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 +7 -7
- package/src/html-pipe.js +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.8.14](https://github.com/adobe/helix-html-pipeline/compare/v1.8.13...v1.8.14) (2022-12-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** update external fixes ([d3414ec](https://github.com/adobe/helix-html-pipeline/commit/d3414ec75f2150a84ccaa62054d03c6012f91906))
|
|
7
|
+
|
|
8
|
+
## [1.8.13](https://github.com/adobe/helix-html-pipeline/compare/v1.8.12...v1.8.13) (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)) ([b78d53c](https://github.com/adobe/helix-html-pipeline/commit/b78d53c73bf2b6aca8962f944833a95388607830))
|
|
14
|
+
|
|
1
15
|
## [1.8.12](https://github.com/adobe/helix-html-pipeline/compare/v1.8.11...v1.8.12) (2022-11-18)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-html-pipeline",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.14",
|
|
4
4
|
"description": "Helix HTML Pipeline",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@adobe/mdast-util-gridtables": "1.0.3",
|
|
35
35
|
"@adobe/remark-gridtables": "1.0.0",
|
|
36
36
|
"github-slugger": "2.0.0",
|
|
37
|
-
"hast-util-raw": "7.2.
|
|
37
|
+
"hast-util-raw": "7.2.3",
|
|
38
38
|
"hast-util-select": "5.0.2",
|
|
39
39
|
"hast-util-to-html": "8.0.3",
|
|
40
40
|
"hast-util-to-string": "2.0.0",
|
|
@@ -67,20 +67,20 @@
|
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@adobe/eslint-config-helix": "1.3.2",
|
|
69
69
|
"@markedjs/html-differ": "4.0.2",
|
|
70
|
-
"@semantic-release/changelog": "6.0.
|
|
70
|
+
"@semantic-release/changelog": "6.0.2",
|
|
71
71
|
"@semantic-release/git": "10.0.1",
|
|
72
72
|
"@semantic-release/npm": "9.0.1",
|
|
73
73
|
"c8": "7.12.0",
|
|
74
|
-
"eslint": "8.
|
|
74
|
+
"eslint": "8.29.0",
|
|
75
75
|
"eslint-import-resolver-exports": "1.0.0-beta.3",
|
|
76
76
|
"eslint-plugin-header": "3.1.1",
|
|
77
77
|
"eslint-plugin-import": "2.26.0",
|
|
78
|
-
"esmock": "2.0
|
|
78
|
+
"esmock": "2.1.0",
|
|
79
79
|
"husky": "8.0.2",
|
|
80
80
|
"js-yaml": "4.1.0",
|
|
81
|
-
"jsdom": "20.0.
|
|
81
|
+
"jsdom": "20.0.3",
|
|
82
82
|
"junit-report-builder": "3.0.1",
|
|
83
|
-
"lint-staged": "13.0
|
|
83
|
+
"lint-staged": "13.1.0",
|
|
84
84
|
"mocha": "10.1.0",
|
|
85
85
|
"mocha-multi-reporters": "1.5.1",
|
|
86
86
|
"remark-gfm": "3.0.1",
|
package/src/html-pipe.js
CHANGED
|
@@ -126,7 +126,9 @@ export async function htmlPipe(state, req) {
|
|
|
126
126
|
|
|
127
127
|
// turn any URL errors into a 400, since they are user input
|
|
128
128
|
// see https://github.com/adobe/helix-pipeline-service/issues/346
|
|
129
|
-
if (e.code === 'ERR_INVALID_URL'
|
|
129
|
+
if (e.code === 'ERR_INVALID_URL' // node runtime
|
|
130
|
+
/* c8 ignore next */
|
|
131
|
+
|| (e instanceof TypeError && e.message === 'Invalid URL string.')) { // cloudflare runtime
|
|
130
132
|
res.status = 400;
|
|
131
133
|
res.headers.set('x-error', cleanupHeaderValue(`invalid url: ${e.input}`));
|
|
132
134
|
}
|