@artus/core
Advanced tools
Comparing version 1.0.0-beta.23 to 1.0.0-beta.24
@@ -6,3 +6,3 @@ import 'reflect-metadata'; | ||
import { LoaderFactory, Manifest } from './loader'; | ||
import { Application, ApplicationInitOptions, TriggerType } from './types'; | ||
import { Application, ApplicationInitOptions } from './types'; | ||
import ConfigurationHandler from './configuration'; | ||
@@ -20,3 +20,2 @@ import { Logger } from './logger'; | ||
get packages(): Record<string, any>; | ||
get trigger(): TriggerType; | ||
get exceptionHandler(): ExceptionHandler; | ||
@@ -23,0 +22,0 @@ get configurationHandler(): ConfigurationHandler; |
@@ -37,5 +37,2 @@ "use strict"; | ||
} | ||
get trigger() { | ||
return this.container.get(constant_1.ArtusInjectEnum.Trigger); | ||
} | ||
get exceptionHandler() { | ||
@@ -42,0 +39,0 @@ return this.container.get(exception_1.ExceptionHandler); |
@@ -11,4 +11,3 @@ export declare const DEFAULT_LOADER = "module"; | ||
Logger = "artus#logger", | ||
Packages = "artus#packages", | ||
Trigger = "artus#trigger" | ||
Packages = "artus#packages" | ||
} | ||
@@ -15,0 +14,0 @@ export declare enum ARTUS_DEFAULT_CONFIG_ENV { |
@@ -16,3 +16,2 @@ "use strict"; | ||
ArtusInjectEnum["Packages"] = "artus#packages"; | ||
ArtusInjectEnum["Trigger"] = "artus#trigger"; | ||
})(ArtusInjectEnum = exports.ArtusInjectEnum || (exports.ArtusInjectEnum = {})); | ||
@@ -19,0 +18,0 @@ var ARTUS_DEFAULT_CONFIG_ENV; |
export declare function LifecycleHookUnit(): ClassDecorator; | ||
export declare function LifecycleHook(hookName?: string): PropertyDecorator; | ||
export * from './loader/decorator'; | ||
export * from './trigger/decorator'; |
@@ -24,3 +24,2 @@ "use strict"; | ||
tslib_1.__exportStar(require("./loader/decorator"), exports); | ||
tslib_1.__exportStar(require("./trigger/decorator"), exports); | ||
//# sourceMappingURL=decorator.js.map |
@@ -20,3 +20,2 @@ "use strict"; | ||
const opts = { | ||
path: item.path, | ||
type: moduleClazz, | ||
@@ -23,0 +22,0 @@ scope: injection_1.ScopeEnum.EXECUTION, // The class used with @artus/core will have default scope EXECUTION, can be overwritten by Injectable decorator |
@@ -7,3 +7,2 @@ "use strict"; | ||
const constant_1 = require("../constant"); | ||
const decorator_1 = require("./decorator"); | ||
let Trigger = class Trigger { | ||
@@ -35,3 +34,3 @@ constructor() { | ||
Trigger = tslib_1.__decorate([ | ||
(0, decorator_1.DefineTrigger)(), | ||
(0, injection_1.Injectable)({ scope: injection_1.ScopeEnum.SINGLETON }), | ||
tslib_1.__metadata("design:paramtypes", []) | ||
@@ -38,0 +37,0 @@ ], Trigger); |
@@ -21,3 +21,2 @@ import { Container } from '@artus/injection'; | ||
config?: Record<string, any>; | ||
get trigger(): TriggerType; | ||
load(manifest: Manifest): Promise<this>; | ||
@@ -24,0 +23,0 @@ run(): Promise<void>; |
{ | ||
"name": "@artus/core", | ||
"version": "1.0.0-beta.23", | ||
"version": "1.0.0-beta.24", | ||
"description": "Core package of Artus", | ||
@@ -31,4 +31,5 @@ "main": "./lib/index.js", | ||
"build": "tsc -p ./tsconfig.build.json", | ||
"test": "jest --coverage --detectOpenHandles --testTimeout=15000", | ||
"ci": "npm run lint && npm run test", | ||
"test": "jest --detectOpenHandles --testTimeout=15000", | ||
"cov": "jest --coverage --detectOpenHandles --testTimeout=15000", | ||
"ci": "npm run lint && npm run cov", | ||
"lint:fix": "eslint . --ext .ts --fix", | ||
@@ -65,6 +66,6 @@ "lint": "eslint . --ext .ts" | ||
"tslib": "^2.4.0", | ||
"typescript": "^4.7.2" | ||
"typescript": "^4.8.0" | ||
}, | ||
"dependencies": { | ||
"@artus/injection": "^0.4.1", | ||
"@artus/injection": "^0.5.1", | ||
"@artus/pipeline": "^0.2.2", | ||
@@ -71,0 +72,0 @@ "deepmerge": "^4.2.2", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
166184
168
2536
+ Added@artus/injection@0.5.3(transitive)
- Removed@artus/injection@0.4.4(transitive)
Updated@artus/injection@^0.5.1