@adobe/helix-html-pipeline 2.0.3 → 2.0.4
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 +8 -0
- package/package.json +1 -1
- package/src/index.d.ts +5 -0
- package/src/steps/extract-metadata.js +1 -1
- package/src/steps/folder-mapping.js +1 -0
- package/src/utils/path.js +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [2.0.4](https://github.com/adobe/helix-html-pipeline/compare/v2.0.3...v2.0.4) (2022-05-31)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* fix glob matching for mapped pages ([c43e359](https://github.com/adobe/helix-html-pipeline/commit/c43e3590f9b564f988dfd35daeb5000e458dea71))
|
|
7
|
+
* rename mappedPath to unmappedPath ([12e0066](https://github.com/adobe/helix-html-pipeline/commit/12e0066c8da51ffcb16f8ac7e78306fae1a1cd93))
|
|
8
|
+
|
|
1
9
|
## [2.0.3](https://github.com/adobe/helix-html-pipeline/compare/v2.0.2...v2.0.3) (2022-05-30)
|
|
2
10
|
|
|
3
11
|
|
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -157,7 +157,7 @@ export default function extractMetaData(state, req) {
|
|
|
157
157
|
// extract global metadata from spreadsheet, and overlay
|
|
158
158
|
// with local metadata from document
|
|
159
159
|
const metaConfig = Object.assign(
|
|
160
|
-
filterGlobalMetadata(state.metadata, state.info.path),
|
|
160
|
+
filterGlobalMetadata(state.metadata, state.info.unmappedPath || state.info.path),
|
|
161
161
|
getLocalMetadata(hast),
|
|
162
162
|
);
|
|
163
163
|
|
|
@@ -48,6 +48,7 @@ export default function folderMapping(state) {
|
|
|
48
48
|
const mapped = mapPath(folders, path);
|
|
49
49
|
if (mapped) {
|
|
50
50
|
state.info = getPathInfo(mapped);
|
|
51
|
+
state.info.unmappedPath = path;
|
|
51
52
|
if (getExtension(mapped)) {
|
|
52
53
|
// special case: use code-bus
|
|
53
54
|
state.content.sourceBus = 'code';
|