@commercetools-frontend/mc-html-template 22.36.0 → 22.37.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.
@@ -179,7 +179,7 @@ const replaceHtmlPlaceholders = (indexHtmlContent, options) => indexHtmlContent.
179
179
  `${trimTrailingSlash(options.env.cdnUrl)}/` : '').replace(new RegExp('__MC_API_URL__', 'g'), trimTrailingSlash(options.env.mcApiUrl)).replace(new RegExp('__APPLICATION_ENVIRONMENT__', 'g'), `<script>window.app = ${sanitizeAppEnvironment(options.env)};</script>`).replace(new RegExp('__LOADING_SCREEN_JS__', 'g'), `<script>${htmlScripts.loadingScreen}</script>`).replace(new RegExp('__LOADING_SCREEN_CSS__', 'g'), `<style>${htmlStyles.loadingScreen}</style>`);
180
180
 
181
181
  async function compileHtml(indexHtmlTemplatePath) {
182
- const applicationConfig$1 = applicationConfig.processConfig();
182
+ const applicationConfig$1 = await applicationConfig.processConfig();
183
183
  const compiledHeaders = processHeaders(applicationConfig$1);
184
184
  const indexHtmlTemplateContent = fs__default["default"].readFileSync(indexHtmlTemplatePath, 'utf8');
185
185
  const indexHtmlContent = replaceHtmlPlaceholders(indexHtmlTemplateContent, {
@@ -179,7 +179,7 @@ const replaceHtmlPlaceholders = (indexHtmlContent, options) => indexHtmlContent.
179
179
  `${trimTrailingSlash(options.env.cdnUrl)}/` : '').replace(new RegExp('__MC_API_URL__', 'g'), trimTrailingSlash(options.env.mcApiUrl)).replace(new RegExp('__APPLICATION_ENVIRONMENT__', 'g'), `<script>window.app = ${sanitizeAppEnvironment(options.env)};</script>`).replace(new RegExp('__LOADING_SCREEN_JS__', 'g'), `<script>${htmlScripts.loadingScreen}</script>`).replace(new RegExp('__LOADING_SCREEN_CSS__', 'g'), `<style>${htmlStyles.loadingScreen}</style>`);
180
180
 
181
181
  async function compileHtml(indexHtmlTemplatePath) {
182
- const applicationConfig$1 = applicationConfig.processConfig();
182
+ const applicationConfig$1 = await applicationConfig.processConfig();
183
183
  const compiledHeaders = processHeaders(applicationConfig$1);
184
184
  const indexHtmlTemplateContent = fs__default["default"].readFileSync(indexHtmlTemplatePath, 'utf8');
185
185
  const indexHtmlContent = replaceHtmlPlaceholders(indexHtmlTemplateContent, {
@@ -155,7 +155,7 @@ const replaceHtmlPlaceholders = (indexHtmlContent, options) => indexHtmlContent.
155
155
  `${trimTrailingSlash(options.env.cdnUrl)}/` : '').replace(new RegExp('__MC_API_URL__', 'g'), trimTrailingSlash(options.env.mcApiUrl)).replace(new RegExp('__APPLICATION_ENVIRONMENT__', 'g'), `<script>window.app = ${sanitizeAppEnvironment(options.env)};</script>`).replace(new RegExp('__LOADING_SCREEN_JS__', 'g'), `<script>${htmlScripts.loadingScreen}</script>`).replace(new RegExp('__LOADING_SCREEN_CSS__', 'g'), `<style>${htmlStyles.loadingScreen}</style>`);
156
156
 
157
157
  async function compileHtml(indexHtmlTemplatePath) {
158
- const applicationConfig = processConfig();
158
+ const applicationConfig = await processConfig();
159
159
  const compiledHeaders = processHeaders(applicationConfig);
160
160
  const indexHtmlTemplateContent = fs.readFileSync(indexHtmlTemplatePath, 'utf8');
161
161
  const indexHtmlContent = replaceHtmlPlaceholders(indexHtmlTemplateContent, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/mc-html-template",
3
- "version": "22.36.0",
3
+ "version": "22.37.0",
4
4
  "description": "Everything related to render the index.html for a MC application",
5
5
  "bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
6
6
  "repository": {
@@ -38,8 +38,8 @@
38
38
  "dependencies": {
39
39
  "@babel/runtime": "^7.22.15",
40
40
  "@babel/runtime-corejs3": "^7.22.15",
41
- "@commercetools-frontend/application-config": "22.36.0",
42
- "@commercetools-frontend/constants": "22.36.0",
41
+ "@commercetools-frontend/application-config": "22.37.0",
42
+ "@commercetools-frontend/constants": "22.37.0",
43
43
  "serialize-javascript": "6.0.2",
44
44
  "uglify-js": "3.18.0",
45
45
  "uglifycss": "0.0.29"