@adobe/helix-html-pipeline 3.11.11 → 3.11.13

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,17 @@
1
+ ## [3.11.13](https://github.com/adobe/helix-html-pipeline/compare/v3.11.12...v3.11.13) (2023-06-07)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * remove type attribute from img tag ([#330](https://github.com/adobe/helix-html-pipeline/issues/330)) ([0272ea8](https://github.com/adobe/helix-html-pipeline/commit/0272ea8652e651581c1e29fd8ccd707fd1df3104)), closes [#319](https://github.com/adobe/helix-html-pipeline/issues/319)
7
+
8
+ ## [3.11.12](https://github.com/adobe/helix-html-pipeline/compare/v3.11.11...v3.11.12) (2023-06-05)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * return multisheet for any multisheet query ([65d6e21](https://github.com/adobe/helix-html-pipeline/commit/65d6e21ab40611689ef59af949917805c941f116))
14
+
1
15
  ## [3.11.11](https://github.com/adobe/helix-html-pipeline/compare/v3.11.10...v3.11.11) (2023-06-03)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-html-pipeline",
3
- "version": "3.11.11",
3
+ "version": "3.11.13",
4
4
  "description": "Helix HTML Pipeline",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
package/src/json-pipe.js CHANGED
@@ -131,7 +131,7 @@ export async function jsonPipe(state, req) {
131
131
  state.timer?.update('json-fetch');
132
132
  let contentPromise = await fetchJsonContent(state, req, res);
133
133
  if (res.status === 404) {
134
- await folderMapping(state);
134
+ folderMapping(state);
135
135
  if (state.info.unmappedPath) {
136
136
  contentPromise = fetchJsonContent(state, req, res);
137
137
  }
@@ -56,7 +56,6 @@ export function createOptimizedPicture(src, alt = '', title = undefined) {
56
56
  loading: 'lazy',
57
57
  alt,
58
58
  'data-title': title === alt ? undefined : title,
59
- type: v.type,
60
59
  src: srcset,
61
60
  width,
62
61
  height,
@@ -96,7 +96,7 @@ export default function jsonFilter(state, res, query) {
96
96
 
97
97
  let body;
98
98
  let type = 'sheet';
99
- if (sheetNames.length === 1) {
99
+ if (sheetNames.length === 1 && requestedSheets.length < 2) {
100
100
  body = sheets[sheetNames[0]];
101
101
  } else {
102
102
  type = 'multi-sheet';