@certd/plugin-cert 1.25.4 → 1.25.6

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 (38) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/access/eab-access.d.ts +4 -4
  3. package/dist/access/eab-access.js +48 -48
  4. package/dist/access/index.d.ts +1 -1
  5. package/dist/access/index.js +1 -1
  6. package/dist/dns-provider/api.d.ts +27 -27
  7. package/dist/dns-provider/api.js +1 -1
  8. package/dist/dns-provider/base.d.ts +8 -8
  9. package/dist/dns-provider/base.js +6 -6
  10. package/dist/dns-provider/decorator.d.ts +3 -3
  11. package/dist/dns-provider/decorator.js +26 -26
  12. package/dist/dns-provider/index.d.ts +4 -4
  13. package/dist/dns-provider/index.js +4 -4
  14. package/dist/dns-provider/registry.d.ts +2 -2
  15. package/dist/dns-provider/registry.js +2 -2
  16. package/dist/index.d.ts +3 -3
  17. package/dist/index.js +3 -3
  18. package/dist/plugin/cert-plugin/acme.d.ts +66 -66
  19. package/dist/plugin/cert-plugin/acme.js +280 -280
  20. package/dist/plugin/cert-plugin/base.d.ts +46 -46
  21. package/dist/plugin/cert-plugin/base.js +281 -281
  22. package/dist/plugin/cert-plugin/cert-reader.d.ts +34 -34
  23. package/dist/plugin/cert-plugin/cert-reader.js +112 -112
  24. package/dist/plugin/cert-plugin/convert.d.ts +21 -21
  25. package/dist/plugin/cert-plugin/convert.js +71 -71
  26. package/dist/plugin/cert-plugin/index.d.ts +18 -18
  27. package/dist/plugin/cert-plugin/index.js +208 -208
  28. package/dist/plugin/cert-plugin/lego/dns.d.ts +1 -1
  29. package/dist/plugin/cert-plugin/lego/dns.js +1 -1
  30. package/dist/plugin/cert-plugin/lego/index.d.ts +17 -17
  31. package/dist/plugin/cert-plugin/lego/index.js +172 -172
  32. package/dist/plugin/index.d.ts +2 -2
  33. package/dist/plugin/index.js +2 -2
  34. package/package.json +9 -7
  35. package/tsconfig.tsbuildinfo +1 -1
  36. package/stats.html +0 -6177
  37. package/test/user.secret.js +0 -7
  38. package/test/user.secret.ts +0 -4
@@ -1,46 +1,46 @@
1
- import { AbstractTaskPlugin, HttpClient, IContext, Step } from "@certd/pipeline";
2
- import type { CertInfo } from "./acme.js";
3
- import { CertReader } from "./cert-reader.js";
4
- export { CertReader };
5
- export type { CertInfo };
6
- export declare abstract class CertApplyBasePlugin extends AbstractTaskPlugin {
7
- domains: string[];
8
- email: string;
9
- pfxPassword: string;
10
- renewDays: number;
11
- forceUpdate: string;
12
- successNotify: boolean;
13
- csrInfo: string;
14
- userContext: IContext;
15
- http: HttpClient;
16
- lastStatus: Step;
17
- cert?: CertInfo;
18
- onInstance(): Promise<void>;
19
- abstract onInit(): Promise<void>;
20
- abstract doCertApply(): Promise<any>;
21
- execute(): Promise<void>;
22
- output(certReader: CertReader, isNew: boolean): Promise<void>;
23
- zipCert(cert: CertInfo, filename: string): Promise<void>;
24
- /**
25
- * 是否更新证书
26
- */
27
- condition(): Promise<CertReader>;
28
- formatCert(pem: string): string;
29
- formatCerts(cert: {
30
- crt: string;
31
- key: string;
32
- csr: string;
33
- }): CertInfo;
34
- readLastCert(): Promise<CertReader | undefined>;
35
- /**
36
- * 检查是否过期,默认提前20天
37
- * @param expires
38
- * @param maxDays
39
- * @returns {boolean}
40
- */
41
- isWillExpire(expires: number, maxDays?: number): {
42
- isWillExpire: boolean;
43
- leftDays: number;
44
- };
45
- private sendSuccessEmail;
46
- }
1
+ import { AbstractTaskPlugin, HttpClient, IContext, Step } from "@certd/pipeline";
2
+ import type { CertInfo } from "./acme.js";
3
+ import { CertReader } from "./cert-reader.js";
4
+ export { CertReader };
5
+ export type { CertInfo };
6
+ export declare abstract class CertApplyBasePlugin extends AbstractTaskPlugin {
7
+ domains: string[];
8
+ email: string;
9
+ pfxPassword: string;
10
+ renewDays: number;
11
+ forceUpdate: string;
12
+ successNotify: boolean;
13
+ csrInfo: string;
14
+ userContext: IContext;
15
+ http: HttpClient;
16
+ lastStatus: Step;
17
+ cert?: CertInfo;
18
+ onInstance(): Promise<void>;
19
+ abstract onInit(): Promise<void>;
20
+ abstract doCertApply(): Promise<any>;
21
+ execute(): Promise<void>;
22
+ output(certReader: CertReader, isNew: boolean): Promise<void>;
23
+ zipCert(cert: CertInfo, filename: string): Promise<void>;
24
+ /**
25
+ * 是否更新证书
26
+ */
27
+ condition(): Promise<CertReader>;
28
+ formatCert(pem: string): string;
29
+ formatCerts(cert: {
30
+ crt: string;
31
+ key: string;
32
+ csr: string;
33
+ }): CertInfo;
34
+ readLastCert(): Promise<CertReader | undefined>;
35
+ /**
36
+ * 检查是否过期,默认提前20天
37
+ * @param expires
38
+ * @param maxDays
39
+ * @returns {boolean}
40
+ */
41
+ isWillExpire(expires: number, maxDays?: number): {
42
+ isWillExpire: boolean;
43
+ leftDays: number;
44
+ };
45
+ private sendSuccessEmail;
46
+ }