leadconduit-trustedform 1.18.0 → 1.18.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.
- package/CHANGELOG.md +4 -0
- package/lib/data_service.js +8 -4
- package/lib/ui/public/images/icon.png +0 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
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.1] - 2022-03-12
|
|
6
|
+
### Fixed
|
|
7
|
+
- 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))
|
|
8
|
+
|
|
5
9
|
## [1.18.0] - 2022-03-02
|
|
6
10
|
### Added
|
|
7
11
|
- Added support for `trustedform_ping_url` to the Data Service integration
|
package/lib/data_service.js
CHANGED
|
@@ -4,8 +4,13 @@ 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')) return;
|
|
11
|
+
|
|
7
12
|
const certValidate = require('./helpers').validate;
|
|
8
|
-
|
|
13
|
+
return certValidate(vars);
|
|
9
14
|
};
|
|
10
15
|
|
|
11
16
|
const request = (vars) => {
|
|
@@ -25,7 +30,7 @@ const request = (vars) => {
|
|
|
25
30
|
body = omitBy(body, (value) => { return isUndefined(value); });
|
|
26
31
|
|
|
27
32
|
const req = {
|
|
28
|
-
url: `${formatUrl(lead.trustedform_cert_url
|
|
33
|
+
url: `${formatUrl(lead.trustedform_cert_url)}/peek`,
|
|
29
34
|
method: 'POST',
|
|
30
35
|
body: querystring.stringify(body),
|
|
31
36
|
headers: {
|
|
@@ -39,8 +44,7 @@ const request = (vars) => {
|
|
|
39
44
|
};
|
|
40
45
|
|
|
41
46
|
request.variables = () => [
|
|
42
|
-
{ name: 'lead.trustedform_cert_url', type: 'string', required:
|
|
43
|
-
{ name: 'lead.trustedform_ping_url', type: 'url', required: false, description: 'TrustedForm Ping URL' },
|
|
47
|
+
{ name: 'lead.trustedform_cert_url', type: 'string', required: true, description: 'TrustedForm Certificate URL' },
|
|
44
48
|
{ name: 'trustedform.scan_required_text', type: 'array', required: false, description: 'Required text to search snapshot for' },
|
|
45
49
|
{ name: 'trustedform.scan_forbidden_text', type: 'array', required: false, description: 'Forbidden text to search snapshot for' },
|
|
46
50
|
{ name: 'trustedform.scan_delimiter', type: 'string', required: false, description: 'The character used to surround an asterisk and identify it as a wildcard (default: |)' },
|
|
Binary file
|