@adobe/helix-html-pipeline 6.10.1 → 6.10.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,20 @@
1
+ ## [6.10.3](https://github.com/adobe/helix-html-pipeline/compare/v6.10.2...v6.10.3) (2024-05-09)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * expect access.allow to be missing ([#599](https://github.com/adobe/helix-html-pipeline/issues/599)) ([f73474f](https://github.com/adobe/helix-html-pipeline/commit/f73474fe99f41f84150eb4cca731e7d1332bcb25))
7
+
8
+ ## [6.10.2](https://github.com/adobe/helix-html-pipeline/compare/v6.10.1...v6.10.2) (2024-04-25)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * remove default head in helix 5 ([8014272](https://github.com/adobe/helix-html-pipeline/commit/80142721b13ae35d92efe9ad1d084b8dc4c757e5))
14
+ * test ([3379dfc](https://github.com/adobe/helix-html-pipeline/commit/3379dfc0b3b660bdeb25f4ca7f8910aece2b7ab3))
15
+ * update head fallback to newer helix project structure ([750d2f8](https://github.com/adobe/helix-html-pipeline/commit/750d2f83a541529de708ff6c4ed6807942c3a296))
16
+ * update test ([7562cb7](https://github.com/adobe/helix-html-pipeline/commit/7562cb759aeae98ffd91caa20f860385a2dec467))
17
+
1
18
  ## [6.10.1](https://github.com/adobe/helix-html-pipeline/compare/v6.10.0...v6.10.1) (2024-04-25)
2
19
 
3
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-html-pipeline",
3
- "version": "6.10.1",
3
+ "version": "6.10.3",
4
4
  "description": "Helix HTML Pipeline",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -58,7 +58,7 @@
58
58
  "lodash.escape": "4.0.1",
59
59
  "mdast-util-to-hast": "13.1.0",
60
60
  "mdast-util-to-string": "4.0.0",
61
- "mime": "4.0.1",
61
+ "mime": "4.0.3",
62
62
  "rehype-format": "5.0.0",
63
63
  "rehype-parse": "9.0.0",
64
64
  "remark-parse": "11.0.0",
@@ -82,7 +82,7 @@
82
82
  "eslint-import-resolver-exports": "1.0.0-beta.5",
83
83
  "eslint-plugin-header": "3.1.1",
84
84
  "eslint-plugin-import": "2.29.1",
85
- "esmock": "2.6.4",
85
+ "esmock": "2.6.5",
86
86
  "husky": "9.0.11",
87
87
  "js-yaml": "4.1.0",
88
88
  "jsdom": "24.0.0",
@@ -43,7 +43,7 @@ export async function authenticate(state, req, res) {
43
43
  };
44
44
 
45
45
  // if not protected, do nothing
46
- if (!access.allow.length) {
46
+ if (!access.allow?.length) {
47
47
  return;
48
48
  }
49
49
 
@@ -78,10 +78,6 @@ export default async function render(state, req, res) {
78
78
  .use(rehypeParse, { fragment: true })
79
79
  .parse(headHtml);
80
80
  $head.children.push(...$headHtml.children);
81
- } else {
82
- appendElement($head, createElement('meta', 'name', 'viewport', 'content', 'width=device-width, initial-scale=1'));
83
- appendElement($head, createElement('script', 'src', '/scripts.js', 'type', 'module', 'crossorigin', 'use-credentials'));
84
- appendElement($head, createElement('link', 'rel', 'stylesheet', 'href', '/styles.css'));
85
81
  }
86
82
 
87
83
  res.document = {