@doracli/define-server 0.0.4 → 0.0.6

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2020-2029 zhangzhiguo
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1
+ MIT License
2
+
3
+ Copyright (c) 2020-2029 zhangzhiguo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
package/lib/cjs/index.js CHANGED
@@ -1,185 +1 @@
1
- 'use strict';
2
-
3
- function _applyDecoratedDescriptor(i, e, r, n, l) {
4
- var a = {};
5
- return Object.keys(n).forEach(function (i) {
6
- a[i] = n[i];
7
- }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, ("value" in a || a.initializer) && (a.writable = true), a = r.slice().reverse().reduce(function (r, n) {
8
- return n(i, e, r) || r;
9
- }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a;
10
- }
11
- function _classCallCheck(a, n) {
12
- if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
13
- }
14
- function _defineProperties(e, r) {
15
- for (var t = 0; t < r.length; t++) {
16
- var o = r[t];
17
- o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey(o.key), o);
18
- }
19
- }
20
- function _createClass(e, r, t) {
21
- return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", {
22
- writable: false
23
- }), e;
24
- }
25
- function _defineProperty(e, r, t) {
26
- return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
27
- value: t,
28
- enumerable: true,
29
- configurable: true,
30
- writable: true
31
- }) : e[r] = t, e;
32
- }
33
- function _toPrimitive(t, r) {
34
- if ("object" != typeof t || !t) return t;
35
- var e = t[Symbol.toPrimitive];
36
- if (void 0 !== e) {
37
- var i = e.call(t, r);
38
- if ("object" != typeof i) return i;
39
- throw new TypeError("@@toPrimitive must return a primitive value.");
40
- }
41
- return ("string" === r ? String : Number)(t);
42
- }
43
- function _toPropertyKey(t) {
44
- var i = _toPrimitive(t, "string");
45
- return "symbol" == typeof i ? i : i + "";
46
- }
47
-
48
- var ComponentBaseImpl = /*#__PURE__*/_createClass(function ComponentBaseImpl() {
49
- _classCallCheck(this, ComponentBaseImpl);
50
- });
51
- /** 标记为服务组件 */
52
- _defineProperty(ComponentBaseImpl, "handlerServer", void 0);
53
- /** handler类型 */
54
- _defineProperty(ComponentBaseImpl, "defineType", void 0);
55
- /** 默认的方法处理类型 */
56
- _defineProperty(ComponentBaseImpl, "defaultHandlerType", void 0);
57
- /** 文件名到路由的映射,默认 "/" */
58
- _defineProperty(ComponentBaseImpl, "fileRoute", void 0);
59
- /** 类的子路由与方法名进行绑定 */
60
- _defineProperty(ComponentBaseImpl, "routeFunNameMap", void 0);
61
- /** 方法名 -> 请求类型 */
62
- _defineProperty(ComponentBaseImpl, "funNameMethodMap", void 0);
63
- /** 方法名 -> 方法解析类型 */
64
- _defineProperty(ComponentBaseImpl, "funNameHandlerTypeMap", void 0);
65
-
66
- var DefaultHandlerName = 'handlerFun';
67
-
68
- var alias = function alias(name) {
69
- return function (target, propertyKey, descriptor) {
70
- var constructor = target.constructor;
71
- if (!constructor.routeFunNameMap) {
72
- constructor.routeFunNameMap = {};
73
- }
74
- constructor.routeFunNameMap[name] = propertyKey;
75
- return descriptor;
76
- };
77
- };
78
-
79
- /**
80
- * 类装饰器,标记为服务组件
81
- * @param type 决定解析方法,不需要传,默认就是`类`解析
82
- * @returns
83
- */
84
- var component = function component(type) {
85
- return function (Target) {
86
- Target.handlerServer = true;
87
- Target.defineType = type || 'CLASS';
88
- };
89
- };
90
-
91
- /**
92
- * 类装饰器,标记为服务组件
93
- * @returns
94
- */
95
- var controller = function controller() {
96
- var defineType = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'CLASS';
97
- return function (Target) {
98
- Target.handlerServer = true;
99
- Target.defineType = defineType;
100
- Target.defaultHandlerType = 'BASE';
101
- };
102
- };
103
-
104
- /**
105
- * 类装饰器
106
- * @param fileRoute 文件路由名称
107
- * @returns
108
- */
109
- var fileRoute = function fileRoute(_fileRoute) {
110
- return function (Target) {
111
- Target.fileRoute = _fileRoute;
112
- };
113
- };
114
-
115
- var method = function method() {
116
- for (var _len = arguments.length, methods = new Array(_len), _key = 0; _key < _len; _key++) {
117
- methods[_key] = arguments[_key];
118
- }
119
- return function (target, propertyKey, descriptor) {
120
- var constructor = target.constructor;
121
- if (!constructor.funNameMethodMap) {
122
- constructor.funNameMethodMap = {};
123
- }
124
- constructor.funNameMethodMap[propertyKey] = methods;
125
- return descriptor;
126
- };
127
- };
128
-
129
- /**
130
- * 类装饰器,标记为服务组件
131
- * @param type 决定解析方法,不需要传,默认就是`类`解析
132
- * @returns
133
- */
134
- var restController = function restController() {
135
- return function (Target) {
136
- Target.handlerServer = true;
137
- Target.defineType = 'CLASS';
138
- Target.defaultHandlerType = 'REST';
139
- };
140
- };
141
-
142
- /**
143
- * 定义路由
144
- * @param name 路由名称,默认使用方法名
145
- */
146
- var route = function route(name) {
147
- return function (target, propertyKey, descriptor) {
148
- var constructor = target.constructor;
149
- if (!constructor.routeFunNameMap) {
150
- constructor.routeFunNameMap = {};
151
- }
152
- constructor.routeFunNameMap[name || propertyKey] = propertyKey;
153
- return descriptor;
154
- };
155
- };
156
-
157
- var defineControllerFun = function defineControllerFun(cb) {
158
- var _dec, _dec2, _class, _class2;
159
- var HandlerClass = (_dec = controller('FUN'), _dec2 = route(), _dec(_class = (_class2 = /*#__PURE__*/function () {
160
- function HandlerClass() {
161
- _classCallCheck(this, HandlerClass);
162
- }
163
- return _createClass(HandlerClass, [{
164
- key: "handlerFun",
165
- value: function handlerFun() {
166
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
167
- args[_key] = arguments[_key];
168
- }
169
- return cb.apply(this, args);
170
- }
171
- }]);
172
- }(), _applyDecoratedDescriptor(_class2.prototype, "handlerFun", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, "handlerFun"), _class2.prototype), _class2)) || _class);
173
- return HandlerClass;
174
- };
175
-
176
- exports.ComponentBaseImpl = ComponentBaseImpl;
177
- exports.DefaultHandlerName = DefaultHandlerName;
178
- exports.alias = alias;
179
- exports.component = component;
180
- exports.controller = controller;
181
- exports.defineControllerFun = defineControllerFun;
182
- exports.fileRoute = fileRoute;
183
- exports.method = method;
184
- exports.restController = restController;
185
- exports.route = route;
1
+ "use strict";function e(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function r(e,r,n){return r&&function(e,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,t(o.key),o)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function n(e,r,n){return(r=t(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function t(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,r);if("object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==typeof r?r:r+""}var o=r(function r(){e(this,r)});n(o,"handlerServer",void 0),n(o,"defineType",void 0),n(o,"defaultHandlerType",void 0),n(o,"fileRoute",void 0),n(o,"routeFunNameMap",void 0),n(o,"funNameMethodMap",void 0),n(o,"funNameHandlerTypeMap",void 0);var i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"CLASS";return function(r){r.handlerServer=!0,r.defineType=e,r.defaultHandlerType="BASE"}},u=function(e){return function(r,n,t){var o=r.constructor;return o.routeFunNameMap||(o.routeFunNameMap={}),o.routeFunNameMap[e||n]=n,t}};exports.ComponentBaseImpl=o,exports.DefaultHandlerName="handlerFun",exports.alias=function(e){return function(r,n,t){var o=r.constructor;return o.routeFunNameMap||(o.routeFunNameMap={}),o.routeFunNameMap[e]=n,t}},exports.component=function(e){return function(r){r.handlerServer=!0,r.defineType=e||"CLASS"}},exports.controller=i,exports.defineControllerFun=function(n){var t,o,a,l,f,c,p,d,v,s,y=(t=i("FUN"),o=u(),t((l=function(){return r(function r(){e(this,r)},[{key:"handlerFun",value:function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return n.apply(this,r)}}])}(),f=l.prototype,c="handlerFun",p=[o],d=Object.getOwnPropertyDescriptor(l.prototype,"handlerFun"),v=l.prototype,s={},Object.keys(d).forEach(function(e){s[e]=d[e]}),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=p.slice().reverse().reduce(function(e,r){return r(f,c,e)||e},s),v&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(v):void 0,s.initializer=void 0),void 0===s.initializer&&Object.defineProperty(f,c,s),a=l))||a);return y},exports.fileRoute=function(e){return function(r){r.fileRoute=e}},exports.method=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return function(e,n,t){var o=e.constructor;return o.funNameMethodMap||(o.funNameMethodMap={}),o.funNameMethodMap[n]=r,t}},exports.restController=function(){return function(e){e.handlerServer=!0,e.defineType="CLASS",e.defaultHandlerType="REST"}},exports.route=u;
package/lib/esm/index.js CHANGED
@@ -1,174 +1 @@
1
- function _applyDecoratedDescriptor(i, e, r, n, l) {
2
- var a = {};
3
- return Object.keys(n).forEach(function (i) {
4
- a[i] = n[i];
5
- }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, ("value" in a || a.initializer) && (a.writable = true), a = r.slice().reverse().reduce(function (r, n) {
6
- return n(i, e, r) || r;
7
- }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a;
8
- }
9
- function _classCallCheck(a, n) {
10
- if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
11
- }
12
- function _defineProperties(e, r) {
13
- for (var t = 0; t < r.length; t++) {
14
- var o = r[t];
15
- o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey(o.key), o);
16
- }
17
- }
18
- function _createClass(e, r, t) {
19
- return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", {
20
- writable: false
21
- }), e;
22
- }
23
- function _defineProperty(e, r, t) {
24
- return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
25
- value: t,
26
- enumerable: true,
27
- configurable: true,
28
- writable: true
29
- }) : e[r] = t, e;
30
- }
31
- function _toPrimitive(t, r) {
32
- if ("object" != typeof t || !t) return t;
33
- var e = t[Symbol.toPrimitive];
34
- if (void 0 !== e) {
35
- var i = e.call(t, r);
36
- if ("object" != typeof i) return i;
37
- throw new TypeError("@@toPrimitive must return a primitive value.");
38
- }
39
- return ("string" === r ? String : Number)(t);
40
- }
41
- function _toPropertyKey(t) {
42
- var i = _toPrimitive(t, "string");
43
- return "symbol" == typeof i ? i : i + "";
44
- }
45
-
46
- var ComponentBaseImpl = /*#__PURE__*/_createClass(function ComponentBaseImpl() {
47
- _classCallCheck(this, ComponentBaseImpl);
48
- });
49
- /** 标记为服务组件 */
50
- _defineProperty(ComponentBaseImpl, "handlerServer", void 0);
51
- /** handler类型 */
52
- _defineProperty(ComponentBaseImpl, "defineType", void 0);
53
- /** 默认的方法处理类型 */
54
- _defineProperty(ComponentBaseImpl, "defaultHandlerType", void 0);
55
- /** 文件名到路由的映射,默认 "/" */
56
- _defineProperty(ComponentBaseImpl, "fileRoute", void 0);
57
- /** 类的子路由与方法名进行绑定 */
58
- _defineProperty(ComponentBaseImpl, "routeFunNameMap", void 0);
59
- /** 方法名 -> 请求类型 */
60
- _defineProperty(ComponentBaseImpl, "funNameMethodMap", void 0);
61
- /** 方法名 -> 方法解析类型 */
62
- _defineProperty(ComponentBaseImpl, "funNameHandlerTypeMap", void 0);
63
-
64
- var DefaultHandlerName = 'handlerFun';
65
-
66
- var alias = function alias(name) {
67
- return function (target, propertyKey, descriptor) {
68
- var constructor = target.constructor;
69
- if (!constructor.routeFunNameMap) {
70
- constructor.routeFunNameMap = {};
71
- }
72
- constructor.routeFunNameMap[name] = propertyKey;
73
- return descriptor;
74
- };
75
- };
76
-
77
- /**
78
- * 类装饰器,标记为服务组件
79
- * @param type 决定解析方法,不需要传,默认就是`类`解析
80
- * @returns
81
- */
82
- var component = function component(type) {
83
- return function (Target) {
84
- Target.handlerServer = true;
85
- Target.defineType = type || 'CLASS';
86
- };
87
- };
88
-
89
- /**
90
- * 类装饰器,标记为服务组件
91
- * @returns
92
- */
93
- var controller = function controller() {
94
- var defineType = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'CLASS';
95
- return function (Target) {
96
- Target.handlerServer = true;
97
- Target.defineType = defineType;
98
- Target.defaultHandlerType = 'BASE';
99
- };
100
- };
101
-
102
- /**
103
- * 类装饰器
104
- * @param fileRoute 文件路由名称
105
- * @returns
106
- */
107
- var fileRoute = function fileRoute(_fileRoute) {
108
- return function (Target) {
109
- Target.fileRoute = _fileRoute;
110
- };
111
- };
112
-
113
- var method = function method() {
114
- for (var _len = arguments.length, methods = new Array(_len), _key = 0; _key < _len; _key++) {
115
- methods[_key] = arguments[_key];
116
- }
117
- return function (target, propertyKey, descriptor) {
118
- var constructor = target.constructor;
119
- if (!constructor.funNameMethodMap) {
120
- constructor.funNameMethodMap = {};
121
- }
122
- constructor.funNameMethodMap[propertyKey] = methods;
123
- return descriptor;
124
- };
125
- };
126
-
127
- /**
128
- * 类装饰器,标记为服务组件
129
- * @param type 决定解析方法,不需要传,默认就是`类`解析
130
- * @returns
131
- */
132
- var restController = function restController() {
133
- return function (Target) {
134
- Target.handlerServer = true;
135
- Target.defineType = 'CLASS';
136
- Target.defaultHandlerType = 'REST';
137
- };
138
- };
139
-
140
- /**
141
- * 定义路由
142
- * @param name 路由名称,默认使用方法名
143
- */
144
- var route = function route(name) {
145
- return function (target, propertyKey, descriptor) {
146
- var constructor = target.constructor;
147
- if (!constructor.routeFunNameMap) {
148
- constructor.routeFunNameMap = {};
149
- }
150
- constructor.routeFunNameMap[name || propertyKey] = propertyKey;
151
- return descriptor;
152
- };
153
- };
154
-
155
- var defineControllerFun = function defineControllerFun(cb) {
156
- var _dec, _dec2, _class, _class2;
157
- var HandlerClass = (_dec = controller('FUN'), _dec2 = route(), _dec(_class = (_class2 = /*#__PURE__*/function () {
158
- function HandlerClass() {
159
- _classCallCheck(this, HandlerClass);
160
- }
161
- return _createClass(HandlerClass, [{
162
- key: "handlerFun",
163
- value: function handlerFun() {
164
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
165
- args[_key] = arguments[_key];
166
- }
167
- return cb.apply(this, args);
168
- }
169
- }]);
170
- }(), _applyDecoratedDescriptor(_class2.prototype, "handlerFun", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, "handlerFun"), _class2.prototype), _class2)) || _class);
171
- return HandlerClass;
172
- };
173
-
174
- export { ComponentBaseImpl, DefaultHandlerName, alias, component, controller, defineControllerFun, fileRoute, method, restController, route };
1
+ function e(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function r(e,r,n){return r&&function(e,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,t(i.key),i)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function n(e,r,n){return(r=t(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function t(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,r);if("object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==typeof r?r:r+""}var i=r(function r(){e(this,r)});n(i,"handlerServer",void 0),n(i,"defineType",void 0),n(i,"defaultHandlerType",void 0),n(i,"fileRoute",void 0),n(i,"routeFunNameMap",void 0),n(i,"funNameMethodMap",void 0),n(i,"funNameHandlerTypeMap",void 0);var o="handlerFun",u=function(e){return function(r,n,t){var i=r.constructor;return i.routeFunNameMap||(i.routeFunNameMap={}),i.routeFunNameMap[e]=n,t}},a=function(e){return function(r){r.handlerServer=!0,r.defineType=e||"CLASS"}},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"CLASS";return function(r){r.handlerServer=!0,r.defineType=e,r.defaultHandlerType="BASE"}},l=function(e){return function(r){r.fileRoute=e}},c=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return function(e,n,t){var i=e.constructor;return i.funNameMethodMap||(i.funNameMethodMap={}),i.funNameMethodMap[n]=r,t}},p=function(){return function(e){e.handlerServer=!0,e.defineType="CLASS",e.defaultHandlerType="REST"}},d=function(e){return function(r,n,t){var i=r.constructor;return i.routeFunNameMap||(i.routeFunNameMap={}),i.routeFunNameMap[e||n]=n,t}},v=function(n){var t,i,o,u,a,l,c,p,v,y,b=(t=f("FUN"),i=d(),t((u=function(){return r(function r(){e(this,r)},[{key:"handlerFun",value:function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return n.apply(this,r)}}])}(),a=u.prototype,l="handlerFun",c=[i],p=Object.getOwnPropertyDescriptor(u.prototype,"handlerFun"),v=u.prototype,y={},Object.keys(p).forEach(function(e){y[e]=p[e]}),y.enumerable=!!y.enumerable,y.configurable=!!y.configurable,("value"in y||y.initializer)&&(y.writable=!0),y=c.slice().reverse().reduce(function(e,r){return r(a,l,e)||e},y),v&&void 0!==y.initializer&&(y.value=y.initializer?y.initializer.call(v):void 0,y.initializer=void 0),void 0===y.initializer&&Object.defineProperty(a,l,y),o=u))||o);return b};export{i as ComponentBaseImpl,o as DefaultHandlerName,u as alias,a as component,f as controller,v as defineControllerFun,l as fileRoute,c as method,p as restController,d as route};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doracli/define-server",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "",
5
5
  "author": "cclr <18843152354@163.com>",
6
6
  "homepage": "",
@@ -22,12 +22,12 @@
22
22
  "scripts": {
23
23
  "test": "vitest",
24
24
  "g:test": "vitest run",
25
- "build": "drn build",
26
- "g:build": "drn build"
25
+ "build": "drr build",
26
+ "g:build": "drr build"
27
27
  },
28
28
  "dependencies": {
29
- "@cclr/lang": "^0.1.44",
29
+ "@cclr/lang": "^0.1.50",
30
30
  "@types/express": "^5.0.6"
31
31
  },
32
- "gitHead": "a978bb7e7b32c192b1eb527dae5f25bbe1a2af86"
32
+ "gitHead": "b387668fa2986c56f245bc53bcb7072fd53b62e1"
33
33
  }