mod-build 3.4.34 → 3.4.37--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.
@@ -99,6 +99,21 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
99
99
  }
100
100
  return expression.replace(mask, newValues);
101
101
  }
102
+ },
103
+ // It will take the json object & variable name to assign the object & return it in the script tag
104
+ {
105
+ name: 'jsonVarScriptTag',
106
+ fn: function(json, variable) {
107
+ var check = (typeof json === 'object') && (typeof variable === 'string' && variable);
108
+ return check ? '<script>' + 'var ' + variable + '=' + JSON.stringify(json) + '</script>' : '';
109
+ }
110
+ },
111
+ // It will take & return json object
112
+ {
113
+ name: 'json',
114
+ fn: function(json) {
115
+ return JSON.stringify(json);
116
+ }
102
117
  }
103
118
  ];
104
119
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.4.34",
3
+ "version": "3.4.37--beta.1",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -37,8 +37,8 @@ var quoteFooterData = function(siteData) {
37
37
  },
38
38
  {
39
39
  text: 'Do&nbsp;Not&nbsp;Sell&nbsp;My&nbsp;Personal&nbsp;Information',
40
- anchor: 'https://privacy-central.securiti.ai/#/dsr/983cfd4b-c36a-4601-89e9-b651e5a05708',
41
- modal: false
40
+ anchor: 'uspi',
41
+ modal: true
42
42
  }
43
43
  ],
44
44
  links: [
@@ -363,7 +363,7 @@ modForm.getDefaultQuadByDomain = function() {
363
363
  };
364
364
 
365
365
  if (page === 'quotes.improvementcenter.com') {
366
- const { service } = modUtils.getUrlParamsToObject();
366
+ const service = window.location.pathname.replace(/\//g , "");
367
367
  return defaultQuadLinkValue[page][service];
368
368
  }
369
369
 
@@ -724,6 +724,8 @@ modForm.processQSFormSubmitSuccess = function(response, xhr) {
724
724
  // eslint-disable-next-line camelcase
725
725
  project_id: dataCaptureKey,
726
726
  // eslint-disable-next-line camelcase
727
+ data_capture_key: dataCaptureKey,
728
+ // eslint-disable-next-line camelcase
727
729
  form_path: this.opts.landingPage,
728
730
  qsclickkey: clickKeyUUID
729
731
  });