@tsed/agenda 8.0.0-beta.4 → 8.0.0-beta.5
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/package.json +6 -6
- package/readme.md +5 -4
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@tsed/agenda",
|
|
3
3
|
"description": "Agenda package for Ts.ED framework",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "8.0.0-beta.
|
|
5
|
+
"version": "8.0.0-beta.5",
|
|
6
6
|
"source": "./src/index.ts",
|
|
7
7
|
"main": "./lib/esm/index.js",
|
|
8
8
|
"module": "./lib/esm/index.js",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"tslib": "2.7.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@tsed/barrels": "8.0.0-beta.
|
|
29
|
-
"@tsed/core": "8.0.0-beta.
|
|
30
|
-
"@tsed/di": "8.0.0-beta.
|
|
31
|
-
"@tsed/platform-http": "8.0.0-beta.
|
|
32
|
-
"@tsed/typescript": "8.0.0-beta.
|
|
28
|
+
"@tsed/barrels": "8.0.0-beta.5",
|
|
29
|
+
"@tsed/core": "8.0.0-beta.5",
|
|
30
|
+
"@tsed/di": "8.0.0-beta.5",
|
|
31
|
+
"@tsed/platform-http": "8.0.0-beta.5",
|
|
32
|
+
"@tsed/typescript": "8.0.0-beta.5",
|
|
33
33
|
"agenda": "^5.0.0",
|
|
34
34
|
"eslint": "9.12.0",
|
|
35
35
|
"typescript": "5.4.5",
|
package/readme.md
CHANGED
|
@@ -52,7 +52,7 @@ npm install --save agenda
|
|
|
52
52
|
Import `@tsed/agenda` in your Server:
|
|
53
53
|
|
|
54
54
|
```typescript
|
|
55
|
-
import {Configuration} from "@tsed/
|
|
55
|
+
import {Configuration} from "@tsed/di";
|
|
56
56
|
import "@tsed/agenda"; // import agenda ts.ed module
|
|
57
57
|
|
|
58
58
|
const mongoConnectionString = "mongodb://127.0.0.1/agenda";
|
|
@@ -164,7 +164,8 @@ Inject the AgendaService instance to interact with it directly, e.g. to schedule
|
|
|
164
164
|
a job manually.
|
|
165
165
|
|
|
166
166
|
```typescript
|
|
167
|
-
import {Service
|
|
167
|
+
import {Service} from "@tsed/di";
|
|
168
|
+
import {AfterRoutesInit} from "@tsed/platform-params";
|
|
168
169
|
import {AgendaModule} from "@tsed/agenda";
|
|
169
170
|
|
|
170
171
|
@Service()
|
|
@@ -202,8 +203,8 @@ npm install --save agendash
|
|
|
202
203
|
Afterward create the module `agendash.module.ts` in src/modules so that the dashboard can be exposed using middleware.
|
|
203
204
|
|
|
204
205
|
```typescript
|
|
205
|
-
import {AfterRoutesInit,
|
|
206
|
-
import {Configuration, Module} from "@tsed/di";
|
|
206
|
+
import {AfterRoutesInit, PlatformApplication} from "@tsed/platform-http";
|
|
207
|
+
import {Configuration, Inject, Module} from "@tsed/di";
|
|
207
208
|
import {Agenda} from "agenda";
|
|
208
209
|
|
|
209
210
|
const Agendash = require("agendash");
|