caa 9.2.0 → 10.0.1

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/README.md CHANGED
@@ -11,9 +11,8 @@ import {caa, caaMatches} from "caa";
11
11
  await caa("example.com");
12
12
  // => [{flags: 0, tag: 'issue', value: 'letsencrypt.org', issuerCritical: false}]
13
13
 
14
- await caa.matches("example.com", "letsencrypt.org");
14
+ await caaMatches("example.com", "letsencrypt.org");
15
15
  // => true
16
-
17
16
  ```
18
17
 
19
18
  ## API
package/dist/index.d.ts CHANGED
@@ -6,6 +6,12 @@ type CaaOpts = {
6
6
  servers?: string[];
7
7
  dnsSocket?: any;
8
8
  };
9
- export declare function caa(name: any, opts?: CaaOpts): Promise<any>;
10
- export declare function caaMatches(name: any, ca: any, opts?: {}): Promise<any>;
9
+ type CaaRecord = {
10
+ flags: number;
11
+ tag: string;
12
+ value: string;
13
+ issuerCritical: boolean;
14
+ };
15
+ export declare function caa(name: string, opts?: CaaOpts): Promise<CaaRecord[]>;
16
+ export declare function caaMatches(name: string, ca: string, opts?: CaaOpts): Promise<boolean>;
11
17
  export {};