@adobe/helix-html-pipeline 4.0.1 → 4.0.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 +14 -0
- package/package.json +2 -2
- package/src/steps/validate-captcha.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [4.0.3](https://github.com/adobe/helix-html-pipeline/compare/v4.0.2...v4.0.3) (2023-07-22)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** update dependency @adobe/mdast-util-gridtables to v2.0.2 ([fbd2f00](https://github.com/adobe/helix-html-pipeline/commit/fbd2f00fc0a8f9d38c6db07ea5212fd82cf14212))
|
|
7
|
+
|
|
8
|
+
## [4.0.2](https://github.com/adobe/helix-html-pipeline/compare/v4.0.1...v4.0.2) (2023-07-18)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* Crash in certain cases when captcha body missing ([1b50a51](https://github.com/adobe/helix-html-pipeline/commit/1b50a51c0705078bef39b98dae63dd392abff43d))
|
|
14
|
+
|
|
1
15
|
## [4.0.1](https://github.com/adobe/helix-html-pipeline/compare/v4.0.0...v4.0.1) (2023-07-18)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-html-pipeline",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3",
|
|
4
4
|
"description": "Helix HTML Pipeline",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@adobe/helix-markdown-support": "6.2.1",
|
|
43
43
|
"@adobe/helix-shared-utils": "3.0.0",
|
|
44
|
-
"@adobe/mdast-util-gridtables": "2.0.
|
|
44
|
+
"@adobe/mdast-util-gridtables": "2.0.2",
|
|
45
45
|
"@adobe/remark-gridtables": "1.0.4",
|
|
46
46
|
"cookie": "0.5.0",
|
|
47
47
|
"github-slugger": "2.0.0",
|
|
@@ -14,7 +14,7 @@ import { PipelineStatusError } from '../PipelineStatusError.js';
|
|
|
14
14
|
|
|
15
15
|
async function validateGoogleCaptchaV2(body, fetch, secretKey) {
|
|
16
16
|
const captchaToken = body.data?.['g-recaptcha-response']
|
|
17
|
-
|| body.data?.find((x) => (x.name === 'g-recaptcha-response'))?.value;
|
|
17
|
+
|| (Array.isArray(body.data) && body.data?.find((x) => (x.name === 'g-recaptcha-response'))?.value);
|
|
18
18
|
|
|
19
19
|
if (!captchaToken) {
|
|
20
20
|
throw new PipelineStatusError(400, 'Captcha token missing from request body');
|