@eggjs/controller-decorator 3.37.1 → 3.38.0
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.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/src/builder/ControllerMetaBuilderFactory.d.ts +1 -4
- package/dist/src/builder/ControllerMetaBuilderFactory.js +1 -1
- package/dist/src/decorator/Acl.js +3 -3
- package/dist/src/decorator/Context.js +3 -3
- package/dist/src/decorator/Middleware.d.ts +1 -1
- package/dist/src/decorator/Middleware.js +3 -3
- package/dist/src/decorator/http/HTTPController.d.ts +1 -6
- package/dist/src/decorator/http/HTTPController.js +5 -5
- package/dist/src/decorator/http/HTTPMethod.d.ts +1 -6
- package/dist/src/decorator/http/HTTPMethod.js +5 -5
- package/dist/src/decorator/http/HTTPParam.d.ts +1 -9
- package/dist/src/decorator/http/HTTPParam.js +9 -9
- package/dist/src/decorator/http/Host.d.ts +1 -1
- package/dist/src/decorator/http/Host.js +3 -3
- package/dist/src/impl/http/HTTPControllerMetaBuilder.d.ts +1 -1
- package/dist/src/impl/http/HTTPControllerMetaBuilder.js +10 -9
- package/dist/src/impl/http/HTTPControllerMethodMetaBuilder.d.ts +1 -1
- package/dist/src/impl/http/HTTPControllerMethodMetaBuilder.js +5 -5
- package/dist/src/model/HTTPControllerMeta.d.ts +2 -3
- package/dist/src/model/HTTPControllerMeta.js +5 -5
- package/dist/src/model/HTTPMethodMeta.d.ts +2 -2
- package/dist/src/model/HTTPMethodMeta.js +19 -19
- package/dist/src/model/index.d.ts +0 -3
- package/dist/src/model/index.js +1 -4
- package/dist/src/util/ControllerInfoUtil.d.ts +1 -7
- package/dist/src/util/ControllerInfoUtil.js +13 -18
- package/dist/src/util/ControllerMetadataUtil.d.ts +1 -3
- package/dist/src/util/ControllerMetadataUtil.js +5 -5
- package/dist/src/util/HTTPInfoUtil.d.ts +1 -2
- package/dist/src/util/HTTPInfoUtil.js +15 -20
- package/dist/src/util/MethodInfoUtil.d.ts +1 -2
- package/dist/src/util/MethodInfoUtil.js +13 -17
- package/dist/src/util/validator/ControllerValidator.d.ts +1 -1
- package/dist/src/util/validator/ControllerValidator.js +2 -2
- package/dist/src/util/validator/MethodValidator.d.ts +1 -1
- package/dist/src/util/validator/MethodValidator.js +2 -2
- package/package.json +6 -5
- package/dist/src/builder/ControllerMetaBuilder.d.ts +0 -4
- package/dist/src/builder/ControllerMetaBuilder.js +0 -3
- package/dist/src/model/ControllerMetadata.d.ts +0 -11
- package/dist/src/model/ControllerMetadata.js +0 -3
- package/dist/src/model/MethodMeta.d.ts +0 -6
- package/dist/src/model/MethodMeta.js +0 -3
- package/dist/src/model/types.d.ts +0 -40
- package/dist/src/model/types.js +0 -39
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import type { Context } from 'egg';
|
|
3
|
-
export type EggContext = Context;
|
|
4
|
-
export type Next = () => Promise<void>;
|
|
5
|
-
export type MiddlewareFunc = (ctx: Context, next: Next) => Promise<void>;
|
|
6
|
-
export type { IncomingHttpHeaders } from 'node:http';
|
|
7
|
-
export declare enum ControllerType {
|
|
8
|
-
HTTP = "HTTP",
|
|
9
|
-
SOFA_RPC = "SOFA_RPC",
|
|
10
|
-
MGW_RPC = "MGW_RPC",
|
|
11
|
-
MESSAGE = "MESSAGE",
|
|
12
|
-
SCHEDULE = "SCHEDULE"
|
|
13
|
-
}
|
|
14
|
-
export type HostType = string | string[];
|
|
15
|
-
export type ControllerTypeLike = ControllerType | string;
|
|
16
|
-
export declare enum MethodType {
|
|
17
|
-
HTTP = "HTTP",
|
|
18
|
-
SOFA_RPC = "SOFA_RPC",
|
|
19
|
-
MGW_RPC = "MGW_RPC",
|
|
20
|
-
MESSAGE = "MESSAGE",
|
|
21
|
-
SCHEDULE = "SCHEDULE"
|
|
22
|
-
}
|
|
23
|
-
export type MethodTypeLike = ControllerType | string;
|
|
24
|
-
export declare enum HTTPMethodEnum {
|
|
25
|
-
GET = "GET",
|
|
26
|
-
POST = "POST",
|
|
27
|
-
PUT = "PUT",
|
|
28
|
-
DELETE = "DELETE",
|
|
29
|
-
PATCH = "PATCH",
|
|
30
|
-
OPTIONS = "OPTIONS",
|
|
31
|
-
HEAD = "HEAD"
|
|
32
|
-
}
|
|
33
|
-
export declare enum HTTPParamType {
|
|
34
|
-
QUERY = "QUERY",
|
|
35
|
-
QUERIES = "QUERIES",
|
|
36
|
-
BODY = "BODY",
|
|
37
|
-
PARAM = "PARAM",
|
|
38
|
-
REQUEST = "REQUEST",
|
|
39
|
-
HEADERS = "HEADERS"
|
|
40
|
-
}
|
package/dist/src/model/types.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HTTPParamType = exports.HTTPMethodEnum = exports.MethodType = exports.ControllerType = void 0;
|
|
4
|
-
var ControllerType;
|
|
5
|
-
(function (ControllerType) {
|
|
6
|
-
ControllerType["HTTP"] = "HTTP";
|
|
7
|
-
ControllerType["SOFA_RPC"] = "SOFA_RPC";
|
|
8
|
-
ControllerType["MGW_RPC"] = "MGW_RPC";
|
|
9
|
-
ControllerType["MESSAGE"] = "MESSAGE";
|
|
10
|
-
ControllerType["SCHEDULE"] = "SCHEDULE";
|
|
11
|
-
})(ControllerType || (exports.ControllerType = ControllerType = {}));
|
|
12
|
-
var MethodType;
|
|
13
|
-
(function (MethodType) {
|
|
14
|
-
MethodType["HTTP"] = "HTTP";
|
|
15
|
-
MethodType["SOFA_RPC"] = "SOFA_RPC";
|
|
16
|
-
MethodType["MGW_RPC"] = "MGW_RPC";
|
|
17
|
-
MethodType["MESSAGE"] = "MESSAGE";
|
|
18
|
-
MethodType["SCHEDULE"] = "SCHEDULE";
|
|
19
|
-
})(MethodType || (exports.MethodType = MethodType = {}));
|
|
20
|
-
var HTTPMethodEnum;
|
|
21
|
-
(function (HTTPMethodEnum) {
|
|
22
|
-
HTTPMethodEnum["GET"] = "GET";
|
|
23
|
-
HTTPMethodEnum["POST"] = "POST";
|
|
24
|
-
HTTPMethodEnum["PUT"] = "PUT";
|
|
25
|
-
HTTPMethodEnum["DELETE"] = "DELETE";
|
|
26
|
-
HTTPMethodEnum["PATCH"] = "PATCH";
|
|
27
|
-
HTTPMethodEnum["OPTIONS"] = "OPTIONS";
|
|
28
|
-
HTTPMethodEnum["HEAD"] = "HEAD";
|
|
29
|
-
})(HTTPMethodEnum || (exports.HTTPMethodEnum = HTTPMethodEnum = {}));
|
|
30
|
-
var HTTPParamType;
|
|
31
|
-
(function (HTTPParamType) {
|
|
32
|
-
HTTPParamType["QUERY"] = "QUERY";
|
|
33
|
-
HTTPParamType["QUERIES"] = "QUERIES";
|
|
34
|
-
HTTPParamType["BODY"] = "BODY";
|
|
35
|
-
HTTPParamType["PARAM"] = "PARAM";
|
|
36
|
-
HTTPParamType["REQUEST"] = "REQUEST";
|
|
37
|
-
HTTPParamType["HEADERS"] = "HEADERS";
|
|
38
|
-
})(HTTPParamType || (exports.HTTPParamType = HTTPParamType = {}));
|
|
39
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbW9kZWwvdHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBT0EsSUFBWSxjQU1YO0FBTkQsV0FBWSxjQUFjO0lBQ3hCLCtCQUFhLENBQUE7SUFDYix1Q0FBcUIsQ0FBQTtJQUNyQixxQ0FBbUIsQ0FBQTtJQUNuQixxQ0FBbUIsQ0FBQTtJQUNuQix1Q0FBcUIsQ0FBQTtBQUN2QixDQUFDLEVBTlcsY0FBYyw4QkFBZCxjQUFjLFFBTXpCO0FBTUQsSUFBWSxVQU1YO0FBTkQsV0FBWSxVQUFVO0lBQ3BCLDJCQUFhLENBQUE7SUFDYixtQ0FBc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