simple-boot-core
Advanced tools
Comparing version 1.0.29 to 1.0.30
@@ -9,4 +9,4 @@ import 'reflect-metadata'; | ||
declare type AroundOption = { | ||
before?: (obj: any, propertyKey: string, args: any[]) => any[]; | ||
after?: (obj: any, propertyKey: string, args: any[], beforeReturn: any) => any[]; | ||
before?: (obj: any, propertyKey: string, args: any[]) => any[]; | ||
}; | ||
@@ -13,0 +13,0 @@ export declare const After: (data: AOPOption) => { |
{ | ||
"name": "simple-boot-core", | ||
"version": "1.0.29", | ||
"version": "1.0.30", | ||
"main": "SimpleApplication.js", | ||
@@ -52,6 +52,3 @@ "license": "MIT", | ||
"tsc": "tsc", | ||
"setting:root-dist": "rm -rf ../dist-simple-boot-core && mkdirp ../dist-simple-boot-core && cp package-root-dist.json ../dist-simple-boot-core/package.json", | ||
"tsc:root-dist": "npm run setting:root-dist && tsc --outDir ../dist-simple-boot-core --declarationDir ../dist-simple-boot-core", | ||
"tsc:watch": "rm -rf ./dist && mkdir dist && cp package.json dist && tsc --watch --sourceMap true", | ||
"tsc:watch:root-dist": "npm run setting:root-dist && tsc --outDir ../dist-simple-boot-core --declarationDir ../dist-simple-boot-core --watch --sourceMap true", | ||
"test": "jest --detectOpenHandles --forceExit" | ||
@@ -58,0 +55,0 @@ }, |
@@ -123,3 +123,3 @@ SIMPLE-BOOT-CORE | ||
// sayBefore | ||
// say~ hello: 30 | ||
// say~ hello | ||
// sayAfter | ||
@@ -126,0 +126,0 @@ ``` |
@@ -1,2 +0,1 @@ | ||
import { Runnable } from './run/Runnable'; | ||
import { SimstanceManager } from './simstance/SimstanceManager'; | ||
@@ -11,3 +10,3 @@ import { SimOption } from './SimOption'; | ||
import 'reflect-metadata'; | ||
export declare class SimpleApplication implements Runnable { | ||
export declare class SimpleApplication { | ||
rootRouter: ConstructorType<Object>; | ||
@@ -19,3 +18,6 @@ option: SimOption; | ||
constructor(rootRouter: ConstructorType<Object>, option?: SimOption); | ||
run(otherInstanceSim?: Map<ConstructorType<any>, any>): SimpleApplication; | ||
getSimstanceManager(): SimstanceManager; | ||
getIntentManager(): IntentManager; | ||
getRouterManager(): RouterManager; | ||
run(otherInstanceSim?: Map<ConstructorType<any>, any>): void; | ||
publishIntent(i: string, data?: any): any[]; | ||
@@ -22,0 +24,0 @@ publishIntent(i: Intent): any[]; |
@@ -23,5 +23,13 @@ "use strict"; | ||
} | ||
SimpleApplication.prototype.getSimstanceManager = function () { | ||
return this.simstanceManager; | ||
}; | ||
SimpleApplication.prototype.getIntentManager = function () { | ||
return this.intentManager; | ||
}; | ||
SimpleApplication.prototype.getRouterManager = function () { | ||
return this.routerManager; | ||
}; | ||
SimpleApplication.prototype.run = function (otherInstanceSim) { | ||
this.simstanceManager.run(otherInstanceSim); | ||
return this; | ||
}; | ||
@@ -28,0 +36,0 @@ SimpleApplication.prototype.publishIntent = function (i, data) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2642
126041