@tsed/agenda 7.70.1 → 7.71.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/lib/cjs/AgendaModule.js +4 -4
- package/lib/cjs/AgendaModule.js.map +1 -1
- package/lib/cjs/decorators/agenda.js +2 -2
- package/lib/cjs/decorators/agenda.js.map +1 -1
- package/lib/cjs/decorators/every.js +2 -2
- package/lib/cjs/decorators/every.js.map +1 -1
- package/lib/cjs/index.js +11 -11
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/AgendaModule.js.map +1 -1
- package/lib/esm/decorators/agenda.js.map +1 -1
- package/lib/esm/decorators/every.js.map +1 -1
- package/lib/esm/index.js +1 -1
- package/lib/esm/index.js.map +1 -1
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/AgendaModule.d.ts +1 -1
- package/lib/types/decorators/define.d.ts +1 -1
- package/lib/types/decorators/every.d.ts +1 -1
- package/lib/types/index.d.ts +9 -9
- package/package.json +7 -7
- package/src/AgendaModule.spec.ts +4 -4
- package/src/AgendaModule.ts +3 -3
- package/src/decorators/agenda.spec.ts +1 -1
- package/src/decorators/agenda.ts +1 -1
- package/src/decorators/define.spec.ts +2 -2
- package/src/decorators/define.ts +1 -1
- package/src/decorators/every.spec.ts +2 -2
- package/src/decorators/every.ts +2 -2
- package/src/index.ts +9 -10
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AfterListen, Logger, OnDestroy } from "@tsed/common";
|
|
2
2
|
import { InjectorService, Provider } from "@tsed/di";
|
|
3
3
|
import { Job } from "agenda";
|
|
4
|
-
import { AgendaService } from "./services/AgendaFactory";
|
|
4
|
+
import { AgendaService } from "./services/AgendaFactory.js";
|
|
5
5
|
export declare class AgendaModule implements OnDestroy, AfterListen {
|
|
6
6
|
protected logger: Logger;
|
|
7
7
|
protected injector: InjectorService;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DefineOptions } from "../interfaces/AgendaStore";
|
|
1
|
+
import { DefineOptions } from "../interfaces/AgendaStore.js";
|
|
2
2
|
export declare function Define(options?: DefineOptions): MethodDecorator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EveryOptions } from "../interfaces/AgendaStore";
|
|
1
|
+
import { EveryOptions } from "../interfaces/AgendaStore.js";
|
|
2
2
|
export declare function Every(interval: string, options?: EveryOptions): MethodDecorator;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @file Automatically generated by
|
|
2
|
+
* @file Automatically generated by @tsed/barrels.
|
|
3
3
|
*/
|
|
4
|
-
export * from "./AgendaModule";
|
|
5
|
-
export * from "./constants/constants";
|
|
6
|
-
export * from "./decorators/agenda";
|
|
7
|
-
export * from "./decorators/define";
|
|
8
|
-
export * from "./decorators/every";
|
|
9
|
-
export * from "./interfaces/AgendaStore";
|
|
10
|
-
export * from "./interfaces/interfaces";
|
|
11
|
-
export * from "./services/AgendaFactory";
|
|
4
|
+
export * from "./AgendaModule.js";
|
|
5
|
+
export * from "./constants/constants.js";
|
|
6
|
+
export * from "./decorators/agenda.js";
|
|
7
|
+
export * from "./decorators/define.js";
|
|
8
|
+
export * from "./decorators/every.js";
|
|
9
|
+
export * from "./interfaces/AgendaStore.js";
|
|
10
|
+
export * from "./interfaces/interfaces.js";
|
|
11
|
+
export * from "./services/AgendaFactory.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/agenda",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.71.0",
|
|
4
4
|
"description": "Agenda package for Ts.ED framework",
|
|
5
5
|
"source": "./src/index.ts",
|
|
6
6
|
"main": "./lib/cjs/index.js",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
16
|
"build": "yarn barrels && yarn build:ts",
|
|
17
|
-
"barrels": "
|
|
17
|
+
"barrels": "barrels",
|
|
18
18
|
"test": "jest --runInBand && jest-coverage-thresholds-bumper",
|
|
19
19
|
"build:ts": "tsc --build tsconfig.json && tsc --build tsconfig.esm.json"
|
|
20
20
|
},
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
"tslib": "2.6.1"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@tsed/
|
|
26
|
-
"@tsed/
|
|
27
|
-
"@tsed/
|
|
28
|
-
"@tsed/
|
|
25
|
+
"@tsed/barrels": "7.71.0",
|
|
26
|
+
"@tsed/common": "7.71.0",
|
|
27
|
+
"@tsed/core": "7.71.0",
|
|
28
|
+
"@tsed/di": "7.71.0",
|
|
29
|
+
"@tsed/typescript": "7.71.0",
|
|
29
30
|
"agenda": "^5.0.0",
|
|
30
|
-
"barrelsby": "^2.8.1",
|
|
31
31
|
"eslint": "^8.57.0",
|
|
32
32
|
"jest": "^29.7.0"
|
|
33
33
|
},
|
package/src/AgendaModule.spec.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {PlatformTest} from "@tsed/common";
|
|
2
2
|
import {Inject} from "@tsed/di";
|
|
3
3
|
import {Job} from "agenda";
|
|
4
|
-
import {AgendaModule} from "./AgendaModule";
|
|
5
|
-
import {Agenda} from "./decorators/agenda";
|
|
6
|
-
import {Define} from "./decorators/define";
|
|
7
|
-
import {Every} from "./decorators/every";
|
|
4
|
+
import {AgendaModule} from "./AgendaModule.js";
|
|
5
|
+
import {Agenda} from "./decorators/agenda.js";
|
|
6
|
+
import {Define} from "./decorators/define.js";
|
|
7
|
+
import {Every} from "./decorators/every.js";
|
|
8
8
|
|
|
9
9
|
jest.mock("agenda", () => {
|
|
10
10
|
return {
|
package/src/AgendaModule.ts
CHANGED
|
@@ -2,9 +2,9 @@ import {AfterListen, DIContext, Logger, OnDestroy, runInContext} from "@tsed/com
|
|
|
2
2
|
import {Constant, Inject, InjectorService, Module, Provider} from "@tsed/di";
|
|
3
3
|
import {Job, Processor} from "agenda";
|
|
4
4
|
import {v4 as uuid} from "uuid";
|
|
5
|
-
import {PROVIDER_TYPE_AGENDA} from "./constants/constants";
|
|
6
|
-
import {AgendaStore} from "./interfaces/AgendaStore";
|
|
7
|
-
import {AgendaService} from "./services/AgendaFactory";
|
|
5
|
+
import {PROVIDER_TYPE_AGENDA} from "./constants/constants.js";
|
|
6
|
+
import {AgendaStore} from "./interfaces/AgendaStore.js";
|
|
7
|
+
import {AgendaService} from "./services/AgendaFactory.js";
|
|
8
8
|
|
|
9
9
|
@Module()
|
|
10
10
|
export class AgendaModule implements OnDestroy, AfterListen {
|
package/src/decorators/agenda.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {StoreMerge, useDecorators} from "@tsed/core";
|
|
2
2
|
import {Injectable} from "@tsed/di";
|
|
3
|
-
import {PROVIDER_TYPE_AGENDA} from "../constants/constants";
|
|
3
|
+
import {PROVIDER_TYPE_AGENDA} from "../constants/constants.js";
|
|
4
4
|
|
|
5
5
|
interface AgendaOptions {
|
|
6
6
|
namespace?: string;
|
package/src/decorators/define.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {Store} from "@tsed/core";
|
|
2
|
-
import {AgendaStore, DefineOptions} from "../interfaces/AgendaStore";
|
|
2
|
+
import {AgendaStore, DefineOptions} from "../interfaces/AgendaStore.js";
|
|
3
3
|
|
|
4
4
|
export function Define(options: DefineOptions = {}): MethodDecorator {
|
|
5
5
|
return (target: any, propertyKey: string) => {
|
package/src/decorators/every.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {Store, useDecorators} from "@tsed/core";
|
|
2
|
-
import {Define} from "./define";
|
|
3
|
-
import {AgendaStore, EveryOptions} from "../interfaces/AgendaStore";
|
|
2
|
+
import {Define} from "./define.js";
|
|
3
|
+
import {AgendaStore, EveryOptions} from "../interfaces/AgendaStore.js";
|
|
4
4
|
|
|
5
5
|
export function Every(interval: string, options: EveryOptions = {}): MethodDecorator {
|
|
6
6
|
return useDecorators(Define(options), (target: any, propertyKey: string) => {
|
package/src/index.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @file Automatically generated by
|
|
2
|
+
* @file Automatically generated by @tsed/barrels.
|
|
3
3
|
*/
|
|
4
|
-
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./
|
|
7
|
-
export * from "./decorators/
|
|
8
|
-
export * from "./decorators/
|
|
9
|
-
export * from "./
|
|
10
|
-
export * from "./interfaces/
|
|
11
|
-
export * from "./
|
|
12
|
-
export * from "./services/AgendaFactory";
|
|
4
|
+
export * from "./AgendaModule.js";
|
|
5
|
+
export * from "./constants/constants.js";
|
|
6
|
+
export * from "./decorators/agenda.js";
|
|
7
|
+
export * from "./decorators/define.js";
|
|
8
|
+
export * from "./decorators/every.js";
|
|
9
|
+
export * from "./interfaces/AgendaStore.js";
|
|
10
|
+
export * from "./interfaces/interfaces.js";
|
|
11
|
+
export * from "./services/AgendaFactory.js";
|