dymo-api 1.2.26 → 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.
@@ -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.26"
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.
@@ -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.26"
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.26",
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",