@zenweb/schedule 2.3.6 → 3.0.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.
- package/README.md +9 -25
- package/dist/index.d.ts +5 -10
- package/dist/index.js +31 -38
- package/dist/register.d.ts +31 -15
- package/dist/register.js +89 -60
- package/dist/types.d.ts +14 -15
- package/dist/types.js +2 -3
- package/package.json +45 -44
- package/dist/index.js.map +0 -1
- package/dist/register.js.map +0 -1
- package/dist/types.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,25 +1,9 @@
|
|
|
1
|
-
# ZenWeb Schedule module
|
|
2
|
-
|
|
3
|
-
[ZenWeb](https://www.npmjs.com/package/zenweb)
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
app/index.js
|
|
11
|
-
```js
|
|
12
|
-
app.setup('@zenweb/schedule');
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
app/schedule/echo.js
|
|
16
|
-
```js
|
|
17
|
-
app.schedule.job('*/1 * * * * *', ctx => {
|
|
18
|
-
console.log('task echo');
|
|
19
|
-
});
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
## Develop
|
|
23
|
-
```
|
|
24
|
-
$ yarn global add rimraf typescript
|
|
25
|
-
```
|
|
1
|
+
# ZenWeb Schedule module
|
|
2
|
+
|
|
3
|
+
[ZenWeb](https://www.npmjs.com/package/zenweb)
|
|
4
|
+
|
|
5
|
+
定时任务
|
|
6
|
+
|
|
7
|
+
## 安装
|
|
8
|
+
|
|
9
|
+
安装定时任务模块依赖于 @zenweb/inject @zenweb/router 模块
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import { SetupFunction } from '@zenweb/core';
|
|
2
|
-
import {
|
|
3
|
-
import { ScheduleOption } from './types';
|
|
4
|
-
export
|
|
5
|
-
export default function setup(option?: ScheduleOption): SetupFunction;
|
|
6
|
-
declare module '@zenweb/core' {
|
|
7
|
-
interface Core {
|
|
8
|
-
schedule: ScheduleRegister;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
1
|
+
import { SetupFunction } from '@zenweb/core';
|
|
2
|
+
import { schedule } from './register';
|
|
3
|
+
import { ScheduleOption } from './types';
|
|
4
|
+
export { ScheduleOption, schedule };
|
|
5
|
+
export default function setup(option?: ScheduleOption): SetupFunction;
|
package/dist/index.js
CHANGED
|
@@ -1,38 +1,31 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
setup.debug('load: %s %o files', d, count);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
exports.default = setup;
|
|
38
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.schedule = void 0;
|
|
4
|
+
const globby = require("globby");
|
|
5
|
+
const path = require("path");
|
|
6
|
+
const register_1 = require("./register");
|
|
7
|
+
Object.defineProperty(exports, "schedule", { enumerable: true, get: function () { return register_1.schedule; } });
|
|
8
|
+
function setup(option) {
|
|
9
|
+
option = Object.assign({
|
|
10
|
+
paths: [path.join(process.cwd(), 'app', 'schedule')],
|
|
11
|
+
}, option);
|
|
12
|
+
return async function schedule(setup) {
|
|
13
|
+
setup.checkCoreProperty('injector', '@zenweb/inject');
|
|
14
|
+
setup.checkCoreProperty('router', '@zenweb/router');
|
|
15
|
+
setup.debug('option: %o', option);
|
|
16
|
+
setup.defineCoreProperty('schedule', { value: true });
|
|
17
|
+
if (option.paths && option.paths.length) {
|
|
18
|
+
for (const d of option.paths) {
|
|
19
|
+
for (const file of await globby(option.patterns || '**/*.{ts,js}', { cwd: d, absolute: true })) {
|
|
20
|
+
const mod = require(file.slice(0, -3));
|
|
21
|
+
for (const i of Object.values(mod)) {
|
|
22
|
+
if (typeof i === 'function') {
|
|
23
|
+
(0, register_1.registerSchedule)(setup.core, i);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
exports.default = setup;
|
package/dist/register.d.ts
CHANGED
|
@@ -1,15 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
import '@zenweb/router';
|
|
3
|
-
import { Middleware } from 'koa';
|
|
4
|
-
import { Core } from '@zenweb/core';
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import '@zenweb/inject';
|
|
2
|
+
import '@zenweb/router';
|
|
3
|
+
import { Middleware } from 'koa';
|
|
4
|
+
import { Core } from '@zenweb/core';
|
|
5
|
+
import { RecurrenceRule, RecurrenceSpecDateRange, RecurrenceSpecObjLit } from 'node-schedule';
|
|
6
|
+
interface ScheduleMethodOption {
|
|
7
|
+
rule: RecurrenceRule | RecurrenceSpecDateRange | RecurrenceSpecObjLit | Date | string | number;
|
|
8
|
+
middleware?: Middleware | Middleware[];
|
|
9
|
+
}
|
|
10
|
+
interface JobItem extends ScheduleMethodOption {
|
|
11
|
+
path: string;
|
|
12
|
+
handle: (...args: any[]) => Promise<void> | void;
|
|
13
|
+
params: any[];
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* 取得对象中的任务列表
|
|
17
|
+
*/
|
|
18
|
+
export declare function getJobs(target: any): JobItem[];
|
|
19
|
+
/**
|
|
20
|
+
* 在对象中添加任务配置
|
|
21
|
+
*/
|
|
22
|
+
export declare function addJob(target: any, item: JobItem): void;
|
|
23
|
+
/**
|
|
24
|
+
* 定时任务设定
|
|
25
|
+
*/
|
|
26
|
+
export declare function schedule(opt: ScheduleMethodOption): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
27
|
+
/**
|
|
28
|
+
* 添加定时任务到路由并启动定时器
|
|
29
|
+
*/
|
|
30
|
+
export declare function registerSchedule(core: Core, target: any): void;
|
|
31
|
+
export {};
|
package/dist/register.js
CHANGED
|
@@ -1,60 +1,89 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
require("@zenweb/
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.registerSchedule = exports.schedule = exports.addJob = exports.getJobs = void 0;
|
|
4
|
+
require("@zenweb/inject");
|
|
5
|
+
require("@zenweb/router");
|
|
6
|
+
const http_1 = require("http");
|
|
7
|
+
const node_schedule_1 = require("node-schedule");
|
|
8
|
+
const crypto_1 = require("crypto");
|
|
9
|
+
const SAFE_IP = '127.0.0.1';
|
|
10
|
+
const JOBS = Symbol('Schedule#jobs');
|
|
11
|
+
/**
|
|
12
|
+
* 安全检查,防止外部调用
|
|
13
|
+
*/
|
|
14
|
+
function safeCheck(ctx, next) {
|
|
15
|
+
if (!ctx.req.socket.remoteAddress || !ctx.req.socket.remoteAddress.endsWith(SAFE_IP)) {
|
|
16
|
+
ctx.throw(403);
|
|
17
|
+
}
|
|
18
|
+
return next();
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* 取得对象中的任务列表
|
|
22
|
+
*/
|
|
23
|
+
function getJobs(target) {
|
|
24
|
+
return Reflect.getMetadata(JOBS, target) || [];
|
|
25
|
+
}
|
|
26
|
+
exports.getJobs = getJobs;
|
|
27
|
+
/**
|
|
28
|
+
* 在对象中添加任务配置
|
|
29
|
+
*/
|
|
30
|
+
function addJob(target, item) {
|
|
31
|
+
const list = [...getJobs(target), item];
|
|
32
|
+
Reflect.defineMetadata(JOBS, list, target);
|
|
33
|
+
}
|
|
34
|
+
exports.addJob = addJob;
|
|
35
|
+
/**
|
|
36
|
+
* 定时任务设定
|
|
37
|
+
*/
|
|
38
|
+
function schedule(opt) {
|
|
39
|
+
return function (target, propertyKey, descriptor) {
|
|
40
|
+
const path = `/__schedule/${(0, crypto_1.randomUUID)()}/${target.constructor.name}.${propertyKey}`;
|
|
41
|
+
const params = Reflect.getOwnMetadata('design:paramtypes', target, propertyKey) || [];
|
|
42
|
+
addJob(target, Object.assign({
|
|
43
|
+
path,
|
|
44
|
+
handle: descriptor.value,
|
|
45
|
+
params,
|
|
46
|
+
}, opt));
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
exports.schedule = schedule;
|
|
50
|
+
/**
|
|
51
|
+
* 添加定时任务到路由并启动定时器
|
|
52
|
+
*/
|
|
53
|
+
function registerSchedule(core, target) {
|
|
54
|
+
const jobs = getJobs(target.prototype);
|
|
55
|
+
if (jobs.length > 0) {
|
|
56
|
+
for (const item of jobs) {
|
|
57
|
+
// 添加到路由中
|
|
58
|
+
core.router.post(item.path, safeCheck, ...(item.middleware ?
|
|
59
|
+
(Array.isArray(item.middleware) ? item.middleware : [item.middleware]) : []), async (ctx) => {
|
|
60
|
+
const cls = await ctx.injector.getInstance(target);
|
|
61
|
+
ctx.injector.apply(cls, item);
|
|
62
|
+
});
|
|
63
|
+
// 启用定时器
|
|
64
|
+
(0, node_schedule_1.scheduleJob)(item.rule, function callback() {
|
|
65
|
+
const request = Object.assign({
|
|
66
|
+
headers: {
|
|
67
|
+
host: '127.0.0.1',
|
|
68
|
+
},
|
|
69
|
+
query: {},
|
|
70
|
+
querystring: '',
|
|
71
|
+
host: '127.0.0.1',
|
|
72
|
+
hostname: '127.0.0.1',
|
|
73
|
+
protocol: 'http',
|
|
74
|
+
secure: 'false',
|
|
75
|
+
method: 'POST',
|
|
76
|
+
url: item.path,
|
|
77
|
+
path: item.path,
|
|
78
|
+
socket: {
|
|
79
|
+
remoteAddress: SAFE_IP,
|
|
80
|
+
remotePort: 7001,
|
|
81
|
+
},
|
|
82
|
+
});
|
|
83
|
+
const response = new http_1.ServerResponse(request);
|
|
84
|
+
core.koa.callback()(request, response);
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
exports.registerSchedule = registerSchedule;
|
package/dist/types.d.ts
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { ServerResponse, IncomingMessage } from 'http';
|
|
3
|
-
export declare type RequestCallback = (request: IncomingMessage, response: ServerResponse) => void;
|
|
4
|
-
export declare type JobCallback = (request: IncomingMessage, response: ServerResponse, callback: RequestCallback) => void;
|
|
5
|
-
export interface ScheduleOption {
|
|
6
|
-
/**
|
|
7
|
-
* 加载 schedule 文件目录,默认: ./app/schedule
|
|
8
|
-
*/
|
|
9
|
-
paths?: string[];
|
|
10
|
-
/**
|
|
11
|
-
* 文件匹配规则,默认: ** /*.{ts,js}
|
|
12
|
-
*/
|
|
13
|
-
patterns?: string;
|
|
14
|
-
|
|
15
|
-
}
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { ServerResponse, IncomingMessage } from 'http';
|
|
3
|
+
export declare type RequestCallback = (request: IncomingMessage, response: ServerResponse) => void;
|
|
4
|
+
export declare type JobCallback = (request: IncomingMessage, response: ServerResponse, callback: RequestCallback) => void;
|
|
5
|
+
export interface ScheduleOption {
|
|
6
|
+
/**
|
|
7
|
+
* 加载 schedule 文件目录,默认: ./app/schedule
|
|
8
|
+
*/
|
|
9
|
+
paths?: string[];
|
|
10
|
+
/**
|
|
11
|
+
* 文件匹配规则,默认: ** /*.{ts,js}
|
|
12
|
+
*/
|
|
13
|
+
patterns?: string;
|
|
14
|
+
}
|
package/dist/types.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
//# sourceMappingURL=types.js.map
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/package.json
CHANGED
|
@@ -1,44 +1,45 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@zenweb/schedule",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Zenweb Schedule module",
|
|
5
|
-
"exports": "./dist/index.js",
|
|
6
|
-
"types": "./dist/index.d.ts",
|
|
7
|
-
"files": [
|
|
8
|
-
"dist"
|
|
9
|
-
],
|
|
10
|
-
"scripts": {
|
|
11
|
-
"prepublishOnly": "
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"@zenweb/
|
|
37
|
-
"zenweb": "^
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@zenweb/schedule",
|
|
3
|
+
"version": "3.0.0",
|
|
4
|
+
"description": "Zenweb Schedule module",
|
|
5
|
+
"exports": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"scripts": {
|
|
11
|
+
"prepublishOnly": "rm -fr dist && tsc",
|
|
12
|
+
"dev": "cd example && DEBUG=* ts-node app"
|
|
13
|
+
},
|
|
14
|
+
"author": {
|
|
15
|
+
"name": "YeFei",
|
|
16
|
+
"email": "316606233@qq.com"
|
|
17
|
+
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"web",
|
|
20
|
+
"app",
|
|
21
|
+
"http",
|
|
22
|
+
"framework",
|
|
23
|
+
"schedule",
|
|
24
|
+
"cron",
|
|
25
|
+
"koa"
|
|
26
|
+
],
|
|
27
|
+
"license": "MIT",
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "git+https://github.com/yefei/zenweb-schedule.git"
|
|
31
|
+
},
|
|
32
|
+
"bugs": {
|
|
33
|
+
"url": "https://github.com/yefei/zenweb-schedule/issues"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@zenweb/core": "^2.4.1",
|
|
37
|
+
"@zenweb/inject": "^3.5.0",
|
|
38
|
+
"@zenweb/router": "^3.0.0"
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@types/node-schedule": "^1.3.2",
|
|
42
|
+
"globby": "11.0.4",
|
|
43
|
+
"node-schedule": "^2.0.0"
|
|
44
|
+
}
|
|
45
|
+
}
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iCAAiC;AAEjC,6BAA8B;AAC9B,yCAA8C;AAE9C,0CAAwB;AAExB,SAAwB,KAAK,CAAC,MAAuB;IACnD,OAAO,KAAK,UAAU,QAAQ,CAAC,KAAK;QAClC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;YACrB,KAAK,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC;SACrD,EAAE,MAAM,CAAC,CAAC;QACX,KAAK,CAAC,KAAK,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;QAClC,MAAM,QAAQ,GAAG,IAAI,2BAAgB,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAC1D,KAAK,CAAC,kBAAkB,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;QAC1D,IAAI,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE;YACvC,KAAK,MAAM,CAAC,IAAI,MAAM,CAAC,KAAK,EAAE;gBAC5B,IAAI,KAAK,GAAG,CAAC,CAAC;gBACd,KAAK,MAAM,CAAC,IAAI,MAAM,MAAM,CAAC,MAAM,CAAC,QAAQ,IAAI,cAAc,EA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