mod-build 3.7.9-beta.1 → 3.7.9-beta.2
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/gulp-tasks/templates.js +4 -2
- package/package.json +1 -1
package/gulp-tasks/templates.js
CHANGED
|
@@ -333,8 +333,8 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
333
333
|
};
|
|
334
334
|
|
|
335
335
|
try {
|
|
336
|
-
const
|
|
337
|
-
const { xhr: tcpaXhr, response: tcpaResponse } = await requestPromise(
|
|
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
|
|