@adobe/helix-html-pipeline 6.14.4 → 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,10 @@
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
+
1
8
  ## [6.14.4](https://github.com/adobe/helix-html-pipeline/compare/v6.14.3...v6.14.4) (2024-09-04)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-html-pipeline",
3
- "version": "6.14.4",
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",
@@ -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) {