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 +1 -1
- package/gulp-tasks/templates.js +4 -4
- package/package.json +1 -1
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
|
|
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
|
|
package/gulp-tasks/templates.js
CHANGED
|
@@ -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
|
-
|
|
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
|
+
};
|