@anncic-api/validator 3.4.32 → 3.4.34

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.
@@ -1,21 +1,21 @@
1
- declare const _default: {
2
- validator: {
3
- errorStatus: number;
4
- validationOptions: {
5
- allowUnknown: boolean;
6
- stripUnknown: boolean;
7
- dateFormat: string;
8
- };
9
- };
10
- i18n: {
11
- localeTable: {
12
- en_US: {
13
- validator: any;
14
- };
15
- zh_CN: {
16
- validator: any;
17
- };
18
- };
19
- };
20
- };
21
- export default _default;
1
+ declare const _default: {
2
+ validator: {
3
+ errorStatus: number;
4
+ validationOptions: {
5
+ allowUnknown: boolean;
6
+ stripUnknown: boolean;
7
+ dateFormat: string;
8
+ };
9
+ };
10
+ i18n: {
11
+ localeTable: {
12
+ en_US: {
13
+ validator: any;
14
+ };
15
+ zh_CN: {
16
+ validator: any;
17
+ };
18
+ };
19
+ };
20
+ };
21
+ export default _default;
@@ -1 +1 @@
1
- const a0_0x17afca=a0_0x5da9;(function(_0x5f04aa,_0x4c8985){const _0x2c1286=a0_0x5da9,_0x1639ee=_0x5f04aa();while(!![]){try{const _0x5b9113=-parseInt(_0x2c1286(0x133))/0x1*(-parseInt(_0x2c1286(0x13a))/0x2)+parseInt(_0x2c1286(0x134))/0x3+-parseInt(_0x2c1286(0x139))/0x4*(parseInt(_0x2c1286(0x13d))/0x5)+parseInt(_0x2c1286(0x13f))/0x6+parseInt(_0x2c1286(0x130))/0x7+-parseInt(_0x2c1286(0x12d))/0x8+parseInt(_0x2c1286(0x13b))/0x9;if(_0x5b9113===_0x4c8985)break;else _0x1639ee['push'](_0x1639ee['shift']());}catch(_0x38c8a3){_0x1639ee['push'](_0x1639ee['shift']());}}}(a0_0x367e,0xa5458));function a0_0x367e(){const _0x524a69=['string','3442649ToqQlU','constructor','search','565011LEDSmf','377574QdjQMC','toString','(((.+)+)+)+$','apply','ValidatorError','394288HpRDDo','2GnRLVg','10392300GnJbzL','PARAMS','50UteEBF','defineProperty','2846976ZkiTzV','default','9193600NVIiWh','../../locales/en_US.json'];a0_0x367e=function(){return _0x524a69;};return a0_0x367e();}const a0_0x5840b6=(function(){let _0x46793b=!![];return function(_0x5f3111,_0x5883de){const _0x590504=_0x46793b?function(){const _0x4a556a=a0_0x5da9;if(_0x5883de){const _0x3d90dd=_0x5883de[_0x4a556a(0x137)](_0x5f3111,arguments);return _0x5883de=null,_0x3d90dd;}}:function(){};return _0x46793b=![],_0x590504;};}()),a0_0x48e050=a0_0x5840b6(this,function(){const _0x1618a0=a0_0x5da9;return a0_0x48e050['toString']()[_0x1618a0(0x132)](_0x1618a0(0x136))[_0x1618a0(0x135)]()[_0x1618a0(0x131)](a0_0x48e050)[_0x1618a0(0x132)](_0x1618a0(0x136));});a0_0x48e050();function a0_0x5da9(_0xa835ef,_0x4df405){const _0x55f671=a0_0x367e();return a0_0x5da9=function(_0x48e050,_0x5840b6){_0x48e050=_0x48e050-0x12c;let _0x367e08=_0x55f671[_0x48e050];return _0x367e08;},a0_0x5da9(_0xa835ef,_0x4df405);}'use strict';Object[a0_0x17afca(0x13e)](exports,'__esModule',{'value':!![]});const ValidatorError_1=require('../exception/ValidatorError');exports[a0_0x17afca(0x12c)]={'validator':{'errorStatus':ValidatorError_1[a0_0x17afca(0x138)][a0_0x17afca(0x13c)],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':a0_0x17afca(0x12f)}},'i18n':{'localeTable':{'en_US':{'validator':require(a0_0x17afca(0x12e))},'zh_CN':{'validator':require('../../locales/zh_CN.json')}}}};
1
+ const a0_0x22ef91=a0_0x13b0;(function(_0x44b624,_0x607dc6){const _0x30122b=a0_0x13b0,_0x46a88a=_0x44b624();while(!![]){try{const _0x5cb8f1=parseInt(_0x30122b(0x1c4))/0x1*(parseInt(_0x30122b(0x1d5))/0x2)+parseInt(_0x30122b(0x1c6))/0x3*(-parseInt(_0x30122b(0x1ca))/0x4)+parseInt(_0x30122b(0x1d9))/0x5*(parseInt(_0x30122b(0x1c5))/0x6)+parseInt(_0x30122b(0x1cf))/0x7*(-parseInt(_0x30122b(0x1d0))/0x8)+-parseInt(_0x30122b(0x1c7))/0x9+parseInt(_0x30122b(0x1cc))/0xa+parseInt(_0x30122b(0x1c9))/0xb;if(_0x5cb8f1===_0x607dc6)break;else _0x46a88a['push'](_0x46a88a['shift']());}catch(_0x538a72){_0x46a88a['push'](_0x46a88a['shift']());}}}(a0_0x5789,0xe108d));const a0_0x2d1228=(function(){let _0x550941=!![];return function(_0xdd932f,_0x269a4b){const _0x526f30=_0x550941?function(){const _0x54c295=a0_0x13b0;if(_0x269a4b){const _0x47e7bd=_0x269a4b[_0x54c295(0x1d7)](_0xdd932f,arguments);return _0x269a4b=null,_0x47e7bd;}}:function(){};return _0x550941=![],_0x526f30;};}()),a0_0x166654=a0_0x2d1228(this,function(){const _0x2dbfd2=a0_0x13b0;return a0_0x166654[_0x2dbfd2(0x1d1)]()[_0x2dbfd2(0x1d3)](_0x2dbfd2(0x1d2))[_0x2dbfd2(0x1d1)]()[_0x2dbfd2(0x1c8)](a0_0x166654)['search'](_0x2dbfd2(0x1d2));});a0_0x166654();'use strict';Object[a0_0x22ef91(0x1cb)](exports,a0_0x22ef91(0x1d4),{'value':!![]});function a0_0x13b0(_0x1ee930,_0x35f5ef){const _0x42f69b=a0_0x5789();return a0_0x13b0=function(_0x166654,_0x2d1228){_0x166654=_0x166654-0x1c4;let _0x578911=_0x42f69b[_0x166654];return _0x578911;},a0_0x13b0(_0x1ee930,_0x35f5ef);}const ValidatorError_1=require(a0_0x22ef91(0x1ce));function a0_0x5789(){const _0x218420=['(((.+)+)+)+$','search','__esModule','8ZWusER','string','apply','../../locales/zh_CN.json','5YLuHgG','220412QGXROZ','2399388yCjfyJ','1729590TkZHPA','10427130KGQYJL','constructor','18697294yEViTk','4HWQCvA','defineProperty','10381540XTimtx','../../locales/en_US.json','../exception/ValidatorError','9538291oADeoo','8WCCnat','toString'];a0_0x5789=function(){return _0x218420;};return a0_0x5789();}exports['default']={'validator':{'errorStatus':ValidatorError_1['ValidatorError']['PARAMS'],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':a0_0x22ef91(0x1d6)}},'i18n':{'localeTable':{'en_US':{'validator':require(a0_0x22ef91(0x1cd))},'zh_CN':{'validator':require(a0_0x22ef91(0x1d8))}}}};
@@ -1,7 +1,7 @@
1
- import { MidwayDecoratorService } from '@midwayjs/core';
2
- import { ValidatorService } from './service/ValidatorService';
3
- export declare class CustomConfiguration {
4
- decorator: MidwayDecoratorService;
5
- ValidatorService: ValidatorService;
6
- onReady(): Promise<void>;
7
- }
1
+ import { MidwayDecoratorService } from '@midwayjs/core';
2
+ import { ValidatorService } from './service/ValidatorService';
3
+ export declare class CustomConfiguration {
4
+ decorator: MidwayDecoratorService;
5
+ ValidatorService: ValidatorService;
6
+ onReady(): Promise<void>;
7
+ }
@@ -1 +1 @@
1
- const a1_0x35c25e=a1_0x5a3b;function a1_0x5a3b(_0x1ad069,_0x2f858f){const _0x586016=a1_0x7a6c();return a1_0x5a3b=function(_0x5d772f,_0x4cab57){_0x5d772f=_0x5d772f-0xc9;let _0x7a6cc8=_0x586016[_0x5d772f];return _0x7a6cc8;},a1_0x5a3b(_0x1ad069,_0x2f858f);}(function(_0x23b735,_0x3f69da){const _0x4ba817=a1_0x5a3b,_0x4aabef=_0x23b735();while(!![]){try{const _0x5aad78=-parseInt(_0x4ba817(0xe5))/0x1*(parseInt(_0x4ba817(0x103))/0x2)+parseInt(_0x4ba817(0xd3))/0x3+parseInt(_0x4ba817(0x104))/0x4*(parseInt(_0x4ba817(0xe9))/0x5)+-parseInt(_0x4ba817(0xef))/0x6*(-parseInt(_0x4ba817(0xd9))/0x7)+parseInt(_0x4ba817(0xeb))/0x8+-parseInt(_0x4ba817(0xce))/0x9+-parseInt(_0x4ba817(0xf5))/0xa*(parseInt(_0x4ba817(0xfd))/0xb);if(_0x5aad78===_0x3f69da)break;else _0x4aabef['push'](_0x4aabef['shift']());}catch(_0xacf0c8){_0x4aabef['push'](_0x4aabef['shift']());}}}(a1_0x7a6c,0xa6edb));const a1_0x4cab57=(function(){let _0x113681=!![];return function(_0x8e0c6,_0x13193a){const _0x246e1f=_0x113681?function(){const _0x34923a=a1_0x5a3b;if(_0x13193a){const _0xa48e5=_0x13193a[_0x34923a(0xfc)](_0x8e0c6,arguments);return _0x13193a=null,_0xa48e5;}}:function(){};return _0x113681=![],_0x246e1f;};}()),a1_0x5d772f=a1_0x4cab57(this,function(){const _0x4680f2=a1_0x5a3b;return a1_0x5d772f[_0x4680f2(0xdc)]()[_0x4680f2(0xd6)]('(((.+)+)+)+$')[_0x4680f2(0xdc)]()['constructor'](a1_0x5d772f)['search'](_0x4680f2(0xc9));});a1_0x5d772f();'use strict';var __decorate=this&&this[a1_0x35c25e(0xd8)]||function(_0x26f7e3,_0x50775d,_0xfa5cc,_0x2ed026){const _0x2edcba=a1_0x35c25e;var _0x2127e5=arguments['length'],_0x5a3669=_0x2127e5<0x3?_0x50775d:_0x2ed026===null?_0x2ed026=Object[_0x2edcba(0xfa)](_0x50775d,_0xfa5cc):_0x2ed026,_0x2fd19d;if(typeof Reflect===_0x2edcba(0xf1)&&typeof Reflect[_0x2edcba(0xd1)]===_0x2edcba(0x102))_0x5a3669=Reflect['decorate'](_0x26f7e3,_0x50775d,_0xfa5cc,_0x2ed026);else{for(var _0x3f9f42=_0x26f7e3[_0x2edcba(0xda)]-0x1;_0x3f9f42>=0x0;_0x3f9f42--)if(_0x2fd19d=_0x26f7e3[_0x3f9f42])_0x5a3669=(_0x2127e5<0x3?_0x2fd19d(_0x5a3669):_0x2127e5>0x3?_0x2fd19d(_0x50775d,_0xfa5cc,_0x5a3669):_0x2fd19d(_0x50775d,_0xfa5cc))||_0x5a3669;}return _0x2127e5>0x3&&_0x5a3669&&Object[_0x2edcba(0xee)](_0x50775d,_0xfa5cc,_0x5a3669),_0x5a3669;},__metadata=this&&this[a1_0x35c25e(0xea)]||function(_0x2c4665,_0x43bb3a){const _0x1ebc81=a1_0x35c25e;if(typeof Reflect===_0x1ebc81(0xf1)&&typeof Reflect['metadata']==='function')return Reflect[_0x1ebc81(0xe4)](_0x2c4665,_0x43bb3a);};Object['defineProperty'](exports,a1_0x35c25e(0xfe),{'value':!![]}),exports[a1_0x35c25e(0xf0)]=void 0x0;const i18n_1=require('@midwayjs/i18n'),core_1=require(a1_0x35c25e(0xf8)),core_2=require(a1_0x35c25e(0xf8)),interface_1=require(a1_0x35c25e(0xf3)),ValidatorService_1=require(a1_0x35c25e(0xd5)),i18n=require(a1_0x35c25e(0xd0)),anncic=require(a1_0x35c25e(0xf7)),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x6de1d5=a1_0x35c25e;this['decorator'][_0x6de1d5(0xe6)](interface_1['VALIDATOR_KEY'],_0x288fae=>{const _0x5cf99a=_0x6de1d5,_0x35f0de=_0x288fae[_0x5cf99a(0xe4)],_0x42c3de=(0x0,core_2[_0x5cf99a(0xf9)])(_0x288fae[_0x5cf99a(0xe3)],_0x288fae['propertyName']);return{'before':_0x4d367e=>{const _0x520b25=_0x5cf99a;var _0xd05c13,_0x4c0c83,_0x3311a4,_0x462ae6,_0x1662e7,_0x30f239,_0x9a1363,_0x1cbe1b,_0x81a5a2,_0x568a86,_0x562134,_0x568fb8,_0x3853da;const _0x531044=_0x4d367e[_0x520b25(0xe3)][core_1[_0x520b25(0xe2)]],_0x4bc761=Object[_0x520b25(0x105)]({},((_0xd05c13=_0x531044===null||_0x531044===void 0x0?void 0x0:_0x531044[_0x520b25(0xdf)])===null||_0xd05c13===void 0x0?void 0x0:_0xd05c13[_0x520b25(0xfb)])||{},((_0x4c0c83=_0x531044===null||_0x531044===void 0x0?void 0x0:_0x531044[_0x520b25(0xdf)])===null||_0x4c0c83===void 0x0?void 0x0:_0x4c0c83[_0x520b25(0xcf)])||{}),_0x106e64=((0x0,core_2[_0x520b25(0xf6)])(interface_1[_0x520b25(0xcb)],_0x4d367e['target'])||[])[_0x520b25(0xcc)](_0x13f729=>_0x13f729[_0x520b25(0xde)]==_0x4d367e[_0x520b25(0xdb)]);!(_0x35f0de===null||_0x35f0de===void 0x0?void 0x0:_0x35f0de[_0x520b25(0x101)])&&_0x531044&&_0x531044[_0x520b25(0x100)]&&(_0x35f0de[_0x520b25(0x101)]=_0x531044[_0x520b25(0x100)](i18n_1[_0x520b25(0xff)]));for(let _0x39ae31=0x0;_0x39ae31<_0x42c3de[_0x520b25(0xda)];_0x39ae31++){const _0x21ad40=_0x42c3de[_0x39ae31],_0x49d62a=this['ValidatorService'][_0x520b25(0xed)](_0x21ad40);if(_0x49d62a){if(typeof _0x4d367e['args'][_0x39ae31]=='undefined'||((_0x3311a4=_0x4d367e['args'][_0x39ae31])===null||_0x3311a4===void 0x0?void 0x0:_0x3311a4[_0x520b25(0xdf)])&&((_0x462ae6=_0x4d367e[_0x520b25(0xe8)][_0x39ae31])===null||_0x462ae6===void 0x0?void 0x0:_0x462ae6['res'])&&((_0x1662e7=_0x4d367e[_0x520b25(0xe8)][_0x39ae31])===null||_0x1662e7===void 0x0?void 0x0:_0x1662e7['req']))_0x4d367e[_0x520b25(0xe8)][_0x39ae31]=_0x4bc761;else((_0x30f239=_0x4d367e['args'][_0x39ae31])===null||_0x30f239===void 0x0?void 0x0:_0x30f239[_0x520b25(0xf4)])==_0x520b25(0xd2)&&_0x4d367e[_0x520b25(0xe8)]['splice'](_0x39ae31,0x0,_0x4bc761);const _0x527656=this[_0x520b25(0xdd)][_0x520b25(0xf2)](_0x49d62a,_0x4d367e[_0x520b25(0xe8)][_0x39ae31],_0x35f0de);_0x527656&&(_0x4d367e[_0x520b25(0xe8)][_0x39ae31]=_0x527656);}else{if((_0x106e64===null||_0x106e64===void 0x0?void 0x0:_0x106e64[_0x520b25(0xec)][_0x39ae31])&&((_0x9a1363=_0x4d367e[_0x520b25(0xe8)][_0x39ae31])===null||_0x9a1363===void 0x0?void 0x0:_0x9a1363[_0x520b25(0xcd)])&&typeof _0x4d367e['args'][_0x39ae31]['param']==_0x520b25(0x102)&&((_0x1cbe1b=_0x531044===null||_0x531044===void 0x0?void 0x0:_0x531044[_0x520b25(0xcd)])===null||_0x1cbe1b===void 0x0?void 0x0:_0x1cbe1b[_0x106e64[_0x520b25(0xec)][_0x39ae31]]))_0x4d367e['args'][_0x39ae31]=_0x21ad40((_0x81a5a2=_0x531044===null||_0x531044===void 0x0?void 0x0:_0x531044[_0x520b25(0xcd)])===null||_0x81a5a2===void 0x0?void 0x0:_0x81a5a2[_0x106e64[_0x520b25(0xec)][_0x39ae31]]);else(_0x106e64===null||_0x106e64===void 0x0?void 0x0:_0x106e64[_0x520b25(0xec)][_0x39ae31])&&((_0x562134=(_0x568a86=_0x4d367e[_0x520b25(0xe8)][_0x39ae31])===null||_0x568a86===void 0x0?void 0x0:_0x568a86[_0x520b25(0xcd)])===null||_0x562134===void 0x0?void 0x0:_0x562134[_0x106e64[_0x520b25(0xec)][_0x39ae31]])&&(_0x4d367e[_0x520b25(0xe8)][_0x39ae31]=(_0x3853da=(_0x568fb8=_0x4d367e['args'][_0x39ae31])===null||_0x568fb8===void 0x0?void 0x0:_0x568fb8['params'])===null||_0x3853da===void 0x0?void 0x0:_0x3853da[_0x106e64['methodArgs'][_0x39ae31]]);}}},'afterThrow':(_0x5e52be,_0x290dcd)=>{throw _0x290dcd;}};});}};function a1_0x7a6c(){const _0x3d2714=['function','881096jxytvQ','536BwxyWs','assign','(((.+)+)+)+$','anncic-api:validator','VALIDATOR_KEY','find','params','8830116ScSZJT','body','@midwayjs/i18n','decorate','bound\x20dispatch','3360786xLQmmF','design:type','./service/ValidatorService','search','MidwayDecoratorService','__decorate','14hqtYUb','length','methodName','toString','ValidatorService','method','request','prototype','Inject','REQUEST_OBJ_CTX_KEY','target','metadata','2TeBUSQ','registerMethodHandler','Configuration','args','48480UXcvNh','__metadata','630416OfZZSy','methodArgs','getSchema','defineProperty','3620250NPtCml','CustomConfiguration','object','validator','./interface','name','99070QVGIhs','getClassMetadata','@anncic-api/core','@midwayjs/core','getMethodParamTypes','getOwnPropertyDescriptor','query','apply','1287zUMBMb','__esModule','I18N_ATTR_KEY','getAttr','locale'];a1_0x7a6c=function(){return _0x3d2714;};return a1_0x7a6c();}exports[a1_0x35c25e(0xf0)]=CustomConfiguration,__decorate([(0x0,core_2['Inject'])(),__metadata('design:type',core_1[a1_0x35c25e(0xd7)])],CustomConfiguration[a1_0x35c25e(0xe0)],'decorator',void 0x0),__decorate([(0x0,core_2[a1_0x35c25e(0xe1)])(),__metadata(a1_0x35c25e(0xd4),ValidatorService_1['ValidatorService'])],CustomConfiguration['prototype'],a1_0x35c25e(0xdd),void 0x0),exports['CustomConfiguration']=CustomConfiguration=__decorate([(0x0,core_2[a1_0x35c25e(0xe7)])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':a1_0x35c25e(0xca),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
1
+ const a1_0x35aed1=a1_0x84cf;(function(_0x39b7af,_0x55a91b){const _0x2bc196=a1_0x84cf,_0x441d67=_0x39b7af();while(!![]){try{const _0x2a5523=-parseInt(_0x2bc196(0x195))/0x1*(-parseInt(_0x2bc196(0x17b))/0x2)+parseInt(_0x2bc196(0x1a2))/0x3+parseInt(_0x2bc196(0x18a))/0x4*(-parseInt(_0x2bc196(0x187))/0x5)+parseInt(_0x2bc196(0x180))/0x6+-parseInt(_0x2bc196(0x17e))/0x7*(-parseInt(_0x2bc196(0x1a7))/0x8)+-parseInt(_0x2bc196(0x178))/0x9*(parseInt(_0x2bc196(0x177))/0xa)+-parseInt(_0x2bc196(0x194))/0xb;if(_0x2a5523===_0x55a91b)break;else _0x441d67['push'](_0x441d67['shift']());}catch(_0x5ba179){_0x441d67['push'](_0x441d67['shift']());}}}(a1_0x2692,0x2d205));function a1_0x2692(){const _0x1f86f8=['name','20TPjBUl','decorate','defineProperty','308428VJkXWO','splice','request','constructor','object','param','methodName','body','args','validator','2148366NchaIm','882CJFVnq','assign','./interface','params','CustomConfiguration','methodArgs','function','metadata','VALIDATOR_KEY','(((.+)+)+)+$','__metadata','propertyName','@midwayjs/core','1093737rDHzxC','prototype','@anncic-api/core','search','@midwayjs/i18n','16032uxaubm','design:type','toString','registerMethodHandler','REQUEST_OBJ_CTX_KEY','__decorate','Inject','20cIdsKc','885771ztrxVS','getMethodParamTypes','query','504wWvRNl','length','decorator','42tdcSqR','bound\x20dispatch','1719252HCFysk','ValidatorService','locale','method','onReady','target'];a1_0x2692=function(){return _0x1f86f8;};return a1_0x2692();}const a1_0x52a8a7=(function(){let _0xaa00a3=!![];return function(_0x4883ff,_0x5ec7a2){const _0x321c5f=_0xaa00a3?function(){if(_0x5ec7a2){const _0x270561=_0x5ec7a2['apply'](_0x4883ff,arguments);return _0x5ec7a2=null,_0x270561;}}:function(){};return _0xaa00a3=![],_0x321c5f;};}()),a1_0x4570a5=a1_0x52a8a7(this,function(){const _0x3141e6=a1_0x84cf;return a1_0x4570a5['toString']()[_0x3141e6(0x1a5)](_0x3141e6(0x19e))[_0x3141e6(0x1a9)]()[_0x3141e6(0x18d)](a1_0x4570a5)[_0x3141e6(0x1a5)](_0x3141e6(0x19e));});a1_0x4570a5();function a1_0x84cf(_0x11029d,_0x57ff85){const _0x2f4dda=a1_0x2692();return a1_0x84cf=function(_0x4570a5,_0x52a8a7){_0x4570a5=_0x4570a5-0x174;let _0x269245=_0x2f4dda[_0x4570a5];return _0x269245;},a1_0x84cf(_0x11029d,_0x57ff85);}'use strict';var __decorate=this&&this[a1_0x35aed1(0x175)]||function(_0x5e7162,_0x2f7f90,_0x2518bf,_0x283885){const _0x1445cd=a1_0x35aed1;var _0x4470f0=arguments[_0x1445cd(0x17c)],_0x54fa29=_0x4470f0<0x3?_0x2f7f90:_0x283885===null?_0x283885=Object['getOwnPropertyDescriptor'](_0x2f7f90,_0x2518bf):_0x283885,_0x5cf17a;if(typeof Reflect===_0x1445cd(0x18e)&&typeof Reflect[_0x1445cd(0x188)]===_0x1445cd(0x19b))_0x54fa29=Reflect[_0x1445cd(0x188)](_0x5e7162,_0x2f7f90,_0x2518bf,_0x283885);else{for(var _0x1aeb1e=_0x5e7162['length']-0x1;_0x1aeb1e>=0x0;_0x1aeb1e--)if(_0x5cf17a=_0x5e7162[_0x1aeb1e])_0x54fa29=(_0x4470f0<0x3?_0x5cf17a(_0x54fa29):_0x4470f0>0x3?_0x5cf17a(_0x2f7f90,_0x2518bf,_0x54fa29):_0x5cf17a(_0x2f7f90,_0x2518bf))||_0x54fa29;}return _0x4470f0>0x3&&_0x54fa29&&Object['defineProperty'](_0x2f7f90,_0x2518bf,_0x54fa29),_0x54fa29;},__metadata=this&&this[a1_0x35aed1(0x19f)]||function(_0x4b7d77,_0x23af60){const _0x362c7c=a1_0x35aed1;if(typeof Reflect===_0x362c7c(0x18e)&&typeof Reflect[_0x362c7c(0x19c)]===_0x362c7c(0x19b))return Reflect['metadata'](_0x4b7d77,_0x23af60);};Object[a1_0x35aed1(0x189)](exports,'__esModule',{'value':!![]}),exports[a1_0x35aed1(0x199)]=void 0x0;const i18n_1=require(a1_0x35aed1(0x1a6)),core_1=require(a1_0x35aed1(0x1a1)),core_2=require(a1_0x35aed1(0x1a1)),interface_1=require(a1_0x35aed1(0x197)),ValidatorService_1=require('./service/ValidatorService'),i18n=require(a1_0x35aed1(0x1a6)),anncic=require(a1_0x35aed1(0x1a4)),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{async[a1_0x35aed1(0x184)](){const _0x458d62=a1_0x35aed1;this['decorator'][_0x458d62(0x1aa)](interface_1[_0x458d62(0x19d)],_0x58f8cf=>{const _0x774cdf=_0x458d62,_0xc81417=_0x58f8cf[_0x774cdf(0x19c)],_0x4b13cc=(0x0,core_2[_0x774cdf(0x179)])(_0x58f8cf[_0x774cdf(0x185)],_0x58f8cf[_0x774cdf(0x1a0)]);return{'before':_0x36201b=>{const _0x486a26=_0x774cdf;var _0x52340c,_0xa7156c,_0x1ae2d1,_0x45c3c2,_0x52923f,_0x58f7f1,_0x3682f3,_0x20cb37,_0x2284e1,_0x4264dd,_0x49096f,_0x564019,_0x1f155d;const _0x1b288b=_0x36201b['target'][core_1[_0x486a26(0x174)]],_0x2937c3=Object[_0x486a26(0x196)]({},((_0x52340c=_0x1b288b===null||_0x1b288b===void 0x0?void 0x0:_0x1b288b[_0x486a26(0x18c)])===null||_0x52340c===void 0x0?void 0x0:_0x52340c[_0x486a26(0x17a)])||{},((_0xa7156c=_0x1b288b===null||_0x1b288b===void 0x0?void 0x0:_0x1b288b[_0x486a26(0x18c)])===null||_0xa7156c===void 0x0?void 0x0:_0xa7156c[_0x486a26(0x191)])||{}),_0x1e80ea=((0x0,core_2['getClassMetadata'])(interface_1[_0x486a26(0x19d)],_0x36201b[_0x486a26(0x185)])||[])['find'](_0x28e85e=>_0x28e85e[_0x486a26(0x183)]==_0x36201b[_0x486a26(0x190)]);!(_0xc81417===null||_0xc81417===void 0x0?void 0x0:_0xc81417['locale'])&&_0x1b288b&&_0x1b288b['getAttr']&&(_0xc81417[_0x486a26(0x182)]=_0x1b288b['getAttr'](i18n_1['I18N_ATTR_KEY']));for(let _0x2500a0=0x0;_0x2500a0<_0x4b13cc[_0x486a26(0x17c)];_0x2500a0++){const _0x5052d2=_0x4b13cc[_0x2500a0],_0xe8dfe5=this[_0x486a26(0x181)]['getSchema'](_0x5052d2);if(_0xe8dfe5){if(typeof _0x36201b[_0x486a26(0x192)][_0x2500a0]=='undefined'||((_0x1ae2d1=_0x36201b[_0x486a26(0x192)][_0x2500a0])===null||_0x1ae2d1===void 0x0?void 0x0:_0x1ae2d1[_0x486a26(0x18c)])&&((_0x45c3c2=_0x36201b[_0x486a26(0x192)][_0x2500a0])===null||_0x45c3c2===void 0x0?void 0x0:_0x45c3c2['res'])&&((_0x52923f=_0x36201b['args'][_0x2500a0])===null||_0x52923f===void 0x0?void 0x0:_0x52923f['req']))_0x36201b[_0x486a26(0x192)][_0x2500a0]=_0x2937c3;else((_0x58f7f1=_0x36201b[_0x486a26(0x192)][_0x2500a0])===null||_0x58f7f1===void 0x0?void 0x0:_0x58f7f1[_0x486a26(0x186)])==_0x486a26(0x17f)&&_0x36201b[_0x486a26(0x192)][_0x486a26(0x18b)](_0x2500a0,0x0,_0x2937c3);const _0xe3d8b6=this[_0x486a26(0x181)][_0x486a26(0x193)](_0xe8dfe5,_0x36201b[_0x486a26(0x192)][_0x2500a0],_0xc81417);_0xe3d8b6&&(_0x36201b[_0x486a26(0x192)][_0x2500a0]=_0xe3d8b6);}else{if((_0x1e80ea===null||_0x1e80ea===void 0x0?void 0x0:_0x1e80ea[_0x486a26(0x19a)][_0x2500a0])&&((_0x3682f3=_0x36201b['args'][_0x2500a0])===null||_0x3682f3===void 0x0?void 0x0:_0x3682f3[_0x486a26(0x198)])&&typeof _0x36201b[_0x486a26(0x192)][_0x2500a0][_0x486a26(0x18f)]=='function'&&((_0x20cb37=_0x1b288b===null||_0x1b288b===void 0x0?void 0x0:_0x1b288b[_0x486a26(0x198)])===null||_0x20cb37===void 0x0?void 0x0:_0x20cb37[_0x1e80ea['methodArgs'][_0x2500a0]]))_0x36201b[_0x486a26(0x192)][_0x2500a0]=_0x5052d2((_0x2284e1=_0x1b288b===null||_0x1b288b===void 0x0?void 0x0:_0x1b288b[_0x486a26(0x198)])===null||_0x2284e1===void 0x0?void 0x0:_0x2284e1[_0x1e80ea[_0x486a26(0x19a)][_0x2500a0]]);else(_0x1e80ea===null||_0x1e80ea===void 0x0?void 0x0:_0x1e80ea[_0x486a26(0x19a)][_0x2500a0])&&((_0x49096f=(_0x4264dd=_0x36201b['args'][_0x2500a0])===null||_0x4264dd===void 0x0?void 0x0:_0x4264dd[_0x486a26(0x198)])===null||_0x49096f===void 0x0?void 0x0:_0x49096f[_0x1e80ea[_0x486a26(0x19a)][_0x2500a0]])&&(_0x36201b[_0x486a26(0x192)][_0x2500a0]=(_0x1f155d=(_0x564019=_0x36201b[_0x486a26(0x192)][_0x2500a0])===null||_0x564019===void 0x0?void 0x0:_0x564019[_0x486a26(0x198)])===null||_0x1f155d===void 0x0?void 0x0:_0x1f155d[_0x1e80ea[_0x486a26(0x19a)][_0x2500a0]]);}}},'afterThrow':(_0x11283f,_0x5b5db8)=>{throw _0x5b5db8;}};});}};__decorate([(0x0,core_2[a1_0x35aed1(0x176)])(),__metadata('design:type',core_1['MidwayDecoratorService'])],CustomConfiguration[a1_0x35aed1(0x1a3)],a1_0x35aed1(0x17d),void 0x0),__decorate([(0x0,core_2[a1_0x35aed1(0x176)])(),__metadata(a1_0x35aed1(0x1a8),ValidatorService_1[a1_0x35aed1(0x181)])],CustomConfiguration[a1_0x35aed1(0x1a3)],'ValidatorService',void 0x0),CustomConfiguration=__decorate([(0x0,core_2['Configuration'])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':'anncic-api:validator','importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x35aed1(0x199)]=CustomConfiguration;
@@ -1,3 +1,3 @@
1
- import * as joi from 'joi';
2
- export declare const RuleType: joi.Root;
3
- export declare function Rule<Schema extends joi.SchemaInternals>(comment: string, schema?: Schema | any, description?: string): (target: any, propertyKey: string) => void;
1
+ import * as joi from 'joi';
2
+ export declare const RuleType: joi.Root;
3
+ export declare function Rule<Schema extends joi.SchemaInternals>(comment: string, schema?: Schema | any, description?: string): (target: any, propertyKey: string) => void;
@@ -1 +1 @@
1
- function a2_0x2968(_0x28a1f3,_0x2a1d56){const _0x102813=a2_0x52b3();return a2_0x2968=function(_0x53552f,_0x32be54){_0x53552f=_0x53552f-0x169;let _0x52b303=_0x102813[_0x53552f];return _0x52b303;},a2_0x2968(_0x28a1f3,_0x2a1d56);}const a2_0x2ca648=a2_0x2968;(function(_0x472218,_0x33655b){const _0x294845=a2_0x2968,_0x2a9ceb=_0x472218();while(!![]){try{const _0x5c3db8=-parseInt(_0x294845(0x170))/0x1*(-parseInt(_0x294845(0x18a))/0x2)+-parseInt(_0x294845(0x16a))/0x3*(parseInt(_0x294845(0x185))/0x4)+parseInt(_0x294845(0x169))/0x5*(-parseInt(_0x294845(0x18c))/0x6)+-parseInt(_0x294845(0x177))/0x7+-parseInt(_0x294845(0x179))/0x8+-parseInt(_0x294845(0x183))/0x9+parseInt(_0x294845(0x17c))/0xa;if(_0x5c3db8===_0x33655b)break;else _0x2a9ceb['push'](_0x2a9ceb['shift']());}catch(_0x3997fc){_0x2a9ceb['push'](_0x2a9ceb['shift']());}}}(a2_0x52b3,0x444b7));const a2_0x32be54=(function(){let _0x4741a6=!![];return function(_0x5e8486,_0x1ddc45){const _0x1e833f=_0x4741a6?function(){if(_0x1ddc45){const _0x25588a=_0x1ddc45['apply'](_0x5e8486,arguments);return _0x1ddc45=null,_0x25588a;}}:function(){};return _0x4741a6=![],_0x1e833f;};}()),a2_0x53552f=a2_0x32be54(this,function(){const _0x46ce98=a2_0x2968;return a2_0x53552f[_0x46ce98(0x173)]()[_0x46ce98(0x18d)]('(((.+)+)+)+$')[_0x46ce98(0x173)]()[_0x46ce98(0x16f)](a2_0x53552f)[_0x46ce98(0x18d)](_0x46ce98(0x17f));});function a2_0x52b3(){const _0x115d5e=['label','isSchema','defineProperty','2437686TjqQSZ','object','48TNmolJ','getPropertyType','RULES_KEY','getClassMetadata','__esModule','100342tlJaYv','map','462IbFGXo','search','default','array','9385WaLpgP','24696DosbVt','RuleType','keys','@midwayjs/core','function','constructor','5HAExmq','extend','joi','toString','name','Rule','items','2848230quKGRE','@joi/date','2772984fwxjuJ','../interface','description','12965600jcTGyO','meta','saveClassMetadata','(((.+)+)+)+$'];a2_0x52b3=function(){return _0x115d5e;};return a2_0x52b3();}a2_0x53552f();'use strict';Object[a2_0x2ca648(0x182)](exports,a2_0x2ca648(0x189),{'value':!![]}),exports[a2_0x2ca648(0x175)]=exports[a2_0x2ca648(0x16b)]=void 0x0;const joi=require(a2_0x2ca648(0x172)),date_1=require(a2_0x2ca648(0x178)),core_1=require(a2_0x2ca648(0x16d)),interface_1=require(a2_0x2ca648(0x17a));exports['RuleType']=joi[a2_0x2ca648(0x171)](date_1[a2_0x2ca648(0x18e)]);function Rule(_0x5b4c06,_0x52c20a,_0x1b3f14=''){return(_0x173e1a,_0x17339d)=>{const _0x88e60b=a2_0x2968;var _0x4e826c;if(_0x17339d)!joi[_0x88e60b(0x181)](_0x52c20a)&&(_0x52c20a===null||_0x52c20a===void 0x0?void 0x0:_0x52c20a[_0x88e60b(0x174)])&&(_0x52c20a=joi[_0x88e60b(0x184)]((0x0,core_1['getClassMetadata'])(interface_1[_0x88e60b(0x187)],_0x52c20a))[_0x88e60b(0x17d)]({'id':_0x52c20a[_0x88e60b(0x174)]}),(0x0,core_1[_0x88e60b(0x186)])(_0x173e1a,_0x17339d)['name']==='Array'&&(_0x52c20a=joi[_0x88e60b(0x18f)]()[_0x88e60b(0x176)](_0x52c20a))),joi['isSchema'](_0x52c20a)&&(_0x5b4c06&&typeof(_0x52c20a===null||_0x52c20a===void 0x0?void 0x0:_0x52c20a[_0x88e60b(0x180)])==_0x88e60b(0x16e)&&(_0x52c20a=_0x52c20a[_0x88e60b(0x180)](_0x5b4c06)),_0x1b3f14&&typeof(_0x52c20a===null||_0x52c20a===void 0x0?void 0x0:_0x52c20a[_0x88e60b(0x17b)])==_0x88e60b(0x16e)&&(_0x52c20a=_0x52c20a[_0x88e60b(0x17b)](_0x1b3f14)),(0x0,core_1['attachClassMetadata'])(interface_1[_0x88e60b(0x187)],_0x52c20a,_0x173e1a,_0x17339d));else{const _0x532fc1=(0x0,core_1[_0x88e60b(0x188)])(interface_1[_0x88e60b(0x187)],_0x52c20a);if(_0x532fc1){let _0x57be82=(_0x4e826c=(0x0,core_1[_0x88e60b(0x188)])(interface_1[_0x88e60b(0x187)],_0x173e1a))!==null&&_0x4e826c!==void 0x0?_0x4e826c:{};Object[_0x88e60b(0x16c)](_0x532fc1)[_0x88e60b(0x18b)](_0x5c29f5=>{!_0x57be82[_0x5c29f5]&&(_0x57be82[_0x5c29f5]=_0x532fc1[_0x5c29f5]);}),(0x0,core_1[_0x88e60b(0x17e)])(interface_1['RULES_KEY'],_0x57be82,_0x173e1a);}}};}exports[a2_0x2ca648(0x175)]=Rule;
1
+ const a2_0xea52bf=a2_0xeb69;(function(_0x412d28,_0x443555){const _0xc708f3=a2_0xeb69,_0x2e5228=_0x412d28();while(!![]){try{const _0x351fc6=parseInt(_0xc708f3(0xa8))/0x1+-parseInt(_0xc708f3(0x98))/0x2*(-parseInt(_0xc708f3(0xae))/0x3)+-parseInt(_0xc708f3(0xb3))/0x4*(parseInt(_0xc708f3(0xab))/0x5)+-parseInt(_0xc708f3(0xa7))/0x6*(parseInt(_0xc708f3(0xaf))/0x7)+-parseInt(_0xc708f3(0xb1))/0x8+-parseInt(_0xc708f3(0xb9))/0x9+parseInt(_0xc708f3(0xb0))/0xa;if(_0x351fc6===_0x443555)break;else _0x2e5228['push'](_0x2e5228['shift']());}catch(_0x450022){_0x2e5228['push'](_0x2e5228['shift']());}}}(a2_0x1f96,0x6ee25));function a2_0x1f96(){const _0x5aff1e=['@joi/date','Rule','default','items','attachClassMetadata','array','getClassMetadata','constructor','__esModule','1389486DiTsKf','452764IqBhuz','meta','label','4265cRFsND','extend','function','153hXchKd','14gcvTin','18109170QSeOgj','5301064ZuTIwo','object','3156siIyOR','isSchema','description','joi','map','getPropertyType','810855VaITfn','toString','saveClassMetadata','3114UtzRhI','(((.+)+)+)+$','RULES_KEY','search','@midwayjs/core','RuleType'];a2_0x1f96=function(){return _0x5aff1e;};return a2_0x1f96();}const a2_0x3bb811=(function(){let _0x15bb26=!![];return function(_0x462db6,_0x43e99c){const _0x50b320=_0x15bb26?function(){if(_0x43e99c){const _0x3c99ef=_0x43e99c['apply'](_0x462db6,arguments);return _0x43e99c=null,_0x3c99ef;}}:function(){};return _0x15bb26=![],_0x50b320;};}()),a2_0x3454a1=a2_0x3bb811(this,function(){const _0x42077a=a2_0xeb69;return a2_0x3454a1['toString']()[_0x42077a(0x9b)](_0x42077a(0x99))[_0x42077a(0x96)]()[_0x42077a(0xa5)](a2_0x3454a1)[_0x42077a(0x9b)]('(((.+)+)+)+$');});a2_0x3454a1();'use strict';Object['defineProperty'](exports,a2_0xea52bf(0xa6),{'value':!![]}),exports[a2_0xea52bf(0x9f)]=exports[a2_0xea52bf(0x9d)]=void 0x0;const joi=require(a2_0xea52bf(0xb6)),date_1=require(a2_0xea52bf(0x9e)),core_1=require(a2_0xea52bf(0x9c)),interface_1=require('../interface');exports['RuleType']=joi[a2_0xea52bf(0xac)](date_1[a2_0xea52bf(0xa0)]);function a2_0xeb69(_0x8146eb,_0x58d29b){const _0x2fffd3=a2_0x1f96();return a2_0xeb69=function(_0x3454a1,_0x3bb811){_0x3454a1=_0x3454a1-0x96;let _0x1f96fb=_0x2fffd3[_0x3454a1];return _0x1f96fb;},a2_0xeb69(_0x8146eb,_0x58d29b);}function Rule(_0x4df74a,_0x13f7a8,_0x162ffe=''){return(_0xb3ed90,_0x4b560a)=>{const _0x13f6ef=a2_0xeb69;var _0x2f74ce;if(_0x4b560a)!joi[_0x13f6ef(0xb4)](_0x13f7a8)&&(_0x13f7a8===null||_0x13f7a8===void 0x0?void 0x0:_0x13f7a8['name'])&&(_0x13f7a8=joi[_0x13f6ef(0xb2)]((0x0,core_1['getClassMetadata'])(interface_1[_0x13f6ef(0x9a)],_0x13f7a8))[_0x13f6ef(0xa9)]({'id':_0x13f7a8['name']}),(0x0,core_1[_0x13f6ef(0xb8)])(_0xb3ed90,_0x4b560a)['name']==='Array'&&(_0x13f7a8=joi[_0x13f6ef(0xa3)]()[_0x13f6ef(0xa1)](_0x13f7a8))),joi['isSchema'](_0x13f7a8)&&(_0x4df74a&&typeof(_0x13f7a8===null||_0x13f7a8===void 0x0?void 0x0:_0x13f7a8['label'])==_0x13f6ef(0xad)&&(_0x13f7a8=_0x13f7a8[_0x13f6ef(0xaa)](_0x4df74a)),_0x162ffe&&typeof(_0x13f7a8===null||_0x13f7a8===void 0x0?void 0x0:_0x13f7a8[_0x13f6ef(0xb5)])=='function'&&(_0x13f7a8=_0x13f7a8[_0x13f6ef(0xb5)](_0x162ffe)),(0x0,core_1[_0x13f6ef(0xa2)])(interface_1[_0x13f6ef(0x9a)],_0x13f7a8,_0xb3ed90,_0x4b560a));else{const _0x24b782=(0x0,core_1[_0x13f6ef(0xa4)])(interface_1[_0x13f6ef(0x9a)],_0x13f7a8);if(_0x24b782){let _0x5596c3=(_0x2f74ce=(0x0,core_1[_0x13f6ef(0xa4)])(interface_1[_0x13f6ef(0x9a)],_0xb3ed90))!==null&&_0x2f74ce!==void 0x0?_0x2f74ce:{};Object['keys'](_0x24b782)[_0x13f6ef(0xb7)](_0xef385=>{!_0x5596c3[_0xef385]&&(_0x5596c3[_0xef385]=_0x24b782[_0xef385]);}),(0x0,core_1[_0x13f6ef(0x97)])(interface_1[_0x13f6ef(0x9a)],_0x5596c3,_0xb3ed90);}}};}exports['Rule']=Rule;
@@ -1,3 +1,3 @@
1
- import { ValidatorOptions } from '../interface';
2
- export declare function Validator(options?: ValidatorOptions): (target: any, propertyKey: string | symbol, descriptor: PropertyDescriptor) => void;
3
- export declare function getFuncArgs(fn: Function): string[];
1
+ import { ValidatorOptions } from '../interface';
2
+ export declare function Validator(options?: ValidatorOptions): (target: any, propertyKey: string | symbol, descriptor: PropertyDescriptor) => void;
3
+ export declare function getFuncArgs(fn: Function): string[];
@@ -1 +1 @@
1
- function a3_0x2de6(){const _0x3541fc=['attachClassMetadata','@midwayjs/core','prototype','Validator','function','defineProperty','485567QzqpLf','679184jlpBIq','1566RKeSWu','(((.+)+)+)+$','7592uuPDSM','slice','toString','search','__esModule','match','createCustomMethodDecorator','getFuncArgs','../interface','703927omMtLE','4320TtGfLy','indexOf','3301780YRpbsP','906006qtePJD','apply','constructor','17739kNcgRC','replace','VALIDATOR_KEY'];a3_0x2de6=function(){return _0x3541fc;};return a3_0x2de6();}const a3_0x1ac209=a3_0x43e5;(function(_0x4baa1e,_0x4e61d7){const _0x7fcd21=a3_0x43e5,_0x2aff46=_0x4baa1e();while(!![]){try{const _0x55a4aa=-parseInt(_0x7fcd21(0x1ee))/0x1+parseInt(_0x7fcd21(0x1ef))/0x2+-parseInt(_0x7fcd21(0x1f0))/0x3*(parseInt(_0x7fcd21(0x1f2))/0x4)+parseInt(_0x7fcd21(0x1fe))/0x5+parseInt(_0x7fcd21(0x1ff))/0x6+-parseInt(_0x7fcd21(0x1fb))/0x7+parseInt(_0x7fcd21(0x1fc))/0x8*(parseInt(_0x7fcd21(0x1e5))/0x9);if(_0x55a4aa===_0x4e61d7)break;else _0x2aff46['push'](_0x2aff46['shift']());}catch(_0x287fe9){_0x2aff46['push'](_0x2aff46['shift']());}}}(a3_0x2de6,0x9bdc5));const a3_0x2cecf1=(function(){let _0x51b426=!![];return function(_0x34269b,_0x2b0a2f){const _0x3cccc6=_0x51b426?function(){const _0x5b5111=a3_0x43e5;if(_0x2b0a2f){const _0x432257=_0x2b0a2f[_0x5b5111(0x200)](_0x34269b,arguments);return _0x2b0a2f=null,_0x432257;}}:function(){};return _0x51b426=![],_0x3cccc6;};}()),a3_0xb12207=a3_0x2cecf1(this,function(){const _0x2522b9=a3_0x43e5;return a3_0xb12207[_0x2522b9(0x1f4)]()[_0x2522b9(0x1f5)](_0x2522b9(0x1f1))[_0x2522b9(0x1f4)]()[_0x2522b9(0x1e4)](a3_0xb12207)[_0x2522b9(0x1f5)](_0x2522b9(0x1f1));});a3_0xb12207();'use strict';Object[a3_0x1ac209(0x1ed)](exports,a3_0x1ac209(0x1f6),{'value':!![]}),exports[a3_0x1ac209(0x1f9)]=exports['Validator']=void 0x0;const core_1=require(a3_0x1ac209(0x1e9)),interface_1=require(a3_0x1ac209(0x1fa));function a3_0x43e5(_0x41e4e8,_0x36532e){const _0x2e72d5=a3_0x2de6();return a3_0x43e5=function(_0xb12207,_0x2cecf1){_0xb12207=_0xb12207-0x1e4;let _0x2de659=_0x2e72d5[_0xb12207];return _0x2de659;},a3_0x43e5(_0x41e4e8,_0x36532e);}function Validator(_0x589dfe={}){return(_0x2b74b1,_0x353aa7,_0x1d1fed)=>{const _0x31e9e2=a3_0x43e5,_0x2eb8c2=getFuncArgs(_0x2b74b1[_0x353aa7]);(0x0,core_1[_0x31e9e2(0x1e8)])(interface_1[_0x31e9e2(0x1e7)],{'method':_0x353aa7,'methodArgs':_0x2eb8c2},_0x2b74b1),(0x0,core_1[_0x31e9e2(0x1f8)])(interface_1[_0x31e9e2(0x1e7)],_0x589dfe)(_0x2b74b1,_0x353aa7,_0x1d1fed);};}exports[a3_0x1ac209(0x1eb)]=Validator;function getFuncArgs(_0x47b8a7){const _0x5dce47=a3_0x1ac209;if(typeof _0x47b8a7==_0x5dce47(0x1ec)){const _0x2db423=/=>.*$/mg,_0x11985d=/=[^,)]+/mg,_0x3d8d08=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x123a54=(_0x47b8a7['prototype']?_0x47b8a7[_0x5dce47(0x1ea)][_0x5dce47(0x1e4)]['toString']():_0x47b8a7[_0x5dce47(0x1f4)]())['replace'](_0x3d8d08,'')[_0x5dce47(0x1e6)](_0x2db423,'')[_0x5dce47(0x1e6)](_0x11985d,''),_0x210afe=_0x123a54[_0x5dce47(0x1f3)](_0x123a54[_0x5dce47(0x1fd)]('(')+0x1,_0x123a54[_0x5dce47(0x1fd)](')'))[_0x5dce47(0x1f7)](/([^\s,]+)/g)||[];return _0x210afe;}}exports['getFuncArgs']=getFuncArgs;
1
+ const a3_0x14568d=a3_0xf335;(function(_0x2138d2,_0x149512){const _0x58b60e=a3_0xf335,_0x43a3f4=_0x2138d2();while(!![]){try{const _0x1e397d=-parseInt(_0x58b60e(0x77))/0x1+parseInt(_0x58b60e(0x75))/0x2+parseInt(_0x58b60e(0x83))/0x3*(-parseInt(_0x58b60e(0x8b))/0x4)+-parseInt(_0x58b60e(0x81))/0x5*(-parseInt(_0x58b60e(0x7e))/0x6)+-parseInt(_0x58b60e(0x88))/0x7+parseInt(_0x58b60e(0x7a))/0x8*(-parseInt(_0x58b60e(0x76))/0x9)+parseInt(_0x58b60e(0x82))/0xa*(parseInt(_0x58b60e(0x86))/0xb);if(_0x1e397d===_0x149512)break;else _0x43a3f4['push'](_0x43a3f4['shift']());}catch(_0x5a29cb){_0x43a3f4['push'](_0x43a3f4['shift']());}}}(a3_0x57a8,0x1ca83));const a3_0x18add1=(function(){let _0x86dff5=!![];return function(_0x1cc9e9,_0x14386a){const _0x15acdc=_0x86dff5?function(){const _0x7aea9f=a3_0xf335;if(_0x14386a){const _0x289674=_0x14386a[_0x7aea9f(0x84)](_0x1cc9e9,arguments);return _0x14386a=null,_0x289674;}}:function(){};return _0x86dff5=![],_0x15acdc;};}()),a3_0x2420f1=a3_0x18add1(this,function(){const _0x1b1b4b=a3_0xf335;return a3_0x2420f1[_0x1b1b4b(0x8e)]()[_0x1b1b4b(0x85)]('(((.+)+)+)+$')['toString']()[_0x1b1b4b(0x8f)](a3_0x2420f1)['search']('(((.+)+)+)+$');});a3_0x2420f1();function a3_0x57a8(){const _0x58e654=['@midwayjs/core','304700NGcgvf','657mtjJvo','102871FuOSXY','createCustomMethodDecorator','../interface','10952lRjbZp','getFuncArgs','defineProperty','prototype','300yalhlu','attachClassMetadata','replace','6290AMHYvA','1024230cxPtuK','3ZlcDSF','apply','search','55kvTYEI','slice','1363047kmVztc','__esModule','VALIDATOR_KEY','849828tQKrpC','Validator','indexOf','toString','constructor'];a3_0x57a8=function(){return _0x58e654;};return a3_0x57a8();}function a3_0xf335(_0x4121ce,_0x7f5b73){const _0x1351f9=a3_0x57a8();return a3_0xf335=function(_0x2420f1,_0x18add1){_0x2420f1=_0x2420f1-0x74;let _0x57a865=_0x1351f9[_0x2420f1];return _0x57a865;},a3_0xf335(_0x4121ce,_0x7f5b73);}'use strict';Object[a3_0x14568d(0x7c)](exports,a3_0x14568d(0x89),{'value':!![]}),exports[a3_0x14568d(0x7b)]=exports[a3_0x14568d(0x8c)]=void 0x0;const core_1=require(a3_0x14568d(0x74)),interface_1=require(a3_0x14568d(0x79));function Validator(_0x1c255d={}){return(_0x52effc,_0x22a669,_0x34cee0)=>{const _0x5f34f5=a3_0xf335,_0x5b25e9=getFuncArgs(_0x52effc[_0x22a669]);(0x0,core_1[_0x5f34f5(0x7f)])(interface_1[_0x5f34f5(0x8a)],{'method':_0x22a669,'methodArgs':_0x5b25e9},_0x52effc),(0x0,core_1[_0x5f34f5(0x78)])(interface_1[_0x5f34f5(0x8a)],_0x1c255d)(_0x52effc,_0x22a669,_0x34cee0);};}exports[a3_0x14568d(0x8c)]=Validator;function getFuncArgs(_0x2efd0e){const _0x5d67aa=a3_0x14568d;if(typeof _0x2efd0e=='function'){const _0x1c860=/=>.*$/mg,_0x351118=/=[^,)]+/mg,_0x355b77=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x299c46=(_0x2efd0e[_0x5d67aa(0x7d)]?_0x2efd0e[_0x5d67aa(0x7d)][_0x5d67aa(0x8f)][_0x5d67aa(0x8e)]():_0x2efd0e[_0x5d67aa(0x8e)]())[_0x5d67aa(0x80)](_0x355b77,'')[_0x5d67aa(0x80)](_0x1c860,'')[_0x5d67aa(0x80)](_0x351118,''),_0x3419a5=_0x299c46[_0x5d67aa(0x87)](_0x299c46[_0x5d67aa(0x8d)]('(')+0x1,_0x299c46[_0x5d67aa(0x8d)](')'))['match'](/([^\s,]+)/g)||[];return _0x3419a5;}}exports[a3_0x14568d(0x7b)]=getFuncArgs;
@@ -1,5 +1,5 @@
1
- /// <reference types="@anncic-api/core" />
2
- export declare class ValidatorError extends AnnError {
3
- static readonly PARAMS = 101406;
4
- static readonly NOFIND_SCHEMA = 101404;
5
- }
1
+ /// <reference types="@anncic-api/core" />
2
+ export declare class ValidatorError extends AnnError {
3
+ static readonly PARAMS = 101406;
4
+ static readonly NOFIND_SCHEMA = 101404;
5
+ }
@@ -1 +1 @@
1
- var a4_0x4bdaee=a4_0x20a5;(function(_0x5c3c9e,_0x42a3af){var _0x199139=a4_0x20a5,_0x57159a=_0x5c3c9e();while(!![]){try{var _0x51d275=parseInt(_0x199139(0xac))/0x1+-parseInt(_0x199139(0x97))/0x2*(parseInt(_0x199139(0x98))/0x3)+-parseInt(_0x199139(0x9b))/0x4*(-parseInt(_0x199139(0xa6))/0x5)+-parseInt(_0x199139(0x93))/0x6*(-parseInt(_0x199139(0xa8))/0x7)+parseInt(_0x199139(0x94))/0x8*(-parseInt(_0x199139(0xa5))/0x9)+-parseInt(_0x199139(0xa0))/0xa+parseInt(_0x199139(0xa3))/0xb*(parseInt(_0x199139(0x9e))/0xc);if(_0x51d275===_0x42a3af)break;else _0x57159a['push'](_0x57159a['shift']());}catch(_0x355bb4){_0x57159a['push'](_0x57159a['shift']());}}}(a4_0x54c2,0x86236));function a4_0x20a5(_0xafd829,_0x573756){var _0x5e87a7=a4_0x54c2();return a4_0x20a5=function(_0xecb520,_0xdad27a){_0xecb520=_0xecb520-0x90;var _0x54c25f=_0x5e87a7[_0xecb520];return _0x54c25f;},a4_0x20a5(_0xafd829,_0x573756);}var a4_0xdad27a=(function(){var _0x88e41f=!![];return function(_0x432296,_0x315a52){var _0x46f208=_0x88e41f?function(){var _0x5674b8=a4_0x20a5;if(_0x315a52){var _0x41360c=_0x315a52[_0x5674b8(0x9c)](_0x432296,arguments);return _0x315a52=null,_0x41360c;}}:function(){};return _0x88e41f=![],_0x46f208;};}()),a4_0xecb520=a4_0xdad27a(this,function(){var _0x232b00=a4_0x20a5;return a4_0xecb520[_0x232b00(0xa4)]()[_0x232b00(0xab)]('(((.+)+)+)+$')[_0x232b00(0xa4)]()[_0x232b00(0xa2)](a4_0xecb520)['search']('(((.+)+)+)+$');});a4_0xecb520();'use strict';var __decorate=this&&this[a4_0x4bdaee(0xa1)]||function(_0x12bdad,_0x5545f6,_0x423c16,_0x250a35){var _0x53a973=a4_0x4bdaee,_0x14eac1=arguments['length'],_0x1b9506=_0x14eac1<0x3?_0x5545f6:_0x250a35===null?_0x250a35=Object[_0x53a973(0x99)](_0x5545f6,_0x423c16):_0x250a35,_0x56f6e3;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x53a973(0x96))_0x1b9506=Reflect[_0x53a973(0x9a)](_0x12bdad,_0x5545f6,_0x423c16,_0x250a35);else{for(var _0x4011fa=_0x12bdad[_0x53a973(0x91)]-0x1;_0x4011fa>=0x0;_0x4011fa--)if(_0x56f6e3=_0x12bdad[_0x4011fa])_0x1b9506=(_0x14eac1<0x3?_0x56f6e3(_0x1b9506):_0x14eac1>0x3?_0x56f6e3(_0x5545f6,_0x423c16,_0x1b9506):_0x56f6e3(_0x5545f6,_0x423c16))||_0x1b9506;}return _0x14eac1>0x3&&_0x1b9506&&Object[_0x53a973(0x92)](_0x5545f6,_0x423c16,_0x1b9506),_0x1b9506;},__metadata=this&&this[a4_0x4bdaee(0xa7)]||function(_0x462e65,_0x4180ee){var _0x2370cb=a4_0x4bdaee;if(typeof Reflect==='object'&&typeof Reflect['metadata']===_0x2370cb(0x96))return Reflect['metadata'](_0x462e65,_0x4180ee);};Object['defineProperty'](exports,a4_0x4bdaee(0x90),{'value':!![]}),exports[a4_0x4bdaee(0xa9)]=void 0x0;const core_1=require('@anncic-api/core');class ValidatorError extends AnnError{}exports[a4_0x4bdaee(0xa9)]=ValidatorError,ValidatorError['PARAMS']=0x18c1e,ValidatorError[a4_0x4bdaee(0xad)]=0x18c1c,__decorate([(0x0,core_1[a4_0x4bdaee(0xaa)])(a4_0x4bdaee(0x95)),__metadata(a4_0x4bdaee(0x9d),Object)],ValidatorError,a4_0x4bdaee(0x9f),void 0x0),__decorate([(0x0,core_1[a4_0x4bdaee(0xaa)])(a4_0x4bdaee(0x95)),__metadata('design:type',Object)],ValidatorError,a4_0x4bdaee(0xad),void 0x0);function a4_0x54c2(){var _0x40b98e=['decorate','836WGVHLN','apply','design:type','5863224FRuwzu','PARAMS','10013880RZDhKa','__decorate','constructor','44KRjftF','toString','7434396gFxPLJ','495TsRCit','__metadata','14zDVgGj','ValidatorError','AnnErrorMsg','search','665028qVUdUu','NOFIND_SCHEMA','__esModule','length','defineProperty','237138XIqCfV','8BRvuWm','参数验证失败','function','2usXHRE','1026933dNeTru','getOwnPropertyDescriptor'];a4_0x54c2=function(){return _0x40b98e;};return a4_0x54c2();}
1
+ var a4_0x435a3a=a4_0xe4b4;(function(_0xa2f292,_0xdbe81b){var _0xf63e93=a4_0xe4b4,_0x54cd83=_0xa2f292();while(!![]){try{var _0x1d363d=-parseInt(_0xf63e93(0x18d))/0x1*(-parseInt(_0xf63e93(0x199))/0x2)+parseInt(_0xf63e93(0x181))/0x3*(parseInt(_0xf63e93(0x19c))/0x4)+-parseInt(_0xf63e93(0x19b))/0x5*(-parseInt(_0xf63e93(0x186))/0x6)+-parseInt(_0xf63e93(0x188))/0x7*(parseInt(_0xf63e93(0x190))/0x8)+-parseInt(_0xf63e93(0x184))/0x9*(-parseInt(_0xf63e93(0x18f))/0xa)+parseInt(_0xf63e93(0x196))/0xb+-parseInt(_0xf63e93(0x195))/0xc*(parseInt(_0xf63e93(0x182))/0xd);if(_0x1d363d===_0xdbe81b)break;else _0x54cd83['push'](_0x54cd83['shift']());}catch(_0x53797e){_0x54cd83['push'](_0x54cd83['shift']());}}}(a4_0x16fd,0x42c31));var a4_0x41582e=(function(){var _0x3124cb=!![];return function(_0x51f7f2,_0x4a5d76){var _0x5e2fdd=_0x3124cb?function(){if(_0x4a5d76){var _0x73eaf=_0x4a5d76['apply'](_0x51f7f2,arguments);return _0x4a5d76=null,_0x73eaf;}}:function(){};return _0x3124cb=![],_0x5e2fdd;};}()),a4_0x549e77=a4_0x41582e(this,function(){var _0x293566=a4_0xe4b4;return a4_0x549e77[_0x293566(0x19d)]()['search'](_0x293566(0x194))[_0x293566(0x19d)]()[_0x293566(0x18e)](a4_0x549e77)['search'](_0x293566(0x194));});a4_0x549e77();'use strict';function a4_0xe4b4(_0x3f08b2,_0x53728e){var _0x4a297b=a4_0x16fd();return a4_0xe4b4=function(_0x549e77,_0x41582e){_0x549e77=_0x549e77-0x180;var _0x16fd5f=_0x4a297b[_0x549e77];return _0x16fd5f;},a4_0xe4b4(_0x3f08b2,_0x53728e);}var __decorate=this&&this['__decorate']||function(_0x55d42a,_0x37f557,_0x376c9a,_0xe0d3f4){var _0x4be6de=a4_0xe4b4,_0x3a7fe0=arguments[_0x4be6de(0x192)],_0x597798=_0x3a7fe0<0x3?_0x37f557:_0xe0d3f4===null?_0xe0d3f4=Object[_0x4be6de(0x191)](_0x37f557,_0x376c9a):_0xe0d3f4,_0x598e55;if(typeof Reflect==='object'&&typeof Reflect[_0x4be6de(0x193)]==='function')_0x597798=Reflect['decorate'](_0x55d42a,_0x37f557,_0x376c9a,_0xe0d3f4);else{for(var _0x19e4aa=_0x55d42a['length']-0x1;_0x19e4aa>=0x0;_0x19e4aa--)if(_0x598e55=_0x55d42a[_0x19e4aa])_0x597798=(_0x3a7fe0<0x3?_0x598e55(_0x597798):_0x3a7fe0>0x3?_0x598e55(_0x37f557,_0x376c9a,_0x597798):_0x598e55(_0x37f557,_0x376c9a))||_0x597798;}return _0x3a7fe0>0x3&&_0x597798&&Object['defineProperty'](_0x37f557,_0x376c9a,_0x597798),_0x597798;},__metadata=this&&this['__metadata']||function(_0x14f852,_0x149a78){var _0x37c1b9=a4_0xe4b4;if(typeof Reflect===_0x37c1b9(0x180)&&typeof Reflect[_0x37c1b9(0x198)]===_0x37c1b9(0x18c))return Reflect[_0x37c1b9(0x198)](_0x14f852,_0x149a78);};Object[a4_0x435a3a(0x197)](exports,a4_0x435a3a(0x183),{'value':!![]}),exports[a4_0x435a3a(0x19a)]=void 0x0;const core_1=require(a4_0x435a3a(0x18b));class ValidatorError extends AnnError{}function a4_0x16fd(){var _0x1b30d6=['975254SSidnj','NOFIND_SCHEMA','design:type','@anncic-api/core','function','1rcWGkf','constructor','41950dRjQUm','16pAJLvX','getOwnPropertyDescriptor','length','decorate','(((.+)+)+)+$','48rXXPmA','1024353UxFchW','defineProperty','metadata','893150JmvMhe','ValidatorError','541165FoHqna','876WupwWi','toString','object','4287qxKeVb','4058041JUcJoe','__esModule','873Uaytin','参数验证失败','30BsapQH','PARAMS'];a4_0x16fd=function(){return _0x1b30d6;};return a4_0x16fd();}ValidatorError['PARAMS']=0x18c1e,ValidatorError[a4_0x435a3a(0x189)]=0x18c1c,__decorate([(0x0,core_1['AnnErrorMsg'])('参数验证失败'),__metadata('design:type',Object)],ValidatorError,a4_0x435a3a(0x187),void 0x0),__decorate([(0x0,core_1['AnnErrorMsg'])(a4_0x435a3a(0x185)),__metadata(a4_0x435a3a(0x18a),Object)],ValidatorError,a4_0x435a3a(0x189),void 0x0),exports[a4_0x435a3a(0x19a)]=ValidatorError;
@@ -1,5 +1,5 @@
1
- export interface Dto<T> {
2
- new (): T;
3
- }
4
- export declare function PickDto<T, K extends keyof T>(dto: Dto<T>, keys: K[]): Dto<Pick<T, (typeof keys)[number]>>;
5
- export declare function OmitDto<T, K extends keyof T>(dto: Dto<T>, keys: K[]): Dto<Omit<T, (typeof keys)[number]>>;
1
+ export interface Dto<T> {
2
+ new (): T;
3
+ }
4
+ export declare function PickDto<T, K extends keyof T>(dto: Dto<T>, keys: K[]): Dto<Pick<T, (typeof keys)[number]>>;
5
+ export declare function OmitDto<T, K extends keyof T>(dto: Dto<T>, keys: K[]): Dto<Omit<T, (typeof keys)[number]>>;
@@ -1 +1 @@
1
- const a5_0x1cf896=a5_0x3266;(function(_0x2da275,_0x32ebe7){const _0x42b612=a5_0x3266,_0x533cfa=_0x2da275();while(!![]){try{const _0x5db56c=-parseInt(_0x42b612(0x14a))/0x1*(-parseInt(_0x42b612(0x14f))/0x2)+-parseInt(_0x42b612(0x15b))/0x3*(-parseInt(_0x42b612(0x154))/0x4)+-parseInt(_0x42b612(0x155))/0x5*(-parseInt(_0x42b612(0x164))/0x6)+parseInt(_0x42b612(0x162))/0x7*(parseInt(_0x42b612(0x15d))/0x8)+-parseInt(_0x42b612(0x161))/0x9*(-parseInt(_0x42b612(0x14e))/0xa)+parseInt(_0x42b612(0x151))/0xb*(parseInt(_0x42b612(0x15e))/0xc)+-parseInt(_0x42b612(0x14b))/0xd;if(_0x5db56c===_0x32ebe7)break;else _0x533cfa['push'](_0x533cfa['shift']());}catch(_0x147058){_0x533cfa['push'](_0x533cfa['shift']());}}}(a5_0x48f4,0xf28fa));function a5_0x3266(_0x599c8b,_0x594b86){const _0x58cb4a=a5_0x48f4();return a5_0x3266=function(_0x6c62d9,_0x501ce2){_0x6c62d9=_0x6c62d9-0x148;let _0x48f4e9=_0x58cb4a[_0x6c62d9];return _0x48f4e9;},a5_0x3266(_0x599c8b,_0x594b86);}const a5_0x501ce2=(function(){let _0x16debb=!![];return function(_0x48f8ee,_0x3c95ac){const _0x1a547c=_0x16debb?function(){const _0x5a2ae8=a5_0x3266;if(_0x3c95ac){const _0x17a438=_0x3c95ac[_0x5a2ae8(0x158)](_0x48f8ee,arguments);return _0x3c95ac=null,_0x17a438;}}:function(){};return _0x16debb=![],_0x1a547c;};}()),a5_0x6c62d9=a5_0x501ce2(this,function(){const _0x2e7b4d=a5_0x3266;return a5_0x6c62d9[_0x2e7b4d(0x152)]()[_0x2e7b4d(0x153)]('(((.+)+)+)+$')['toString']()[_0x2e7b4d(0x150)](a5_0x6c62d9)['search'](_0x2e7b4d(0x149));});a5_0x6c62d9();'use strict';function a5_0x48f4(){const _0x3e7288=['RULES_KEY','getClassExtendedMetadata','159NvwWHZ','@midwayjs/core','8WdmfWb','17004EEuVaW','../interface','prototype','6223599nQuVyZ','13352437BciJuw','defineProperty','11478vsTbBQ','OmitDto','(((.+)+)+)+$','67559NvuHft','61456343csqNNi','assign','PickDto','20OwAYMx','34UAZJdm','constructor','5159oRenxN','toString','search','32588EnPpzP','485GKOMsw','saveClassMetadata','__esModule','apply'];a5_0x48f4=function(){return _0x3e7288;};return a5_0x48f4();}Object[a5_0x1cf896(0x163)](exports,a5_0x1cf896(0x157),{'value':!![]}),exports['OmitDto']=exports[a5_0x1cf896(0x14d)]=void 0x0;const core_1=require(a5_0x1cf896(0x15c)),interface_1=require(a5_0x1cf896(0x15f));function PickDto(_0xa3ed76,_0x14461b){const _0x29a26c=a5_0x1cf896,_0x1f2879=function(){};_0x1f2879[_0x29a26c(0x160)]=_0xa3ed76['prototype'];const _0x41ff2e=(0x0,core_1['getClassExtendedMetadata'])(interface_1[_0x29a26c(0x159)],_0xa3ed76),_0x3adf57={};for(const _0x456600 of _0x14461b){_0x41ff2e[_0x456600]&&(_0x3adf57[_0x456600]=_0x41ff2e[_0x456600]);}return(0x0,core_1[_0x29a26c(0x156)])(interface_1['RULES_KEY'],_0x3adf57,_0x1f2879),_0x1f2879;}exports[a5_0x1cf896(0x14d)]=PickDto;function OmitDto(_0x2a47c1,_0x13d647){const _0x8670a7=a5_0x1cf896,_0x39e61b=function(){};_0x39e61b[_0x8670a7(0x160)]=_0x2a47c1[_0x8670a7(0x160)];const _0x141742=(0x0,core_1[_0x8670a7(0x15a)])(interface_1[_0x8670a7(0x159)],_0x2a47c1),_0x30e734=Object[_0x8670a7(0x14c)]({},_0x141742);for(const _0x360784 of _0x13d647){delete _0x30e734[_0x360784];}return(0x0,core_1[_0x8670a7(0x156)])(interface_1[_0x8670a7(0x159)],_0x30e734,_0x39e61b),_0x39e61b;}exports[a5_0x1cf896(0x148)]=OmitDto;
1
+ const a5_0x134373=a5_0xaf37;(function(_0x12961d,_0x500546){const _0x29e22d=a5_0xaf37,_0x307b6f=_0x12961d();while(!![]){try{const _0x3f7aa1=-parseInt(_0x29e22d(0x1ed))/0x1+parseInt(_0x29e22d(0x1fd))/0x2*(-parseInt(_0x29e22d(0x1ef))/0x3)+-parseInt(_0x29e22d(0x1e6))/0x4+parseInt(_0x29e22d(0x1e9))/0x5*(parseInt(_0x29e22d(0x1fa))/0x6)+parseInt(_0x29e22d(0x1ea))/0x7+-parseInt(_0x29e22d(0x1e5))/0x8+parseInt(_0x29e22d(0x1f6))/0x9*(parseInt(_0x29e22d(0x1eb))/0xa);if(_0x3f7aa1===_0x500546)break;else _0x307b6f['push'](_0x307b6f['shift']());}catch(_0x365707){_0x307b6f['push'](_0x307b6f['shift']());}}}(a5_0x1fe8,0x93e13));const a5_0x273928=(function(){let _0x1aa362=!![];return function(_0x524c0a,_0x57ca35){const _0x3098f8=_0x1aa362?function(){const _0x125d0a=a5_0xaf37;if(_0x57ca35){const _0x3d76b7=_0x57ca35[_0x125d0a(0x1f3)](_0x524c0a,arguments);return _0x57ca35=null,_0x3d76b7;}}:function(){};return _0x1aa362=![],_0x3098f8;};}()),a5_0x20702b=a5_0x273928(this,function(){const _0x4b91db=a5_0xaf37;return a5_0x20702b[_0x4b91db(0x1fc)]()[_0x4b91db(0x1fb)](_0x4b91db(0x1e8))[_0x4b91db(0x1fc)]()[_0x4b91db(0x1f1)](a5_0x20702b)['search'](_0x4b91db(0x1e8));});function a5_0xaf37(_0x2f6535,_0x26feef){const _0x1e976c=a5_0x1fe8();return a5_0xaf37=function(_0x20702b,_0x273928){_0x20702b=_0x20702b-0x1e5;let _0x1fe8e9=_0x1e976c[_0x20702b];return _0x1fe8e9;},a5_0xaf37(_0x2f6535,_0x26feef);}a5_0x20702b();'use strict';function a5_0x1fe8(){const _0x56c79f=['3720905drEijg','1577751Oapvda','170lrsUDv','__esModule','1107465lsDdNV','prototype','3GYfnBd','RULES_KEY','constructor','@midwayjs/core','apply','PickDto','saveClassMetadata','1532214hfYnTd','assign','OmitDto','defineProperty','6EAfNDQ','search','toString','2254678fbDGvb','1044248khfxnD','3570824ZfbvBf','getClassExtendedMetadata','(((.+)+)+)+$'];a5_0x1fe8=function(){return _0x56c79f;};return a5_0x1fe8();}Object[a5_0x134373(0x1f9)](exports,a5_0x134373(0x1ec),{'value':!![]}),exports[a5_0x134373(0x1f8)]=exports[a5_0x134373(0x1f4)]=void 0x0;const core_1=require(a5_0x134373(0x1f2)),interface_1=require('../interface');function PickDto(_0x3f65d8,_0x7497a3){const _0x9a6590=a5_0x134373,_0x16ccae=function(){};_0x16ccae[_0x9a6590(0x1ee)]=_0x3f65d8[_0x9a6590(0x1ee)];const _0x1bfb3b=(0x0,core_1[_0x9a6590(0x1e7)])(interface_1[_0x9a6590(0x1f0)],_0x3f65d8),_0x102db9={};for(const _0x3ffd6e of _0x7497a3){_0x1bfb3b[_0x3ffd6e]&&(_0x102db9[_0x3ffd6e]=_0x1bfb3b[_0x3ffd6e]);}return(0x0,core_1['saveClassMetadata'])(interface_1['RULES_KEY'],_0x102db9,_0x16ccae),_0x16ccae;}exports[a5_0x134373(0x1f4)]=PickDto;function OmitDto(_0xb3dda4,_0x2c182c){const _0x46f251=a5_0x134373,_0x26a977=function(){};_0x26a977[_0x46f251(0x1ee)]=_0xb3dda4[_0x46f251(0x1ee)];const _0x86bf4f=(0x0,core_1[_0x46f251(0x1e7)])(interface_1[_0x46f251(0x1f0)],_0xb3dda4),_0x53a919=Object[_0x46f251(0x1f7)]({},_0x86bf4f);for(const _0x401d62 of _0x2c182c){delete _0x53a919[_0x401d62];}return(0x0,core_1[_0x46f251(0x1f5)])(interface_1['RULES_KEY'],_0x53a919,_0x26a977),_0x26a977;}exports[a5_0x134373(0x1f8)]=OmitDto;
@@ -1,2 +1,2 @@
1
- import * as Joi from 'joi';
2
- export declare function getSchema<T extends new (...args: any[]) => any>(ClzType: T): Joi.ObjectSchema<any>;
1
+ import * as Joi from 'joi';
2
+ export declare function getSchema<T extends new (...args: any[]) => any>(ClzType: T): Joi.ObjectSchema<any>;
@@ -1 +1 @@
1
- const a6_0x2d72de=a6_0x192d;(function(_0x536dac,_0x29b0ee){const _0x8fc2f5=a6_0x192d,_0x2a52a3=_0x536dac();while(!![]){try{const _0x440663=parseInt(_0x8fc2f5(0x207))/0x1+parseInt(_0x8fc2f5(0x1f9))/0x2+-parseInt(_0x8fc2f5(0x1f7))/0x3+parseInt(_0x8fc2f5(0x203))/0x4*(parseInt(_0x8fc2f5(0x1f6))/0x5)+-parseInt(_0x8fc2f5(0x1ff))/0x6*(-parseInt(_0x8fc2f5(0x1f5))/0x7)+parseInt(_0x8fc2f5(0x206))/0x8*(parseInt(_0x8fc2f5(0x201))/0x9)+parseInt(_0x8fc2f5(0x205))/0xa*(-parseInt(_0x8fc2f5(0x1fe))/0xb);if(_0x440663===_0x29b0ee)break;else _0x2a52a3['push'](_0x2a52a3['shift']());}catch(_0x26092b){_0x2a52a3['push'](_0x2a52a3['shift']());}}}(a6_0x3b3e,0x31e29));const a6_0x281b08=(function(){let _0x59eadf=!![];return function(_0x5a3f98,_0xd6083e){const _0x20bfd4=_0x59eadf?function(){const _0x1fedd8=a6_0x192d;if(_0xd6083e){const _0x2aaef5=_0xd6083e[_0x1fedd8(0x1f8)](_0x5a3f98,arguments);return _0xd6083e=null,_0x2aaef5;}}:function(){};return _0x59eadf=![],_0x20bfd4;};}()),a6_0x3721c1=a6_0x281b08(this,function(){const _0x275d33=a6_0x192d;return a6_0x3721c1[_0x275d33(0x1f3)]()[_0x275d33(0x1fa)](_0x275d33(0x204))['toString']()[_0x275d33(0x200)](a6_0x3721c1)[_0x275d33(0x1fa)](_0x275d33(0x204));});a6_0x3721c1();function a6_0x3b3e(){const _0x28b436=['139375JujysH','defineProperty','@midwayjs/core','__esModule','toString','getSchema','1615299CHuRgh','23930VaOAqJ','1118994IkUQOa','apply','511904EawUjP','search','getClassExtendedMetadata','object','RULES_KEY','11aRLzxg','6MWiNbA','constructor','2682cuadjJ','../interface','100mPOLjN','(((.+)+)+)+$','4196210wjeHaz','6744TEhZmw'];a6_0x3b3e=function(){return _0x28b436;};return a6_0x3b3e();}'use strict';Object[a6_0x2d72de(0x208)](exports,a6_0x2d72de(0x20a),{'value':!![]}),exports['getSchema']=void 0x0;function a6_0x192d(_0x4ab739,_0x28291b){const _0x47ff6c=a6_0x3b3e();return a6_0x192d=function(_0x3721c1,_0x281b08){_0x3721c1=_0x3721c1-0x1f3;let _0x3b3ec6=_0x47ff6c[_0x3721c1];return _0x3b3ec6;},a6_0x192d(_0x4ab739,_0x28291b);}const Joi=require('joi'),core_1=require(a6_0x2d72de(0x209)),interface_1=require(a6_0x2d72de(0x202));function getSchema(_0x1717ba){const _0x3eb1c6=a6_0x2d72de,_0x537701=(0x0,core_1[_0x3eb1c6(0x1fb)])(interface_1[_0x3eb1c6(0x1fd)],_0x1717ba);if(_0x537701)return Joi[_0x3eb1c6(0x1fc)](_0x537701);}exports[a6_0x2d72de(0x1f4)]=getSchema;
1
+ const a6_0x5b5a08=a6_0x6f76;(function(_0x522497,_0x1d247e){const _0x3cf5df=a6_0x6f76,_0x15689b=_0x522497();while(!![]){try{const _0x2b40a2=parseInt(_0x3cf5df(0x1f2))/0x1*(parseInt(_0x3cf5df(0x1e6))/0x2)+parseInt(_0x3cf5df(0x1f1))/0x3+-parseInt(_0x3cf5df(0x1e8))/0x4+-parseInt(_0x3cf5df(0x1e5))/0x5+-parseInt(_0x3cf5df(0x1f3))/0x6+-parseInt(_0x3cf5df(0x1f5))/0x7*(-parseInt(_0x3cf5df(0x1e2))/0x8)+-parseInt(_0x3cf5df(0x1e1))/0x9*(parseInt(_0x3cf5df(0x1ec))/0xa);if(_0x2b40a2===_0x1d247e)break;else _0x15689b['push'](_0x15689b['shift']());}catch(_0x1a5a85){_0x15689b['push'](_0x15689b['shift']());}}}(a6_0x4bd2,0x2cd34));function a6_0x6f76(_0xd533bb,_0x215997){const _0x529d3f=a6_0x4bd2();return a6_0x6f76=function(_0x1ba782,_0x3cb4cf){_0x1ba782=_0x1ba782-0x1e1;let _0x4bd2aa=_0x529d3f[_0x1ba782];return _0x4bd2aa;},a6_0x6f76(_0xd533bb,_0x215997);}function a6_0x4bd2(){const _0xf1a63c=['object','952XKxloj','18MYBDIj','19016BTpacM','RULES_KEY','defineProperty','472640EjPUtq','128HKgGEV','(((.+)+)+)+$','340968TuAchf','constructor','getClassExtendedMetadata','getSchema','881740WrlCAa','joi','search','apply','__esModule','975549JlUpoE','2459fpNhvt','1596654EbreqY'];a6_0x4bd2=function(){return _0xf1a63c;};return a6_0x4bd2();}const a6_0x3cb4cf=(function(){let _0x2b5645=!![];return function(_0x11342b,_0x5c9416){const _0x562f82=_0x2b5645?function(){const _0x36bb55=a6_0x6f76;if(_0x5c9416){const _0xc782f0=_0x5c9416[_0x36bb55(0x1ef)](_0x11342b,arguments);return _0x5c9416=null,_0xc782f0;}}:function(){};return _0x2b5645=![],_0x562f82;};}()),a6_0x1ba782=a6_0x3cb4cf(this,function(){const _0x210cf3=a6_0x6f76;return a6_0x1ba782['toString']()['search'](_0x210cf3(0x1e7))['toString']()[_0x210cf3(0x1e9)](a6_0x1ba782)[_0x210cf3(0x1ee)](_0x210cf3(0x1e7));});a6_0x1ba782();'use strict';Object[a6_0x5b5a08(0x1e4)](exports,a6_0x5b5a08(0x1f0),{'value':!![]}),exports[a6_0x5b5a08(0x1eb)]=void 0x0;const Joi=require(a6_0x5b5a08(0x1ed)),core_1=require('@midwayjs/core'),interface_1=require('../interface');function getSchema(_0x2e16fc){const _0x40e254=a6_0x5b5a08,_0x2e62ab=(0x0,core_1[_0x40e254(0x1ea)])(interface_1[_0x40e254(0x1e3)],_0x2e16fc);if(_0x2e62ab)return Joi[_0x40e254(0x1f4)](_0x2e62ab);}exports[a6_0x5b5a08(0x1eb)]=getSchema;
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- export * from "./interface";
2
- export * from './helper/dtoHelper';
3
- export * from './helper/getSchema';
4
- export { Validator } from "./decorator/Validator";
5
- export { Rule, RuleType } from "./decorator/Rule";
6
- export { ValidatorError } from './exception/ValidatorError';
7
- export { ValidatorService } from "./service/ValidatorService";
8
- export { CustomConfiguration as Configuration } from './configuration';
1
+ export * from "./interface";
2
+ export * from './helper/dtoHelper';
3
+ export * from './helper/getSchema';
4
+ export { Validator } from "./decorator/Validator";
5
+ export { Rule, RuleType } from "./decorator/Rule";
6
+ export { ValidatorError } from './exception/ValidatorError';
7
+ export { ValidatorService } from "./service/ValidatorService";
8
+ export { CustomConfiguration as Configuration } from './configuration';
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var a7_0x2a4a22=a7_0x2b01;(function(_0x4c5f49,_0x1e47fa){var _0x22bbc9=a7_0x2b01,_0x5f6a8=_0x4c5f49();while(!![]){try{var _0x514ba4=-parseInt(_0x22bbc9(0x138))/0x1*(-parseInt(_0x22bbc9(0x135))/0x2)+parseInt(_0x22bbc9(0x12a))/0x3*(parseInt(_0x22bbc9(0x119))/0x4)+parseInt(_0x22bbc9(0x122))/0x5+-parseInt(_0x22bbc9(0x137))/0x6+parseInt(_0x22bbc9(0x123))/0x7+parseInt(_0x22bbc9(0x128))/0x8+parseInt(_0x22bbc9(0x12c))/0x9*(-parseInt(_0x22bbc9(0x120))/0xa);if(_0x514ba4===_0x1e47fa)break;else _0x5f6a8['push'](_0x5f6a8['shift']());}catch(_0x44c4d9){_0x5f6a8['push'](_0x5f6a8['shift']());}}}(a7_0x5fc5,0x73334));var a7_0x1d5b92=(function(){var _0x1ad249=!![];return function(_0x924703,_0x3512d9){var _0x4924ba=_0x1ad249?function(){if(_0x3512d9){var _0x46c272=_0x3512d9['apply'](_0x924703,arguments);return _0x3512d9=null,_0x46c272;}}:function(){};return _0x1ad249=![],_0x4924ba;};}()),a7_0x16e098=a7_0x1d5b92(this,function(){var _0x11c370=a7_0x2b01;return a7_0x16e098[_0x11c370(0x129)]()[_0x11c370(0x11e)](_0x11c370(0x11b))[_0x11c370(0x129)]()['constructor'](a7_0x16e098)['search']('(((.+)+)+)+$');});a7_0x16e098();'use strict';var __createBinding=this&&this[a7_0x2a4a22(0x133)]||(Object[a7_0x2a4a22(0x11d)]?function(_0x5085ed,_0x36bf79,_0x286766,_0x5f019f){var _0x3559ee=a7_0x2a4a22;if(_0x5f019f===undefined)_0x5f019f=_0x286766;var _0x165982=Object[_0x3559ee(0x118)](_0x36bf79,_0x286766);(!_0x165982||('get'in _0x165982?!_0x36bf79[_0x3559ee(0x124)]:_0x165982[_0x3559ee(0x12d)]||_0x165982[_0x3559ee(0x121)]))&&(_0x165982={'enumerable':!![],'get':function(){return _0x36bf79[_0x286766];}}),Object[_0x3559ee(0x11f)](_0x5085ed,_0x5f019f,_0x165982);}:function(_0x4d2835,_0x3b9c08,_0x43ded2,_0x43a820){if(_0x43a820===undefined)_0x43a820=_0x43ded2;_0x4d2835[_0x43a820]=_0x3b9c08[_0x43ded2];}),__exportStar=this&&this['__exportStar']||function(_0x31d1f6,_0x7c8761){var _0x323953=a7_0x2a4a22;for(var _0x3fd612 in _0x31d1f6)if(_0x3fd612!=='default'&&!Object[_0x323953(0x127)][_0x323953(0x12b)][_0x323953(0x125)](_0x7c8761,_0x3fd612))__createBinding(_0x7c8761,_0x31d1f6,_0x3fd612);};Object[a7_0x2a4a22(0x11f)](exports,'__esModule',{'value':!![]}),exports[a7_0x2a4a22(0x11c)]=exports[a7_0x2a4a22(0x12e)]=exports[a7_0x2a4a22(0x134)]=exports['RuleType']=exports[a7_0x2a4a22(0x126)]=exports['Validator']=void 0x0,__exportStar(require(a7_0x2a4a22(0x12f)),exports),__exportStar(require('./helper/dtoHelper'),exports),__exportStar(require(a7_0x2a4a22(0x11a)),exports);var Validator_1=require('./decorator/Validator');Object[a7_0x2a4a22(0x11f)](exports,'Validator',{'enumerable':!![],'get':function(){var _0x2f8aa8=a7_0x2a4a22;return Validator_1[_0x2f8aa8(0x136)];}});var Rule_1=require('./decorator/Rule');Object[a7_0x2a4a22(0x11f)](exports,a7_0x2a4a22(0x126),{'enumerable':!![],'get':function(){return Rule_1['Rule'];}}),Object['defineProperty'](exports,'RuleType',{'enumerable':!![],'get':function(){return Rule_1['RuleType'];}});var ValidatorError_1=require(a7_0x2a4a22(0x132));Object['defineProperty'](exports,a7_0x2a4a22(0x134),{'enumerable':!![],'get':function(){var _0x2f7ea6=a7_0x2a4a22;return ValidatorError_1[_0x2f7ea6(0x134)];}});var ValidatorService_1=require('./service/ValidatorService');Object[a7_0x2a4a22(0x11f)](exports,a7_0x2a4a22(0x12e),{'enumerable':!![],'get':function(){return ValidatorService_1['ValidatorService'];}});var configuration_1=require(a7_0x2a4a22(0x131));Object[a7_0x2a4a22(0x11f)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x4a8516=a7_0x2a4a22;return configuration_1[_0x4a8516(0x130)];}});function a7_0x2b01(_0x4e7b7d,_0x7c6470){var _0x3917da=a7_0x5fc5();return a7_0x2b01=function(_0x16e098,_0x1d5b92){_0x16e098=_0x16e098-0x118;var _0x5fc50c=_0x3917da[_0x16e098];return _0x5fc50c;},a7_0x2b01(_0x4e7b7d,_0x7c6470);}function a7_0x5fc5(){var _0x14063e=['Configuration','create','search','defineProperty','32290jddbhP','configurable','500590FptFMd','6469470iDZIVX','__esModule','call','Rule','prototype','2838872IiBcJN','toString','258702UEBHnp','hasOwnProperty','5373LUVEpm','writable','ValidatorService','./interface','CustomConfiguration','./configuration','./exception/ValidatorError','__createBinding','ValidatorError','82TXCFQx','Validator','1843086QpwiRs','11347TlgZFj','getOwnPropertyDescriptor','40VrVlNs','./helper/getSchema','(((.+)+)+)+$'];a7_0x5fc5=function(){return _0x14063e;};return a7_0x5fc5();}
1
+ function a7_0x1eb2(){var _0x23902e=['./decorator/Rule','Configuration','7022070mYiTdu','./exception/ValidatorError','1heCkbb','hasOwnProperty','get','Rule','ValidatorError','33900faEjHY','./decorator/Validator','ValidatorService','./configuration','./helper/getSchema','3NCaKtB','__exportStar','configurable','4713410WrbrHK','305rSWDdQ','5392863ZGlzay','3121538NnCxEk','getOwnPropertyDescriptor','__createBinding','./helper/dtoHelper','2340564uFpMwZ','call','defineProperty','prototype','257446WDkWja','toString','Validator','8kkSlKo','__esModule','writable','12EgVeyL','search','RuleType'];a7_0x1eb2=function(){return _0x23902e;};return a7_0x1eb2();}function a7_0x8b52(_0x54ca57,_0x3038d4){var _0x2ab18d=a7_0x1eb2();return a7_0x8b52=function(_0x5921c7,_0x587f2f){_0x5921c7=_0x5921c7-0x150;var _0x1eb255=_0x2ab18d[_0x5921c7];return _0x1eb255;},a7_0x8b52(_0x54ca57,_0x3038d4);}var a7_0x4775f6=a7_0x8b52;(function(_0xb41f23,_0x29a505){var _0x224dfa=a7_0x8b52,_0x58ab85=_0xb41f23();while(!![]){try{var _0x446ec3=parseInt(_0x224dfa(0x171))/0x1*(parseInt(_0x224dfa(0x164))/0x2)+parseInt(_0x224dfa(0x156))/0x3*(parseInt(_0x224dfa(0x160))/0x4)+parseInt(_0x224dfa(0x15a))/0x5*(-parseInt(_0x224dfa(0x151))/0x6)+parseInt(_0x224dfa(0x15c))/0x7+parseInt(_0x224dfa(0x167))/0x8*(parseInt(_0x224dfa(0x15b))/0x9)+-parseInt(_0x224dfa(0x159))/0xa+-parseInt(_0x224dfa(0x16f))/0xb*(parseInt(_0x224dfa(0x16a))/0xc);if(_0x446ec3===_0x29a505)break;else _0x58ab85['push'](_0x58ab85['shift']());}catch(_0x3f8516){_0x58ab85['push'](_0x58ab85['shift']());}}}(a7_0x1eb2,0x4a604));var a7_0x587f2f=(function(){var _0x2cdec3=!![];return function(_0x3c7992,_0x1ca9db){var _0x505bb9=_0x2cdec3?function(){if(_0x1ca9db){var _0x4a20b3=_0x1ca9db['apply'](_0x3c7992,arguments);return _0x1ca9db=null,_0x4a20b3;}}:function(){};return _0x2cdec3=![],_0x505bb9;};}()),a7_0x5921c7=a7_0x587f2f(this,function(){var _0x1474ec=a7_0x8b52;return a7_0x5921c7[_0x1474ec(0x165)]()[_0x1474ec(0x16b)]('(((.+)+)+)+$')[_0x1474ec(0x165)]()['constructor'](a7_0x5921c7)[_0x1474ec(0x16b)]('(((.+)+)+)+$');});a7_0x5921c7();'use strict';var __createBinding=this&&this[a7_0x4775f6(0x15e)]||(Object['create']?function(_0x34fd4c,_0x17881a,_0x3d5d1e,_0x58baf5){var _0x4572c5=a7_0x4775f6;if(_0x58baf5===undefined)_0x58baf5=_0x3d5d1e;var _0x1a7ed9=Object[_0x4572c5(0x15d)](_0x17881a,_0x3d5d1e);(!_0x1a7ed9||(_0x4572c5(0x173)in _0x1a7ed9?!_0x17881a[_0x4572c5(0x168)]:_0x1a7ed9[_0x4572c5(0x169)]||_0x1a7ed9[_0x4572c5(0x158)]))&&(_0x1a7ed9={'enumerable':!![],'get':function(){return _0x17881a[_0x3d5d1e];}}),Object[_0x4572c5(0x162)](_0x34fd4c,_0x58baf5,_0x1a7ed9);}:function(_0x33abb9,_0x6da0f8,_0x2f40d,_0x487ad8){if(_0x487ad8===undefined)_0x487ad8=_0x2f40d;_0x33abb9[_0x487ad8]=_0x6da0f8[_0x2f40d];}),__exportStar=this&&this[a7_0x4775f6(0x157)]||function(_0x2022d1,_0x5b089c){var _0x1be846=a7_0x4775f6;for(var _0x1ada01 in _0x2022d1)if(_0x1ada01!=='default'&&!Object[_0x1be846(0x163)][_0x1be846(0x172)][_0x1be846(0x161)](_0x5b089c,_0x1ada01))__createBinding(_0x5b089c,_0x2022d1,_0x1ada01);};Object[a7_0x4775f6(0x162)](exports,a7_0x4775f6(0x168),{'value':!![]}),exports[a7_0x4775f6(0x16e)]=exports['ValidatorService']=exports[a7_0x4775f6(0x150)]=exports[a7_0x4775f6(0x16c)]=exports[a7_0x4775f6(0x174)]=exports[a7_0x4775f6(0x166)]=void 0x0,__exportStar(require('./interface'),exports),__exportStar(require(a7_0x4775f6(0x15f)),exports),__exportStar(require(a7_0x4775f6(0x155)),exports);var Validator_1=require(a7_0x4775f6(0x152));Object[a7_0x4775f6(0x162)](exports,'Validator',{'enumerable':!![],'get':function(){var _0x5943c2=a7_0x4775f6;return Validator_1[_0x5943c2(0x166)];}});var Rule_1=require(a7_0x4775f6(0x16d));Object[a7_0x4775f6(0x162)](exports,a7_0x4775f6(0x174),{'enumerable':!![],'get':function(){var _0x45bc45=a7_0x4775f6;return Rule_1[_0x45bc45(0x174)];}}),Object[a7_0x4775f6(0x162)](exports,a7_0x4775f6(0x16c),{'enumerable':!![],'get':function(){var _0x5c66a5=a7_0x4775f6;return Rule_1[_0x5c66a5(0x16c)];}});var ValidatorError_1=require(a7_0x4775f6(0x170));Object[a7_0x4775f6(0x162)](exports,a7_0x4775f6(0x150),{'enumerable':!![],'get':function(){var _0x45b7c5=a7_0x4775f6;return ValidatorError_1[_0x45b7c5(0x150)];}});var ValidatorService_1=require('./service/ValidatorService');Object[a7_0x4775f6(0x162)](exports,a7_0x4775f6(0x153),{'enumerable':!![],'get':function(){var _0x4a2245=a7_0x4775f6;return ValidatorService_1[_0x4a2245(0x153)];}});var configuration_1=require(a7_0x4775f6(0x154));Object[a7_0x4775f6(0x162)](exports,a7_0x4775f6(0x16e),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});
@@ -1,9 +1,9 @@
1
- import * as Joi from 'joi';
2
- export declare const RULES_KEY = "anncic-api:validator:rules";
3
- export declare const VALIDATOR_KEY = "anncic-api:validator:validator";
4
- export interface ValidatorOptions {
5
- locale?: string;
6
- description?: string;
7
- errorStatus?: number;
8
- validationOptions?: Joi.ValidationOptions;
9
- }
1
+ import * as Joi from 'joi';
2
+ export declare const RULES_KEY = "anncic-api:validator:rules";
3
+ export declare const VALIDATOR_KEY = "anncic-api:validator:validator";
4
+ export interface ValidatorOptions {
5
+ locale?: string;
6
+ description?: string;
7
+ errorStatus?: number;
8
+ validationOptions?: Joi.ValidationOptions;
9
+ }
package/dist/interface.js CHANGED
@@ -1 +1 @@
1
- function a8_0x2177(_0x3a5bfa,_0x1058b4){var _0x3cf353=a8_0xfede();return a8_0x2177=function(_0x4a8fb9,_0x5eb2b0){_0x4a8fb9=_0x4a8fb9-0xed;var _0xfede49=_0x3cf353[_0x4a8fb9];return _0xfede49;},a8_0x2177(_0x3a5bfa,_0x1058b4);}function a8_0xfede(){var _0x1edaac=['3571302kniiNp','9KVFrOh','search','RULES_KEY','VALIDATOR_KEY','apply','__esModule','8leXDlL','anncic-api:validator:validator','16146680zDccKQ','3077595dlaLiZ','3330610ykamwi','1606030okOKMI','(((.+)+)+)+$','toString','1472877XCpjKz','538570yakvtW','defineProperty'];a8_0xfede=function(){return _0x1edaac;};return a8_0xfede();}var a8_0xff478=a8_0x2177;(function(_0x3ae523,_0x2a4798){var _0x56f84b=a8_0x2177,_0x485849=_0x3ae523();while(!![]){try{var _0x24d87f=-parseInt(_0x56f84b(0xf5))/0x1+-parseInt(_0x56f84b(0xf1))/0x2+parseInt(_0x56f84b(0xef))/0x3+-parseInt(_0x56f84b(0xfe))/0x4*(parseInt(_0x56f84b(0xf0))/0x5)+parseInt(_0x56f84b(0xf7))/0x6+-parseInt(_0x56f84b(0xf4))/0x7+-parseInt(_0x56f84b(0xee))/0x8*(-parseInt(_0x56f84b(0xf8))/0x9);if(_0x24d87f===_0x2a4798)break;else _0x485849['push'](_0x485849['shift']());}catch(_0x2a958b){_0x485849['push'](_0x485849['shift']());}}}(a8_0xfede,0xb85e9));var a8_0x5eb2b0=(function(){var _0x4a0906=!![];return function(_0x39f746,_0x3ded36){var _0x4ad658=_0x4a0906?function(){var _0x451cf9=a8_0x2177;if(_0x3ded36){var _0x12f7e1=_0x3ded36[_0x451cf9(0xfc)](_0x39f746,arguments);return _0x3ded36=null,_0x12f7e1;}}:function(){};return _0x4a0906=![],_0x4ad658;};}()),a8_0x4a8fb9=a8_0x5eb2b0(this,function(){var _0x2f4ec7=a8_0x2177;return a8_0x4a8fb9[_0x2f4ec7(0xf3)]()[_0x2f4ec7(0xf9)](_0x2f4ec7(0xf2))[_0x2f4ec7(0xf3)]()['constructor'](a8_0x4a8fb9)[_0x2f4ec7(0xf9)](_0x2f4ec7(0xf2));});a8_0x4a8fb9();'use strict';Object[a8_0xff478(0xf6)](exports,a8_0xff478(0xfd),{'value':!![]}),exports[a8_0xff478(0xfb)]=exports[a8_0xff478(0xfa)]=void 0x0,exports['RULES_KEY']='anncic-api:validator:rules',exports['VALIDATOR_KEY']=a8_0xff478(0xed);
1
+ var a8_0x104f99=a8_0x3c34;function a8_0x3c34(_0x2fac5c,_0x373b80){var _0x5796b4=a8_0x5b9c();return a8_0x3c34=function(_0x2a1e29,_0x5ebe00){_0x2a1e29=_0x2a1e29-0x1b9;var _0x5b9c18=_0x5796b4[_0x2a1e29];return _0x5b9c18;},a8_0x3c34(_0x2fac5c,_0x373b80);}function a8_0x5b9c(){var _0x95418a=['anncic-api:validator:validator','70715JTEyLs','1895640KMNjGh','toString','search','9ymrqHp','RULES_KEY','20jSGyGm','apply','381367rXJOyY','4467ZgUQMa','812230bdlkHA','__esModule','154NAaSwb','864738Rxnraw','anncic-api:validator:rules','202167zOCByl','VALIDATOR_KEY','defineProperty','(((.+)+)+)+$','constructor'];a8_0x5b9c=function(){return _0x95418a;};return a8_0x5b9c();}(function(_0x321370,_0x54c4b1){var _0x17d316=a8_0x3c34,_0x2fb00f=_0x321370();while(!![]){try{var _0x26dae7=-parseInt(_0x17d316(0x1b9))/0x1+parseInt(_0x17d316(0x1cb))/0x2*(parseInt(_0x17d316(0x1c8))/0x3)+parseInt(_0x17d316(0x1c5))/0x4*(parseInt(_0x17d316(0x1bf))/0x5)+-parseInt(_0x17d316(0x1cc))/0x6+parseInt(_0x17d316(0x1c7))/0x7+-parseInt(_0x17d316(0x1c0))/0x8*(-parseInt(_0x17d316(0x1c3))/0x9)+parseInt(_0x17d316(0x1c9))/0xa;if(_0x26dae7===_0x54c4b1)break;else _0x2fb00f['push'](_0x2fb00f['shift']());}catch(_0x5ce350){_0x2fb00f['push'](_0x2fb00f['shift']());}}}(a8_0x5b9c,0x33b19));var a8_0x5ebe00=(function(){var _0x2ebca6=!![];return function(_0x1d4eee,_0x123fdb){var _0x3abef6=_0x2ebca6?function(){var _0x2ddc0=a8_0x3c34;if(_0x123fdb){var _0x4c8747=_0x123fdb[_0x2ddc0(0x1c6)](_0x1d4eee,arguments);return _0x123fdb=null,_0x4c8747;}}:function(){};return _0x2ebca6=![],_0x3abef6;};}()),a8_0x2a1e29=a8_0x5ebe00(this,function(){var _0x795cf5=a8_0x3c34;return a8_0x2a1e29[_0x795cf5(0x1c1)]()[_0x795cf5(0x1c2)]('(((.+)+)+)+$')[_0x795cf5(0x1c1)]()[_0x795cf5(0x1bd)](a8_0x2a1e29)[_0x795cf5(0x1c2)](_0x795cf5(0x1bc));});a8_0x2a1e29();'use strict';Object[a8_0x104f99(0x1bb)](exports,a8_0x104f99(0x1ca),{'value':!![]}),exports[a8_0x104f99(0x1ba)]=exports[a8_0x104f99(0x1c4)]=void 0x0,exports[a8_0x104f99(0x1c4)]=a8_0x104f99(0x1cd),exports['VALIDATOR_KEY']=a8_0x104f99(0x1be);
@@ -1,15 +1,15 @@
1
- import * as Joi from "joi";
2
- import { MidwayI18nServiceSingleton } from '@midwayjs/i18n';
3
- export declare class ValidatorService {
4
- protected i18nConfig: any;
5
- protected validatorConfig: any;
6
- protected i18nService: MidwayI18nServiceSingleton;
7
- protected messages: {};
8
- init(): Promise<void>;
9
- getSchema<T extends new (...args: any[]) => any>(ClzType: T): Joi.ObjectSchema<any> | undefined;
10
- validator<T extends new (...args: any[]) => any>(ClzType: T | Joi.ObjectSchema<any>, value: any, options?: {
11
- errorStatus?: number;
12
- locale?: string;
13
- validationOptions?: Joi.ValidationOptions;
14
- }): any;
15
- }
1
+ import * as Joi from "joi";
2
+ import { MidwayI18nServiceSingleton } from '@midwayjs/i18n';
3
+ export declare class ValidatorService {
4
+ protected i18nConfig: any;
5
+ protected validatorConfig: any;
6
+ protected i18nService: MidwayI18nServiceSingleton;
7
+ protected messages: {};
8
+ init(): Promise<void>;
9
+ getSchema<T extends new (...args: any[]) => any>(ClzType: T): Joi.ObjectSchema<any> | undefined;
10
+ validator<T extends new (...args: any[]) => any>(ClzType: T | Joi.ObjectSchema<any>, value: any, options?: {
11
+ errorStatus?: number;
12
+ locale?: string;
13
+ validationOptions?: Joi.ValidationOptions;
14
+ }): any;
15
+ }
@@ -1 +1 @@
1
- function a9_0x3fcd(_0x2ac590,_0x3a7942){const _0x2575dd=a9_0x4270();return a9_0x3fcd=function(_0x1e854d,_0x1043a3){_0x1e854d=_0x1e854d-0xb6;let _0x4270b0=_0x2575dd[_0x1e854d];return _0x4270b0;},a9_0x3fcd(_0x2ac590,_0x3a7942);}const a9_0x5241b6=a9_0x3fcd;(function(_0x3672ae,_0x2946ea){const _0x553bd5=a9_0x3fcd,_0x26657c=_0x3672ae();while(!![]){try{const _0x58fca9=-parseInt(_0x553bd5(0xd1))/0x1+parseInt(_0x553bd5(0xd3))/0x2+parseInt(_0x553bd5(0xf2))/0x3*(parseInt(_0x553bd5(0xda))/0x4)+parseInt(_0x553bd5(0xd6))/0x5*(-parseInt(_0x553bd5(0x101))/0x6)+parseInt(_0x553bd5(0xc9))/0x7*(parseInt(_0x553bd5(0x103))/0x8)+parseInt(_0x553bd5(0xe0))/0x9+parseInt(_0x553bd5(0xf3))/0xa;if(_0x58fca9===_0x2946ea)break;else _0x26657c['push'](_0x26657c['shift']());}catch(_0x287e34){_0x26657c['push'](_0x26657c['shift']());}}}(a9_0x4270,0x6134f));const a9_0x1043a3=(function(){let _0x3042b6=!![];return function(_0x240f1d,_0x12aa0e){const _0x5da4a9=_0x3042b6?function(){const _0x30dd27=a9_0x3fcd;if(_0x12aa0e){const _0x4e7aa2=_0x12aa0e[_0x30dd27(0xd4)](_0x240f1d,arguments);return _0x12aa0e=null,_0x4e7aa2;}}:function(){};return _0x3042b6=![],_0x5da4a9;};}()),a9_0x1e854d=a9_0x1043a3(this,function(){const _0x59e0de=a9_0x3fcd;return a9_0x1e854d['toString']()[_0x59e0de(0xc0)](_0x59e0de(0xef))[_0x59e0de(0x100)]()['constructor'](a9_0x1e854d)[_0x59e0de(0xc0)](_0x59e0de(0xef));});a9_0x1e854d();'use strict';var __decorate=this&&this[a9_0x5241b6(0xe9)]||function(_0x100e60,_0x51b407,_0x313121,_0x2bb12e){const _0x29c56d=a9_0x5241b6;var _0x20c1c8=arguments[_0x29c56d(0xf1)],_0x2a740a=_0x20c1c8<0x3?_0x51b407:_0x2bb12e===null?_0x2bb12e=Object[_0x29c56d(0xd0)](_0x51b407,_0x313121):_0x2bb12e,_0x302489;if(typeof Reflect===_0x29c56d(0xc5)&&typeof Reflect[_0x29c56d(0xd9)]===_0x29c56d(0xf0))_0x2a740a=Reflect[_0x29c56d(0xd9)](_0x100e60,_0x51b407,_0x313121,_0x2bb12e);else{for(var _0x25ce34=_0x100e60[_0x29c56d(0xf1)]-0x1;_0x25ce34>=0x0;_0x25ce34--)if(_0x302489=_0x100e60[_0x25ce34])_0x2a740a=(_0x20c1c8<0x3?_0x302489(_0x2a740a):_0x20c1c8>0x3?_0x302489(_0x51b407,_0x313121,_0x2a740a):_0x302489(_0x51b407,_0x313121))||_0x2a740a;}return _0x20c1c8>0x3&&_0x2a740a&&Object[_0x29c56d(0xdc)](_0x51b407,_0x313121,_0x2a740a),_0x2a740a;},__metadata=this&&this[a9_0x5241b6(0xf8)]||function(_0x5beac0,_0x20a1da){const _0x5b2163=a9_0x5241b6;if(typeof Reflect===_0x5b2163(0xc5)&&typeof Reflect[_0x5b2163(0xee)]===_0x5b2163(0xf0))return Reflect[_0x5b2163(0xee)](_0x5beac0,_0x20a1da);};function a9_0x4270(){const _0x1b817c=['language','design:returntype','validatorConfig','__decorate','validator','Singleton','@midwayjs/core','__esModule','metadata','(((.+)+)+)+$','function','length','3DFxgox','1054520uPCsdV','i18n','type','format','date','__metadata','prototype','_flags','PARAMS','value','key','defaultLocale','details','toString','81156YSfIFP','Init','856niKonM','validate','YYYY-MM-DD\x20HH:mm:ss','getLocaleMapping','../interface','formatLocale','schema','forEach','Scope','ValidatorService','errors','search','ValidatorError','NOFIND_SCHEMA','design:type','assign','object','参数验证失败','$_terms','getSchema','39067oZJyRa','design:paramtypes','validationOptions','i18nConfig','error','ScopeEnum','messages','getOwnPropertyDescriptor','493465TftgKd','../exception/ValidatorError','558524fMxrGn','apply','i18nService','95yDLzKh','getAvailableLocale','MidwayI18nServiceSingleton','decorate','129028bNlNVg','message','defineProperty','joi','RULES_KEY','fromEntries','1210320ejOicm','Config','isSchema','init','localeTable','keys'];a9_0x4270=function(){return _0x1b817c;};return a9_0x4270();}Object[a9_0x5241b6(0xdc)](exports,a9_0x5241b6(0xed),{'value':!![]}),exports[a9_0x5241b6(0xbe)]=void 0x0;const Joi=require(a9_0x5241b6(0xdd)),i18n_1=require('@midwayjs/i18n'),core_1=require(a9_0x5241b6(0xec)),interface_1=require(a9_0x5241b6(0xb9)),ValidatorError_1=require(a9_0x5241b6(0xd2));let ValidatorService=class ValidatorService{constructor(){const _0x56f5ff=a9_0x5241b6;this[_0x56f5ff(0xcf)]={};}async[a9_0x5241b6(0xe3)](){const _0x5c384b=a9_0x5241b6,_0x2f3b67=Object[_0x5c384b(0xe5)](this[_0x5c384b(0xcc)][_0x5c384b(0xe4)]);_0x2f3b67[_0x5c384b(0xbc)](_0x125ea0=>{const _0x20bd92=_0x5c384b;this[_0x20bd92(0xcf)][(0x0,i18n_1[_0x20bd92(0xba)])(_0x125ea0)]=Object[_0x20bd92(0xdf)](this[_0x20bd92(0xd5)][_0x20bd92(0xb8)](_0x125ea0,_0x20bd92(0xea)));});}[a9_0x5241b6(0xc8)](_0x522c67){const _0x445b69=a9_0x5241b6,_0x1fe597=(0x0,core_1['getClassExtendedMetadata'])(interface_1[_0x445b69(0xde)],_0x522c67);return _0x1fe597?Joi['object'](_0x1fe597):undefined;}[a9_0x5241b6(0xea)](_0x5726e8,_0x4c2490,_0x272737={}){const _0x5abd2f=a9_0x5241b6;var _0x6a6a20,_0x299e62,_0x216dba,_0x20fb09,_0x134935,_0x17543e;const _0x491902=Joi[_0x5abd2f(0xe2)](_0x5726e8)?_0x5726e8:this[_0x5abd2f(0xc8)](_0x5726e8);if(!_0x491902)throw new AnnError(ValidatorError_1[_0x5abd2f(0xc1)][_0x5abd2f(0xc2)]);_0x272737['validationOptions']=Object[_0x5abd2f(0xc4)]((_0x6a6a20=this[_0x5abd2f(0xe8)][_0x5abd2f(0xcb)])!==null&&_0x6a6a20!==void 0x0?_0x6a6a20:{},{'messages':this[_0x5abd2f(0xcf)]},_0x272737[_0x5abd2f(0xcb)]||{}),_0x272737[_0x5abd2f(0xcb)][_0x5abd2f(0xbf)]=_0x272737[_0x5abd2f(0xcb)]['errors']||{},_0x272737['validationOptions']['errors'][_0x5abd2f(0xe6)]=(0x0,i18n_1['formatLocale'])(this[_0x5abd2f(0xd5)][_0x5abd2f(0xd7)](_0x272737[_0x5abd2f(0xcb)]['errors'][_0x5abd2f(0xe6)]||_0x272737['locale']||this[_0x5abd2f(0xcc)][_0x5abd2f(0xfe)],_0x5abd2f(0xea)));const _0x14fded=_0x491902[_0x5abd2f(0xb6)](_0x4c2490,_0x272737[_0x5abd2f(0xcb)]);if(_0x14fded===null||_0x14fded===void 0x0?void 0x0:_0x14fded[_0x5abd2f(0xcd)]){if(_0x14fded[_0x5abd2f(0xcd)]instanceof AnnError)throw _0x14fded[_0x5abd2f(0xcd)];else{if(_0x14fded['error']instanceof Error)throw new AnnError(ValidatorError_1[_0x5abd2f(0xc1)][_0x5abd2f(0xfb)],{'message':((_0x299e62=_0x14fded[_0x5abd2f(0xcd)])===null||_0x299e62===void 0x0?void 0x0:_0x299e62[_0x5abd2f(0xdb)])||_0x5abd2f(0xc6)});else throw new AnnError(ValidatorError_1[_0x5abd2f(0xc1)]['PARAMS'],{'message':((_0x134935=(_0x20fb09=(_0x216dba=_0x14fded['error'])===null||_0x216dba===void 0x0?void 0x0:_0x216dba[_0x5abd2f(0xff)])===null||_0x20fb09===void 0x0?void 0x0:_0x20fb09[0x0])===null||_0x134935===void 0x0?void 0x0:_0x134935[_0x5abd2f(0xdb)])||_0x5abd2f(0xc6)});}}if(_0x14fded===null||_0x14fded===void 0x0?void 0x0:_0x14fded['value']){const _0x4bf4fa=(_0x17543e=_0x491902===null||_0x491902===void 0x0?void 0x0:_0x491902[_0x5abd2f(0xc7)])===null||_0x17543e===void 0x0?void 0x0:_0x17543e['keys'],_0x510d0b=function(_0x29580f,_0x49217f){const _0x143116=_0x5abd2f;var _0x47e312,_0xebf403,_0x3fb25a,_0xd72cbf,_0x511498,_0x4db50d,_0x82e4c2,_0x4726a0,_0x13d082,_0x1461ca,_0x2b8249;for(let _0x2b01fb in _0x29580f){if(_0x49217f[(_0x47e312=_0x29580f[_0x2b01fb])===null||_0x47e312===void 0x0?void 0x0:_0x47e312[_0x143116(0xfd)]]&&((_0x3fb25a=(_0xebf403=_0x29580f[_0x2b01fb])===null||_0xebf403===void 0x0?void 0x0:_0xebf403['schema'])===null||_0x3fb25a===void 0x0?void 0x0:_0x3fb25a[_0x143116(0xf5)])){if(((_0x511498=(_0xd72cbf=_0x29580f[_0x2b01fb])===null||_0xd72cbf===void 0x0?void 0x0:_0xd72cbf['schema'])===null||_0x511498===void 0x0?void 0x0:_0x511498[_0x143116(0xf5)])==_0x143116(0xc5))_0x49217f[_0x29580f[_0x2b01fb][_0x143116(0xfd)]]=_0x510d0b((_0x82e4c2=(_0x4db50d=_0x29580f[_0x2b01fb])===null||_0x4db50d===void 0x0?void 0x0:_0x4db50d[_0x143116(0xbb)]['$_terms'])===null||_0x82e4c2===void 0x0?void 0x0:_0x82e4c2[_0x143116(0xe5)],_0x49217f[_0x29580f[_0x2b01fb][_0x143116(0xfd)]]);else{if(_0x29580f[_0x2b01fb][_0x143116(0xbb)][_0x143116(0xf5)]==_0x143116(0xf7)&&_0x14fded['value'][(_0x4726a0=_0x29580f[_0x2b01fb])===null||_0x4726a0===void 0x0?void 0x0:_0x4726a0[_0x143116(0xfd)]]){const _0x251846=((_0x2b8249=(_0x1461ca=(_0x13d082=_0x29580f[_0x2b01fb])===null||_0x13d082===void 0x0?void 0x0:_0x13d082[_0x143116(0xbb)])===null||_0x1461ca===void 0x0?void 0x0:_0x1461ca[_0x143116(0xfa)])===null||_0x2b8249===void 0x0?void 0x0:_0x2b8249[_0x143116(0xf6)])||_0x143116(0xb7);_0x49217f[_0x29580f[_0x2b01fb][_0x143116(0xfd)]]=dayjs(_0x14fded[_0x143116(0xfc)][_0x29580f[_0x2b01fb][_0x143116(0xfd)]])[_0x143116(0xf6)](_0x251846);}}}}return _0x49217f;};return _0x510d0b(_0x4bf4fa,_0x14fded[_0x5abd2f(0xfc)]);}throw new AnnError(ValidatorError_1[_0x5abd2f(0xc1)][_0x5abd2f(0xfb)]);}};exports[a9_0x5241b6(0xbe)]=ValidatorService,__decorate([(0x0,core_1[a9_0x5241b6(0xe1)])(a9_0x5241b6(0xf4)),__metadata(a9_0x5241b6(0xc3),Object)],ValidatorService[a9_0x5241b6(0xf9)],a9_0x5241b6(0xcc),void 0x0),__decorate([(0x0,core_1[a9_0x5241b6(0xe1)])(a9_0x5241b6(0xea)),__metadata(a9_0x5241b6(0xc3),Object)],ValidatorService['prototype'],'validatorConfig',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a9_0x5241b6(0xc3),i18n_1[a9_0x5241b6(0xd8)])],ValidatorService[a9_0x5241b6(0xf9)],a9_0x5241b6(0xd5),void 0x0),__decorate([(0x0,core_1[a9_0x5241b6(0x102)])(),__metadata('design:type',Function),__metadata(a9_0x5241b6(0xca),[]),__metadata(a9_0x5241b6(0xe7),Promise)],ValidatorService[a9_0x5241b6(0xf9)],a9_0x5241b6(0xe3),null),exports['ValidatorService']=ValidatorService=__decorate([(0x0,core_1['Provide'])('validator'),(0x0,core_1[a9_0x5241b6(0xbd)])(core_1[a9_0x5241b6(0xce)][a9_0x5241b6(0xeb)])],ValidatorService);
1
+ const a9_0x4a571d=a9_0x59b6;(function(_0x282c59,_0x25319e){const _0x2ec823=a9_0x59b6,_0x59baf6=_0x282c59();while(!![]){try{const _0x3d8ebf=parseInt(_0x2ec823(0xd0))/0x1*(parseInt(_0x2ec823(0xd2))/0x2)+-parseInt(_0x2ec823(0xa2))/0x3*(-parseInt(_0x2ec823(0xc9))/0x4)+-parseInt(_0x2ec823(0xbf))/0x5*(-parseInt(_0x2ec823(0xcf))/0x6)+-parseInt(_0x2ec823(0xa0))/0x7*(-parseInt(_0x2ec823(0xd7))/0x8)+-parseInt(_0x2ec823(0xbb))/0x9*(-parseInt(_0x2ec823(0xc7))/0xa)+-parseInt(_0x2ec823(0xb8))/0xb+-parseInt(_0x2ec823(0xda))/0xc;if(_0x3d8ebf===_0x25319e)break;else _0x59baf6['push'](_0x59baf6['shift']());}catch(_0xca84f4){_0x59baf6['push'](_0x59baf6['shift']());}}}(a9_0x2f68,0x209e4));const a9_0x11c723=(function(){let _0xb632d4=!![];return function(_0x4c873b,_0x15c7e5){const _0x30f6b8=_0xb632d4?function(){const _0x30f89f=a9_0x59b6;if(_0x15c7e5){const _0x27b682=_0x15c7e5[_0x30f89f(0xa1)](_0x4c873b,arguments);return _0x15c7e5=null,_0x27b682;}}:function(){};return _0xb632d4=![],_0x30f6b8;};}()),a9_0x2cbef8=a9_0x11c723(this,function(){const _0x564bbc=a9_0x59b6;return a9_0x2cbef8[_0x564bbc(0xe6)]()[_0x564bbc(0xa8)]('(((.+)+)+)+$')['toString']()['constructor'](a9_0x2cbef8)[_0x564bbc(0xa8)](_0x564bbc(0xb5));});a9_0x2cbef8();'use strict';function a9_0x2f68(){const _0x3c7bf9=['locale','MidwayI18nServiceSingleton','10320vgIgyF','object','2812hMNnBO','getLocaleMapping','errors','../exception/ValidatorError','i18nService','__esModule','727266iiumKW','61351ImSlni','length','8jXkkpq','validator','prototype','message','function','980320vTrztQ','decorate','validatorConfig','5355792meNvjt','defaultLocale','metadata','formatLocale','design:returntype','messages','__metadata','i18n','keys','key','../interface','Scope','toString','$_terms','forEach','参数验证失败','Config','isSchema','PARAMS','7kmGLWL','apply','318PUZHTU','validate','design:type','Singleton','@midwayjs/i18n','RULES_KEY','search','ValidatorError','language','getClassExtendedMetadata','ScopeEnum','schema','Init','__decorate','type','details','ValidatorService','YYYY-MM-DD\x20HH:mm:ss','getSchema','(((.+)+)+)+$','i18nConfig','design:paramtypes','116435RHPhlF','init','defineProperty','234LHXtZf','NOFIND_SCHEMA','Inject','getOwnPropertyDescriptor','5lsQKVd','validationOptions','value','error','fromEntries','@midwayjs/core'];a9_0x2f68=function(){return _0x3c7bf9;};return a9_0x2f68();}var __decorate=this&&this[a9_0x4a571d(0xaf)]||function(_0x47ed9f,_0x592d2b,_0x2e8604,_0x421638){const _0x37cb47=a9_0x4a571d;var _0x532421=arguments[_0x37cb47(0xd1)],_0x29bc6d=_0x532421<0x3?_0x592d2b:_0x421638===null?_0x421638=Object[_0x37cb47(0xbe)](_0x592d2b,_0x2e8604):_0x421638,_0x26ab3b;if(typeof Reflect===_0x37cb47(0xc8)&&typeof Reflect[_0x37cb47(0xd8)]===_0x37cb47(0xd6))_0x29bc6d=Reflect['decorate'](_0x47ed9f,_0x592d2b,_0x2e8604,_0x421638);else{for(var _0x189ff4=_0x47ed9f['length']-0x1;_0x189ff4>=0x0;_0x189ff4--)if(_0x26ab3b=_0x47ed9f[_0x189ff4])_0x29bc6d=(_0x532421<0x3?_0x26ab3b(_0x29bc6d):_0x532421>0x3?_0x26ab3b(_0x592d2b,_0x2e8604,_0x29bc6d):_0x26ab3b(_0x592d2b,_0x2e8604))||_0x29bc6d;}return _0x532421>0x3&&_0x29bc6d&&Object['defineProperty'](_0x592d2b,_0x2e8604,_0x29bc6d),_0x29bc6d;},__metadata=this&&this[a9_0x4a571d(0xe0)]||function(_0x208b96,_0x3037c2){const _0x1e9472=a9_0x4a571d;if(typeof Reflect===_0x1e9472(0xc8)&&typeof Reflect[_0x1e9472(0xdc)]===_0x1e9472(0xd6))return Reflect[_0x1e9472(0xdc)](_0x208b96,_0x3037c2);};function a9_0x59b6(_0x27e0cf,_0x59de2a){const _0x1f2b00=a9_0x2f68();return a9_0x59b6=function(_0x2cbef8,_0x11c723){_0x2cbef8=_0x2cbef8-0x9f;let _0x2f68ef=_0x1f2b00[_0x2cbef8];return _0x2f68ef;},a9_0x59b6(_0x27e0cf,_0x59de2a);}Object[a9_0x4a571d(0xba)](exports,a9_0x4a571d(0xce),{'value':!![]}),exports[a9_0x4a571d(0xb2)]=void 0x0;const Joi=require('joi'),i18n_1=require(a9_0x4a571d(0xa6)),core_1=require(a9_0x4a571d(0xc4)),interface_1=require(a9_0x4a571d(0xe4)),ValidatorError_1=require(a9_0x4a571d(0xcc));let ValidatorService=class ValidatorService{constructor(){const _0x17fa97=a9_0x4a571d;this[_0x17fa97(0xdf)]={};}async[a9_0x4a571d(0xb9)](){const _0x589408=a9_0x4a571d,_0xd6d8c2=Object[_0x589408(0xe2)](this[_0x589408(0xb6)]['localeTable']);_0xd6d8c2[_0x589408(0xe8)](_0x53528f=>{const _0x161a59=_0x589408;this[_0x161a59(0xdf)][(0x0,i18n_1['formatLocale'])(_0x53528f)]=Object[_0x161a59(0xc3)](this['i18nService'][_0x161a59(0xca)](_0x53528f,'validator'));});}['getSchema'](_0x21ca8d){const _0xb3450c=a9_0x4a571d,_0x1b6791=(0x0,core_1[_0xb3450c(0xab)])(interface_1[_0xb3450c(0xa7)],_0x21ca8d);return _0x1b6791?Joi[_0xb3450c(0xc8)](_0x1b6791):undefined;}['validator'](_0x37a51d,_0x44ecc0,_0x6fd0dd={}){const _0x1094f9=a9_0x4a571d;var _0x11ca0a,_0x574abf,_0x471293,_0x352f52,_0x515829,_0x2ee782;const _0x40d3f0=Joi[_0x1094f9(0xeb)](_0x37a51d)?_0x37a51d:this[_0x1094f9(0xb4)](_0x37a51d);if(!_0x40d3f0)throw new AnnError(ValidatorError_1[_0x1094f9(0xa9)][_0x1094f9(0xbc)]);_0x6fd0dd[_0x1094f9(0xc0)]=Object['assign']((_0x11ca0a=this[_0x1094f9(0xd9)]['validationOptions'])!==null&&_0x11ca0a!==void 0x0?_0x11ca0a:{},{'messages':this[_0x1094f9(0xdf)]},_0x6fd0dd[_0x1094f9(0xc0)]||{}),_0x6fd0dd[_0x1094f9(0xc0)][_0x1094f9(0xcb)]=_0x6fd0dd[_0x1094f9(0xc0)][_0x1094f9(0xcb)]||{},_0x6fd0dd[_0x1094f9(0xc0)][_0x1094f9(0xcb)][_0x1094f9(0xaa)]=(0x0,i18n_1[_0x1094f9(0xdd)])(this[_0x1094f9(0xcd)]['getAvailableLocale'](_0x6fd0dd['validationOptions'][_0x1094f9(0xcb)][_0x1094f9(0xaa)]||_0x6fd0dd[_0x1094f9(0xc5)]||this[_0x1094f9(0xb6)][_0x1094f9(0xdb)],'validator'));const _0x52aba1=_0x40d3f0[_0x1094f9(0xa3)](_0x44ecc0,_0x6fd0dd['validationOptions']);if(_0x52aba1===null||_0x52aba1===void 0x0?void 0x0:_0x52aba1[_0x1094f9(0xc2)]){if(_0x52aba1[_0x1094f9(0xc2)]instanceof AnnError)throw _0x52aba1[_0x1094f9(0xc2)];else{if(_0x52aba1[_0x1094f9(0xc2)]instanceof Error)throw new AnnError(ValidatorError_1['ValidatorError'][_0x1094f9(0x9f)],{'message':((_0x574abf=_0x52aba1['error'])===null||_0x574abf===void 0x0?void 0x0:_0x574abf['message'])||_0x1094f9(0xe9)});else throw new AnnError(ValidatorError_1[_0x1094f9(0xa9)][_0x1094f9(0x9f)],{'message':((_0x515829=(_0x352f52=(_0x471293=_0x52aba1[_0x1094f9(0xc2)])===null||_0x471293===void 0x0?void 0x0:_0x471293[_0x1094f9(0xb1)])===null||_0x352f52===void 0x0?void 0x0:_0x352f52[0x0])===null||_0x515829===void 0x0?void 0x0:_0x515829[_0x1094f9(0xd5)])||_0x1094f9(0xe9)});}}if(_0x52aba1===null||_0x52aba1===void 0x0?void 0x0:_0x52aba1[_0x1094f9(0xc1)]){const _0x41d867=(_0x2ee782=_0x40d3f0===null||_0x40d3f0===void 0x0?void 0x0:_0x40d3f0[_0x1094f9(0xe7)])===null||_0x2ee782===void 0x0?void 0x0:_0x2ee782[_0x1094f9(0xe2)],_0x32e9a9=function(_0x13750f,_0x1a48c9){const _0x4b11af=_0x1094f9;var _0x4dcc7a,_0x1f8604,_0x3b091d,_0x2b357c,_0x21ef41,_0x596d5f,_0x13a62c,_0x15f300,_0x1d1df7,_0x173b0c,_0xeb1abd;for(let _0x1e671c in _0x13750f){if(_0x1a48c9[(_0x4dcc7a=_0x13750f[_0x1e671c])===null||_0x4dcc7a===void 0x0?void 0x0:_0x4dcc7a[_0x4b11af(0xe3)]]&&((_0x3b091d=(_0x1f8604=_0x13750f[_0x1e671c])===null||_0x1f8604===void 0x0?void 0x0:_0x1f8604['schema'])===null||_0x3b091d===void 0x0?void 0x0:_0x3b091d[_0x4b11af(0xb0)])){if(((_0x21ef41=(_0x2b357c=_0x13750f[_0x1e671c])===null||_0x2b357c===void 0x0?void 0x0:_0x2b357c['schema'])===null||_0x21ef41===void 0x0?void 0x0:_0x21ef41[_0x4b11af(0xb0)])==_0x4b11af(0xc8))_0x1a48c9[_0x13750f[_0x1e671c][_0x4b11af(0xe3)]]=_0x32e9a9((_0x13a62c=(_0x596d5f=_0x13750f[_0x1e671c])===null||_0x596d5f===void 0x0?void 0x0:_0x596d5f[_0x4b11af(0xad)]['$_terms'])===null||_0x13a62c===void 0x0?void 0x0:_0x13a62c[_0x4b11af(0xe2)],_0x1a48c9[_0x13750f[_0x1e671c][_0x4b11af(0xe3)]]);else{if(_0x13750f[_0x1e671c][_0x4b11af(0xad)][_0x4b11af(0xb0)]=='date'&&_0x52aba1['value'][(_0x15f300=_0x13750f[_0x1e671c])===null||_0x15f300===void 0x0?void 0x0:_0x15f300['key']]){const _0x100e81=((_0xeb1abd=(_0x173b0c=(_0x1d1df7=_0x13750f[_0x1e671c])===null||_0x1d1df7===void 0x0?void 0x0:_0x1d1df7['schema'])===null||_0x173b0c===void 0x0?void 0x0:_0x173b0c['_flags'])===null||_0xeb1abd===void 0x0?void 0x0:_0xeb1abd['format'])||_0x4b11af(0xb3);_0x1a48c9[_0x13750f[_0x1e671c][_0x4b11af(0xe3)]]=dayjs(_0x52aba1[_0x4b11af(0xc1)][_0x13750f[_0x1e671c][_0x4b11af(0xe3)]])['format'](_0x100e81);}}}}return _0x1a48c9;};return _0x32e9a9(_0x41d867,_0x52aba1[_0x1094f9(0xc1)]);}throw new AnnError(ValidatorError_1['ValidatorError'][_0x1094f9(0x9f)]);}};__decorate([(0x0,core_1[a9_0x4a571d(0xea)])(a9_0x4a571d(0xe1)),__metadata('design:type',Object)],ValidatorService[a9_0x4a571d(0xd4)],a9_0x4a571d(0xb6),void 0x0),__decorate([(0x0,core_1['Config'])(a9_0x4a571d(0xd3)),__metadata(a9_0x4a571d(0xa4),Object)],ValidatorService[a9_0x4a571d(0xd4)],a9_0x4a571d(0xd9),void 0x0),__decorate([(0x0,core_1[a9_0x4a571d(0xbd)])(),__metadata(a9_0x4a571d(0xa4),i18n_1[a9_0x4a571d(0xc6)])],ValidatorService[a9_0x4a571d(0xd4)],a9_0x4a571d(0xcd),void 0x0),__decorate([(0x0,core_1[a9_0x4a571d(0xae)])(),__metadata(a9_0x4a571d(0xa4),Function),__metadata(a9_0x4a571d(0xb7),[]),__metadata(a9_0x4a571d(0xde),Promise)],ValidatorService[a9_0x4a571d(0xd4)],a9_0x4a571d(0xb9),null),ValidatorService=__decorate([(0x0,core_1['Provide'])(a9_0x4a571d(0xd3)),(0x0,core_1[a9_0x4a571d(0xe5)])(core_1[a9_0x4a571d(0xac)][a9_0x4a571d(0xa5)])],ValidatorService),exports[a9_0x4a571d(0xb2)]=ValidatorService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/validator",
3
- "version": "3.4.32",
3
+ "version": "3.4.34",
4
4
  "main": "./dist/index.js",
5
5
  "typings": "index.d.ts",
6
6
  "license": "MIT",
@@ -17,7 +17,7 @@
17
17
  "build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
18
18
  },
19
19
  "dependencies": {
20
- "@anncic-api/core": "^3.4.32",
20
+ "@anncic-api/core": "^3.4.34",
21
21
  "@joi/date": "^2.1.0",
22
22
  "joi": "^17.11.0"
23
23
  },
@@ -26,5 +26,5 @@
26
26
  "javascript-obfuscator": "^4.0.2",
27
27
  "typescript": "^5.1.3"
28
28
  },
29
- "gitHead": "5afc38409934e75ee16d85df4b50cf6bea738297"
29
+ "gitHead": "ee5d6108f5470a0eac75bcbc1fde8f24de4e68be"
30
30
  }