@adobe/helix-html-pipeline 3.4.1 → 3.4.3

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 CHANGED
@@ -1,3 +1,17 @@
1
+ ## [3.4.3](https://github.com/adobe/helix-html-pipeline/compare/v3.4.2...v3.4.3) (2022-10-06)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **html:** do not skip custom headers for 3xx responses ([5aebe7a](https://github.com/adobe/helix-html-pipeline/commit/5aebe7aaf89fa7b32dc2850d14b2ba0def7d379c)), closes [#153](https://github.com/adobe/helix-html-pipeline/issues/153)
7
+
8
+ ## [3.4.2](https://github.com/adobe/helix-html-pipeline/compare/v3.4.1...v3.4.2) (2022-10-05)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **deps:** update dependency @adobe/helix-markdown-support to v5.0.10 ([#155](https://github.com/adobe/helix-html-pipeline/issues/155)) ([bf9ecd3](https://github.com/adobe/helix-html-pipeline/commit/bf9ecd3514edafd62b634843782dc7382d01c473))
14
+
1
15
  ## [3.4.1](https://github.com/adobe/helix-html-pipeline/compare/v3.4.0...v3.4.1) (2022-09-28)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-html-pipeline",
3
- "version": "3.4.1",
3
+ "version": "3.4.3",
4
4
  "description": "Helix HTML Pipeline",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -39,7 +39,7 @@
39
39
  "node": ">=16.x"
40
40
  },
41
41
  "dependencies": {
42
- "@adobe/helix-markdown-support": "5.0.9",
42
+ "@adobe/helix-markdown-support": "5.0.10",
43
43
  "@adobe/helix-shared-utils": "2.1.0",
44
44
  "cookie": "0.5.0",
45
45
  "github-slugger": "1.4.0",
@@ -48,12 +48,12 @@
48
48
  "hast-util-to-html": "8.0.3",
49
49
  "hast-util-to-string": "2.0.0",
50
50
  "hastscript": "7.0.2",
51
- "jose": "4.9.3",
51
+ "jose": "4.10.0",
52
52
  "mdast-util-gfm-footnote": "1.0.1",
53
53
  "mdast-util-gfm-strikethrough": "1.0.1",
54
54
  "mdast-util-gfm-table": "1.0.6",
55
55
  "mdast-util-gfm-task-list-item": "1.0.1",
56
- "mdast-util-to-hast": "12.2.2",
56
+ "mdast-util-to-hast": "12.2.4",
57
57
  "mdast-util-to-string": "3.1.0",
58
58
  "micromark-extension-gfm-footnote": "1.0.4",
59
59
  "micromark-extension-gfm-strikethrough": "1.0.4",
@@ -67,7 +67,7 @@
67
67
  "remark-parse": "10.0.1",
68
68
  "strip-markdown": "5.0.0",
69
69
  "unified": "10.1.2",
70
- "unist-util-map": "3.1.1",
70
+ "unist-util-map": "3.1.2",
71
71
  "unist-util-remove": "3.1.0",
72
72
  "unist-util-remove-position": "4.0.1",
73
73
  "unist-util-select": "4.0.1",
@@ -85,7 +85,7 @@
85
85
  "eslint-import-resolver-exports": "1.0.0-beta.3",
86
86
  "eslint-plugin-header": "3.1.1",
87
87
  "eslint-plugin-import": "2.26.0",
88
- "esmock": "2.0.2",
88
+ "esmock": "2.0.4",
89
89
  "husky": "8.0.1",
90
90
  "js-yaml": "4.1.0",
91
91
  "jsdom": "20.0.0",
package/src/html-pipe.js CHANGED
@@ -98,6 +98,9 @@ export async function htmlPipe(state, req) {
98
98
  const level = res.status >= 500 ? 'error' : 'info';
99
99
  log[level](`pipeline status: ${res.status} ${res.error}`);
100
100
  res.headers.set('x-error', cleanupHeaderValue(res.error));
101
+ if (res.status < 500) {
102
+ await setCustomResponseHeaders(state, req, res);
103
+ }
101
104
  return res;
102
105
  }
103
106