mod-build 3.6.76 → 3.6.77
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 +5 -1
- package/package.json +1 -1
- package/package-lock-1.json +0 -35243
package/gulp-tasks/templates.js
CHANGED
|
@@ -236,10 +236,14 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
236
236
|
const service = templatesData.service ? templatesData.service.toLowerCase().replace(' ', '_') : templatesData.primary_trade.toLowerCase().replace(' ', '_');
|
|
237
237
|
const apiEnv = 'https://' + (templatesData.nodeEnv === 'modernize.com' ? 'hs.leadpost.net/' : 'hsleadpost1.quinstage.com/');
|
|
238
238
|
const url = `${apiEnv}coreg/getTCPAConsent?website=${website}&service=${service}&affiliateKey=${affiliateKey}&c_level=${c_level}`;
|
|
239
|
+
const reqConfig = {
|
|
240
|
+
url: url,
|
|
241
|
+
encoding: 'latin1'
|
|
242
|
+
};
|
|
239
243
|
console.time('Finished fetch-tcpa-from-sitegenie after');
|
|
240
244
|
console.log('Starting fetch-tcpa-from-sitegenie: ',url);
|
|
241
245
|
await new Promise(function(resolve) {
|
|
242
|
-
request(
|
|
246
|
+
request(reqConfig, async function(err, xhr, response) {
|
|
243
247
|
if (xhr.statusCode !== 200) {
|
|
244
248
|
throw new Error(`${xhr.statusCode}: Error while fetching TCPA`);
|
|
245
249
|
}
|