@adobe/helix-html-pipeline 6.29.10 → 6.29.12
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 +1 -1
- package/src/utils/json-filter.js +8 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [6.29.12](https://github.com/adobe/helix-html-pipeline/compare/v6.29.11...v6.29.12) (2026-08-12)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* return raw body for non-object json root in raw mode for code bus ([#1123](https://github.com/adobe/helix-html-pipeline/issues/1123)) ([7fffba9](https://github.com/adobe/helix-html-pipeline/commit/7fffba9d4384d895915d7d5a0bd344e4ae638880))
|
|
7
|
+
|
|
8
|
+
## [6.29.11](https://github.com/adobe/helix-html-pipeline/compare/v6.29.10...v6.29.11) (2026-08-11)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* reject non-object json root (incl. null) in json-filter ([#1122](https://github.com/adobe/helix-html-pipeline/issues/1122)) ([241e960](https://github.com/adobe/helix-html-pipeline/commit/241e960544f15f06e258847a97666e64259d51fc)), closes [#1121](https://github.com/adobe/helix-html-pipeline/issues/1121)
|
|
14
|
+
|
|
1
15
|
## [6.29.10](https://github.com/adobe/helix-html-pipeline/compare/v6.29.9...v6.29.10) (2026-08-11)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
package/src/utils/json-filter.js
CHANGED
|
@@ -64,6 +64,14 @@ export default function jsonFilter(state, res, query) {
|
|
|
64
64
|
return;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
+
if (json === null || typeof json !== 'object' || Array.isArray(json)) {
|
|
68
|
+
if (raw && sourceBus === 'code') {
|
|
69
|
+
res.body = data;
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
throw new PipelineStatusError(sourceBus === 'code' ? 400 : 502, 'json sheet is not an object.');
|
|
73
|
+
}
|
|
74
|
+
|
|
67
75
|
// when raw request, only handle multisheets.
|
|
68
76
|
if (raw && !(NAMES_KEY in json)) {
|
|
69
77
|
res.body = data;
|