koatty_core
Advanced tools
Comparing version 1.7.10 to 1.8.0
@@ -5,2 +5,10 @@ # Changelog | ||
## [1.8.0](https://github.com/koatty/koatty_core/compare/v1.7.10...v1.8.0) (2023-11-08) | ||
### Features | ||
* add app event ([fd26da9](https://github.com/koatty/koatty_core/commit/fd26da9ea1e8fa355b9f515f8b9622ae9f5f306b)) | ||
* add AppEvent defined ([79c26c3](https://github.com/koatty/koatty_core/commit/79c26c3b2bad05a90fe48ef547b195a001745c1d)) | ||
### [1.7.10](https://github.com/koatty/koatty_core/compare/v1.7.9...v1.7.10) (2023-09-12) | ||
@@ -7,0 +15,0 @@ |
/*! | ||
* @Author: richen | ||
* @Date: 2023-09-12 11:14:38 | ||
* @Date: 2023-11-08 13:34:53 | ||
* @License: BSD (3-Clause) | ||
@@ -28,2 +28,15 @@ * @Copyright (c) - <richenlin(at)gmail.com> | ||
/** | ||
* app event | ||
* | ||
* @export | ||
* @enum AppEvent | ||
*/ | ||
export declare const enum AppEvent { | ||
appBoot = "appBoot", | ||
appReady = "appReady", | ||
appStart = "appStart", | ||
appStop = "appStop" | ||
} | ||
/** | ||
* Create KoattyContext | ||
@@ -39,2 +52,4 @@ * | ||
export declare type EventHookFunc = (app: Koatty) => Promise<any>; | ||
/** | ||
@@ -51,3 +66,3 @@ * InitOptions | ||
rootPath?: string; | ||
thinkPath?: string; | ||
koattyPath?: string; | ||
} | ||
@@ -89,3 +104,3 @@ | ||
rootPath: string; | ||
thinkPath: string; | ||
koattyPath: string; | ||
logsPath: string; | ||
@@ -92,0 +107,0 @@ appDebug: boolean; |
/*! | ||
* @Author: richen | ||
* @Date: 2023-09-12 11:14:16 | ||
* @Date: 2023-11-08 13:34:41 | ||
* @License: BSD (3-Clause) | ||
@@ -298,3 +298,3 @@ * @Copyright (c) - <richenlin(at)gmail.com> | ||
rootPath: '', | ||
thinkPath: '', | ||
koattyPath: '', | ||
}) { | ||
@@ -306,7 +306,7 @@ super(); | ||
this.env = process.env.KOATTY_ENV || process.env.NODE_ENV; | ||
const { appDebug, appPath, rootPath, thinkPath } = this.options; | ||
const { appDebug, appPath, rootPath, koattyPath } = this.options; | ||
this.appDebug = appDebug; | ||
this.appPath = appPath; | ||
this.rootPath = rootPath; | ||
this.thinkPath = thinkPath; | ||
this.koattyPath = koattyPath; | ||
this.metadata = new KoattyMetadata(); | ||
@@ -313,0 +313,0 @@ // constructor |
{ | ||
"name": "koatty_core", | ||
"version": "1.7.10", | ||
"version": "1.8.0", | ||
"description": "Koatty framework core", | ||
@@ -5,0 +5,0 @@ "scripts": { |
{ | ||
"name": "koatty_core", | ||
"version": "1.7.10", | ||
"version": "1.8.0", | ||
"description": "Koatty framework core", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
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
61788
1620