@adobe/helix-html-pipeline 6.7.0 → 6.7.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 CHANGED
@@ -1,3 +1,10 @@
1
+ ## [6.7.1](https://github.com/adobe/helix-html-pipeline/compare/v6.7.0...v6.7.1) (2024-03-06)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add path key for original path ([#557](https://github.com/adobe/helix-html-pipeline/issues/557)) ([2db5f39](https://github.com/adobe/helix-html-pipeline/commit/2db5f39526fa46b6c848fd27965be48afb46ad4f))
7
+
1
8
  # [6.7.0](https://github.com/adobe/helix-html-pipeline/compare/v6.6.1...v6.7.0) (2024-03-01)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-html-pipeline",
3
- "version": "6.7.0",
3
+ "version": "6.7.1",
4
4
  "description": "Helix HTML Pipeline",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -76,13 +76,13 @@
76
76
  "@markedjs/html-differ": "4.0.2",
77
77
  "@semantic-release/changelog": "6.0.3",
78
78
  "@semantic-release/git": "10.0.1",
79
- "@semantic-release/npm": "11.0.2",
79
+ "@semantic-release/npm": "11.0.3",
80
80
  "c8": "9.1.0",
81
81
  "eslint": "8.57.0",
82
82
  "eslint-import-resolver-exports": "1.0.0-beta.5",
83
83
  "eslint-plugin-header": "3.1.1",
84
84
  "eslint-plugin-import": "2.29.1",
85
- "esmock": "2.6.3",
85
+ "esmock": "2.6.4",
86
86
  "husky": "9.0.11",
87
87
  "js-yaml": "4.1.0",
88
88
  "jsdom": "24.0.0",
@@ -54,7 +54,12 @@ export default async function setXSurrogateKeyHeader(state, req, res) {
54
54
  // for folder-mapped resources, we also need to include the surrogate key of the mapped metadata
55
55
  if (state.mapped) {
56
56
  keys.push(`${hash}_metadata`);
57
+ if (state.info.unmappedPath) {
58
+ keys.push(await getPathKey({
59
+ contentBusId,
60
+ info: { path: state.info.unmappedPath },
61
+ }));
62
+ }
57
63
  }
58
-
59
64
  res.headers.set('x-surrogate-key', keys.join(' '));
60
65
  }