@adobe/helix-html-pipeline 6.8.0 → 6.8.1
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 +7 -0
- package/package.json +1 -1
- package/src/json-pipe.js +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [6.8.1](https://github.com/adobe/helix-html-pipeline/compare/v6.8.0...v6.8.1) (2024-04-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* move config ([#590](https://github.com/adobe/helix-html-pipeline/issues/590)) ([4c6b6e4](https://github.com/adobe/helix-html-pipeline/commit/4c6b6e474639698eef07673c074e3f5e0848df3f))
|
|
7
|
+
|
|
1
8
|
# [6.8.0](https://github.com/adobe/helix-html-pipeline/compare/v6.7.10...v6.8.0) (2024-04-18)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/json-pipe.js
CHANGED
|
@@ -154,8 +154,11 @@ export async function jsonPipe(state, req) {
|
|
|
154
154
|
|
|
155
155
|
if (res.status === 404 && state.info.path === '/config.json' && state.config.public) {
|
|
156
156
|
// special handling for public config
|
|
157
|
+
const publicConfig = {
|
|
158
|
+
public: state.config.public,
|
|
159
|
+
};
|
|
157
160
|
res.status = 200;
|
|
158
|
-
res.body = JSON.stringify(
|
|
161
|
+
res.body = JSON.stringify(publicConfig, null, 2);
|
|
159
162
|
} else if (res.error) {
|
|
160
163
|
if (res.status < 400) {
|
|
161
164
|
return res;
|