mod-build 3.6.76 → 3.6.77-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.
@@ -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(url, async function(err, xhr, response) {
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.6.76",
3
+ "version": "3.6.77-beta.1",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",