@adobe/helix-html-pipeline 6.15.3 → 6.15.5

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
+ ## [6.15.5](https://github.com/adobe/helix-html-pipeline/compare/v6.15.4...v6.15.5) (2024-10-26)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** update dependency @adobe/mdast-util-gridtables to v4.0.7 ([6120897](https://github.com/adobe/helix-html-pipeline/commit/6120897b2bcd8f9123686dee9ca2f0f6c88ad92b))
7
+
8
+ ## [6.15.4](https://github.com/adobe/helix-html-pipeline/compare/v6.15.3...v6.15.4) (2024-10-21)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * return 400 when code bus JSON has no :names ([#724](https://github.com/adobe/helix-html-pipeline/issues/724)) ([fed7cae](https://github.com/adobe/helix-html-pipeline/commit/fed7cae16b1610e5b004251168f64004e21d2a53))
14
+
1
15
  ## [6.15.3](https://github.com/adobe/helix-html-pipeline/compare/v6.15.2...v6.15.3) (2024-10-21)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-html-pipeline",
3
- "version": "6.15.3",
3
+ "version": "6.15.5",
4
4
  "description": "Helix HTML Pipeline",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -36,8 +36,7 @@
36
36
  ],
37
37
  "recursive": "true",
38
38
  "reporter": "mocha-multi-reporters",
39
- "reporter-options": "configFile=.mocha-multi.json",
40
- "loader": "esmock"
39
+ "reporter-options": "configFile=.mocha-multi.json"
41
40
  },
42
41
  "engines": {
43
42
  "node": ">=16.x"
@@ -45,7 +44,7 @@
45
44
  "dependencies": {
46
45
  "@adobe/helix-markdown-support": "7.1.6",
47
46
  "@adobe/helix-shared-utils": "3.0.2",
48
- "@adobe/mdast-util-gridtables": "4.0.6",
47
+ "@adobe/mdast-util-gridtables": "4.0.7",
49
48
  "@adobe/remark-gridtables": "3.0.6",
50
49
  "github-slugger": "2.0.0",
51
50
  "hast-util-raw": "9.0.4",
@@ -89,7 +88,7 @@
89
88
  "mocha": "10.7.3",
90
89
  "mocha-multi-reporters": "1.5.1",
91
90
  "mocha-suppress-logs": "0.5.1",
92
- "semantic-release": "24.1.3"
91
+ "semantic-release": "24.2.0"
93
92
  },
94
93
  "lint-staged": {
95
94
  "*.js": "eslint",
@@ -44,7 +44,7 @@ export default function jsonFilter(state, res, query) {
44
44
  };
45
45
  }
46
46
 
47
- const { data } = state.content;
47
+ const { data, sourceBus } = state.content;
48
48
  let json;
49
49
  try {
50
50
  state.timer?.update('json-parse');
@@ -75,7 +75,7 @@ export default function jsonFilter(state, res, query) {
75
75
  }
76
76
 
77
77
  if (!json[NAMES_KEY]) {
78
- throw new PipelineStatusError(502, 'multisheet data invalid. missing ":names" property.');
78
+ throw new PipelineStatusError(sourceBus === 'code' ? 400 : 502, 'multisheet data invalid. missing ":names" property.');
79
79
  }
80
80
 
81
81
  state.timer?.update('json-filter');