mod-build 3.6.61-beta.7 → 3.6.61-beta.8

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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## 3.6.61
4
4
 
5
- - Adding the accessible components to the `grab-shared-components` task; As well as pulling the accessible `defaultFormFieldConfig` for the new template.js configuration; As well as adding the ability to add an `{{else}}` block when using `{{#xif }}`;
5
+ - Adding the accessible components to the `grab-shared-components` task; As well as pulling the accessible `defaultFormFieldConfig` for the new template.js configuration (& merging to the new template stucture appropriately);
6
6
 
7
7
  ## 3.6.60
8
8
 
@@ -199,7 +199,6 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
199
199
  }
200
200
 
201
201
  const defaultConfig = await JSON.parse(response);
202
- console.log(defaultConfig)
203
202
 
204
203
  if (templatesData.steps) {
205
204
  templatesData.steps = await mergeDefaultFormFieldConfig(templatesData.steps, defaultConfig, folder);
@@ -235,8 +234,9 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
235
234
  throw new Error(`${xhr.statusCode}: Error while fetching TCPA`);
236
235
  }
237
236
  const responseJson = await JSON.parse(response);
238
- const finalTCPA = await (company === 'Modernize' || templatesData.useModernizeInTCPA) ? responseJson.tcpa.replace(/QuinStreet/g, 'Modernize') : responseJson.tcpa;
239
-
237
+ let finalTCPA = await (company === 'Modernize' || templatesData.useModernizeInTCPA) ? responseJson.tcpa.replace(/QuinStreet/g, 'Modernize') : responseJson.tcpa;
238
+ const removeInlineStyleRegex = / style="[^"]*"/g;
239
+ finalTCPA = finalTCPA.replace(removeInlineStyleRegex, '');
240
240
  templatesData.tcpaText = await finalTCPA;
241
241
 
242
242
  resolve();
@@ -270,4 +270,4 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
270
270
  }))
271
271
  .pipe(gulp.dest(siteSettings.tmpFolder));
272
272
  };
273
- };
273
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.6.61-beta.7",
3
+ "version": "3.6.61-beta.8",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",