dymo-api 1.2.12 → 1.2.14
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/dist/cjs/branches/private/functions/isValidEmail/index.cjs +1 -1
- package/dist/cjs/dymo-api.cjs +1 -1
- package/dist/esm/branches/private/functions/isValidEmail/index.js +1 -1
- package/dist/esm/dymo-api.js +1 -1
- package/dist/types/dymo-api.d.ts +1 -0
- package/dist/types/lib/types/rules.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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) {
|
package/dist/cjs/dymo-api.cjs
CHANGED
|
@@ -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) {
|
package/dist/esm/dymo-api.js
CHANGED
package/dist/types/dymo-api.d.ts
CHANGED
|
@@ -219,3 +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";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as WellKnownBots from "./well-known-bots";
|
|
2
2
|
import { NegativeEmailRules, NegativeSensitiveInfoRules } from "./data-verifier";
|
|
3
3
|
type Mode = "LIVE" | "DRY_RUN";
|
|
4
|
-
type NegativeWafRules = "FRAUD" | "VPN" | "PROXY" | "TOR_NETWORK";
|
|
4
|
+
export type NegativeWafRules = "FRAUD" | "VPN" | "PROXY" | "TOR_NETWORK";
|
|
5
5
|
export interface WafRules {
|
|
6
6
|
mode?: Mode;
|
|
7
7
|
allowBots?: WellKnownBots.WellKnownBotOrCategory[];
|