mirror of
https://github.com/certd/certd.git
synced 2026-10-25 18:13:00 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9f18453d2b | ||
|
|
9eb22d3150 | ||
|
|
7ac9101266 | ||
|
|
113c96b866 | ||
|
|
3f118d9c21 | ||
|
|
646a009832 | ||
|
|
bacb141b3b |
@@ -3,6 +3,13 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.45.4](https://github.com/certd/certd/compare/v1.45.3...v1.45.4) (2026-10-22)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **docker:** 将构建和运行镜像的 Node.js 固定到 22.23.4 安全版本 ([#817](https://github.com/certd/certd/issues/817)) ([113c96b](https://github.com/certd/certd/commit/113c96b866e2ec5c85e37e42150445ed8b0eefbe))
|
||||
* **pipeline:** 修复定时触发器cron归一化截取位置错误导致日期字段被吃掉的问题 ([#813](https://github.com/certd/certd/issues/813)) ([7ac9101](https://github.com/certd/certd/commit/7ac9101266f2821fb13ff68ea6d36969c9485675))
|
||||
|
||||
## [1.45.3](https://github.com/certd/certd/compare/v1.45.2...v1.45.3) (2026-10-19)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
@@ -3,6 +3,12 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.45.3](https://github.com/certd/certd/compare/v1.45.2...v1.45.3) (2026-10-19)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* 修复修改密码时校验表单字段的错误 ([28e4f70](https://github.com/certd/certd/commit/28e4f70e494f7c56202a8ca4708718c836fff702))
|
||||
|
||||
## [1.45.2](https://github.com/certd/certd/compare/v1.45.1...v1.45.2) (2026-10-18)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
+1
-1
@@ -9,5 +9,5 @@
|
||||
}
|
||||
},
|
||||
"npmClient": "pnpm",
|
||||
"version": "1.45.3"
|
||||
"version": "1.45.4"
|
||||
}
|
||||
|
||||
@@ -3,6 +3,10 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.45.4](https://github.com/publishlab/node-acme-client/compare/v1.45.3...v1.45.4) (2026-10-22)
|
||||
|
||||
**Note:** Version bump only for package @certd/acme-client
|
||||
|
||||
## [1.45.3](https://github.com/publishlab/node-acme-client/compare/v1.45.2...v1.45.3) (2026-10-19)
|
||||
|
||||
**Note:** Version bump only for package @certd/acme-client
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"description": "Simple and unopinionated ACME client",
|
||||
"private": false,
|
||||
"author": "nmorsman",
|
||||
"version": "1.45.3",
|
||||
"version": "1.45.4",
|
||||
"type": "module",
|
||||
"module": "./dist/index.js",
|
||||
"main": "./dist/index.js",
|
||||
@@ -18,7 +18,7 @@
|
||||
"types"
|
||||
],
|
||||
"dependencies": {
|
||||
"@certd/basic": "^1.45.3",
|
||||
"@certd/basic": "^1.45.4",
|
||||
"@peculiar/x509": "^1.11.0",
|
||||
"asn1js": "^3.0.5",
|
||||
"axios": "^1.9.0",
|
||||
@@ -77,5 +77,5 @@
|
||||
"bugs": {
|
||||
"url": "https://github.com/publishlab/node-acme-client/issues"
|
||||
},
|
||||
"gitHead": "9f15bb8a2151e2dc948589c99a1c724e4811e2a9"
|
||||
"gitHead": "9b1cf353b968712172622e30633a0311a1662a28"
|
||||
}
|
||||
|
||||
@@ -3,6 +3,10 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.45.4](https://github.com/certd/certd/compare/v1.45.3...v1.45.4) (2026-10-22)
|
||||
|
||||
**Note:** Version bump only for package @certd/basic
|
||||
|
||||
## [1.45.3](https://github.com/certd/certd/compare/v1.45.2...v1.45.3) (2026-10-19)
|
||||
|
||||
**Note:** Version bump only for package @certd/basic
|
||||
|
||||
@@ -1 +1 @@
|
||||
10:19
|
||||
14:09
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@certd/basic",
|
||||
"private": false,
|
||||
"version": "1.45.3",
|
||||
"version": "1.45.4",
|
||||
"type": "module",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.js",
|
||||
@@ -54,5 +54,5 @@
|
||||
"tslib": "^2.8.1",
|
||||
"typescript": "^5.4.2"
|
||||
},
|
||||
"gitHead": "9f15bb8a2151e2dc948589c99a1c724e4811e2a9"
|
||||
"gitHead": "9b1cf353b968712172622e30633a0311a1662a28"
|
||||
}
|
||||
|
||||
@@ -3,6 +3,10 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.45.4](https://github.com/certd/certd/compare/v1.45.3...v1.45.4) (2026-10-22)
|
||||
|
||||
**Note:** Version bump only for package @certd/pipeline
|
||||
|
||||
## [1.45.3](https://github.com/certd/certd/compare/v1.45.2...v1.45.3) (2026-10-19)
|
||||
|
||||
**Note:** Version bump only for package @certd/pipeline
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@certd/pipeline",
|
||||
"private": false,
|
||||
"version": "1.45.3",
|
||||
"version": "1.45.4",
|
||||
"type": "module",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.js",
|
||||
@@ -21,8 +21,8 @@
|
||||
"lint": "eslint --fix --ext .ts src"
|
||||
},
|
||||
"dependencies": {
|
||||
"@certd/basic": "^1.45.3",
|
||||
"@certd/plus-core": "^1.45.3",
|
||||
"@certd/basic": "^1.45.4",
|
||||
"@certd/plus-core": "^1.45.4",
|
||||
"dayjs": "^1.11.7",
|
||||
"lodash-es": "^4.17.21",
|
||||
"reflect-metadata": "^0.2.2"
|
||||
@@ -51,5 +51,5 @@
|
||||
"tslib": "^2.8.1",
|
||||
"typescript": "^5.4.2"
|
||||
},
|
||||
"gitHead": "9f15bb8a2151e2dc948589c99a1c724e4811e2a9"
|
||||
"gitHead": "9b1cf353b968712172622e30633a0311a1662a28"
|
||||
}
|
||||
|
||||
@@ -3,6 +3,10 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.45.4](https://github.com/certd/certd/compare/v1.45.3...v1.45.4) (2026-10-22)
|
||||
|
||||
**Note:** Version bump only for package @certd/lib-huawei
|
||||
|
||||
## [1.45.3](https://github.com/certd/certd/compare/v1.45.2...v1.45.3) (2026-10-19)
|
||||
|
||||
**Note:** Version bump only for package @certd/lib-huawei
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@certd/lib-huawei",
|
||||
"private": false,
|
||||
"version": "1.45.3",
|
||||
"version": "1.45.4",
|
||||
"main": "./dist/bundle.js",
|
||||
"module": "./dist/bundle.js",
|
||||
"types": "./dist/d/index.d.ts",
|
||||
@@ -31,5 +31,5 @@
|
||||
"prettier": "3.3.3",
|
||||
"tslib": "^2.8.1"
|
||||
},
|
||||
"gitHead": "9f15bb8a2151e2dc948589c99a1c724e4811e2a9"
|
||||
"gitHead": "9b1cf353b968712172622e30633a0311a1662a28"
|
||||
}
|
||||
|
||||
@@ -3,6 +3,10 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.45.4](https://github.com/certd/certd/compare/v1.45.3...v1.45.4) (2026-10-22)
|
||||
|
||||
**Note:** Version bump only for package @certd/lib-iframe
|
||||
|
||||
## [1.45.3](https://github.com/certd/certd/compare/v1.45.2...v1.45.3) (2026-10-19)
|
||||
|
||||
**Note:** Version bump only for package @certd/lib-iframe
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@certd/lib-iframe",
|
||||
"private": false,
|
||||
"version": "1.45.3",
|
||||
"version": "1.45.4",
|
||||
"type": "module",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.js",
|
||||
@@ -37,5 +37,5 @@
|
||||
"tslib": "^2.8.1",
|
||||
"typescript": "^5.4.2"
|
||||
},
|
||||
"gitHead": "9f15bb8a2151e2dc948589c99a1c724e4811e2a9"
|
||||
"gitHead": "9b1cf353b968712172622e30633a0311a1662a28"
|
||||
}
|
||||
|
||||
@@ -3,6 +3,10 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.45.4](https://github.com/certd/certd/compare/v1.45.3...v1.45.4) (2026-10-22)
|
||||
|
||||
**Note:** Version bump only for package @certd/jdcloud
|
||||
|
||||
## [1.45.3](https://github.com/certd/certd/compare/v1.45.2...v1.45.3) (2026-10-19)
|
||||
|
||||
**Note:** Version bump only for package @certd/jdcloud
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@certd/jdcloud",
|
||||
"version": "1.45.3",
|
||||
"version": "1.45.4",
|
||||
"description": "jdcloud openApi sdk",
|
||||
"main": "./dist/bundle.js",
|
||||
"module": "./dist/bundle.js",
|
||||
@@ -63,5 +63,5 @@
|
||||
"fetch"
|
||||
]
|
||||
},
|
||||
"gitHead": "9f15bb8a2151e2dc948589c99a1c724e4811e2a9"
|
||||
"gitHead": "9b1cf353b968712172622e30633a0311a1662a28"
|
||||
}
|
||||
|
||||
@@ -3,6 +3,10 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.45.4](https://github.com/certd/certd/compare/v1.45.3...v1.45.4) (2026-10-22)
|
||||
|
||||
**Note:** Version bump only for package @certd/lib-k8s
|
||||
|
||||
## [1.45.3](https://github.com/certd/certd/compare/v1.45.2...v1.45.3) (2026-10-19)
|
||||
|
||||
**Note:** Version bump only for package @certd/lib-k8s
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@certd/lib-k8s",
|
||||
"private": false,
|
||||
"version": "1.45.3",
|
||||
"version": "1.45.4",
|
||||
"type": "module",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.js",
|
||||
@@ -21,7 +21,7 @@
|
||||
"lint": "eslint --fix --ext .ts src"
|
||||
},
|
||||
"dependencies": {
|
||||
"@certd/basic": "^1.45.3",
|
||||
"@certd/basic": "^1.45.4",
|
||||
"@kubernetes/client-node": "0.21.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
@@ -38,5 +38,5 @@
|
||||
"tslib": "^2.8.1",
|
||||
"typescript": "^5.4.2"
|
||||
},
|
||||
"gitHead": "9f15bb8a2151e2dc948589c99a1c724e4811e2a9"
|
||||
"gitHead": "9b1cf353b968712172622e30633a0311a1662a28"
|
||||
}
|
||||
|
||||
@@ -3,6 +3,10 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.45.4](https://github.com/certd/certd/compare/v1.45.3...v1.45.4) (2026-10-22)
|
||||
|
||||
**Note:** Version bump only for package @certd/lib-server
|
||||
|
||||
## [1.45.3](https://github.com/certd/certd/compare/v1.45.2...v1.45.3) (2026-10-19)
|
||||
|
||||
**Note:** Version bump only for package @certd/lib-server
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@certd/lib-server",
|
||||
"version": "1.45.3",
|
||||
"version": "1.45.4",
|
||||
"description": "midway with flyway, sql upgrade way ",
|
||||
"private": false,
|
||||
"type": "module",
|
||||
@@ -29,11 +29,11 @@
|
||||
],
|
||||
"license": "AGPL",
|
||||
"dependencies": {
|
||||
"@certd/acme-client": "^1.45.3",
|
||||
"@certd/basic": "^1.45.3",
|
||||
"@certd/pipeline": "^1.45.3",
|
||||
"@certd/plugin-lib": "^1.45.3",
|
||||
"@certd/plus-core": "^1.45.3",
|
||||
"@certd/acme-client": "^1.45.4",
|
||||
"@certd/basic": "^1.45.4",
|
||||
"@certd/pipeline": "^1.45.4",
|
||||
"@certd/plugin-lib": "^1.45.4",
|
||||
"@certd/plus-core": "^1.45.4",
|
||||
"@midwayjs/cache": "3.14.0",
|
||||
"@midwayjs/core": "3.20.11",
|
||||
"@midwayjs/i18n": "3.20.13",
|
||||
@@ -69,5 +69,5 @@
|
||||
"typeorm": "^0.3.20",
|
||||
"typescript": "^5.4.2"
|
||||
},
|
||||
"gitHead": "9f15bb8a2151e2dc948589c99a1c724e4811e2a9"
|
||||
"gitHead": "9b1cf353b968712172622e30633a0311a1662a28"
|
||||
}
|
||||
|
||||
@@ -3,6 +3,10 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.45.4](https://github.com/certd/certd/compare/v1.45.3...v1.45.4) (2026-10-22)
|
||||
|
||||
**Note:** Version bump only for package @certd/midway-flyway-js
|
||||
|
||||
## [1.45.3](https://github.com/certd/certd/compare/v1.45.2...v1.45.3) (2026-10-19)
|
||||
|
||||
**Note:** Version bump only for package @certd/midway-flyway-js
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@certd/midway-flyway-js",
|
||||
"version": "1.45.3",
|
||||
"version": "1.45.4",
|
||||
"description": "midway with flyway, sql upgrade way ",
|
||||
"private": false,
|
||||
"type": "module",
|
||||
@@ -52,5 +52,5 @@
|
||||
"typeorm": "^0.3.20",
|
||||
"typescript": "^5.4.2"
|
||||
},
|
||||
"gitHead": "9f15bb8a2151e2dc948589c99a1c724e4811e2a9"
|
||||
"gitHead": "9b1cf353b968712172622e30633a0311a1662a28"
|
||||
}
|
||||
|
||||
@@ -3,6 +3,10 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.45.4](https://github.com/certd/certd/compare/v1.45.3...v1.45.4) (2026-10-22)
|
||||
|
||||
**Note:** Version bump only for package @certd/plugin-cert
|
||||
|
||||
## [1.45.3](https://github.com/certd/certd/compare/v1.45.2...v1.45.3) (2026-10-19)
|
||||
|
||||
**Note:** Version bump only for package @certd/plugin-cert
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@certd/plugin-cert",
|
||||
"private": false,
|
||||
"version": "1.45.3",
|
||||
"version": "1.45.4",
|
||||
"type": "module",
|
||||
"main": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
@@ -20,7 +20,7 @@
|
||||
"lint": "eslint --fix --ext .ts src"
|
||||
},
|
||||
"dependencies": {
|
||||
"@certd/plugin-lib": "^1.45.3"
|
||||
"@certd/plugin-lib": "^1.45.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/chai": "^4.3.12",
|
||||
@@ -38,5 +38,5 @@
|
||||
"tslib": "^2.8.1",
|
||||
"typescript": "^5.4.2"
|
||||
},
|
||||
"gitHead": "9f15bb8a2151e2dc948589c99a1c724e4811e2a9"
|
||||
"gitHead": "9b1cf353b968712172622e30633a0311a1662a28"
|
||||
}
|
||||
|
||||
@@ -3,6 +3,10 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.45.4](https://github.com/certd/certd/compare/v1.45.3...v1.45.4) (2026-10-22)
|
||||
|
||||
**Note:** Version bump only for package @certd/plugin-lib
|
||||
|
||||
## [1.45.3](https://github.com/certd/certd/compare/v1.45.2...v1.45.3) (2026-10-19)
|
||||
|
||||
**Note:** Version bump only for package @certd/plugin-lib
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@certd/plugin-lib",
|
||||
"private": false,
|
||||
"version": "1.45.3",
|
||||
"version": "1.45.4",
|
||||
"type": "module",
|
||||
"main": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
@@ -17,9 +17,9 @@
|
||||
"lint": "eslint --fix --ext .ts src"
|
||||
},
|
||||
"dependencies": {
|
||||
"@certd/acme-client": "^1.45.3",
|
||||
"@certd/basic": "^1.45.3",
|
||||
"@certd/pipeline": "^1.45.3",
|
||||
"@certd/acme-client": "^1.45.4",
|
||||
"@certd/basic": "^1.45.4",
|
||||
"@certd/pipeline": "^1.45.4",
|
||||
"dayjs": "^1.11.7",
|
||||
"jszip": "^3.10.1",
|
||||
"lodash-es": "^4.17.21",
|
||||
@@ -45,5 +45,5 @@
|
||||
"tslib": "^2.8.1",
|
||||
"typescript": "^5.4.2"
|
||||
},
|
||||
"gitHead": "9f15bb8a2151e2dc948589c99a1c724e4811e2a9"
|
||||
"gitHead": "9b1cf353b968712172622e30633a0311a1662a28"
|
||||
}
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
ARG base_type=alpine
|
||||
|
||||
# 根据 base_type 参数选择基础镜像系列
|
||||
FROM --platform=linux/amd64 node:22-alpine AS base-amd64-alpine
|
||||
FROM --platform=linux/arm64 node:22-alpine AS base-arm64-alpine
|
||||
FROM --platform=linux/arm/v7 node:22-alpine AS base-arm-v7-alpine
|
||||
FROM --platform=linux/amd64 node:22.23.4-alpine AS base-amd64-alpine
|
||||
FROM --platform=linux/arm64 node:22.23.4-alpine AS base-arm64-alpine
|
||||
FROM --platform=linux/arm/v7 node:22.23.4-alpine AS base-arm-v7-alpine
|
||||
|
||||
FROM --platform=linux/amd64 node:22-trixie-slim AS base-amd64-slim
|
||||
FROM --platform=linux/arm64 node:22-trixie-slim AS base-arm64-slim
|
||||
FROM --platform=linux/arm/v7 node:22-alpine AS base-arm-v7-slim
|
||||
FROM --platform=linux/amd64 node:22.23.4-trixie-slim AS base-amd64-slim
|
||||
FROM --platform=linux/arm64 node:22.23.4-trixie-slim AS base-arm64-slim
|
||||
FROM --platform=linux/arm/v7 node:22.23.4-alpine AS base-arm-v7-slim
|
||||
|
||||
FROM base-${TARGETARCH}${TARGETVARIANT:+-}${TARGETVARIANT}-${base_type} AS builder
|
||||
|
||||
|
||||
@@ -3,6 +3,10 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.45.4](https://github.com/certd/certd/compare/v1.45.3...v1.45.4) (2026-10-22)
|
||||
|
||||
**Note:** Version bump only for package @certd/ui-client
|
||||
|
||||
## [1.45.3](https://github.com/certd/certd/compare/v1.45.2...v1.45.3) (2026-10-19)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@certd/ui-client",
|
||||
"version": "1.45.3",
|
||||
"version": "1.45.4",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "vite --open",
|
||||
@@ -104,8 +104,8 @@
|
||||
"zod-defaults": "^0.1.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@certd/lib-iframe": "^1.45.3",
|
||||
"@certd/pipeline": "^1.45.3",
|
||||
"@certd/lib-iframe": "^1.45.4",
|
||||
"@certd/pipeline": "^1.45.4",
|
||||
"@rollup/plugin-commonjs": "^25.0.7",
|
||||
"@rollup/plugin-node-resolve": "^15.2.3",
|
||||
"@types/chai": "^4.3.12",
|
||||
|
||||
@@ -3,6 +3,12 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.45.4](https://github.com/certd/certd/compare/v1.45.3...v1.45.4) (2026-10-22)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **pipeline:** 修复定时触发器cron归一化截取位置错误导致日期字段被吃掉的问题 ([#813](https://github.com/certd/certd/issues/813)) ([7ac9101](https://github.com/certd/certd/commit/7ac9101266f2821fb13ff68ea6d36969c9485675))
|
||||
|
||||
## [1.45.3](https://github.com/certd/certd/compare/v1.45.2...v1.45.3) (2026-10-19)
|
||||
|
||||
**Note:** Version bump only for package @certd/ui-server
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@certd/ui-server",
|
||||
"version": "1.45.3",
|
||||
"version": "1.45.4",
|
||||
"description": "fast-server base midway",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
@@ -43,20 +43,20 @@
|
||||
"lint1": "eslint --fix --ext .ts src"
|
||||
},
|
||||
"dependencies": {
|
||||
"@certd/acme-client": "^1.45.3",
|
||||
"@certd/basic": "^1.45.3",
|
||||
"@certd/commercial-core": "^1.45.3",
|
||||
"@certd/acme-client": "^1.45.4",
|
||||
"@certd/basic": "^1.45.4",
|
||||
"@certd/commercial-core": "^1.45.4",
|
||||
"@certd/cv4pve-api-javascript": "^8.4.2",
|
||||
"@certd/jdcloud": "^1.45.3",
|
||||
"@certd/lib-huawei": "^1.45.3",
|
||||
"@certd/lib-k8s": "^1.45.3",
|
||||
"@certd/lib-server": "^1.45.3",
|
||||
"@certd/midway-flyway-js": "^1.45.3",
|
||||
"@certd/pipeline": "^1.45.3",
|
||||
"@certd/plugin-cert": "^1.45.3",
|
||||
"@certd/plugin-lib": "^1.45.3",
|
||||
"@certd/plugin-plus": "^1.45.3",
|
||||
"@certd/plus-core": "^1.45.3",
|
||||
"@certd/jdcloud": "^1.45.4",
|
||||
"@certd/lib-huawei": "^1.45.4",
|
||||
"@certd/lib-k8s": "^1.45.4",
|
||||
"@certd/lib-server": "^1.45.4",
|
||||
"@certd/midway-flyway-js": "^1.45.4",
|
||||
"@certd/pipeline": "^1.45.4",
|
||||
"@certd/plugin-cert": "^1.45.4",
|
||||
"@certd/plugin-lib": "^1.45.4",
|
||||
"@certd/plugin-plus": "^1.45.4",
|
||||
"@certd/plus-core": "^1.45.4",
|
||||
"@koa/cors": "^5.0.0",
|
||||
"@midwayjs/bootstrap": "3.20.11",
|
||||
"@midwayjs/cache": "3.14.0",
|
||||
|
||||
@@ -83,4 +83,50 @@ describe("PipelineService", () => {
|
||||
};
|
||||
assert.doesNotThrow(() => (service as any).checkTriggers(pipeline));
|
||||
});
|
||||
|
||||
describe("registerCron normalizes every-minute cron like the client editor does", () => {
|
||||
function createService() {
|
||||
const service = new PipelineService();
|
||||
const registered: any[] = [];
|
||||
service.cron = {
|
||||
remove() {},
|
||||
register(req: any) {
|
||||
registered.push(req);
|
||||
},
|
||||
getTaskSize() {
|
||||
return registered.length;
|
||||
},
|
||||
} as any;
|
||||
return { service, registered };
|
||||
}
|
||||
|
||||
it('normalizes "* * 15 * *" to "0 0 15 * *" without eating the first digit of the day field', () => {
|
||||
//与客户端 cron-editor 的归一化结果保持一致:分钟与小时均为 * 时,置为 0 0,其余字段原样保留
|
||||
const { service, registered } = createService();
|
||||
service.registerCron(1, 1, { id: "t1", type: "timer", props: { cron: "* * 15 * *" } });
|
||||
assert.equal(registered.length, 1);
|
||||
assert.equal(registered[0].cron, "0 0 15 * *");
|
||||
});
|
||||
|
||||
it('keeps registration for "* * 1 * *" (single-digit day must not be dropped)', () => {
|
||||
const { service, registered } = createService();
|
||||
service.registerCron(1, 1, { id: "t1", type: "timer", props: { cron: "* * 1 * *" } });
|
||||
assert.equal(registered.length, 1);
|
||||
assert.equal(registered[0].cron, "0 0 1 * *");
|
||||
});
|
||||
|
||||
it('normalizes "* * * * *" to "0 0 * * *"', () => {
|
||||
const { service, registered } = createService();
|
||||
service.registerCron(1, 1, { id: "t1", type: "timer", props: { cron: "* * * * *" } });
|
||||
assert.equal(registered.length, 1);
|
||||
assert.equal(registered[0].cron, "0 0 * * *");
|
||||
});
|
||||
|
||||
it('keeps the existing correct normalization for "* 12 * * *"', () => {
|
||||
const { service, registered } = createService();
|
||||
service.registerCron(1, 1, { id: "t1", type: "timer", props: { cron: "* 12 * * *" } });
|
||||
assert.equal(registered.length, 1);
|
||||
assert.equal(registered[0].cron, "0 12 * * *");
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -590,7 +590,8 @@ export class PipelineService extends BaseService<PipelineEntity> {
|
||||
}
|
||||
cron = cron.trim();
|
||||
if (cron.startsWith("* * ")) {
|
||||
cron = "0 0 " + cron.substring(5);
|
||||
// "* * " 为4个字符,需要跳过整个前缀,否则会吃掉第3个字段(日)的首字符
|
||||
cron = "0 0 " + cron.substring(4);
|
||||
}
|
||||
if (cron.startsWith("* ")) {
|
||||
cron = "0 " + cron.substring(2);
|
||||
|
||||
@@ -1 +1 @@
|
||||
21:20
|
||||
10:35
|
||||
|
||||
@@ -1 +1 @@
|
||||
21:42
|
||||
10:38
|
||||
|
||||
Reference in New Issue
Block a user