vona-module-a-web 5.0.10 → 5.0.12
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/dist/index.js +614 -3
- package/dist/lib/decorator/request.d.ts +2 -2
- package/dist/types/request.d.ts +0 -9
- package/dist/types/router.d.ts +2 -2
- package/package.json +2 -2
- package/dist/.metadata/index.js +0 -38
- package/dist/.metadata/this.js +0 -2
- package/dist/bean/bean.router.js +0 -188
- package/dist/bean/startup.listen.js +0 -34
- package/dist/config/config.js +0 -8
- package/dist/lib/decorator/bean.js +0 -42
- package/dist/lib/decorator/index.js +0 -3
- package/dist/lib/decorator/request.js +0 -46
- package/dist/lib/decorator/response.js +0 -12
- package/dist/lib/index.js +0 -2
- package/dist/lib/middleware/extractValue.js +0 -48
- package/dist/lib/middleware/middlewareGuard.js +0 -12
- package/dist/lib/middleware/middlewareInterceptor.js +0 -8
- package/dist/lib/middleware/middlewarePipe.js +0 -118
- package/dist/lib/utils.js +0 -7
- package/dist/main.js +0 -63
- package/dist/service/web.js +0 -28
- package/dist/types/controller.js +0 -1
- package/dist/types/dto.js +0 -1
- package/dist/types/index.js +0 -6
- package/dist/types/request.js +0 -11
- package/dist/types/response.js +0 -4
- package/dist/types/router.js +0 -1
- package/dist/types/service.js +0 -1
package/dist/service/web.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { appMetadata, appResource, BeanBase } from 'vona';
|
|
8
|
-
import { Service, SymbolRequestMappingHandler } from 'vona-module-a-web';
|
|
9
|
-
let ServiceWeb = class ServiceWeb extends BeanBase {
|
|
10
|
-
combineControllerActionApiPath(controller, actionKey, prefix, simplify) {
|
|
11
|
-
// beanOptions
|
|
12
|
-
const beanOptions = appResource.getBean(controller);
|
|
13
|
-
if (!beanOptions)
|
|
14
|
-
return undefined;
|
|
15
|
-
// controllerPath
|
|
16
|
-
const controllerOptions = beanOptions.options;
|
|
17
|
-
const controllerPath = controllerOptions.path;
|
|
18
|
-
// actionPath
|
|
19
|
-
const handlerMetadata = appMetadata.getMetadata(SymbolRequestMappingHandler, controller.prototype, actionKey);
|
|
20
|
-
const actionPath = handlerMetadata.path || '';
|
|
21
|
-
// combine
|
|
22
|
-
return this.app.util.combineApiPathControllerAndAction(beanOptions.module, controllerPath, actionPath, prefix, simplify);
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
ServiceWeb = __decorate([
|
|
26
|
-
Service()
|
|
27
|
-
], ServiceWeb);
|
|
28
|
-
export { ServiceWeb };
|
package/dist/types/controller.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/types/dto.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/types/index.js
DELETED
package/dist/types/request.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export const SymbolRequestMappingHandler = Symbol('SymbolRequestMappingHandler');
|
|
2
|
-
export var RequestMethod;
|
|
3
|
-
(function (RequestMethod) {
|
|
4
|
-
RequestMethod["GET"] = "get";
|
|
5
|
-
RequestMethod["POST"] = "post";
|
|
6
|
-
RequestMethod["PUT"] = "put";
|
|
7
|
-
RequestMethod["DELETE"] = "delete";
|
|
8
|
-
RequestMethod["PATCH"] = "patch";
|
|
9
|
-
RequestMethod["OPTIONS"] = "options";
|
|
10
|
-
RequestMethod["HEAD"] = "head";
|
|
11
|
-
})(RequestMethod || (RequestMethod = {}));
|
package/dist/types/response.js
DELETED
package/dist/types/router.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/types/service.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|