@apiverve/spfvalidator 1.1.10 → 1.1.12

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.
Files changed (2) hide show
  1. package/index.d.ts +30 -1
  2. package/package.json +4 -3
package/index.d.ts CHANGED
@@ -7,10 +7,39 @@ declare module '@apiverve/spfvalidator' {
7
7
  export interface spfvalidatorResponse {
8
8
  status: string;
9
9
  error: string | null;
10
- data: any;
10
+ data: SPFValidatorData;
11
11
  code?: number;
12
12
  }
13
13
 
14
+
15
+ interface SPFValidatorData {
16
+ authorizedIPS: AuthorizedIPS;
17
+ dnsLookupsNum: number;
18
+ domainsExtracted: string[];
19
+ elapsedMS: number;
20
+ hasIssues: boolean;
21
+ hasSPFRecord: boolean;
22
+ host: string;
23
+ ipPass: boolean;
24
+ macrosFound: boolean;
25
+ spfRecord: string;
26
+ spfRecordsList: SPFRecordsList[];
27
+ spfValid: boolean;
28
+ }
29
+
30
+ interface AuthorizedIPS {
31
+ ipv4: string[];
32
+ }
33
+
34
+ interface SPFRecordsList {
35
+ authorizedIPS?: AuthorizedIPS;
36
+ charsNum: number;
37
+ domains?: string[];
38
+ origin: string;
39
+ record: string;
40
+ useMacro: boolean;
41
+ }
42
+
14
43
  export default class spfvalidatorWrapper {
15
44
  constructor(options: spfvalidatorOptions);
16
45
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apiverve/spfvalidator",
3
- "version": "1.1.10",
3
+ "version": "1.1.12",
4
4
  "description": "SPF Validator checks the Sender Policy Framework (SPF) DNS record for a domain to verify if it’s valid and optionally whether a given IP address is authorized to send emails for that domain.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -10,7 +10,8 @@
10
10
  },
11
11
  "repository": {
12
12
  "type": "git",
13
- "url": "git+https://github.com/apiverve/spfvalidator-API.git"
13
+ "url": "git+https://github.com/apiverve/spfvalidator-api.git",
14
+ "directory": "npm"
14
15
  },
15
16
  "keywords": [
16
17
  "spf", "spf check", "spf validator", "spf test", "email authentication"
@@ -18,7 +19,7 @@
18
19
  "author": "APIVerve <hello@apiverve.com> (http://apiverve.com/)",
19
20
  "license": "MIT",
20
21
  "bugs": {
21
- "url": "https://github.com/apiverve/spfvalidator-API/issues"
22
+ "url": "https://github.com/apiverve/spfvalidator-api/issues"
22
23
  },
23
24
  "homepage": "https://apiverve.com/marketplace/spfvalidator?utm_source=npm",
24
25
  "devDependencies": {