@certd/pipeline 1.38.2 → 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 +11 -0
- package/dist/context/index.d.ts +3 -2
- package/dist/core/executor.js +2 -0
- package/dist/plugin/api.d.ts +1 -0
- package/dist/plugin/api.js +5 -5
- package/package.json +4 -4
- package/stats.html +6177 -0
- package/test/echo-plugin.js +86 -0
- package/test/pipeline/access-service-test.js +65 -0
- package/test/user.secret.ts +4 -0
- package/test/dist/index.test.js +0 -17
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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
|
+
### Performance Improvements
|
|
9
|
+
|
|
10
|
+
* 修复旧版本流水线数据发送通知标题为空的bug ([9bee0e4](https://github.com/certd/certd/commit/9bee0e460bfebe8db76742b80b2d52854392f4de))
|
|
11
|
+
* 支持部署到阿里云GA ([1a0d3ee](https://github.com/certd/certd/commit/1a0d3eeb1b0b5ce08f05af84b6161e00c1fe1815))
|
|
12
|
+
|
|
13
|
+
## [1.38.3](https://github.com/certd/certd/compare/v1.38.2...v1.38.3) (2026-01-28)
|
|
14
|
+
|
|
15
|
+
**Note:** Version bump only for package @certd/pipeline
|
|
16
|
+
|
|
6
17
|
## [1.38.2](https://github.com/certd/certd/compare/v1.38.1...v1.38.2) (2026-01-22)
|
|
7
18
|
|
|
8
19
|
### Bug Fixes
|
package/dist/context/index.d.ts
CHANGED
|
@@ -19,9 +19,10 @@ export declare class Pager {
|
|
|
19
19
|
getOffset(): number;
|
|
20
20
|
setOffset(offset: number): void;
|
|
21
21
|
}
|
|
22
|
-
export
|
|
22
|
+
export type PageTurnReq<T = any> = {
|
|
23
23
|
pager: Pager;
|
|
24
24
|
getPage: (pager: Pager) => Promise<PageRes<T>>;
|
|
25
25
|
itemHandle?: (item: T) => Promise<void>;
|
|
26
26
|
batchHandle?: (pageRes: PageRes<T>) => Promise<void>;
|
|
27
|
-
}
|
|
27
|
+
};
|
|
28
|
+
export declare function doPageTurn<T>(req: PageTurnReq<T>): Promise<number>;
|
package/dist/core/executor.js
CHANGED
|
@@ -428,6 +428,8 @@ export class Executor {
|
|
|
428
428
|
}
|
|
429
429
|
templateData.errors = errors;
|
|
430
430
|
templateData.pipelineResult = pipelineResult;
|
|
431
|
+
templateData.title = subject;
|
|
432
|
+
templateData.content = content;
|
|
431
433
|
for (const notification of this.pipeline.notifications) {
|
|
432
434
|
if (!notification.when.includes(when)) {
|
|
433
435
|
continue;
|
package/dist/plugin/api.d.ts
CHANGED
|
@@ -119,6 +119,7 @@ export declare abstract class AbstractTaskPlugin implements ITaskPlugin {
|
|
|
119
119
|
isAdmin(): boolean;
|
|
120
120
|
getStepFromPipeline(stepId: string): any;
|
|
121
121
|
getStepIdFromRefInput(ref?: string): string;
|
|
122
|
+
buildDomainGroupOptions(options: any[], domains: string[]): any[];
|
|
122
123
|
}
|
|
123
124
|
export type OutputVO = {
|
|
124
125
|
key: string;
|
package/dist/plugin/api.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { accessRegistry } from "../access/index.js";
|
|
2
2
|
import { CancelError, RunnableCollection } from "../core/index.js";
|
|
3
|
-
import { logger } from "@certd/basic";
|
|
3
|
+
import { logger, utils } from "@certd/basic";
|
|
4
4
|
import dayjs from "dayjs";
|
|
5
5
|
import { upperFirst } from "lodash-es";
|
|
6
6
|
export var ContextScope;
|
|
@@ -115,10 +115,7 @@ export class AbstractTaskPlugin {
|
|
|
115
115
|
return;
|
|
116
116
|
}
|
|
117
117
|
appendTimeSuffix(name) {
|
|
118
|
-
|
|
119
|
-
name = "certd";
|
|
120
|
-
}
|
|
121
|
-
return name + "_" + dayjs().format("YYYYMMDDHHmmssSSS");
|
|
118
|
+
return utils.string.appendTimeSuffix(name);
|
|
122
119
|
}
|
|
123
120
|
buildCertName(domain, prefix = "") {
|
|
124
121
|
domain = domain.replaceAll("*", "_").replaceAll(".", "_");
|
|
@@ -156,4 +153,7 @@ export class AbstractTaskPlugin {
|
|
|
156
153
|
getStepIdFromRefInput(ref = ".") {
|
|
157
154
|
return ref.split(".")[1];
|
|
158
155
|
}
|
|
156
|
+
buildDomainGroupOptions(options, domains) {
|
|
157
|
+
return utils.options.buildGroupOptions(options, domains);
|
|
158
|
+
}
|
|
159
159
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@certd/pipeline",
|
|
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
|
"module": "./dist/index.js",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"compile": "tsc --skipLibCheck --watch"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@certd/basic": "^1.38.
|
|
22
|
-
"@certd/plus-core": "^1.38.
|
|
21
|
+
"@certd/basic": "^1.38.4",
|
|
22
|
+
"@certd/plus-core": "^1.38.4",
|
|
23
23
|
"dayjs": "^1.11.7",
|
|
24
24
|
"lodash-es": "^4.17.21",
|
|
25
25
|
"reflect-metadata": "^0.1.13"
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"tslib": "^2.8.1",
|
|
46
46
|
"typescript": "^5.4.2"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "84291482732687cc8162c6505666ba2b29b02918"
|
|
49
49
|
}
|