@tsed/agenda 6.100.2 → 6.102.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/.mocharc.js +2 -2
- package/package.json +4 -4
- package/readme.md +9 -12
- package/tsconfig.compile.esm.json +1 -12
package/.mocharc.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/agenda",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.102.1",
|
|
4
4
|
"description": "Agenda package for Ts.ED framework",
|
|
5
5
|
"source": "./src/index.ts",
|
|
6
6
|
"main": "./lib/cjs/index.js",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
},
|
|
23
23
|
"private": false,
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@tsed/common": "6.
|
|
26
|
-
"@tsed/core": "6.
|
|
27
|
-
"@tsed/di": "6.
|
|
25
|
+
"@tsed/common": "6.102.1",
|
|
26
|
+
"@tsed/core": "6.102.1",
|
|
27
|
+
"@tsed/di": "6.102.1",
|
|
28
28
|
"agenda": "^4.1.3"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
package/readme.md
CHANGED
|
@@ -59,16 +59,14 @@ const mongoConnectionString = "mongodb://127.0.0.1/agenda";
|
|
|
59
59
|
|
|
60
60
|
@Configuration({
|
|
61
61
|
agenda: {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
62
|
+
enabled: true, // Enable Agenda jobs for this instance.
|
|
63
|
+
// pass any options that you would normally pass to new Agenda(), e.g.
|
|
64
|
+
db: {
|
|
65
|
+
address: mongoConnectionString
|
|
66
|
+
}
|
|
67
67
|
}
|
|
68
68
|
})
|
|
69
|
-
export class Server {
|
|
70
|
-
|
|
71
|
-
}
|
|
69
|
+
export class Server {}
|
|
72
70
|
```
|
|
73
71
|
|
|
74
72
|
## Create a new Service
|
|
@@ -130,8 +128,8 @@ export class UsersService implements AfterRoutesInit {
|
|
|
130
128
|
// do something
|
|
131
129
|
// ...
|
|
132
130
|
// then schedule some jobs
|
|
133
|
-
await this.agenda.now("email.sendWelcomeEmail", {user})
|
|
134
|
-
await this.agenda.schedule("in 2 hours", "email.sendFollowUpEmail", {user})
|
|
131
|
+
await this.agenda.now("email.sendWelcomeEmail", {user});
|
|
132
|
+
await this.agenda.schedule("in 2 hours", "email.sendFollowUpEmail", {user});
|
|
135
133
|
|
|
136
134
|
return user;
|
|
137
135
|
}
|
|
@@ -139,18 +137,17 @@ export class UsersService implements AfterRoutesInit {
|
|
|
139
137
|
```
|
|
140
138
|
|
|
141
139
|
## Contributors
|
|
140
|
+
|
|
142
141
|
Please read [contributing guidelines here](https://tsed.io/CONTRIBUTING.html)
|
|
143
142
|
|
|
144
143
|
<a href="https://github.com/tsedio/ts-express-decorators/graphs/contributors"><img src="https://opencollective.com/tsed/contributors.svg?width=890" /></a>
|
|
145
144
|
|
|
146
|
-
|
|
147
145
|
## Backers
|
|
148
146
|
|
|
149
147
|
Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/tsed#backer)]
|
|
150
148
|
|
|
151
149
|
<a href="https://opencollective.com/tsed#backers" target="_blank"><img src="https://opencollective.com/tsed/backers.svg?width=890"></a>
|
|
152
150
|
|
|
153
|
-
|
|
154
151
|
## Sponsors
|
|
155
152
|
|
|
156
153
|
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/tsed#sponsor)]
|
|
@@ -8,16 +8,5 @@
|
|
|
8
8
|
"declaration": true,
|
|
9
9
|
"declarationDir": "./lib/types"
|
|
10
10
|
},
|
|
11
|
-
"exclude": [
|
|
12
|
-
"node_modules",
|
|
13
|
-
"test",
|
|
14
|
-
"lib",
|
|
15
|
-
"benchmark",
|
|
16
|
-
"coverage",
|
|
17
|
-
"spec",
|
|
18
|
-
"**/*.benchmark.ts",
|
|
19
|
-
"**/*.spec.ts",
|
|
20
|
-
"keys",
|
|
21
|
-
"jest.config.js"
|
|
22
|
-
]
|
|
11
|
+
"exclude": ["node_modules", "test", "lib", "benchmark", "coverage", "spec", "**/*.benchmark.ts", "**/*.spec.ts", "keys", "jest.config.js"]
|
|
23
12
|
}
|