@eggjs/tegg-schedule-plugin 2.2.0 → 2.2.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 +11 -0
- package/lib/SchedulePrototypeHook.js +2 -3
- package/package.json +2 -2
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
|
+
## [2.2.1](https://github.com/eggjs/tegg/compare/@eggjs/tegg-schedule-plugin@2.2.0...@eggjs/tegg-schedule-plugin@2.2.1) (2022-09-04)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* fix schedule import ([1fb5481](https://github.com/eggjs/tegg/commit/1fb54816fb3240c641824c2bc2b464c35652b655))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# 2.2.0 (2022-09-04)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SchedulePrototypeHook = void 0;
|
|
4
|
-
const ScheduleMetaBuilder_1 = require("@eggjs/tegg-schedule-decorator/src/builder/ScheduleMetaBuilder");
|
|
5
4
|
const tegg_schedule_decorator_1 = require("@eggjs/tegg-schedule-decorator");
|
|
6
5
|
class SchedulePrototypeHook {
|
|
7
6
|
async postCreate(ctx) {
|
|
8
7
|
if (!tegg_schedule_decorator_1.ScheduleInfoUtil.isSchedule(ctx.clazz)) {
|
|
9
8
|
return;
|
|
10
9
|
}
|
|
11
|
-
const builder = new
|
|
10
|
+
const builder = new tegg_schedule_decorator_1.ScheduleMetaBuilder(ctx.clazz);
|
|
12
11
|
const metadata = builder.build();
|
|
13
12
|
if (metadata) {
|
|
14
13
|
tegg_schedule_decorator_1.ScheduleMetadataUtil.setScheduleMetadata(ctx.clazz, metadata);
|
|
@@ -16,4 +15,4 @@ class SchedulePrototypeHook {
|
|
|
16
15
|
}
|
|
17
16
|
}
|
|
18
17
|
exports.SchedulePrototypeHook = SchedulePrototypeHook;
|
|
19
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU2NoZWR1bGVQcm90b3R5cGVIb29rLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiU2NoZWR1bGVQcm90b3R5cGVIb29rLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUVBLDRFQUE2RztBQUU3RyxNQUFhLHFCQUFxQjtJQUNoQyxLQUFLLENBQUMsVUFBVSxDQUFDLEdBQWlDO1FBQ2hELElBQUksQ0FBQywwQ0FBZ0IsQ0FBQyxVQUFVLENBQUMsR0FBRyxDQUFDLEtBQUssQ0FBQyxFQUFFO1lBQzNDLE9BQU87U0FDUjtRQUNELE1BQU0sT0FBTyxHQUFHLElBQUksNkNBQW1CLENBQUMsR0FBRyxDQUFDLEtBQUssQ0FBQyxDQUFDO1FBQ25ELE1BQU0sUUFBUSxHQUFHLE9BQU8sQ0FBQyxLQUFLLEVBQUUsQ0FBQztRQUNqQyxJQUFJLFFBQVEsRUFBRTtZQUNaLDhDQUFvQixDQUFDLG1CQUFtQixDQUFDLEdBQUcsQ0FBQyxLQUFLLEVBQUUsUUFBUSxDQUFDLENBQUM7U0FDL0Q7SUFDSCxDQUFDO0NBQ0Y7QUFYRCxzREFXQyJ9
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"schedule"
|
|
8
8
|
]
|
|
9
9
|
},
|
|
10
|
-
"version": "2.2.
|
|
10
|
+
"version": "2.2.1",
|
|
11
11
|
"description": "schedule decorator for egg",
|
|
12
12
|
"keywords": [
|
|
13
13
|
"egg",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "f3ec20a3250f767c189b7c31be7b2374926daf6f"
|
|
71
71
|
}
|