@certd/plugin-lib 1.38.3 → 1.38.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.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
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.38.4](https://github.com/certd/certd/compare/v1.38.3...v1.38.4) (2026-01-31)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @certd/plugin-lib
|
|
9
|
+
|
|
6
10
|
## [1.38.3](https://github.com/certd/certd/compare/v1.38.2...v1.38.3) (2026-01-28)
|
|
7
11
|
|
|
8
12
|
### Performance Improvements
|
|
@@ -47,6 +47,7 @@ export interface IDnsProvider<T = any> {
|
|
|
47
47
|
}
|
|
48
48
|
export interface ISubDomainsGetter {
|
|
49
49
|
getSubDomains(): Promise<string[]>;
|
|
50
|
+
hasSubDomain(domain: string): Promise<string>;
|
|
50
51
|
}
|
|
51
52
|
export interface IDomainParser {
|
|
52
53
|
parse(fullDomain: string): Promise<string>;
|
|
@@ -31,20 +31,28 @@ export class DomainParser {
|
|
|
31
31
|
this.logger.info(`从缓存获取到主域名:${fullDomain}->${value}`);
|
|
32
32
|
return value;
|
|
33
33
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
});
|
|
43
|
-
this.logger.info(`获取到子域名托管域名:${fullDomain}->${subDomain}`);
|
|
44
|
-
return subDomain;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
34
|
+
//检查是否有子域名托管
|
|
35
|
+
const subDomain = await this.subDomainsGetter.hasSubDomain(fullDomain);
|
|
36
|
+
if (subDomain) {
|
|
37
|
+
utils.cache.set(cacheKey, subDomain, {
|
|
38
|
+
ttl: 60 * 1000,
|
|
39
|
+
});
|
|
40
|
+
this.logger.info(`获取到托管域名:${fullDomain}->${subDomain}`);
|
|
41
|
+
return subDomain;
|
|
47
42
|
}
|
|
43
|
+
// if (subDomains && subDomains.length > 0) {
|
|
44
|
+
// const fullDomainDot = "." + fullDomain;
|
|
45
|
+
// for (const subDomain of subDomains) {
|
|
46
|
+
// if (fullDomainDot.endsWith("." + subDomain)) {
|
|
47
|
+
// //找到子域名托管
|
|
48
|
+
// utils.cache.set(cacheKey, subDomain, {
|
|
49
|
+
// ttl: 60 * 1000,
|
|
50
|
+
// });
|
|
51
|
+
// this.logger.info(`获取到子域名托管域名:${fullDomain}->${subDomain}`);
|
|
52
|
+
// return subDomain;
|
|
53
|
+
// }
|
|
54
|
+
// }
|
|
55
|
+
// }
|
|
48
56
|
const res = this.parseDomainByPsl(fullDomain);
|
|
49
57
|
this.logger.info(`从psl获取主域名:${fullDomain}->${res}`);
|
|
50
58
|
let soaManDomain = null;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@certd/plugin-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.38.
|
|
4
|
+
"version": "1.38.4",
|
|
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.38.
|
|
26
|
-
"@certd/basic": "^1.38.
|
|
27
|
-
"@certd/pipeline": "^1.38.
|
|
28
|
-
"@certd/plus-core": "^1.38.
|
|
25
|
+
"@certd/acme-client": "^1.38.4",
|
|
26
|
+
"@certd/basic": "^1.38.4",
|
|
27
|
+
"@certd/pipeline": "^1.38.4",
|
|
28
|
+
"@certd/plus-core": "^1.38.4",
|
|
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": "
|
|
60
|
+
"gitHead": "84291482732687cc8162c6505666ba2b29b02918"
|
|
61
61
|
}
|