@jayfong/x-server 1.31.1 → 1.31.2
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 +2 -0
- package/lib/_cjs/core/define_cron.js +1 -1
- package/lib/core/define_cron.js +1 -1
- package/lib/core/types.d.ts +4 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.31.2](https://github.com/jfWorks/x-server/compare/v1.31.1...v1.31.2) (2022-05-30)
|
|
6
|
+
|
|
5
7
|
### [1.31.1](https://github.com/jfWorks/x-server/compare/v1.31.0...v1.31.1) (2022-05-30)
|
|
6
8
|
|
|
7
9
|
## [1.31.0](https://github.com/jfWorks/x-server/compare/v1.30.2...v1.31.0) (2022-05-30)
|
package/lib/core/define_cron.js
CHANGED
package/lib/core/types.d.ts
CHANGED
|
@@ -139,12 +139,6 @@ export declare namespace XTask {
|
|
|
139
139
|
* 任务名称
|
|
140
140
|
*/
|
|
141
141
|
name: string;
|
|
142
|
-
/**
|
|
143
|
-
* 是否作为定时任务
|
|
144
|
-
*
|
|
145
|
-
* @see https://crontab.guru/
|
|
146
|
-
*/
|
|
147
|
-
cron?: string;
|
|
148
142
|
/**
|
|
149
143
|
* 处理器
|
|
150
144
|
*/
|
|
@@ -162,6 +156,10 @@ export declare namespace XCron {
|
|
|
162
156
|
* @see https://crontab.cronhub.io/
|
|
163
157
|
*/
|
|
164
158
|
expression: string;
|
|
159
|
+
/**
|
|
160
|
+
* 是否初始化后执行一次
|
|
161
|
+
*/
|
|
162
|
+
runOnInit?: boolean;
|
|
165
163
|
/**
|
|
166
164
|
* 处理器
|
|
167
165
|
*/
|