@adobe/helix-html-pipeline 6.14.3 → 6.14.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,17 @@
1
+ ## [6.14.5](https://github.com/adobe/helix-html-pipeline/compare/v6.14.4...v6.14.5) (2024-09-17)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * only rewrite url for proper helix hosts ([#691](https://github.com/adobe/helix-html-pipeline/issues/691)) ([6e6bc37](https://github.com/adobe/helix-html-pipeline/commit/6e6bc375aea9fbb11b38a13da796543dede492ef))
7
+
8
+ ## [6.14.4](https://github.com/adobe/helix-html-pipeline/compare/v6.14.3...v6.14.4) (2024-09-04)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * ignore mapped metadata sheet with not default ([#678](https://github.com/adobe/helix-html-pipeline/issues/678)) ([c50a910](https://github.com/adobe/helix-html-pipeline/commit/c50a9104697796a4a2bdbf8add50f737cf950eaf)), closes [#677](https://github.com/adobe/helix-html-pipeline/issues/677)
14
+
1
15
  ## [6.14.3](https://github.com/adobe/helix-html-pipeline/compare/v6.14.2...v6.14.3) (2024-08-31)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-html-pipeline",
3
- "version": "6.14.3",
3
+ "version": "6.14.5",
4
4
  "description": "Helix HTML Pipeline",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -70,8 +70,8 @@
70
70
  "unist-util-visit-parents": "6.0.1"
71
71
  },
72
72
  "devDependencies": {
73
- "@adobe/eslint-config-helix": "2.0.6",
74
- "@markedjs/html-differ": "4.0.2",
73
+ "@adobe/eslint-config-helix": "2.0.7",
74
+ "@markedjs/html-differ": "5.0.1",
75
75
  "@semantic-release/changelog": "6.0.3",
76
76
  "@semantic-release/git": "10.0.1",
77
77
  "@semantic-release/npm": "12.0.1",
@@ -79,17 +79,17 @@
79
79
  "eslint": "8.57.0",
80
80
  "eslint-import-resolver-exports": "1.0.0-beta.5",
81
81
  "eslint-plugin-header": "3.1.1",
82
- "eslint-plugin-import": "2.29.1",
82
+ "eslint-plugin-import": "2.30.0",
83
83
  "esmock": "2.6.7",
84
- "husky": "9.1.5",
84
+ "husky": "9.1.6",
85
85
  "js-yaml": "4.1.0",
86
86
  "jsdom": "25.0.0",
87
87
  "junit-report-builder": "5.0.0",
88
- "lint-staged": "15.2.9",
88
+ "lint-staged": "15.2.10",
89
89
  "mocha": "10.7.3",
90
90
  "mocha-multi-reporters": "1.5.1",
91
91
  "mocha-suppress-logs": "0.5.1",
92
- "semantic-release": "24.1.0"
92
+ "semantic-release": "24.1.1"
93
93
  },
94
94
  "lint-staged": {
95
95
  "*.js": "eslint",
@@ -38,8 +38,12 @@ export default async function fetchMappedMetadata(state) {
38
38
  } catch (e) {
39
39
  throw new PipelineStatusError(500, `failed parsing of ${metadataPath}: ${e.message}`);
40
40
  }
41
-
42
41
  const { data } = json.default ?? json;
42
+ if (!data) {
43
+ state.log.info(`default sheet missing in ${metadataPath}`);
44
+ return;
45
+ }
46
+
43
47
  if (!Array.isArray(data)) {
44
48
  throw new PipelineStatusError(500, `failed loading of ${metadataPath}: data must be an array`);
45
49
  }
@@ -14,7 +14,7 @@ const AZURE_BLOB_REGEXP = /^https:\/\/hlx\.blob\.core\.windows\.net\/external\//
14
14
 
15
15
  const MEDIA_BLOB_REGEXP = /^https:\/\/.*\.(aem|hlx3?)\.(live|page)\/media_.*/;
16
16
 
17
- const HELIX_URL_REGEXP = /^https:\/\/(?!admin\.|www\.)[^.]+\.(aem|hlx3?)\.(live|page)\/?.*/;
17
+ const HELIX_URL_REGEXP = /^https:\/\/.*\.(aem|hlx3?)\.(live|page)\/?.*/;
18
18
 
19
19
  /**
20
20
  * Returns the original host name from the request to the outer CDN.
@@ -208,7 +208,7 @@ export function rewriteUrl(state, url) {
208
208
  return `.${pathname}${hash}`;
209
209
  }
210
210
 
211
- if (HELIX_URL_REGEXP.test(url)
211
+ if ((host.includes('--') && HELIX_URL_REGEXP.test(url))
212
212
  || host === state.previewHost
213
213
  || host === state.liveHost) {
214
214
  if (hash && pathname === state.info?.path) {