@adobe/helix-html-pipeline 6.33.11 → 6.33.13

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.33.13](https://github.com/adobe/helix-html-pipeline/compare/v6.33.12...v6.33.13) (2026-11-26)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * encode after stringify in json-ld sanitisation ([2bfe9a5](https://github.com/adobe/helix-html-pipeline/commit/2bfe9a54254975849330f688d202b81a583eff8d))
7
+
8
+ ## [6.33.12](https://github.com/adobe/helix-html-pipeline/compare/v6.33.11...v6.33.12) (2026-11-24)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * ignore paths as descriptions ([#707](https://github.com/adobe/helix-html-pipeline/issues/707)) ([c9fcd39](https://github.com/adobe/helix-html-pipeline/commit/c9fcd39511ae4af338648357417e126d590cfc35)), closes [#705](https://github.com/adobe/helix-html-pipeline/issues/705)
14
+
1
15
  ## [6.33.11](https://github.com/adobe/helix-html-pipeline/compare/v6.33.10...v6.33.11) (2026-11-24)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-html-pipeline",
3
- "version": "6.33.11",
3
+ "version": "6.33.13",
4
4
  "description": "Helix HTML Pipeline",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -81,10 +81,10 @@
81
81
  "eslint-import-resolver-exports": "1.0.0-beta.5",
82
82
  "eslint-plugin-header": "3.1.1",
83
83
  "eslint-plugin-import": "2.32.0",
84
- "esmock": "2.8.0",
84
+ "esmock": "3.0.0",
85
85
  "husky": "9.1.7",
86
86
  "js-yaml": "5.5.0",
87
- "jsdom": "30.1.3",
87
+ "jsdom": "31.0.0",
88
88
  "junit-report-builder": "5.1.2",
89
89
  "lint-staged": "17.6.0",
90
90
  "mocha": "12.0.3",
@@ -185,8 +185,8 @@ function extractDescription(hast) {
185
185
  .replace(REGEXP_ICON, '')
186
186
  .trim()
187
187
  .split(/\s+/)
188
- .filter((w) => w);
189
- if (words.length >= 10 || words.some((w) => w.length > 25 && !w.startsWith('http'))) {
188
+ .filter((w) => Boolean(w));
189
+ if (words.length >= 10 || words.some((w) => w.length > 25 && !w.startsWith('http://') && !w.startsWith('https://') && !w.startsWith('/'))) {
190
190
  desc = `${words.slice(0, 25).join(' ')}${words.length > 25 ? ' ...' : ''}`;
191
191
  return EXIT;
192
192
  }
@@ -37,8 +37,9 @@ function createElement(name, ...attrs) {
37
37
  }
38
38
 
39
39
  function sanitizeJsonLd(jsonLd) {
40
- const sanitizedJsonLd = jsonLd.replaceAll('<', '&#x3c;').replaceAll('>', '&#x3e;');
41
- return JSON.stringify(JSON.parse(sanitizedJsonLd.trim()), null, 2);
40
+ return JSON.stringify(JSON.parse(jsonLd.trim()), null, 2)
41
+ .replaceAll('<', '&#x3c;')
42
+ .replaceAll('>', '&#x3e;');
42
43
  }
43
44
 
44
45
  /**