@certd/plugin-lib 1.39.7 → 1.39.8

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/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.39.8](https://github.com/certd/certd/compare/v1.39.7...v1.39.8) (2026-03-31)
7
+
8
+ ### Performance Improvements
9
+
10
+ * dcdn自动匹配部署,支持新增域名感知 ([c6a988b](https://github.com/certd/certd/commit/c6a988bc925886bd7163c1270f2b7a10a57b1c5b))
11
+
6
12
  ## [1.39.7](https://github.com/certd/certd/compare/v1.39.6...v1.39.7) (2026-03-25)
7
13
 
8
14
  **Note:** Version bump only for package @certd/plugin-lib
@@ -29,6 +29,11 @@ export type HandleOpts = {
29
29
  logger: ILogger;
30
30
  handle: CertReaderHandle;
31
31
  };
32
+ export type SimpleCertDetail = {
33
+ notBefore: Date;
34
+ notAfter: Date;
35
+ domains: string[];
36
+ };
32
37
  export declare class CertReader {
33
38
  cert: CertInfo;
34
39
  detail: CertificateInfo;
@@ -43,6 +48,11 @@ export declare class CertReader {
43
48
  effective: Date;
44
49
  expires: Date;
45
50
  };
51
+ getSimpleDetail(): {
52
+ notBefore: Date;
53
+ notAfter: Date;
54
+ domains: any;
55
+ };
46
56
  static readCertDetail(crt: string): {
47
57
  detail: CertificateInfo;
48
58
  effective: Date;
@@ -75,6 +75,14 @@ export class CertReader {
75
75
  getCrtDetail(crt = this.cert.crt) {
76
76
  return CertReader.readCertDetail(crt);
77
77
  }
78
+ getSimpleDetail() {
79
+ const { detail } = this.getCrtDetail();
80
+ return {
81
+ notBefore: detail.notBefore,
82
+ notAfter: detail.notAfter,
83
+ domains: this.getAllDomains(),
84
+ };
85
+ }
78
86
  static readCertDetail(crt) {
79
87
  const detail = crypto.readCertificateInfo(crt.toString());
80
88
  const effective = detail.notBefore;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@certd/plugin-lib",
3
3
  "private": false,
4
- "version": "1.39.7",
4
+ "version": "1.39.8",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -22,10 +22,10 @@
22
22
  "@alicloud/pop-core": "^1.7.10",
23
23
  "@alicloud/tea-util": "^1.4.11",
24
24
  "@aws-sdk/client-s3": "^3.964.0",
25
- "@certd/acme-client": "^1.39.7",
26
- "@certd/basic": "^1.39.7",
27
- "@certd/pipeline": "^1.39.7",
28
- "@certd/plus-core": "^1.39.7",
25
+ "@certd/acme-client": "^1.39.8",
26
+ "@certd/basic": "^1.39.8",
27
+ "@certd/pipeline": "^1.39.8",
28
+ "@certd/plus-core": "^1.39.8",
29
29
  "@kubernetes/client-node": "0.21.0",
30
30
  "ali-oss": "^6.22.0",
31
31
  "basic-ftp": "^5.0.5",
@@ -57,5 +57,5 @@
57
57
  "tslib": "^2.8.1",
58
58
  "typescript": "^5.4.2"
59
59
  },
60
- "gitHead": "adc3e6118b941818926705c3536babfca117c247"
60
+ "gitHead": "de0ae14544f1c3da4923dddc6a1a3bea4db295e7"
61
61
  }