mod-build 3.7.9-beta.1 → 3.7.9

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.
@@ -333,8 +333,8 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
333
333
  };
334
334
 
335
335
  try {
336
- const tcpaJson = `https://${siteSettings.nodeEnv}/quote/resources/mod-site/consent-capture/tcpa.json`;
337
- const { xhr: tcpaXhr, response: tcpaResponse } = await requestPromise(tcpaJson);
336
+ const tcpaContent = `https://${siteSettings.nodeEnv}/quote/resources/mod-site/consent-capture/tcpa.json`;
337
+ const { xhr: tcpaXhr, response: tcpaResponse } = await requestPromise(tcpaContent);
338
338
 
339
339
  if (tcpaXhr.statusCode !== 200) {
340
340
  throw new Error(`${tcpaXhr.statusCode}: Error while fetching tcpa.json`);
@@ -344,6 +344,8 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
344
344
  const responseJson = JSON.parse(tcpaResponse),
345
345
  consentCaptureObject = responseJson;
346
346
 
347
+ consentCaptureObject.consentCapturePrivacyAndTerms = consentCaptureObject.consentCapturePrivacyAndTerms.replace(/\/resources/g, `${pathSubdirectory ? pathSubdirectory : '/'}resources`);
348
+
347
349
  const brandedSiteIdentifiers = `https://${siteSettings.nodeEnv}/quote/resources/mod-site/data/branded-site-identifiers.json`;
348
350
  const { xhr: brandedXhr, response: brandedResponse } = await requestPromise(brandedSiteIdentifiers);
349
351
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.7.9-beta.1",
3
+ "version": "3.7.9",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",