leadconduit-trustedform 1.17.4 → 1.18.2

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,6 +2,18 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
  This project adheres to [Semantic Versioning](http://semver.org)
4
4
 
5
+ ## [1.18.2] - 2022-03-23
6
+ ### Fixed
7
+ - Allow TF staging ping URL in Data Service ([sc-37183](sc-37183/allow-a-trustedform-ping-url-to-be-passed))
8
+
9
+ ## [1.18.1] - 2022-03-12
10
+ ### Fixed
11
+ - Changed Data Service integration to allow TF ping URL passed via `trustedform_cert_url` (& removed `trustedform_ping_url`; [sc-37183](sc-37183/allow-a-trustedform-ping-url-to-be-passed))
12
+
13
+ ## [1.18.0] - 2022-03-02
14
+ ### Added
15
+ - Added support for `trustedform_ping_url` to the Data Service integration
16
+
5
17
  ## [1.17.3] - 2022-02-11
6
18
  ### Fixed
7
19
  - Fixed to use new boolean field names (`is_masked` vs. `masked`, plus `is_mobile` & `is_framed`; [sc-35791](https://app.shortcut.com/active-prospect/story/35791/update-trustedform-consent-consent-data-expected-boolean-response-properties))
@@ -4,6 +4,11 @@ const { formatUrl } = require('./helpers');
4
4
 
5
5
  const validate = (vars) => {
6
6
  if (!process.env.TRUSTEDFORM_DATA_SERVICE_TOKEN) return 'Missing TrustedForm Data Service token';
7
+
8
+ // accept a TF ping URL here & skip the full cert validation
9
+ const certUrl = get(vars.lead, 'trustedform_cert_url', '');
10
+ if (certUrl.startsWith('https://ping.trustedform.com') || certUrl.startsWith('https://ping.staging.trustedform.com')) return;
11
+
7
12
  const certValidate = require('./helpers').validate;
8
13
  return certValidate(vars);
9
14
  };
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "leadconduit-trustedform",
3
- "version": "1.17.4",
3
+ "version": "1.18.2",
4
4
  "description": "LeadConduit integration with TrustedForm",
5
5
  "main": "index.js",
6
6
  "scripts": {