@certd/pipeline 1.35.5 → 1.36.1

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,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.36.1](https://github.com/certd/certd/compare/v1.36.0...v1.36.1) (2025-07-02)
7
+
8
+ **Note:** Version bump only for package @certd/pipeline
9
+
10
+ # [1.36.0](https://github.com/certd/certd/compare/v1.35.5...v1.36.0) (2025-07-01)
11
+
12
+ ### Performance Improvements
13
+
14
+ * 阿里云waf cname站点选择支持翻页及域名查询 ([4cf9858](https://github.com/certd/certd/commit/4cf98584dacc5999752732f136246647a2f1f07d))
15
+ * 支持选择运行策略设置 ([60f055f](https://github.com/certd/certd/commit/60f055f293ce237c21cd9050333dad9609eceac1))
16
+
6
17
  ## [1.35.5](https://github.com/certd/certd/compare/v1.35.4...v1.35.5) (2025-06-20)
7
18
 
8
19
  ### Performance Improvements
@@ -1,14 +1,21 @@
1
1
  import { IContext } from "../core/index.js";
2
2
  export type UserContext = IContext;
3
3
  export type PipelineContext = IContext;
4
- export type PageReq = {
5
- offset?: number;
6
- limit?: number;
4
+ export type PageSearch = {
5
+ pageNo?: number;
6
+ pageSize?: number;
7
7
  searchKey?: string;
8
8
  };
9
9
  export type PageRes = {
10
- offset?: number;
11
- limit?: number;
10
+ pageNo?: number;
11
+ pageSize?: number;
12
12
  total?: string;
13
13
  list: any[];
14
14
  };
15
+ export declare class Pager {
16
+ pageNo: number;
17
+ pageSize: number;
18
+ constructor(req: PageSearch);
19
+ getOffset(): number;
20
+ setOffset(offset: number): void;
21
+ }
@@ -1,2 +1,15 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY29udGV4dC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
1
+ export class Pager {
2
+ pageNo;
3
+ pageSize;
4
+ constructor(req) {
5
+ this.pageNo = req.pageNo ?? 1;
6
+ this.pageSize = req.pageSize || 50;
7
+ }
8
+ getOffset() {
9
+ return (this.pageNo - 1) * (this.pageSize ?? 50);
10
+ }
11
+ setOffset(offset) {
12
+ this.pageNo = Math.ceil(offset / (this.pageSize ?? 50)) + 1;
13
+ }
14
+ }
15
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY29udGV4dC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFxQkEsTUFBTSxPQUFPLEtBQUs7SUFDaEIsTUFBTSxDQUFTO0lBQ2YsUUFBUSxDQUFTO0lBQ2pCLFlBQVksR0FBZTtRQUN6QixJQUFJLENBQUMsTUFBTSxHQUFHLEdBQUcsQ0FBQyxNQUFNLElBQUksQ0FBQyxDQUFDO1FBQzlCLElBQUksQ0FBQyxRQUFRLEdBQUcsR0FBRyxDQUFDLFFBQVEsSUFBSSxFQUFFLENBQUM7SUFDckMsQ0FBQztJQUVELFNBQVM7UUFDUCxPQUFPLENBQUMsSUFBSSxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsR0FBRyxDQUFDLElBQUksQ0FBQyxRQUFRLElBQUksRUFBRSxDQUFDLENBQUM7SUFDbkQsQ0FBQztJQUVELFNBQVMsQ0FBQyxNQUFjO1FBQ3RCLElBQUksQ0FBQyxNQUFNLEdBQUcsSUFBSSxDQUFDLElBQUksQ0FBQyxNQUFNLEdBQUcsQ0FBQyxJQUFJLENBQUMsUUFBUSxJQUFJLEVBQUUsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxDQUFDO0lBQzlELENBQUM7Q0FDRiJ9
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@certd/pipeline",
3
3
  "private": false,
4
- "version": "1.35.5",
4
+ "version": "1.36.1",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
@@ -17,8 +17,8 @@
17
17
  "pub": "npm publish"
18
18
  },
19
19
  "dependencies": {
20
- "@certd/basic": "^1.35.5",
21
- "@certd/plus-core": "^1.35.5",
20
+ "@certd/basic": "^1.36.1",
21
+ "@certd/plus-core": "^1.36.1",
22
22
  "dayjs": "^1.11.7",
23
23
  "lodash-es": "^4.17.21",
24
24
  "reflect-metadata": "^0.1.13"
@@ -44,5 +44,5 @@
44
44
  "tslib": "^2.8.1",
45
45
  "typescript": "^5.4.2"
46
46
  },
47
- "gitHead": "7feece597a0d323c929b315f99750f1832b7a063"
47
+ "gitHead": "8671887abcdfb93a7ecb709f223bd6add6f03c67"
48
48
  }