mod-build 3.6.97-beta.1 → 3.6.97

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
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.6.97
4
+
5
+ - Update regex for homeowner form to accomodate if contractor form is present
6
+
3
7
  ## 3.6.96
4
8
 
5
9
  - Updating VWO cookies' expiration date to be only 1 day
@@ -32,8 +32,8 @@ function replaceModalyticsSrc(gulp, gulpPlugins, siteSettings, siteData) {
32
32
  function replaceFootAssetScripts(gulp, gulpPlugins, siteSettings, siteData) {
33
33
  const resourcePath = isQuotePageOrUseRelativePath ? '{{#if this.nodeModulesPath}}{{this.nodeModulesPath}}{{/if}}resources/scripts' : '/resources/scripts';
34
34
  return gulp.src(`${siteSettings.srcFolder}/${componentFolderPath}/foot-assets/foot-assets.html`)
35
- .pipe(replace(/"(?:(?!"|js")[\s\S])+(modutils|mod-utils.*?)js"|"(?:(?!"|")[\s\S])+(callrail.*?)js"|"(?:(?!"|")[\s\S])+(footer\/footer-component.*?)js"|"(?:(?!"|")[\s\S])+(mod-form\/form.*?)js"/g, function(match) {
36
- if (match.includes('mod-form/form')) {
35
+ .pipe(replace(/"(?:(?!"|js")[\s\S])+(modutils|mod-utils.*?)js"|"(?:(?!"|")[\s\S])+(callrail.*?)js"|"(?:(?!"|")[\s\S])+(footer\/footer-component.*?)js"|"(?:(?!"|")[\s\S])+(mod-form\/form\/homeowner.*?)js"/g, function(match) {
36
+ if (match.includes('mod-form/form/homeowner')) {
37
37
  return `"${resourcePath}/mod-form/form/${fileNames.homeownerFormFileName}"`;
38
38
  } else if (match.includes('callrail')) {
39
39
  return `"${resourcePath}/callrail/${fileNames.callrailFileName}"`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.6.97-beta.1",
3
+ "version": "3.6.97",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -311,7 +311,6 @@ modForm.formatContractorDataForModApi = function(formData, currentStep) {
311
311
  multipleTrades: formData.multipleTrades ? 1 : 0,
312
312
  contractorNetwork: formData.contractorNetwork ? 1 : 0,
313
313
  companyName: formData.companyName,
314
- howDidYouHearAboutUs: formData.howDidYouHearAboutUs,
315
314
  phone: formData.homePhone,
316
315
  email: formData.email,
317
316
  bbdId: formData.bbdId,