-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: 强制锁定 @types/node 包的版本 * refactor: 重构 IMiddlewareAbility 接口中的 next 类型 * feat: 将中间件抛出的错误进行处理 * feat: 检查中间件是否被多次调用,防止多余的 next 调用 * chore: 更换包管理工具为 yarn * refactor: 简化导出语句 * refactor: 使用 throwXXX 函数抛出错误
- Loading branch information
1 parent
9ab1f87
commit 9d97e16
Showing
17 changed files
with
94 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,4 @@ | ||
export { | ||
Server, | ||
ClusterServer, | ||
Router, | ||
RouterMapFactory, | ||
IClusterServerOptions, | ||
CommonError, | ||
isCommonError | ||
} from '@vergiss/auf-core'; | ||
export * from '@vergiss/auf-core'; | ||
|
||
export * as Middlewares from '@vergiss/auf-middlewares'; | ||
export { IContext, IMiddleWare, IServerOptions } from '@vergiss/auf-typing'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,4 @@ | ||
import { ClusterServer, Server, IClusterServerOptions } from './server'; | ||
import { Router, RouterMapFactory } from './router'; | ||
export { ClusterServer, Server, IClusterServerOptions } from './server'; | ||
export { Router, RouterMapFactory } from './router'; | ||
|
||
export { CommonError, isCommonError } from '@vergiss/auf-helpers'; | ||
export { | ||
Server, | ||
ClusterServer, | ||
Router, | ||
RouterMapFactory, | ||
|
||
// declarations | ||
IClusterServerOptions, | ||
} | ||
export { CommonError, isCommonError, throwCommonError } from '@vergiss/auf-helpers'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
export { compose, composePromise } from './functional'; | ||
export { checkMimeTypes } from './mime-type'; | ||
export { uuid } from './tools'; | ||
export { getMD5 } from './md5'; | ||
export { LRUCache } from './lru-cache'; | ||
export { CommonError, isCommonError } from './error'; | ||
export * from './functional'; | ||
export * from './mime-type'; | ||
export * from './tools'; | ||
export * from './md5'; | ||
export * from './lru-cache'; | ||
export * from './error'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters