dymo-api 1.2.25 → 1.2.27

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.
@@ -38,7 +38,7 @@ const isValidEmail = async (axiosClient, email, rules) => {
38
38
  email,
39
39
  plugins: [
40
40
  rules.deny.includes("NO_MX_RECORDS") ? "mxRecords" : undefined,
41
- rules.deny.includes("NO_REACHABLE") ? "reachability" : undefined,
41
+ rules.deny.includes("NO_REACHABLE") ? "reachable" : undefined,
42
42
  rules.deny.includes("HIGH_RISK_SCORE") ? "riskScore" : undefined,
43
43
  rules.deny.includes("NO_GRAVATAR") ? "gravatar" : undefined
44
44
  ].filter(Boolean)
@@ -51,7 +51,7 @@ const isValidIP = async (axiosClient, ip, rules) => {
51
51
  }
52
52
  if (rules.deny.includes("FRAUD") && responseIP.fraud)
53
53
  reasons.push("FRAUD");
54
- if (rules.deny.includes("TOR_NETWORK") && !responseIP.plugins.gravatar)
54
+ if (rules.deny.includes("TOR_NETWORK") && !responseIP.plugins.torNetwork)
55
55
  reasons.push("TOR_NETWORK");
56
56
  if (rules.deny.includes("HIGH_RISK_SCORE") && responseIP.plugins.riskScore >= 80)
57
57
  reasons.push("HIGH_RISK_SCORE");
@@ -78,7 +78,7 @@ class DymoAPI {
78
78
  headers: {
79
79
  "User-Agent": "DymoAPISDK/1.0.0",
80
80
  "X-Dymo-SDK-Env": "Node",
81
- "X-Dymo-SDK-Version": "1.2.25"
81
+ "X-Dymo-SDK-Version": "1.2.27"
82
82
  }
83
83
  });
84
84
  // We set the authorization in the Axios client to make requests.
@@ -35,7 +35,7 @@ export const isValidEmail = async (axiosClient, email, rules) => {
35
35
  email,
36
36
  plugins: [
37
37
  rules.deny.includes("NO_MX_RECORDS") ? "mxRecords" : undefined,
38
- rules.deny.includes("NO_REACHABLE") ? "reachability" : undefined,
38
+ rules.deny.includes("NO_REACHABLE") ? "reachable" : undefined,
39
39
  rules.deny.includes("HIGH_RISK_SCORE") ? "riskScore" : undefined,
40
40
  rules.deny.includes("NO_GRAVATAR") ? "gravatar" : undefined
41
41
  ].filter(Boolean)
@@ -48,7 +48,7 @@ export const isValidIP = async (axiosClient, ip, rules) => {
48
48
  }
49
49
  if (rules.deny.includes("FRAUD") && responseIP.fraud)
50
50
  reasons.push("FRAUD");
51
- if (rules.deny.includes("TOR_NETWORK") && !responseIP.plugins.gravatar)
51
+ if (rules.deny.includes("TOR_NETWORK") && !responseIP.plugins.torNetwork)
52
52
  reasons.push("TOR_NETWORK");
53
53
  if (rules.deny.includes("HIGH_RISK_SCORE") && responseIP.plugins.riskScore >= 80)
54
54
  reasons.push("HIGH_RISK_SCORE");
@@ -40,7 +40,7 @@ class DymoAPI {
40
40
  headers: {
41
41
  "User-Agent": "DymoAPISDK/1.0.0",
42
42
  "X-Dymo-SDK-Env": "Node",
43
- "X-Dymo-SDK-Version": "1.2.25"
43
+ "X-Dymo-SDK-Version": "1.2.27"
44
44
  }
45
45
  });
46
46
  // We set the authorization in the Axios client to make requests.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dymo-api",
3
- "version": "1.2.25",
3
+ "version": "1.2.27",
4
4
  "description": "Flow system for Dymo API.",
5
5
  "main": "dist/cjs/dymo-api.js",
6
6
  "module": "dist/esm/dymo-api.js",