@adobe/helix-shared-config 8.3.0 → 9.0.0

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,15 @@
1
+ # [@adobe/helix-shared-config-v9.0.0](https://github.com/adobe/helix-shared/compare/@adobe/helix-shared-config-v8.3.0...@adobe/helix-shared-config-v9.0.0) (2022-09-13)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * keep trailing slash in relPath of matched mountpoint ([205d1f2](https://github.com/adobe/helix-shared/commit/205d1f2397f615346b2af500833cf3c944773924))
7
+
8
+
9
+ ### BREAKING CHANGES
10
+
11
+ * relPath keeps trailing slash after resolution
12
+
1
13
  # [@adobe/helix-shared-config-v8.3.0](https://github.com/adobe/helix-shared/compare/@adobe/helix-shared-config-v8.2.0...@adobe/helix-shared-config-v8.3.0) (2022-08-12)
2
14
 
3
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-shared-config",
3
- "version": "8.3.0",
3
+ "version": "9.0.0",
4
4
  "description": "Shared modules of the Helix Project - config",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -123,7 +123,7 @@ class MountConfig extends SchemaDerivedConfig {
123
123
  .filter((m) => (m.isDocument ? docPath === m.path : fullPath.startsWith(m.path)))
124
124
  .map((m) => ({
125
125
  ...m,
126
- relPath: m.isDocument ? '' : fullPath.substring(m.path.length - 1, fullPath.length - 1),
126
+ relPath: m.isDocument ? '' : fullPath.substring(m.path.length - 1, resourcePath.length),
127
127
  }));
128
128
 
129
129
  return mp || null;