@certd/plugin-cert 1.24.3 → 1.24.4

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 (45) hide show
  1. package/CHANGELOG.md +6 -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/bundle.js +1 -1
  7. package/dist/d/plugin/cert-plugin/acme.d.ts +2 -0
  8. package/dist/d/plugin/cert-plugin/index.d.ts +1 -0
  9. package/dist/dns-provider/api.d.ts +27 -27
  10. package/dist/dns-provider/api.js +1 -1
  11. package/dist/dns-provider/base.d.ts +8 -8
  12. package/dist/dns-provider/base.js +6 -6
  13. package/dist/dns-provider/decorator.d.ts +3 -3
  14. package/dist/dns-provider/decorator.js +25 -25
  15. package/dist/dns-provider/index.d.ts +4 -4
  16. package/dist/dns-provider/index.js +4 -4
  17. package/dist/dns-provider/registry.d.ts +2 -2
  18. package/dist/dns-provider/registry.js +2 -2
  19. package/dist/index.d.ts +3 -3
  20. package/dist/index.js +3 -3
  21. package/dist/plugin/cert-plugin/acme.d.ts +65 -65
  22. package/dist/plugin/cert-plugin/acme.js +270 -270
  23. package/dist/plugin/cert-plugin/base.d.ts +46 -46
  24. package/dist/plugin/cert-plugin/base.js +280 -284
  25. package/dist/plugin/cert-plugin/cert-reader.d.ts +31 -31
  26. package/dist/plugin/cert-plugin/cert-reader.js +92 -89
  27. package/dist/plugin/cert-plugin/convert.d.ts +21 -21
  28. package/dist/plugin/cert-plugin/convert.js +70 -70
  29. package/dist/plugin/cert-plugin/index.d.ts +18 -18
  30. package/dist/plugin/cert-plugin/index.js +206 -206
  31. package/dist/plugin/cert-plugin/lego/dns.d.ts +1 -1
  32. package/dist/plugin/cert-plugin/lego/dns.js +1 -1
  33. package/dist/plugin/cert-plugin/lego/index.d.ts +17 -17
  34. package/dist/plugin/cert-plugin/lego/index.js +171 -171
  35. package/dist/plugin/cert-plugin/lego.d.ts +16 -16
  36. package/dist/plugin/cert-plugin/lego.js +145 -153
  37. package/dist/plugin/index.d.ts +2 -2
  38. package/dist/plugin/index.js +2 -2
  39. package/package.json +4 -4
  40. package/tsconfig.tsbuildinfo +1 -1
  41. package/dist/plugin-cert.mjs +0 -11786
  42. package/dist/plugin-cert.umd.js +0 -28
  43. package/stats.html +0 -6177
  44. package/test/user.secret.js +0 -7
  45. 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
+ }