@adobe/helix-html-pipeline 3.1.2 → 3.1.3

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,10 @@
1
+ ## [3.1.3](https://github.com/adobe/helix-html-pipeline/compare/v3.1.2...v3.1.3) (2022-07-12)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * return 200 with no default sheet, 404 with unmatched sheet filter ([0a11392](https://github.com/adobe/helix-html-pipeline/commit/0a11392d8858dcc8f7b96353ecc76003a2e2ec07))
7
+
1
8
  ## [3.1.2](https://github.com/adobe/helix-html-pipeline/compare/v3.1.1...v3.1.2) (2022-07-09)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-html-pipeline",
3
- "version": "3.1.2",
3
+ "version": "3.1.3",
4
4
  "description": "Helix HTML Pipeline",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -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('', {