@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 +12 -0
- package/package.json +1 -1
- package/src/MountConfig.js +1 -1
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
package/src/MountConfig.js
CHANGED
|
@@ -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,
|
|
126
|
+
relPath: m.isDocument ? '' : fullPath.substring(m.path.length - 1, resourcePath.length),
|
|
127
127
|
}));
|
|
128
128
|
|
|
129
129
|
return mp || null;
|