@eggjs/tegg-schedule-decorator 1.5.0 → 1.6.0
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.
|
@@ -11,8 +11,8 @@ export interface CronParams {
|
|
|
11
11
|
export interface IntervalParams {
|
|
12
12
|
interval: string | number;
|
|
13
13
|
}
|
|
14
|
-
export
|
|
15
|
-
export
|
|
14
|
+
export type CronScheduleParams = ScheduleParams<CronParams>;
|
|
15
|
+
export type IntervalScheduleParams = ScheduleParams<IntervalParams>;
|
|
16
16
|
export interface ScheduleOptions {
|
|
17
17
|
immediate?: boolean;
|
|
18
18
|
disable?: boolean;
|
|
@@ -2,7 +2,7 @@ export declare enum ScheduleType {
|
|
|
2
2
|
WORKER = "worker",
|
|
3
3
|
ALL = "all"
|
|
4
4
|
}
|
|
5
|
-
export
|
|
5
|
+
export type ScheduleTypeLike = ScheduleType | string;
|
|
6
6
|
export declare class ScheduleMetadata<T> {
|
|
7
7
|
type: ScheduleTypeLike;
|
|
8
8
|
scheduleData: T;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eggjs/tegg-schedule-decorator",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "tegg schedule decorator",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"node": ">=14.0.0"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@eggjs/core-decorator": "^1.
|
|
40
|
-
"@eggjs/tegg-common-util": "^1.
|
|
41
|
-
"@eggjs/tegg-metadata": "^1.
|
|
39
|
+
"@eggjs/core-decorator": "^1.4.0",
|
|
40
|
+
"@eggjs/tegg-common-util": "^1.2.0",
|
|
41
|
+
"@eggjs/tegg-metadata": "^1.4.0",
|
|
42
42
|
"cron-parser": "^2.18.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "6bd085c1c265921d31110811f4d707875dc7acea"
|
|
51
51
|
}
|