dymo-api 1.2.13 → 1.2.15

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.
@@ -40,7 +40,7 @@ const isValidEmail = async (axiosClient, email, rules) => {
40
40
  rules.deny.includes("NO_MX_RECORDS") ? "mxRecords" : undefined,
41
41
  rules.deny.includes("NO_REACHABLE") ? "reachability" : undefined,
42
42
  rules.deny.includes("HIGH_RISK_SCORE") ? "riskScore" : undefined
43
- ]
43
+ ].filter(Boolean)
44
44
  }, { headers: { "Content-Type": "application/json" } })).data.email;
45
45
  let reasons = [];
46
46
  if (rules.deny.includes("INVALID") && !responseEmail.valid) {
@@ -76,7 +76,7 @@ class DymoAPI {
76
76
  headers: {
77
77
  "User-Agent": "DymoAPISDK/1.0.0",
78
78
  "X-Dymo-SDK-Env": "Node",
79
- "X-Dymo-SDK-Version": "1.2.13"
79
+ "X-Dymo-SDK-Version": "1.2.15"
80
80
  }
81
81
  });
82
82
  // We set the authorization in the Axios client to make requests.
@@ -37,7 +37,7 @@ export const isValidEmail = async (axiosClient, email, rules) => {
37
37
  rules.deny.includes("NO_MX_RECORDS") ? "mxRecords" : undefined,
38
38
  rules.deny.includes("NO_REACHABLE") ? "reachability" : undefined,
39
39
  rules.deny.includes("HIGH_RISK_SCORE") ? "riskScore" : undefined
40
- ]
40
+ ].filter(Boolean)
41
41
  }, { headers: { "Content-Type": "application/json" } })).data.email;
42
42
  let reasons = [];
43
43
  if (rules.deny.includes("INVALID") && !responseEmail.valid) {
@@ -38,7 +38,7 @@ class DymoAPI {
38
38
  headers: {
39
39
  "User-Agent": "DymoAPISDK/1.0.0",
40
40
  "X-Dymo-SDK-Env": "Node",
41
- "X-Dymo-SDK-Version": "1.2.13"
41
+ "X-Dymo-SDK-Version": "1.2.15"
42
42
  }
43
43
  });
44
44
  // We set the authorization in the Axios client to make requests.
@@ -219,4 +219,4 @@ declare class DymoAPI {
219
219
  isValidPwd(data: Interfaces.IsValidPwdData): Promise<Interfaces.PasswordValidationResult>;
220
220
  }
221
221
  export default DymoAPI;
222
- export type { EmailValidatorRules, WafRules, NegativeEmailRules, SensitiveInfoRules } from "./lib/types/interfaces";
222
+ export type { EmailValidatorRules, WafRules, NegativeEmailRules, SensitiveInfoRules, DataEmailValidationAnalysis } from "./lib/types/interfaces";
@@ -92,7 +92,7 @@ export type SensitiveInfoResponse = {
92
92
  /**
93
93
  * Detailed analysis of an email validation.
94
94
  */
95
- interface DataEmailValidationAnalysis {
95
+ export interface DataEmailValidationAnalysis {
96
96
  /** Whether the email is valid. */
97
97
  valid: boolean;
98
98
  /** Whether the email is flagged as fraudulent. */
@@ -419,4 +419,3 @@ export interface DataValidationAnalysis {
419
419
  };
420
420
  };
421
421
  }
422
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dymo-api",
3
- "version": "1.2.13",
3
+ "version": "1.2.15",
4
4
  "description": "Flow system for Dymo API.",
5
5
  "main": "dist/cjs/dymo-api.js",
6
6
  "module": "dist/esm/dymo-api.js",