@adobe/helix-html-pipeline 6.14.7 → 6.14.8
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/steps/validate-captcha.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [6.14.8](https://github.com/adobe/helix-html-pipeline/compare/v6.14.7...v6.14.8) (2024-09-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* missing config/support should not be treated as 500 ([#694](https://github.com/adobe/helix-html-pipeline/issues/694)) ([63e905b](https://github.com/adobe/helix-html-pipeline/commit/63e905b624fbe5987d57c8f10b40a693ad99f554))
|
|
7
|
+
|
|
1
8
|
## [6.14.7](https://github.com/adobe/helix-html-pipeline/compare/v6.14.6...v6.14.7) (2024-09-18)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -55,10 +55,10 @@ export default async function validateCaptcha(state, body) {
|
|
|
55
55
|
// Check captcha type is correctly configured
|
|
56
56
|
const validator = SUPPORTED_CAPTCHA_TYPES[captcha.type];
|
|
57
57
|
if (!validator) {
|
|
58
|
-
throw new PipelineStatusError(
|
|
58
|
+
throw new PipelineStatusError(400, `The captcha type ${captcha.type} is not supported.`);
|
|
59
59
|
}
|
|
60
60
|
if (!captcha.secret) {
|
|
61
|
-
throw new PipelineStatusError(
|
|
61
|
+
throw new PipelineStatusError(400, 'Captcha secret key is not configured.');
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
// Perform validation
|