@coraltravelcenter/b2c-landing-builder 2.14.2 → 2.15.0

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.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@coraltravelcenter/b2c-landing-builder",
3
- "version": "2.14.2",
3
+ "version": "2.15.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@coraltravelcenter/b2c-landing-builder",
9
- "version": "2.14.2",
9
+ "version": "2.15.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@babel/parser": "7.28.6",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coraltravelcenter/b2c-landing-builder",
3
- "version": "2.14.2",
3
+ "version": "2.15.0",
4
4
  "description": "CLI and build toolkit for B2C landing projects",
5
5
  "type": "module",
6
6
  "bin": {
@@ -90,12 +90,12 @@ export function rewriteHtmlImageAssets(html, options) {
90
90
 
91
91
  output = output.replace(/<style\b[^>]*>([\s\S]*?)<\/style>/gi, (match, css) => {
92
92
  const nextCss = rewriteCssImageUrls(css, options);
93
- return nextCss === css ? match : match.replace(css, nextCss);
93
+ return nextCss === css ? match : match.replace(css, () => nextCss);
94
94
  });
95
95
 
96
96
  output = output.replace(/<script\b(?![^>]*\bsrc=)[^>]*>([\s\S]*?)<\/script>/gi, (match, js) => {
97
97
  const nextJs = rewriteJsImageUrls(js, options);
98
- return nextJs === js ? match : match.replace(js, nextJs);
98
+ return nextJs === js ? match : match.replace(js, () => nextJs);
99
99
  });
100
100
 
101
101
  return output;