mod-build 3.6.88 → 3.6.89-beta.1
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 +4 -0
- package/gulp-tasks/templates.js +1 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.6.89
|
|
4
|
+
|
|
5
|
+
- Updating `fetchTcpaFromSitegenie()` to no longer have any use-cases of QuinStreet as the company name; should be Modernize all the time.
|
|
6
|
+
|
|
3
7
|
## 3.6.88
|
|
4
8
|
|
|
5
9
|
- Reverting the change made in `3.6.87` — need to regroup on a solve for our cache bust & it affecting JS parameters.
|
package/gulp-tasks/templates.js
CHANGED
|
@@ -240,7 +240,6 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
240
240
|
};
|
|
241
241
|
|
|
242
242
|
var fetchTcpaFromSitegenie = async function() {
|
|
243
|
-
const company = templatesData.company_name;
|
|
244
243
|
const website = templatesData.website_name;
|
|
245
244
|
const c_level = templatesData.cLevel ? templatesData.cLevel : 'default';
|
|
246
245
|
const affiliateKey = templatesData.affiliateKey ? templatesData.affiliateKey : 0;
|
|
@@ -259,7 +258,7 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
259
258
|
throw new Error(`${xhr.statusCode}: Error while fetching TCPA`);
|
|
260
259
|
}
|
|
261
260
|
const responseJson = await JSON.parse(response);
|
|
262
|
-
let finalTCPA = await
|
|
261
|
+
let finalTCPA = await responseJson.tcpa.replace(/QuinStreet/g, 'Modernize');
|
|
263
262
|
const removeInlineStyleRegex = / style="[^"]*"/g;
|
|
264
263
|
finalTCPA = finalTCPA.replace(removeInlineStyleRegex, '');
|
|
265
264
|
templatesData.tcpaText = await finalTCPA;
|