@weifuwujs/tasks 0.9.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 +170 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +319 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/dist/postgres.d.ts +3 -0
- package/dist/postgres.d.ts.map +1 -0
- package/dist/postgres.js +2 -0
- package/dist/postgres.js.map +1 -0
- package/dist/redis.d.ts +3 -0
- package/dist/redis.d.ts.map +1 -0
- package/dist/redis.js +2 -0
- package/dist/redis.js.map +1 -0
- package/dist/sqlite.d.ts +3 -0
- package/dist/sqlite.d.ts.map +1 -0
- package/dist/sqlite.js +2 -0
- package/dist/sqlite.js.map +1 -0
- package/dist/stores/memory.d.ts +6 -0
- package/dist/stores/memory.d.ts.map +1 -0
- package/dist/stores/memory.js +169 -0
- package/dist/stores/memory.js.map +1 -0
- package/dist/stores/postgres.d.ts +22 -0
- package/dist/stores/postgres.d.ts.map +1 -0
- package/dist/stores/postgres.js +233 -0
- package/dist/stores/postgres.js.map +1 -0
- package/dist/stores/redis.d.ts +21 -0
- package/dist/stores/redis.d.ts.map +1 -0
- package/dist/stores/redis.js +340 -0
- package/dist/stores/redis.js.map +1 -0
- package/dist/stores/sqlite.d.ts +13 -0
- package/dist/stores/sqlite.d.ts.map +1 -0
- package/dist/stores/sqlite.js +216 -0
- package/dist/stores/sqlite.js.map +1 -0
- package/dist/tasks.d.ts +11 -0
- package/dist/tasks.d.ts.map +1 -0
- package/dist/tasks.js +214 -0
- package/dist/tasks.js.map +1 -0
- package/dist/testing.d.ts +13 -0
- package/dist/testing.d.ts.map +1 -0
- package/dist/testing.js +211 -0
- package/dist/testing.js.map +1 -0
- package/dist/types.d.ts +158 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +3 -0
- package/dist/types.js.map +1 -0
- package/package.json +61 -0
package/package.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@weifuwujs/tasks",
|
|
3
|
+
"version": "0.9.0",
|
|
4
|
+
"description": "weifuwu 任务队列:至少一次 + 幂等键、指数退避/死信、memory/sqlite/postgres/redis 四驱动 + 契约套件",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"import": "./dist/index.js",
|
|
10
|
+
"default": "./dist/index.js"
|
|
11
|
+
},
|
|
12
|
+
"./sqlite": {
|
|
13
|
+
"types": "./dist/sqlite.d.ts",
|
|
14
|
+
"import": "./dist/sqlite.js",
|
|
15
|
+
"default": "./dist/sqlite.js"
|
|
16
|
+
},
|
|
17
|
+
"./postgres": {
|
|
18
|
+
"types": "./dist/postgres.d.ts",
|
|
19
|
+
"import": "./dist/postgres.js",
|
|
20
|
+
"default": "./dist/postgres.js"
|
|
21
|
+
},
|
|
22
|
+
"./redis": {
|
|
23
|
+
"types": "./dist/redis.d.ts",
|
|
24
|
+
"import": "./dist/redis.js",
|
|
25
|
+
"default": "./dist/redis.js"
|
|
26
|
+
},
|
|
27
|
+
"./testing": {
|
|
28
|
+
"types": "./dist/testing.d.ts",
|
|
29
|
+
"import": "./dist/testing.js",
|
|
30
|
+
"default": "./dist/testing.js"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"files": [
|
|
34
|
+
"dist"
|
|
35
|
+
],
|
|
36
|
+
"scripts": {
|
|
37
|
+
"build": "tsc -p tsconfig.build.json",
|
|
38
|
+
"typecheck": "tsc -p tsconfig.json",
|
|
39
|
+
"test": "node --test --test-force-exit \"test/**/*.test.ts\"",
|
|
40
|
+
"prepublishOnly": "npm run typecheck && npm run build && npm test"
|
|
41
|
+
},
|
|
42
|
+
"peerDependencies": {
|
|
43
|
+
"@weifuwujs/weifuwu": ">=0.8 <1",
|
|
44
|
+
"postgres": ">=3.4.0",
|
|
45
|
+
"ioredis": ">=5.0.0"
|
|
46
|
+
},
|
|
47
|
+
"peerDependenciesMeta": {
|
|
48
|
+
"postgres": {
|
|
49
|
+
"optional": true
|
|
50
|
+
},
|
|
51
|
+
"ioredis": {
|
|
52
|
+
"optional": true
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@weifuwujs/weifuwu": "file:../.."
|
|
57
|
+
},
|
|
58
|
+
"bin": {
|
|
59
|
+
"weifuwu-tasks": "./dist/cli.js"
|
|
60
|
+
}
|
|
61
|
+
}
|