@adobe/helix-html-pipeline 3.1.2 → 3.1.5
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,24 @@
|
|
|
1
|
+
## [3.1.5](https://github.com/adobe/helix-html-pipeline/compare/v3.1.4...v3.1.5) (2022-07-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** update dependency @adobe/helix-markdown-support to v3.1.8 ([3eee54b](https://github.com/adobe/helix-html-pipeline/commit/3eee54b2f05d131f79072432c7194b3fca3c9285))
|
|
7
|
+
|
|
8
|
+
## [3.1.4](https://github.com/adobe/helix-html-pipeline/compare/v3.1.3...v3.1.4) (2022-07-28)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* add metadata and head surrogate keys also on .plain ([#108](https://github.com/adobe/helix-html-pipeline/issues/108)) ([5a085ba](https://github.com/adobe/helix-html-pipeline/commit/5a085ba76dff85b0bc1610256737b06edee6dba7)), closes [#107](https://github.com/adobe/helix-html-pipeline/issues/107)
|
|
14
|
+
|
|
15
|
+
## [3.1.3](https://github.com/adobe/helix-html-pipeline/compare/v3.1.2...v3.1.3) (2022-07-12)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* return 200 with no default sheet, 404 with unmatched sheet filter ([0a11392](https://github.com/adobe/helix-html-pipeline/commit/0a11392d8858dcc8f7b96353ecc76003a2e2ec07))
|
|
21
|
+
|
|
1
22
|
## [3.1.2](https://github.com/adobe/helix-html-pipeline/compare/v3.1.1...v3.1.2) (2022-07-09)
|
|
2
23
|
|
|
3
24
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-html-pipeline",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.5",
|
|
4
4
|
"description": "Helix HTML Pipeline",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"node": ">=16.x"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@adobe/helix-markdown-support": "3.1.
|
|
36
|
+
"@adobe/helix-markdown-support": "3.1.8",
|
|
37
37
|
"@adobe/helix-shared-utils": "2.0.11",
|
|
38
38
|
"cookie": "0.5.0",
|
|
39
39
|
"github-slugger": "1.4.0",
|
|
40
|
-
"hast-util-raw": "7.2.
|
|
40
|
+
"hast-util-raw": "7.2.2",
|
|
41
41
|
"hast-util-select": "5.0.2",
|
|
42
42
|
"hast-util-to-html": "8.0.3",
|
|
43
43
|
"hast-util-to-string": "2.0.0",
|
|
@@ -74,11 +74,11 @@
|
|
|
74
74
|
"@semantic-release/changelog": "6.0.1",
|
|
75
75
|
"@semantic-release/git": "10.0.1",
|
|
76
76
|
"@semantic-release/npm": "9.0.1",
|
|
77
|
-
"c8": "7.
|
|
78
|
-
"eslint": "8.
|
|
77
|
+
"c8": "7.12.0",
|
|
78
|
+
"eslint": "8.20.0",
|
|
79
79
|
"eslint-plugin-header": "3.1.1",
|
|
80
80
|
"eslint-plugin-import": "2.26.0",
|
|
81
|
-
"esmock": "1.
|
|
81
|
+
"esmock": "1.8.4",
|
|
82
82
|
"husky": "8.0.1",
|
|
83
83
|
"js-yaml": "4.1.0",
|
|
84
84
|
"jsdoc-to-markdown": "7.1.1",
|
|
@@ -20,16 +20,15 @@ import { computeSurrogateKey } from '@adobe/helix-shared-utils';
|
|
|
20
20
|
*/
|
|
21
21
|
export default async function setXSurrogateKeyHeader(state, req, res) {
|
|
22
22
|
const {
|
|
23
|
-
content, contentBusId,
|
|
23
|
+
content, contentBusId, owner, repo, ref,
|
|
24
24
|
} = state;
|
|
25
25
|
|
|
26
26
|
const keys = [];
|
|
27
27
|
if (content.sourceLocation) {
|
|
28
28
|
keys.push(await computeSurrogateKey(content.sourceLocation));
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
30
|
+
keys.push(`${contentBusId}_metadata`);
|
|
31
|
+
keys.push(`${ref}--${repo}--${owner}_head`);
|
|
32
|
+
|
|
34
33
|
res.headers.set('x-surrogate-key', keys.join(' '));
|
|
35
34
|
}
|
package/src/utils/json-filter.js
CHANGED
|
@@ -110,7 +110,7 @@ export default function jsonFilter(state, data, query) {
|
|
|
110
110
|
sheets[name] = filter(json[name]);
|
|
111
111
|
sheetNames.push(name);
|
|
112
112
|
});
|
|
113
|
-
if (sheetNames.length === 0) {
|
|
113
|
+
if (sheetNames.length === 0 && requestedSheets.length > 0) {
|
|
114
114
|
const msg = `filtered result does not contain selected sheet(s): ${requestedSheets.join(',')}`;
|
|
115
115
|
log.info(msg);
|
|
116
116
|
return new PipelineResponse('', {
|