@anncic-api/validator 3.4.37 → 3.4.39

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_0x2c48e7=a0_0x4112;(function(_0x137bb9,_0x4cf65c){const _0x58eb04=a0_0x4112,_0x6f9110=_0x137bb9();while(!![]){try{const _0x55b307=parseInt(_0x58eb04(0x1ea))/0x1+parseInt(_0x58eb04(0x1fa))/0x2*(parseInt(_0x58eb04(0x1f8))/0x3)+parseInt(_0x58eb04(0x1ec))/0x4*(parseInt(_0x58eb04(0x1f7))/0x5)+parseInt(_0x58eb04(0x1f5))/0x6*(parseInt(_0x58eb04(0x1f2))/0x7)+parseInt(_0x58eb04(0x1e7))/0x8*(parseInt(_0x58eb04(0x1fc))/0x9)+parseInt(_0x58eb04(0x1e8))/0xa*(-parseInt(_0x58eb04(0x1f4))/0xb)+parseInt(_0x58eb04(0x1ed))/0xc*(-parseInt(_0x58eb04(0x1fd))/0xd);if(_0x55b307===_0x4cf65c)break;else _0x6f9110['push'](_0x6f9110['shift']());}catch(_0x125956){_0x6f9110['push'](_0x6f9110['shift']());}}}(a0_0x5f20,0x5d667));const a0_0x44f0a1=(function(){let _0x4add4d=!![];return function(_0x364335,_0x15ee12){const _0x3cc8f4=_0x4add4d?function(){const _0x133761=a0_0x4112;if(_0x15ee12){const _0x2ba636=_0x15ee12[_0x133761(0x1f0)](_0x364335,arguments);return _0x15ee12=null,_0x2ba636;}}:function(){};return _0x4add4d=![],_0x3cc8f4;};}()),a0_0x35ed10=a0_0x44f0a1(this,function(){const _0x46bfac=a0_0x4112;return a0_0x35ed10[_0x46bfac(0x1f3)]()[_0x46bfac(0x1fe)](_0x46bfac(0x1e5))[_0x46bfac(0x1f3)]()[_0x46bfac(0x1f6)](a0_0x35ed10)[_0x46bfac(0x1fe)]('(((.+)+)+)+$');});a0_0x35ed10();'use strict';Object[a0_0x2c48e7(0x1e9)](exports,a0_0x2c48e7(0x1fb),{'value':!![]});function a0_0x4112(_0x3a589d,_0x443fd2){const _0x4ad2c8=a0_0x5f20();return a0_0x4112=function(_0x35ed10,_0x44f0a1){_0x35ed10=_0x35ed10-0x1e4;let _0x5f2020=_0x4ad2c8[_0x35ed10];return _0x5f2020;},a0_0x4112(_0x3a589d,_0x443fd2);}function a0_0x5f20(){const _0x407105=['4mOqHYy','24iywbRB','../../locales/zh_CN.json','default','apply','../../locales/en_US.json','343KTmLQu','toString','143FAEgkf','55194YFRATH','constructor','1072430TGXsqo','917646FSUsRi','ValidatorError','2MNwOkl','__esModule','9gjnQVo','7679204LxPMrl','search','../exception/ValidatorError','(((.+)+)+)+$','string','751752jiCeTx','121340ThFTQr','defineProperty','656637jwDjkS','PARAMS'];a0_0x5f20=function(){return _0x407105;};return a0_0x5f20();}const ValidatorError_1=require(a0_0x2c48e7(0x1e4));exports[a0_0x2c48e7(0x1ef)]={'validator':{'errorStatus':ValidatorError_1[a0_0x2c48e7(0x1f9)][a0_0x2c48e7(0x1eb)],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':a0_0x2c48e7(0x1e6)}},'i18n':{'localeTable':{'en_US':{'validator':require(a0_0x2c48e7(0x1f1))},'zh_CN':{'validator':require(a0_0x2c48e7(0x1ee))}}}};
1
+ const a0_0x4950a0=a0_0x8b46;function a0_0x8b46(_0x3c9167,_0x4d428e){const _0x320834=a0_0x38de();return a0_0x8b46=function(_0x4b550,_0x5295b2){_0x4b550=_0x4b550-0x153;let _0x38de94=_0x320834[_0x4b550];return _0x38de94;},a0_0x8b46(_0x3c9167,_0x4d428e);}function a0_0x38de(){const _0x2145ea=['15237eIGbIT','PARAMS','toString','317826fuEoYb','18hIUpHc','../../locales/en_US.json','308BVrSbn','constructor','276aZyVev','../exception/ValidatorError','(((.+)+)+)+$','apply','331090AUdPvX','4675950gTgRKS','11kixhLF','string','104hhHKCa','3eluPFo','default','search','563846XEkYoz','6786115pzoqsr','1438970QFRWIr'];a0_0x38de=function(){return _0x2145ea;};return a0_0x38de();}(function(_0x991dc5,_0x46e008){const _0x1c186e=a0_0x8b46,_0x58cc3c=_0x991dc5();while(!![]){try{const _0x32ca56=-parseInt(_0x1c186e(0x162))/0x1*(parseInt(_0x1c186e(0x165))/0x2)+parseInt(_0x1c186e(0x168))/0x3*(-parseInt(_0x1c186e(0x157))/0x4)+parseInt(_0x1c186e(0x15d))/0x5*(parseInt(_0x1c186e(0x155))/0x6)+-parseInt(_0x1c186e(0x166))/0x7+-parseInt(_0x1c186e(0x161))/0x8*(-parseInt(_0x1c186e(0x154))/0x9)+-parseInt(_0x1c186e(0x15e))/0xa*(parseInt(_0x1c186e(0x15f))/0xb)+-parseInt(_0x1c186e(0x159))/0xc*(-parseInt(_0x1c186e(0x167))/0xd);if(_0x32ca56===_0x46e008)break;else _0x58cc3c['push'](_0x58cc3c['shift']());}catch(_0x57e88a){_0x58cc3c['push'](_0x58cc3c['shift']());}}}(a0_0x38de,0x81532));const a0_0x5295b2=(function(){let _0x154085=!![];return function(_0x4b6b22,_0x1ff476){const _0x27eb50=_0x154085?function(){const _0x576b84=a0_0x8b46;if(_0x1ff476){const _0x30f3f3=_0x1ff476[_0x576b84(0x15c)](_0x4b6b22,arguments);return _0x1ff476=null,_0x30f3f3;}}:function(){};return _0x154085=![],_0x27eb50;};}()),a0_0x4b550=a0_0x5295b2(this,function(){const _0x462c2e=a0_0x8b46;return a0_0x4b550[_0x462c2e(0x153)]()[_0x462c2e(0x164)]('(((.+)+)+)+$')[_0x462c2e(0x153)]()[_0x462c2e(0x158)](a0_0x4b550)['search'](_0x462c2e(0x15b));});a0_0x4b550();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]});const ValidatorError_1=require(a0_0x4950a0(0x15a));exports[a0_0x4950a0(0x163)]={'validator':{'errorStatus':ValidatorError_1['ValidatorError'][a0_0x4950a0(0x169)],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':a0_0x4950a0(0x160)}},'i18n':{'localeTable':{'en_US':{'validator':require(a0_0x4950a0(0x156))},'zh_CN':{'validator':require('../../locales/zh_CN.json')}}}};
@@ -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
- function a1_0x56cb(){const _0x5bd6bb=['7nvwJYB','2411892VCIAmK','132oLXJMk','onReady','./config/config.default','getAttr','(((.+)+)+)+$','search','object','@anncic-api/core','design:type','methodArgs','ValidatorService','method','args','undefined','propertyName','length','Inject','splice','16586xeyHrY','locale','decorate','__decorate','prototype','res','body','registerMethodHandler','@midwayjs/i18n','REQUEST_OBJ_CTX_KEY','I18N_ATTR_KEY','4OKQlOB','getMethodParamTypes','2516601djTgnj','target','20860ydIiuS','toString','637624HJvVZL','./interface','bound\x20dispatch','params','getSchema','methodName','metadata','getClassMetadata','CustomConfiguration','name','56kqkodq','getOwnPropertyDescriptor','request','4705265nMXQMz','defineProperty','./service/ValidatorService','Configuration','__metadata','param','constructor','MidwayDecoratorService','@midwayjs/core','1245312Fgsjcw','req','VALIDATOR_KEY','function','find','anncic-api:validator','assign','decorator','validator'];a1_0x56cb=function(){return _0x5bd6bb;};return a1_0x56cb();}const a1_0x233f6b=a1_0x43a9;(function(_0x142deb,_0x1bd1c7){const _0x79a197=a1_0x43a9,_0x9c5de7=_0x142deb();while(!![]){try{const _0x386753=-parseInt(_0x79a197(0x1d8))/0x1*(-parseInt(_0x79a197(0x1f3))/0x2)+parseInt(_0x79a197(0x1e5))/0x3+-parseInt(_0x79a197(0x1e3))/0x4*(parseInt(_0x79a197(0x1f6))/0x5)+-parseInt(_0x79a197(0x1ff))/0x6+-parseInt(_0x79a197(0x208))/0x7*(-parseInt(_0x79a197(0x1e9))/0x8)+parseInt(_0x79a197(0x209))/0x9+-parseInt(_0x79a197(0x1e7))/0xa*(-parseInt(_0x79a197(0x1c6))/0xb);if(_0x386753===_0x1bd1c7)break;else _0x9c5de7['push'](_0x9c5de7['shift']());}catch(_0x1caeec){_0x9c5de7['push'](_0x9c5de7['shift']());}}}(a1_0x56cb,0x80c21));const a1_0x5bd7c8=(function(){let _0x570f51=!![];return function(_0x29a222,_0x5f3582){const _0x59dc48=_0x570f51?function(){if(_0x5f3582){const _0x3861f6=_0x5f3582['apply'](_0x29a222,arguments);return _0x5f3582=null,_0x3861f6;}}:function(){};return _0x570f51=![],_0x59dc48;};}()),a1_0x44b95f=a1_0x5bd7c8(this,function(){const _0x155d86=a1_0x43a9;return a1_0x44b95f['toString']()[_0x155d86(0x1cb)](_0x155d86(0x1ca))[_0x155d86(0x1e8)]()[_0x155d86(0x1fc)](a1_0x44b95f)[_0x155d86(0x1cb)]('(((.+)+)+)+$');});a1_0x44b95f();'use strict';var __decorate=this&&this[a1_0x233f6b(0x1db)]||function(_0x366007,_0x18a1a0,_0x40324b,_0x2f8878){const _0x432482=a1_0x233f6b;var _0x412ab8=arguments[_0x432482(0x1d5)],_0x508616=_0x412ab8<0x3?_0x18a1a0:_0x2f8878===null?_0x2f8878=Object[_0x432482(0x1f4)](_0x18a1a0,_0x40324b):_0x2f8878,_0x49b6c8;if(typeof Reflect===_0x432482(0x1cc)&&typeof Reflect[_0x432482(0x1da)]===_0x432482(0x202))_0x508616=Reflect[_0x432482(0x1da)](_0x366007,_0x18a1a0,_0x40324b,_0x2f8878);else{for(var _0x16cea7=_0x366007[_0x432482(0x1d5)]-0x1;_0x16cea7>=0x0;_0x16cea7--)if(_0x49b6c8=_0x366007[_0x16cea7])_0x508616=(_0x412ab8<0x3?_0x49b6c8(_0x508616):_0x412ab8>0x3?_0x49b6c8(_0x18a1a0,_0x40324b,_0x508616):_0x49b6c8(_0x18a1a0,_0x40324b))||_0x508616;}return _0x412ab8>0x3&&_0x508616&&Object[_0x432482(0x1f7)](_0x18a1a0,_0x40324b,_0x508616),_0x508616;},__metadata=this&&this[a1_0x233f6b(0x1fa)]||function(_0x30fc5e,_0x33a08b){const _0x483fd8=a1_0x233f6b;if(typeof Reflect===_0x483fd8(0x1cc)&&typeof Reflect[_0x483fd8(0x1ef)]===_0x483fd8(0x202))return Reflect[_0x483fd8(0x1ef)](_0x30fc5e,_0x33a08b);};function a1_0x43a9(_0x277a6f,_0xa85a8){const _0x5222bc=a1_0x56cb();return a1_0x43a9=function(_0x44b95f,_0x5bd7c8){_0x44b95f=_0x44b95f-0x1c6;let _0x56cbc6=_0x5222bc[_0x44b95f];return _0x56cbc6;},a1_0x43a9(_0x277a6f,_0xa85a8);}Object[a1_0x233f6b(0x1f7)](exports,'__esModule',{'value':!![]}),exports[a1_0x233f6b(0x1f1)]=void 0x0;const i18n_1=require(a1_0x233f6b(0x1e0)),core_1=require(a1_0x233f6b(0x1fe)),core_2=require(a1_0x233f6b(0x1fe)),interface_1=require(a1_0x233f6b(0x1ea)),ValidatorService_1=require(a1_0x233f6b(0x1f8)),i18n=require(a1_0x233f6b(0x1e0)),anncic=require(a1_0x233f6b(0x1cd)),ConfigDefault=require(a1_0x233f6b(0x1c8));let CustomConfiguration=class CustomConfiguration{async[a1_0x233f6b(0x1c7)](){const _0x2d049d=a1_0x233f6b;this[_0x2d049d(0x206)][_0x2d049d(0x1df)](interface_1[_0x2d049d(0x201)],_0x55f52f=>{const _0x17c73f=_0x2d049d,_0x3700f3=_0x55f52f['metadata'],_0x91f65a=(0x0,core_2[_0x17c73f(0x1e4)])(_0x55f52f[_0x17c73f(0x1e6)],_0x55f52f[_0x17c73f(0x1d4)]);return{'before':_0x183301=>{const _0x3540bb=_0x17c73f;var _0x2e84f9,_0x29b10e,_0x4c6242,_0x3a40b0,_0x411a0f,_0x23191d,_0x1d3c81,_0xdd66a2,_0x224479,_0x25c71e,_0x9f272d,_0x580b65,_0x1ea2e4;const _0xca8fab=_0x183301[_0x3540bb(0x1e6)][core_1[_0x3540bb(0x1e1)]],_0x561866=Object[_0x3540bb(0x205)]({},((_0x2e84f9=_0xca8fab===null||_0xca8fab===void 0x0?void 0x0:_0xca8fab['request'])===null||_0x2e84f9===void 0x0?void 0x0:_0x2e84f9['query'])||{},((_0x29b10e=_0xca8fab===null||_0xca8fab===void 0x0?void 0x0:_0xca8fab[_0x3540bb(0x1f5)])===null||_0x29b10e===void 0x0?void 0x0:_0x29b10e[_0x3540bb(0x1de)])||{}),_0x7734b7=((0x0,core_2[_0x3540bb(0x1f0)])(interface_1[_0x3540bb(0x201)],_0x183301[_0x3540bb(0x1e6)])||[])[_0x3540bb(0x203)](_0x43e596=>_0x43e596[_0x3540bb(0x1d1)]==_0x183301[_0x3540bb(0x1ee)]);!(_0x3700f3===null||_0x3700f3===void 0x0?void 0x0:_0x3700f3['locale'])&&_0xca8fab&&_0xca8fab[_0x3540bb(0x1c9)]&&(_0x3700f3[_0x3540bb(0x1d9)]=_0xca8fab[_0x3540bb(0x1c9)](i18n_1[_0x3540bb(0x1e2)]));for(let _0xf3f0e5=0x0;_0xf3f0e5<_0x91f65a[_0x3540bb(0x1d5)];_0xf3f0e5++){const _0x5d1ca3=_0x91f65a[_0xf3f0e5],_0x28f709=this[_0x3540bb(0x1d0)][_0x3540bb(0x1ed)](_0x5d1ca3);if(_0x28f709){if(typeof _0x183301[_0x3540bb(0x1d2)][_0xf3f0e5]==_0x3540bb(0x1d3)||((_0x4c6242=_0x183301['args'][_0xf3f0e5])===null||_0x4c6242===void 0x0?void 0x0:_0x4c6242[_0x3540bb(0x1f5)])&&((_0x3a40b0=_0x183301[_0x3540bb(0x1d2)][_0xf3f0e5])===null||_0x3a40b0===void 0x0?void 0x0:_0x3a40b0[_0x3540bb(0x1dd)])&&((_0x411a0f=_0x183301[_0x3540bb(0x1d2)][_0xf3f0e5])===null||_0x411a0f===void 0x0?void 0x0:_0x411a0f[_0x3540bb(0x200)]))_0x183301['args'][_0xf3f0e5]=_0x561866;else((_0x23191d=_0x183301['args'][_0xf3f0e5])===null||_0x23191d===void 0x0?void 0x0:_0x23191d[_0x3540bb(0x1f2)])==_0x3540bb(0x1eb)&&_0x183301[_0x3540bb(0x1d2)][_0x3540bb(0x1d7)](_0xf3f0e5,0x0,_0x561866);const _0x3a5835=this[_0x3540bb(0x1d0)][_0x3540bb(0x207)](_0x28f709,_0x183301[_0x3540bb(0x1d2)][_0xf3f0e5],_0x3700f3);_0x3a5835&&(_0x183301[_0x3540bb(0x1d2)][_0xf3f0e5]=_0x3a5835);}else{if((_0x7734b7===null||_0x7734b7===void 0x0?void 0x0:_0x7734b7[_0x3540bb(0x1cf)][_0xf3f0e5])&&((_0x1d3c81=_0x183301['args'][_0xf3f0e5])===null||_0x1d3c81===void 0x0?void 0x0:_0x1d3c81[_0x3540bb(0x1ec)])&&typeof _0x183301['args'][_0xf3f0e5][_0x3540bb(0x1fb)]==_0x3540bb(0x202)&&((_0xdd66a2=_0xca8fab===null||_0xca8fab===void 0x0?void 0x0:_0xca8fab[_0x3540bb(0x1ec)])===null||_0xdd66a2===void 0x0?void 0x0:_0xdd66a2[_0x7734b7[_0x3540bb(0x1cf)][_0xf3f0e5]]))_0x183301[_0x3540bb(0x1d2)][_0xf3f0e5]=_0x5d1ca3((_0x224479=_0xca8fab===null||_0xca8fab===void 0x0?void 0x0:_0xca8fab[_0x3540bb(0x1ec)])===null||_0x224479===void 0x0?void 0x0:_0x224479[_0x7734b7['methodArgs'][_0xf3f0e5]]);else(_0x7734b7===null||_0x7734b7===void 0x0?void 0x0:_0x7734b7[_0x3540bb(0x1cf)][_0xf3f0e5])&&((_0x9f272d=(_0x25c71e=_0x183301[_0x3540bb(0x1d2)][_0xf3f0e5])===null||_0x25c71e===void 0x0?void 0x0:_0x25c71e[_0x3540bb(0x1ec)])===null||_0x9f272d===void 0x0?void 0x0:_0x9f272d[_0x7734b7['methodArgs'][_0xf3f0e5]])&&(_0x183301[_0x3540bb(0x1d2)][_0xf3f0e5]=(_0x1ea2e4=(_0x580b65=_0x183301['args'][_0xf3f0e5])===null||_0x580b65===void 0x0?void 0x0:_0x580b65[_0x3540bb(0x1ec)])===null||_0x1ea2e4===void 0x0?void 0x0:_0x1ea2e4[_0x7734b7['methodArgs'][_0xf3f0e5]]);}}},'afterThrow':(_0x6ff7c0,_0x465335)=>{throw _0x465335;}};});}};__decorate([(0x0,core_2[a1_0x233f6b(0x1d6)])(),__metadata('design:type',core_1[a1_0x233f6b(0x1fd)])],CustomConfiguration[a1_0x233f6b(0x1dc)],a1_0x233f6b(0x206),void 0x0),__decorate([(0x0,core_2[a1_0x233f6b(0x1d6)])(),__metadata(a1_0x233f6b(0x1ce),ValidatorService_1[a1_0x233f6b(0x1d0)])],CustomConfiguration[a1_0x233f6b(0x1dc)],'ValidatorService',void 0x0),CustomConfiguration=__decorate([(0x0,core_2[a1_0x233f6b(0x1f9)])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':a1_0x233f6b(0x204),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
1
+ const a1_0x15a268=a1_0x128d;(function(_0x4c49af,_0x1ed345){const _0x5812fe=a1_0x128d,_0x157bff=_0x4c49af();while(!![]){try{const _0x3f96d3=parseInt(_0x5812fe(0x1ee))/0x1*(parseInt(_0x5812fe(0x1f3))/0x2)+parseInt(_0x5812fe(0x1e0))/0x3*(-parseInt(_0x5812fe(0x1d3))/0x4)+parseInt(_0x5812fe(0x1f6))/0x5+parseInt(_0x5812fe(0x1eb))/0x6+parseInt(_0x5812fe(0x1dd))/0x7+parseInt(_0x5812fe(0x1f4))/0x8*(-parseInt(_0x5812fe(0x1fd))/0x9)+parseInt(_0x5812fe(0x1cc))/0xa*(-parseInt(_0x5812fe(0x1fc))/0xb);if(_0x3f96d3===_0x1ed345)break;else _0x157bff['push'](_0x157bff['shift']());}catch(_0x515a31){_0x157bff['push'](_0x157bff['shift']());}}}(a1_0x3c38,0x758c7));function a1_0x3c38(){const _0x5d006a=['ValidatorService','metadata','apply','Inject','@midwayjs/core','254078ACXMfp','1107aSLBIg','__metadata','Configuration','@anncic-api/core','param','CustomConfiguration','getAttr','propertyName','name','getOwnPropertyDescriptor','@midwayjs/i18n','REQUEST_OBJ_CTX_KEY','decorate','./service/ValidatorService','assign','./config/config.default','80dSzJmG','(((.+)+)+)+$','constructor','MidwayDecoratorService','body','prototype','decorator','4zfOjxe','object','toString','bound\x20dispatch','locale','req','undefined','defineProperty','args','res','5158923vfUGyd','getClassMetadata','method','946290mAyKdw','target','length','params','getMethodParamTypes','request','VALIDATOR_KEY','methodArgs','./interface','I18N_ATTR_KEY','query','556086kKIGCy','__decorate','design:type','226JQUGec','splice','find','search','function','750tvSUeq','27096Xgaqwt','onReady','2419370RZGQGk'];a1_0x3c38=function(){return _0x5d006a;};return a1_0x3c38();}const a1_0x15c202=(function(){let _0x1466ee=!![];return function(_0x3060ce,_0x1e7900){const _0x5714ca=_0x1466ee?function(){const _0x3a0555=a1_0x128d;if(_0x1e7900){const _0x523c91=_0x1e7900[_0x3a0555(0x1f9)](_0x3060ce,arguments);return _0x1e7900=null,_0x523c91;}}:function(){};return _0x1466ee=![],_0x5714ca;};}()),a1_0x589644=a1_0x15c202(this,function(){const _0x3cea00=a1_0x128d;return a1_0x589644[_0x3cea00(0x1d5)]()['search'](_0x3cea00(0x1cd))[_0x3cea00(0x1d5)]()[_0x3cea00(0x1ce)](a1_0x589644)[_0x3cea00(0x1f1)](_0x3cea00(0x1cd));});a1_0x589644();'use strict';var __decorate=this&&this[a1_0x15a268(0x1ec)]||function(_0x2cda3c,_0x38b580,_0x223f19,_0xa951b2){const _0x5041cf=a1_0x15a268;var _0x522077=arguments['length'],_0x46a73e=_0x522077<0x3?_0x38b580:_0xa951b2===null?_0xa951b2=Object[_0x5041cf(0x1c5)](_0x38b580,_0x223f19):_0xa951b2,_0x49d52d;if(typeof Reflect===_0x5041cf(0x1d4)&&typeof Reflect[_0x5041cf(0x1c8)]==='function')_0x46a73e=Reflect[_0x5041cf(0x1c8)](_0x2cda3c,_0x38b580,_0x223f19,_0xa951b2);else{for(var _0x18f0ac=_0x2cda3c[_0x5041cf(0x1e2)]-0x1;_0x18f0ac>=0x0;_0x18f0ac--)if(_0x49d52d=_0x2cda3c[_0x18f0ac])_0x46a73e=(_0x522077<0x3?_0x49d52d(_0x46a73e):_0x522077>0x3?_0x49d52d(_0x38b580,_0x223f19,_0x46a73e):_0x49d52d(_0x38b580,_0x223f19))||_0x46a73e;}return _0x522077>0x3&&_0x46a73e&&Object['defineProperty'](_0x38b580,_0x223f19,_0x46a73e),_0x46a73e;},__metadata=this&&this[a1_0x15a268(0x1fe)]||function(_0x12d57a,_0x4f3ef8){const _0x241b30=a1_0x15a268;if(typeof Reflect===_0x241b30(0x1d4)&&typeof Reflect['metadata']===_0x241b30(0x1f2))return Reflect[_0x241b30(0x1f8)](_0x12d57a,_0x4f3ef8);};function a1_0x128d(_0x5f1101,_0x194eff){const _0x580b50=a1_0x3c38();return a1_0x128d=function(_0x589644,_0x15c202){_0x589644=_0x589644-0x1c5;let _0x3c3860=_0x580b50[_0x589644];return _0x3c3860;},a1_0x128d(_0x5f1101,_0x194eff);}Object[a1_0x15a268(0x1da)](exports,'__esModule',{'value':!![]}),exports['CustomConfiguration']=void 0x0;const i18n_1=require(a1_0x15a268(0x1c6)),core_1=require('@midwayjs/core'),core_2=require(a1_0x15a268(0x1fb)),interface_1=require(a1_0x15a268(0x1e8)),ValidatorService_1=require(a1_0x15a268(0x1c9)),i18n=require(a1_0x15a268(0x1c6)),anncic=require(a1_0x15a268(0x200)),ConfigDefault=require(a1_0x15a268(0x1cb));let CustomConfiguration=class CustomConfiguration{async[a1_0x15a268(0x1f5)](){const _0x380b81=a1_0x15a268;this[_0x380b81(0x1d2)]['registerMethodHandler'](interface_1[_0x380b81(0x1e6)],_0x20938b=>{const _0x4d5710=_0x380b81,_0x30d8b5=_0x20938b[_0x4d5710(0x1f8)],_0x2792cb=(0x0,core_2[_0x4d5710(0x1e4)])(_0x20938b[_0x4d5710(0x1e1)],_0x20938b[_0x4d5710(0x204)]);return{'before':_0x2a4793=>{const _0x3ce648=_0x4d5710;var _0x5a480d,_0x5869c8,_0x108940,_0x40025c,_0xdd043d,_0xcc6913,_0x49a470,_0x54d9d0,_0x2676f1,_0x116b5f,_0xc1a777,_0xada7e0,_0xa75b8d;const _0x3c684b=_0x2a4793['target'][core_1[_0x3ce648(0x1c7)]],_0x4aa620=Object[_0x3ce648(0x1ca)]({},((_0x5a480d=_0x3c684b===null||_0x3c684b===void 0x0?void 0x0:_0x3c684b[_0x3ce648(0x1e5)])===null||_0x5a480d===void 0x0?void 0x0:_0x5a480d[_0x3ce648(0x1ea)])||{},((_0x5869c8=_0x3c684b===null||_0x3c684b===void 0x0?void 0x0:_0x3c684b[_0x3ce648(0x1e5)])===null||_0x5869c8===void 0x0?void 0x0:_0x5869c8[_0x3ce648(0x1d0)])||{}),_0x2fbe03=((0x0,core_2[_0x3ce648(0x1de)])(interface_1[_0x3ce648(0x1e6)],_0x2a4793[_0x3ce648(0x1e1)])||[])[_0x3ce648(0x1f0)](_0x1fa868=>_0x1fa868[_0x3ce648(0x1df)]==_0x2a4793['methodName']);!(_0x30d8b5===null||_0x30d8b5===void 0x0?void 0x0:_0x30d8b5[_0x3ce648(0x1d7)])&&_0x3c684b&&_0x3c684b['getAttr']&&(_0x30d8b5['locale']=_0x3c684b[_0x3ce648(0x203)](i18n_1[_0x3ce648(0x1e9)]));for(let _0x2e7157=0x0;_0x2e7157<_0x2792cb[_0x3ce648(0x1e2)];_0x2e7157++){const _0xb79ce1=_0x2792cb[_0x2e7157],_0x22b458=this[_0x3ce648(0x1f7)]['getSchema'](_0xb79ce1);if(_0x22b458){if(typeof _0x2a4793[_0x3ce648(0x1db)][_0x2e7157]==_0x3ce648(0x1d9)||((_0x108940=_0x2a4793['args'][_0x2e7157])===null||_0x108940===void 0x0?void 0x0:_0x108940[_0x3ce648(0x1e5)])&&((_0x40025c=_0x2a4793['args'][_0x2e7157])===null||_0x40025c===void 0x0?void 0x0:_0x40025c[_0x3ce648(0x1dc)])&&((_0xdd043d=_0x2a4793[_0x3ce648(0x1db)][_0x2e7157])===null||_0xdd043d===void 0x0?void 0x0:_0xdd043d[_0x3ce648(0x1d8)]))_0x2a4793[_0x3ce648(0x1db)][_0x2e7157]=_0x4aa620;else((_0xcc6913=_0x2a4793[_0x3ce648(0x1db)][_0x2e7157])===null||_0xcc6913===void 0x0?void 0x0:_0xcc6913[_0x3ce648(0x205)])==_0x3ce648(0x1d6)&&_0x2a4793[_0x3ce648(0x1db)][_0x3ce648(0x1ef)](_0x2e7157,0x0,_0x4aa620);const _0x4e7ed6=this[_0x3ce648(0x1f7)]['validator'](_0x22b458,_0x2a4793['args'][_0x2e7157],_0x30d8b5);_0x4e7ed6&&(_0x2a4793['args'][_0x2e7157]=_0x4e7ed6);}else{if((_0x2fbe03===null||_0x2fbe03===void 0x0?void 0x0:_0x2fbe03['methodArgs'][_0x2e7157])&&((_0x49a470=_0x2a4793[_0x3ce648(0x1db)][_0x2e7157])===null||_0x49a470===void 0x0?void 0x0:_0x49a470['params'])&&typeof _0x2a4793['args'][_0x2e7157][_0x3ce648(0x201)]==_0x3ce648(0x1f2)&&((_0x54d9d0=_0x3c684b===null||_0x3c684b===void 0x0?void 0x0:_0x3c684b['params'])===null||_0x54d9d0===void 0x0?void 0x0:_0x54d9d0[_0x2fbe03['methodArgs'][_0x2e7157]]))_0x2a4793[_0x3ce648(0x1db)][_0x2e7157]=_0xb79ce1((_0x2676f1=_0x3c684b===null||_0x3c684b===void 0x0?void 0x0:_0x3c684b[_0x3ce648(0x1e3)])===null||_0x2676f1===void 0x0?void 0x0:_0x2676f1[_0x2fbe03[_0x3ce648(0x1e7)][_0x2e7157]]);else(_0x2fbe03===null||_0x2fbe03===void 0x0?void 0x0:_0x2fbe03[_0x3ce648(0x1e7)][_0x2e7157])&&((_0xc1a777=(_0x116b5f=_0x2a4793[_0x3ce648(0x1db)][_0x2e7157])===null||_0x116b5f===void 0x0?void 0x0:_0x116b5f[_0x3ce648(0x1e3)])===null||_0xc1a777===void 0x0?void 0x0:_0xc1a777[_0x2fbe03[_0x3ce648(0x1e7)][_0x2e7157]])&&(_0x2a4793[_0x3ce648(0x1db)][_0x2e7157]=(_0xa75b8d=(_0xada7e0=_0x2a4793['args'][_0x2e7157])===null||_0xada7e0===void 0x0?void 0x0:_0xada7e0[_0x3ce648(0x1e3)])===null||_0xa75b8d===void 0x0?void 0x0:_0xa75b8d[_0x2fbe03[_0x3ce648(0x1e7)][_0x2e7157]]);}}},'afterThrow':(_0x2b771d,_0x4cf9d6)=>{throw _0x4cf9d6;}};});}};exports[a1_0x15a268(0x202)]=CustomConfiguration,__decorate([(0x0,core_2[a1_0x15a268(0x1fa)])(),__metadata(a1_0x15a268(0x1ed),core_1[a1_0x15a268(0x1cf)])],CustomConfiguration[a1_0x15a268(0x1d1)],a1_0x15a268(0x1d2),void 0x0),__decorate([(0x0,core_2[a1_0x15a268(0x1fa)])(),__metadata('design:type',ValidatorService_1['ValidatorService'])],CustomConfiguration['prototype'],a1_0x15a268(0x1f7),void 0x0),exports[a1_0x15a268(0x202)]=CustomConfiguration=__decorate([(0x0,core_2[a1_0x15a268(0x1ff)])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':'anncic-api:validator','importConfigs':[{'default':ConfigDefault}]})],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_0x1dd2(){const _0x3d3d0f=['@midwayjs/core','829121xewltR','description','getClassMetadata','search','Array','RuleType','79242rayVPC','@joi/date','getPropertyType','defineProperty','Rule','joi','isSchema','1758449MXWFAq','items','../interface','264yaSDPR','__esModule','meta','(((.+)+)+)+$','saveClassMetadata','RULES_KEY','map','2XYksdG','8ZhDYXz','653544NvUXPz','8LnlvRK','toString','default','1139274dwPpsZ','80KcpVzI','name','2998807zNlFVv','function','105745MpbGMu','label'];a2_0x1dd2=function(){return _0x3d3d0f;};return a2_0x1dd2();}const a2_0xb52836=a2_0x7da2;function a2_0x7da2(_0x334f5c,_0x3d7260){const _0x208e09=a2_0x1dd2();return a2_0x7da2=function(_0x432307,_0x5af264){_0x432307=_0x432307-0xbc;let _0x1dd2bf=_0x208e09[_0x432307];return _0x1dd2bf;},a2_0x7da2(_0x334f5c,_0x3d7260);}(function(_0x528c6f,_0x10c274){const _0xb20a80=a2_0x7da2,_0x3313e4=_0x528c6f();while(!![]){try{const _0x2f60b3=parseInt(_0xb20a80(0xd7))/0x1*(parseInt(_0xb20a80(0xc9))/0x2)+-parseInt(_0xb20a80(0xdd))/0x3*(-parseInt(_0xb20a80(0xcc))/0x4)+-parseInt(_0xb20a80(0xd4))/0x5*(-parseInt(_0xb20a80(0xc2))/0x6)+-parseInt(_0xb20a80(0xd2))/0x7*(parseInt(_0xb20a80(0xca))/0x8)+-parseInt(_0xb20a80(0xcf))/0x9*(parseInt(_0xb20a80(0xd0))/0xa)+parseInt(_0xb20a80(0xbf))/0xb+parseInt(_0xb20a80(0xcb))/0xc;if(_0x2f60b3===_0x10c274)break;else _0x3313e4['push'](_0x3313e4['shift']());}catch(_0x4810c6){_0x3313e4['push'](_0x3313e4['shift']());}}}(a2_0x1dd2,0x8f009));const a2_0x5af264=(function(){let _0x5652b7=!![];return function(_0x44ed4d,_0x430fc7){const _0x18768b=_0x5652b7?function(){if(_0x430fc7){const _0x5eb064=_0x430fc7['apply'](_0x44ed4d,arguments);return _0x430fc7=null,_0x5eb064;}}:function(){};return _0x5652b7=![],_0x18768b;};}()),a2_0x432307=a2_0x5af264(this,function(){const _0x49dc71=a2_0x7da2;return a2_0x432307['toString']()[_0x49dc71(0xda)](_0x49dc71(0xc5))[_0x49dc71(0xcd)]()['constructor'](a2_0x432307)[_0x49dc71(0xda)](_0x49dc71(0xc5));});a2_0x432307();'use strict';Object[a2_0xb52836(0xe0)](exports,a2_0xb52836(0xc3),{'value':!![]}),exports[a2_0xb52836(0xbc)]=exports[a2_0xb52836(0xdc)]=void 0x0;const joi=require(a2_0xb52836(0xbd)),date_1=require(a2_0xb52836(0xde)),core_1=require(a2_0xb52836(0xd6)),interface_1=require(a2_0xb52836(0xc1));exports[a2_0xb52836(0xdc)]=joi['extend'](date_1[a2_0xb52836(0xce)]);function Rule(_0x28f142,_0x28d164,_0x2d7e03=''){return(_0x1ed681,_0x2926d1)=>{const _0x26e834=a2_0x7da2;var _0x7ba3cc;if(_0x2926d1)!joi[_0x26e834(0xbe)](_0x28d164)&&(_0x28d164===null||_0x28d164===void 0x0?void 0x0:_0x28d164[_0x26e834(0xd1)])&&(_0x28d164=joi['object']((0x0,core_1[_0x26e834(0xd9)])(interface_1[_0x26e834(0xc7)],_0x28d164))[_0x26e834(0xc4)]({'id':_0x28d164[_0x26e834(0xd1)]}),(0x0,core_1[_0x26e834(0xdf)])(_0x1ed681,_0x2926d1)['name']===_0x26e834(0xdb)&&(_0x28d164=joi['array']()[_0x26e834(0xc0)](_0x28d164))),joi['isSchema'](_0x28d164)&&(_0x28f142&&typeof(_0x28d164===null||_0x28d164===void 0x0?void 0x0:_0x28d164[_0x26e834(0xd5)])==_0x26e834(0xd3)&&(_0x28d164=_0x28d164[_0x26e834(0xd5)](_0x28f142)),_0x2d7e03&&typeof(_0x28d164===null||_0x28d164===void 0x0?void 0x0:_0x28d164[_0x26e834(0xd8)])==_0x26e834(0xd3)&&(_0x28d164=_0x28d164[_0x26e834(0xd8)](_0x2d7e03)),(0x0,core_1['attachClassMetadata'])(interface_1['RULES_KEY'],_0x28d164,_0x1ed681,_0x2926d1));else{const _0xc2fbe1=(0x0,core_1[_0x26e834(0xd9)])(interface_1[_0x26e834(0xc7)],_0x28d164);if(_0xc2fbe1){let _0x9edc5e=(_0x7ba3cc=(0x0,core_1[_0x26e834(0xd9)])(interface_1['RULES_KEY'],_0x1ed681))!==null&&_0x7ba3cc!==void 0x0?_0x7ba3cc:{};Object['keys'](_0xc2fbe1)[_0x26e834(0xc8)](_0x22aa70=>{!_0x9edc5e[_0x22aa70]&&(_0x9edc5e[_0x22aa70]=_0xc2fbe1[_0x22aa70]);}),(0x0,core_1[_0x26e834(0xc6)])(interface_1[_0x26e834(0xc7)],_0x9edc5e,_0x1ed681);}}};}exports[a2_0xb52836(0xbc)]=Rule;
1
+ const a2_0x187525=a2_0x5814;(function(_0x14d7ae,_0x202d15){const _0x10ba0c=a2_0x5814,_0x2762e6=_0x14d7ae();while(!![]){try{const _0x4e8323=-parseInt(_0x10ba0c(0x1e0))/0x1+parseInt(_0x10ba0c(0x1ed))/0x2+-parseInt(_0x10ba0c(0x1e6))/0x3*(-parseInt(_0x10ba0c(0x1ee))/0x4)+-parseInt(_0x10ba0c(0x1e4))/0x5*(-parseInt(_0x10ba0c(0x1dd))/0x6)+-parseInt(_0x10ba0c(0x1e5))/0x7+-parseInt(_0x10ba0c(0x1f2))/0x8*(parseInt(_0x10ba0c(0x1ef))/0x9)+-parseInt(_0x10ba0c(0x1db))/0xa*(-parseInt(_0x10ba0c(0x1e1))/0xb);if(_0x4e8323===_0x202d15)break;else _0x2762e6['push'](_0x2762e6['shift']());}catch(_0x3da2a7){_0x2762e6['push'](_0x2762e6['shift']());}}}(a2_0x1a93,0x7a8fd));const a2_0x44ded9=(function(){let _0x3c92de=!![];return function(_0x40eaca,_0x1aa74f){const _0x42014d=_0x3c92de?function(){const _0x1ef287=a2_0x5814;if(_0x1aa74f){const _0x4ed567=_0x1aa74f[_0x1ef287(0x1f7)](_0x40eaca,arguments);return _0x1aa74f=null,_0x4ed567;}}:function(){};return _0x3c92de=![],_0x42014d;};}()),a2_0x552532=a2_0x44ded9(this,function(){const _0x499286=a2_0x5814;return a2_0x552532[_0x499286(0x1e3)]()['search'](_0x499286(0x1fc))['toString']()[_0x499286(0x1f3)](a2_0x552532)['search'](_0x499286(0x1fc));});a2_0x552532();'use strict';Object[a2_0x187525(0x1ff)](exports,a2_0x187525(0x1f1),{'value':!![]}),exports[a2_0x187525(0x1de)]=void 0x0,exports[a2_0x187525(0x1f9)]=Rule;const joi=require(a2_0x187525(0x1fe)),date_1=require('@joi/date'),core_1=require('@midwayjs/core'),interface_1=require(a2_0x187525(0x1f4));exports[a2_0x187525(0x1de)]=joi[a2_0x187525(0x1e7)](date_1[a2_0x187525(0x1f0)]);function Rule(_0x4c2bce,_0x163fc5,_0x3bed5d=''){return(_0x598858,_0xe8449a)=>{const _0x411682=a2_0x5814;var _0x29e129;if(_0xe8449a)!joi['isSchema'](_0x163fc5)&&(_0x163fc5===null||_0x163fc5===void 0x0?void 0x0:_0x163fc5[_0x411682(0x1ec)])&&(_0x163fc5=joi['object']((0x0,core_1[_0x411682(0x1f6)])(interface_1[_0x411682(0x1eb)],_0x163fc5))[_0x411682(0x1fb)]({'id':_0x163fc5[_0x411682(0x1ec)]}),(0x0,core_1[_0x411682(0x1df)])(_0x598858,_0xe8449a)[_0x411682(0x1ec)]===_0x411682(0x1fa)&&(_0x163fc5=joi[_0x411682(0x1f5)]()[_0x411682(0x1f8)](_0x163fc5))),joi[_0x411682(0x1fd)](_0x163fc5)&&(_0x4c2bce&&typeof(_0x163fc5===null||_0x163fc5===void 0x0?void 0x0:_0x163fc5[_0x411682(0x1e9)])=='function'&&(_0x163fc5=_0x163fc5[_0x411682(0x1e9)](_0x4c2bce)),_0x3bed5d&&typeof(_0x163fc5===null||_0x163fc5===void 0x0?void 0x0:_0x163fc5[_0x411682(0x1ea)])==_0x411682(0x1e8)&&(_0x163fc5=_0x163fc5['description'](_0x3bed5d)),(0x0,core_1['attachClassMetadata'])(interface_1[_0x411682(0x1eb)],_0x163fc5,_0x598858,_0xe8449a));else{const _0x5d10ef=(0x0,core_1['getClassMetadata'])(interface_1['RULES_KEY'],_0x163fc5);if(_0x5d10ef){let _0x3b183a=(_0x29e129=(0x0,core_1[_0x411682(0x1f6)])(interface_1[_0x411682(0x1eb)],_0x598858))!==null&&_0x29e129!==void 0x0?_0x29e129:{};Object[_0x411682(0x1dc)](_0x5d10ef)['map'](_0x1e4148=>{!_0x3b183a[_0x1e4148]&&(_0x3b183a[_0x1e4148]=_0x5d10ef[_0x1e4148]);}),(0x0,core_1[_0x411682(0x1e2)])(interface_1['RULES_KEY'],_0x3b183a,_0x598858);}}};}function a2_0x5814(_0xe46bc4,_0x415df0){const _0xd2bc21=a2_0x1a93();return a2_0x5814=function(_0x552532,_0x44ded9){_0x552532=_0x552532-0x1db;let _0x1a9321=_0xd2bc21[_0x552532];return _0x1a9321;},a2_0x5814(_0xe46bc4,_0x415df0);}function a2_0x1a93(){const _0x23285e=['array','getClassMetadata','apply','items','Rule','Array','meta','(((.+)+)+)+$','isSchema','joi','defineProperty','10WBFaEv','keys','31650XuCAtL','RuleType','getPropertyType','921512iSyIjG','1891747hnQktZ','saveClassMetadata','toString','895QfLjjh','1012669xDeMbh','1323186VHTlOO','extend','function','label','description','RULES_KEY','name','591984LPIgmQ','4kzujDz','98676MIbuYj','default','__esModule','208JDTUTg','constructor','../interface'];a2_0x1a93=function(){return _0x23285e;};return a2_0x1a93();}
@@ -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
- const a3_0xf3989b=a3_0x41d5;(function(_0x4018f9,_0x4a9b61){const _0x43588b=a3_0x41d5,_0x240643=_0x4018f9();while(!![]){try{const _0x31e203=-parseInt(_0x43588b(0x1f6))/0x1+parseInt(_0x43588b(0x207))/0x2+parseInt(_0x43588b(0x1f1))/0x3+-parseInt(_0x43588b(0x1f8))/0x4*(-parseInt(_0x43588b(0x1f9))/0x5)+parseInt(_0x43588b(0x205))/0x6+parseInt(_0x43588b(0x206))/0x7*(parseInt(_0x43588b(0x1f3))/0x8)+-parseInt(_0x43588b(0x1fa))/0x9;if(_0x31e203===_0x4a9b61)break;else _0x240643['push'](_0x240643['shift']());}catch(_0x482e45){_0x240643['push'](_0x240643['shift']());}}}(a3_0x2f36,0x681fe));function a3_0x41d5(_0x221985,_0x18f6fa){const _0x155761=a3_0x2f36();return a3_0x41d5=function(_0x4503c9,_0x2200d4){_0x4503c9=_0x4503c9-0x1f0;let _0x2f367c=_0x155761[_0x4503c9];return _0x2f367c;},a3_0x41d5(_0x221985,_0x18f6fa);}const a3_0x2200d4=(function(){let _0xcc781e=!![];return function(_0x498cf1,_0x3faddf){const _0xc7441d=_0xcc781e?function(){const _0x1fe4ae=a3_0x41d5;if(_0x3faddf){const _0x321ec3=_0x3faddf[_0x1fe4ae(0x1f2)](_0x498cf1,arguments);return _0x3faddf=null,_0x321ec3;}}:function(){};return _0xcc781e=![],_0xc7441d;};}()),a3_0x4503c9=a3_0x2200d4(this,function(){const _0x5ed906=a3_0x41d5;return a3_0x4503c9['toString']()[_0x5ed906(0x1fb)](_0x5ed906(0x201))['toString']()['constructor'](a3_0x4503c9)[_0x5ed906(0x1fb)](_0x5ed906(0x201));});a3_0x4503c9();'use strict';Object[a3_0xf3989b(0x202)](exports,'__esModule',{'value':!![]}),exports['getFuncArgs']=exports[a3_0xf3989b(0x1f7)]=void 0x0;const core_1=require(a3_0xf3989b(0x1f4)),interface_1=require('../interface');function Validator(_0x39bcba={}){return(_0x21cfd8,_0x306e55,_0x5ead4e)=>{const _0x53a51b=a3_0x41d5,_0x36a130=getFuncArgs(_0x21cfd8[_0x306e55]);(0x0,core_1[_0x53a51b(0x204)])(interface_1[_0x53a51b(0x1f5)],{'method':_0x306e55,'methodArgs':_0x36a130},_0x21cfd8),(0x0,core_1['createCustomMethodDecorator'])(interface_1['VALIDATOR_KEY'],_0x39bcba)(_0x21cfd8,_0x306e55,_0x5ead4e);};}function a3_0x2f36(){const _0x10cdc7=['(((.+)+)+)+$','defineProperty','constructor','attachClassMetadata','289884hxwDbh','497LzEwRF','484750zeVXrq','prototype','2460540DgCMWN','apply','2344eYbpYR','@midwayjs/core','VALIDATOR_KEY','451477aQmOxw','Validator','683300zkyGvk','5qKXtNk','3820734eksEqE','search','slice','replace','function','match','toString'];a3_0x2f36=function(){return _0x10cdc7;};return a3_0x2f36();}exports[a3_0xf3989b(0x1f7)]=Validator;function getFuncArgs(_0x3bbad0){const _0x5b1808=a3_0xf3989b;if(typeof _0x3bbad0==_0x5b1808(0x1fe)){const _0x103fe2=/=>.*$/mg,_0x31100e=/=[^,)]+/mg,_0x4460a3=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x4550bd=(_0x3bbad0[_0x5b1808(0x1f0)]?_0x3bbad0[_0x5b1808(0x1f0)][_0x5b1808(0x203)][_0x5b1808(0x200)]():_0x3bbad0[_0x5b1808(0x200)]())[_0x5b1808(0x1fd)](_0x4460a3,'')[_0x5b1808(0x1fd)](_0x103fe2,'')['replace'](_0x31100e,''),_0x119806=_0x4550bd[_0x5b1808(0x1fc)](_0x4550bd['indexOf']('(')+0x1,_0x4550bd['indexOf'](')'))[_0x5b1808(0x1ff)](/([^\s,]+)/g)||[];return _0x119806;}}exports['getFuncArgs']=getFuncArgs;
1
+ function a3_0x5ef6(_0x2522de,_0x4cfbd0){const _0x605d75=a3_0x2fa7();return a3_0x5ef6=function(_0x26436a,_0x354354){_0x26436a=_0x26436a-0x18c;let _0x2fa7c0=_0x605d75[_0x26436a];return _0x2fa7c0;},a3_0x5ef6(_0x2522de,_0x4cfbd0);}const a3_0x2c59a9=a3_0x5ef6;function a3_0x2fa7(){const _0x22bf87=['replace','indexOf','54RDcDSR','Validator','VALIDATOR_KEY','2246223jbcJGQ','384730YhkyMd','__esModule','9745526KYYNdP','search','createCustomMethodDecorator','defineProperty','toString','648708dTivpx','constructor','3894774KrgjTD','19142585SspKii','apply','prototype','8DBVVgf','3sebOhb','../interface','1234205gDPqKJ','function','4mGTbXO'];a3_0x2fa7=function(){return _0x22bf87;};return a3_0x2fa7();}(function(_0x2a6f50,_0x176a32){const _0x2e33e6=a3_0x5ef6,_0x494ab0=_0x2a6f50();while(!![]){try{const _0x423cb1=parseInt(_0x2e33e6(0x19a))/0x1*(-parseInt(_0x2e33e6(0x193))/0x2)+parseInt(_0x2e33e6(0x1a4))/0x3*(parseInt(_0x2e33e6(0x19e))/0x4)+-parseInt(_0x2e33e6(0x19c))/0x5+parseInt(_0x2e33e6(0x195))/0x6+-parseInt(_0x2e33e6(0x18e))/0x7*(parseInt(_0x2e33e6(0x199))/0x8)+-parseInt(_0x2e33e6(0x1a1))/0x9*(-parseInt(_0x2e33e6(0x18c))/0xa)+parseInt(_0x2e33e6(0x196))/0xb;if(_0x423cb1===_0x176a32)break;else _0x494ab0['push'](_0x494ab0['shift']());}catch(_0x54b807){_0x494ab0['push'](_0x494ab0['shift']());}}}(a3_0x2fa7,0xb8c56));const a3_0x354354=(function(){let _0x39ed4=!![];return function(_0x173eb4,_0x558d1e){const _0x18b740=_0x39ed4?function(){const _0x16a2e9=a3_0x5ef6;if(_0x558d1e){const _0x5efd16=_0x558d1e[_0x16a2e9(0x197)](_0x173eb4,arguments);return _0x558d1e=null,_0x5efd16;}}:function(){};return _0x39ed4=![],_0x18b740;};}()),a3_0x26436a=a3_0x354354(this,function(){const _0x2601b0=a3_0x5ef6;return a3_0x26436a[_0x2601b0(0x192)]()[_0x2601b0(0x18f)]('(((.+)+)+)+$')['toString']()[_0x2601b0(0x194)](a3_0x26436a)[_0x2601b0(0x18f)]('(((.+)+)+)+$');});a3_0x26436a();'use strict';Object[a3_0x2c59a9(0x191)](exports,a3_0x2c59a9(0x18d),{'value':!![]}),exports[a3_0x2c59a9(0x1a2)]=Validator,exports['getFuncArgs']=getFuncArgs;const core_1=require('@midwayjs/core'),interface_1=require(a3_0x2c59a9(0x19b));function Validator(_0x1fe1d7={}){return(_0x568a36,_0x41175d,_0x19c52a)=>{const _0x23cfe8=a3_0x5ef6,_0x1fce72=getFuncArgs(_0x568a36[_0x41175d]);(0x0,core_1['attachClassMetadata'])(interface_1[_0x23cfe8(0x1a3)],{'method':_0x41175d,'methodArgs':_0x1fce72},_0x568a36),(0x0,core_1[_0x23cfe8(0x190)])(interface_1[_0x23cfe8(0x1a3)],_0x1fe1d7)(_0x568a36,_0x41175d,_0x19c52a);};}function getFuncArgs(_0x4ed56a){const _0x3d8ca4=a3_0x2c59a9;if(typeof _0x4ed56a==_0x3d8ca4(0x19d)){const _0x191892=/=>.*$/mg,_0x4342bd=/=[^,)]+/mg,_0x3eb8b1=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x4ca545=(_0x4ed56a[_0x3d8ca4(0x198)]?_0x4ed56a[_0x3d8ca4(0x198)][_0x3d8ca4(0x194)][_0x3d8ca4(0x192)]():_0x4ed56a[_0x3d8ca4(0x192)]())[_0x3d8ca4(0x19f)](_0x3eb8b1,'')[_0x3d8ca4(0x19f)](_0x191892,'')['replace'](_0x4342bd,''),_0x51e783=_0x4ca545['slice'](_0x4ca545[_0x3d8ca4(0x1a0)]('(')+0x1,_0x4ca545['indexOf'](')'))['match'](/([^\s,]+)/g)||[];return _0x51e783;}}
@@ -1,5 +1,4 @@
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
+ export declare class ValidatorError extends AnnError {
2
+ static readonly PARAMS = 101406;
3
+ static readonly NOFIND_SCHEMA = 101404;
4
+ }
@@ -1 +1 @@
1
- var a4_0x3be1e7=a4_0x5c02;(function(_0x5e52e3,_0x2e12ed){var _0x348d65=a4_0x5c02,_0x451b94=_0x5e52e3();while(!![]){try{var _0x22d516=parseInt(_0x348d65(0x147))/0x1*(-parseInt(_0x348d65(0x157))/0x2)+parseInt(_0x348d65(0x146))/0x3+-parseInt(_0x348d65(0x160))/0x4+-parseInt(_0x348d65(0x15f))/0x5*(-parseInt(_0x348d65(0x14a))/0x6)+parseInt(_0x348d65(0x14f))/0x7+parseInt(_0x348d65(0x154))/0x8+-parseInt(_0x348d65(0x158))/0x9;if(_0x22d516===_0x2e12ed)break;else _0x451b94['push'](_0x451b94['shift']());}catch(_0x43c649){_0x451b94['push'](_0x451b94['shift']());}}}(a4_0x1313,0x1f029));var a4_0x1c70aa=(function(){var _0x197b60=!![];return function(_0x3108cd,_0x767eb){var _0x40c0e7=_0x197b60?function(){var _0x3ef25e=a4_0x5c02;if(_0x767eb){var _0x2685ce=_0x767eb[_0x3ef25e(0x150)](_0x3108cd,arguments);return _0x767eb=null,_0x2685ce;}}:function(){};return _0x197b60=![],_0x40c0e7;};}()),a4_0x3fab3f=a4_0x1c70aa(this,function(){var _0x6f677=a4_0x5c02;return a4_0x3fab3f[_0x6f677(0x149)]()[_0x6f677(0x15a)](_0x6f677(0x159))[_0x6f677(0x149)]()[_0x6f677(0x152)](a4_0x3fab3f)['search'](_0x6f677(0x159));});a4_0x3fab3f();function a4_0x5c02(_0x3d1fc5,_0x166fe0){var _0x532d35=a4_0x1313();return a4_0x5c02=function(_0x3fab3f,_0x1c70aa){_0x3fab3f=_0x3fab3f-0x144;var _0x1313fd=_0x532d35[_0x3fab3f];return _0x1313fd;},a4_0x5c02(_0x3d1fc5,_0x166fe0);}'use strict';var __decorate=this&&this['__decorate']||function(_0x101931,_0x349832,_0x4835d7,_0x5d1456){var _0x592e53=a4_0x5c02,_0x176eab=arguments[_0x592e53(0x14b)],_0x153fa0=_0x176eab<0x3?_0x349832:_0x5d1456===null?_0x5d1456=Object[_0x592e53(0x15d)](_0x349832,_0x4835d7):_0x5d1456,_0x49b753;if(typeof Reflect===_0x592e53(0x148)&&typeof Reflect['decorate']==='function')_0x153fa0=Reflect[_0x592e53(0x15b)](_0x101931,_0x349832,_0x4835d7,_0x5d1456);else{for(var _0x316bf0=_0x101931['length']-0x1;_0x316bf0>=0x0;_0x316bf0--)if(_0x49b753=_0x101931[_0x316bf0])_0x153fa0=(_0x176eab<0x3?_0x49b753(_0x153fa0):_0x176eab>0x3?_0x49b753(_0x349832,_0x4835d7,_0x153fa0):_0x49b753(_0x349832,_0x4835d7))||_0x153fa0;}return _0x176eab>0x3&&_0x153fa0&&Object[_0x592e53(0x155)](_0x349832,_0x4835d7,_0x153fa0),_0x153fa0;},__metadata=this&&this[a4_0x3be1e7(0x15c)]||function(_0x15d101,_0x2ed1e0){var _0x439357=a4_0x3be1e7;if(typeof Reflect===_0x439357(0x148)&&typeof Reflect[_0x439357(0x156)]===_0x439357(0x145))return Reflect[_0x439357(0x156)](_0x15d101,_0x2ed1e0);};Object['defineProperty'](exports,a4_0x3be1e7(0x15e),{'value':!![]}),exports[a4_0x3be1e7(0x144)]=void 0x0;const core_1=require(a4_0x3be1e7(0x14d));class ValidatorError extends AnnError{}ValidatorError[a4_0x3be1e7(0x153)]=0x18c1e,ValidatorError['NOFIND_SCHEMA']=0x18c1c,__decorate([(0x0,core_1['AnnErrorMsg'])(a4_0x3be1e7(0x14e)),__metadata(a4_0x3be1e7(0x151),Object)],ValidatorError,'PARAMS',void 0x0),__decorate([(0x0,core_1[a4_0x3be1e7(0x161)])(a4_0x3be1e7(0x14e)),__metadata(a4_0x3be1e7(0x151),Object)],ValidatorError,a4_0x3be1e7(0x14c),void 0x0),exports[a4_0x3be1e7(0x144)]=ValidatorError;function a4_0x1313(){var _0x26e02b=['metadata','3802rUKGAd','1525185OESdqc','(((.+)+)+)+$','search','decorate','__metadata','getOwnPropertyDescriptor','__esModule','2355TpevTM','361828JzZveP','AnnErrorMsg','ValidatorError','function','311967LEAItt','4dRPwWB','object','toString','804wMYRpZ','length','NOFIND_SCHEMA','@anncic-api/core','参数验证失败','80367HLFWJk','apply','design:type','constructor','PARAMS','1727672ZrHZYY','defineProperty'];a4_0x1313=function(){return _0x26e02b;};return a4_0x1313();}
1
+ var a4_0x467548=a4_0x3f0a;(function(_0x2ecda9,_0x440d58){var _0x473e22=a4_0x3f0a,_0x27cc90=_0x2ecda9();while(!![]){try{var _0x2e23cb=-parseInt(_0x473e22(0x6f))/0x1+parseInt(_0x473e22(0x74))/0x2*(-parseInt(_0x473e22(0x6c))/0x3)+parseInt(_0x473e22(0x6b))/0x4+parseInt(_0x473e22(0x7e))/0x5*(-parseInt(_0x473e22(0x68))/0x6)+-parseInt(_0x473e22(0x72))/0x7*(-parseInt(_0x473e22(0x67))/0x8)+parseInt(_0x473e22(0x6a))/0x9+parseInt(_0x473e22(0x73))/0xa;if(_0x2e23cb===_0x440d58)break;else _0x27cc90['push'](_0x27cc90['shift']());}catch(_0x29c702){_0x27cc90['push'](_0x27cc90['shift']());}}}(a4_0x3d38,0x3d393));var a4_0x1d6447=(function(){var _0x130e35=!![];return function(_0x16392e,_0x1b6837){var _0x2130c3=_0x130e35?function(){var _0x17cfbe=a4_0x3f0a;if(_0x1b6837){var _0x519980=_0x1b6837[_0x17cfbe(0x6e)](_0x16392e,arguments);return _0x1b6837=null,_0x519980;}}:function(){};return _0x130e35=![],_0x2130c3;};}()),a4_0x1eeb3b=a4_0x1d6447(this,function(){var _0x26ef97=a4_0x3f0a;return a4_0x1eeb3b[_0x26ef97(0x79)]()[_0x26ef97(0x7c)](_0x26ef97(0x66))['toString']()['constructor'](a4_0x1eeb3b)[_0x26ef97(0x7c)]('(((.+)+)+)+$');});a4_0x1eeb3b();'use strict';function a4_0x3f0a(_0x5e95e7,_0x3e3244){var _0x484d62=a4_0x3d38();return a4_0x3f0a=function(_0x1eeb3b,_0x1d6447){_0x1eeb3b=_0x1eeb3b-0x66;var _0x3d382a=_0x484d62[_0x1eeb3b];return _0x3d382a;},a4_0x3f0a(_0x5e95e7,_0x3e3244);}var __decorate=this&&this[a4_0x467548(0x7f)]||function(_0x22223f,_0xda10e3,_0x2260c2,_0x3e779b){var _0x232a18=a4_0x467548,_0x3350f6=arguments['length'],_0x447c40=_0x3350f6<0x3?_0xda10e3:_0x3e779b===null?_0x3e779b=Object[_0x232a18(0x71)](_0xda10e3,_0x2260c2):_0x3e779b,_0x19fedf;if(typeof Reflect==='object'&&typeof Reflect['decorate']==='function')_0x447c40=Reflect[_0x232a18(0x7b)](_0x22223f,_0xda10e3,_0x2260c2,_0x3e779b);else{for(var _0x56ba00=_0x22223f['length']-0x1;_0x56ba00>=0x0;_0x56ba00--)if(_0x19fedf=_0x22223f[_0x56ba00])_0x447c40=(_0x3350f6<0x3?_0x19fedf(_0x447c40):_0x3350f6>0x3?_0x19fedf(_0xda10e3,_0x2260c2,_0x447c40):_0x19fedf(_0xda10e3,_0x2260c2))||_0x447c40;}return _0x3350f6>0x3&&_0x447c40&&Object[_0x232a18(0x6d)](_0xda10e3,_0x2260c2,_0x447c40),_0x447c40;},__metadata=this&&this[a4_0x467548(0x70)]||function(_0x2cab86,_0x4317b8){var _0xccf108=a4_0x467548;if(typeof Reflect===_0xccf108(0x76)&&typeof Reflect[_0xccf108(0x80)]===_0xccf108(0x69))return Reflect[_0xccf108(0x80)](_0x2cab86,_0x4317b8);};Object[a4_0x467548(0x6d)](exports,'__esModule',{'value':!![]}),exports[a4_0x467548(0x7d)]=void 0x0;const core_1=require('@anncic-api/core');class ValidatorError extends AnnError{}function a4_0x3d38(){var _0x4f5e44=['6544KNvQps','498NYRxgc','function','2456982LisNbE','1985596pHQzee','3yQxVla','defineProperty','apply','339112EdDlvP','__metadata','getOwnPropertyDescriptor','4081xqFmod','537020DoTywd','812826jlbQHT','PARAMS','object','NOFIND_SCHEMA','参数验证失败','toString','AnnErrorMsg','decorate','search','ValidatorError','18295zevwcZ','__decorate','metadata','(((.+)+)+)+$'];a4_0x3d38=function(){return _0x4f5e44;};return a4_0x3d38();}exports[a4_0x467548(0x7d)]=ValidatorError,ValidatorError[a4_0x467548(0x75)]=0x18c1e,ValidatorError['NOFIND_SCHEMA']=0x18c1c,__decorate([(0x0,core_1[a4_0x467548(0x7a)])(a4_0x467548(0x78)),__metadata('design:type',Object)],ValidatorError,a4_0x467548(0x75),void 0x0),__decorate([(0x0,core_1[a4_0x467548(0x7a)])('参数验证失败'),__metadata('design:type',Object)],ValidatorError,a4_0x467548(0x77),void 0x0);
@@ -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_0x4ed7c4=a5_0x3e6e;(function(_0x2c9e20,_0x19ad72){const _0x3748cf=a5_0x3e6e,_0x3233a8=_0x2c9e20();while(!![]){try{const _0x24f6b6=parseInt(_0x3748cf(0x77))/0x1*(parseInt(_0x3748cf(0x76))/0x2)+parseInt(_0x3748cf(0x7b))/0x3+-parseInt(_0x3748cf(0x7c))/0x4+-parseInt(_0x3748cf(0x74))/0x5+parseInt(_0x3748cf(0x85))/0x6+parseInt(_0x3748cf(0x78))/0x7*(parseInt(_0x3748cf(0x7d))/0x8)+-parseInt(_0x3748cf(0x86))/0x9*(-parseInt(_0x3748cf(0x82))/0xa);if(_0x24f6b6===_0x19ad72)break;else _0x3233a8['push'](_0x3233a8['shift']());}catch(_0xd66d13){_0x3233a8['push'](_0x3233a8['shift']());}}}(a5_0x1863,0xbc1e4));const a5_0x18c137=(function(){let _0x941147=!![];return function(_0x2e6ea6,_0x2cce79){const _0x36d0f6=_0x941147?function(){const _0x4d8f79=a5_0x3e6e;if(_0x2cce79){const _0x3fc31a=_0x2cce79[_0x4d8f79(0x7f)](_0x2e6ea6,arguments);return _0x2cce79=null,_0x3fc31a;}}:function(){};return _0x941147=![],_0x36d0f6;};}()),a5_0x392be9=a5_0x18c137(this,function(){const _0xfc13ad=a5_0x3e6e;return a5_0x392be9['toString']()[_0xfc13ad(0x89)](_0xfc13ad(0x84))[_0xfc13ad(0x79)]()[_0xfc13ad(0x83)](a5_0x392be9)[_0xfc13ad(0x89)](_0xfc13ad(0x84));});a5_0x392be9();'use strict';Object['defineProperty'](exports,a5_0x4ed7c4(0x88),{'value':!![]}),exports[a5_0x4ed7c4(0x75)]=exports[a5_0x4ed7c4(0x87)]=void 0x0;const core_1=require(a5_0x4ed7c4(0x81)),interface_1=require('../interface');function PickDto(_0x5716b8,_0x26151b){const _0x304efd=a5_0x4ed7c4,_0x240e3c=function(){};_0x240e3c[_0x304efd(0x80)]=_0x5716b8['prototype'];const _0x26a402=(0x0,core_1[_0x304efd(0x7a)])(interface_1[_0x304efd(0x73)],_0x5716b8),_0x49a110={};for(const _0x55861a of _0x26151b){_0x26a402[_0x55861a]&&(_0x49a110[_0x55861a]=_0x26a402[_0x55861a]);}return(0x0,core_1['saveClassMetadata'])(interface_1[_0x304efd(0x73)],_0x49a110,_0x240e3c),_0x240e3c;}function a5_0x1863(){const _0x5dd9fc=['prototype','@midwayjs/core','10gABwsW','constructor','(((.+)+)+)+$','7742250Pimdmk','1261539CRlmuR','PickDto','__esModule','search','assign','RULES_KEY','5921305jqjmKE','OmitDto','435622UFFYqK','2eFDdMP','11158LkwRvQ','toString','getClassExtendedMetadata','236910pOFfcB','2645676cBdEIF','3368DDIuth','saveClassMetadata','apply'];a5_0x1863=function(){return _0x5dd9fc;};return a5_0x1863();}exports[a5_0x4ed7c4(0x87)]=PickDto;function OmitDto(_0x471184,_0x14c88b){const _0x3e027f=a5_0x4ed7c4,_0x325364=function(){};_0x325364[_0x3e027f(0x80)]=_0x471184[_0x3e027f(0x80)];const _0x724a6d=(0x0,core_1[_0x3e027f(0x7a)])(interface_1[_0x3e027f(0x73)],_0x471184),_0x5c21a6=Object[_0x3e027f(0x8a)]({},_0x724a6d);for(const _0x2e428f of _0x14c88b){delete _0x5c21a6[_0x2e428f];}return(0x0,core_1[_0x3e027f(0x7e)])(interface_1[_0x3e027f(0x73)],_0x5c21a6,_0x325364),_0x325364;}function a5_0x3e6e(_0x8a6458,_0x45ff1f){const _0x6a7065=a5_0x1863();return a5_0x3e6e=function(_0x392be9,_0x18c137){_0x392be9=_0x392be9-0x73;let _0x1863f0=_0x6a7065[_0x392be9];return _0x1863f0;},a5_0x3e6e(_0x8a6458,_0x45ff1f);}exports[a5_0x4ed7c4(0x75)]=OmitDto;
1
+ const a5_0x167ad9=a5_0xcb78;function a5_0x2dce(){const _0x113aa4=['constructor','PickDto','(((.+)+)+)+$','2596242DEHoMx','88VmoufS','596159CUImTF','@midwayjs/core','RULES_KEY','apply','2655927gPLWgp','assign','174Bthlxz','234556GoRQpF','324865gNCsHU','defineProperty','__esModule','toString','search','getClassExtendedMetadata','saveClassMetadata','prototype','7711584qppvVv','11228292CwyrQi'];a5_0x2dce=function(){return _0x113aa4;};return a5_0x2dce();}(function(_0x8cc4e6,_0x36be88){const _0x18a21d=a5_0xcb78,_0x2996ce=_0x8cc4e6();while(!![]){try{const _0x14748e=parseInt(_0x18a21d(0x18b))/0x1+-parseInt(_0x18a21d(0x189))/0x2+parseInt(_0x18a21d(0x178))/0x3+-parseInt(_0x18a21d(0x18a))/0x4*(-parseInt(_0x18a21d(0x17c))/0x5)+-parseInt(_0x18a21d(0x17a))/0x6*(parseInt(_0x18a21d(0x17b))/0x7)+-parseInt(_0x18a21d(0x184))/0x8+parseInt(_0x18a21d(0x185))/0x9;if(_0x14748e===_0x36be88)break;else _0x2996ce['push'](_0x2996ce['shift']());}catch(_0x989964){_0x2996ce['push'](_0x2996ce['shift']());}}}(a5_0x2dce,0xe1bf5));const a5_0x4af833=(function(){let _0x190cd0=!![];return function(_0x3e5f3a,_0x7cf81a){const _0x18600f=_0x190cd0?function(){const _0x3121cb=a5_0xcb78;if(_0x7cf81a){const _0xfa16d6=_0x7cf81a[_0x3121cb(0x177)](_0x3e5f3a,arguments);return _0x7cf81a=null,_0xfa16d6;}}:function(){};return _0x190cd0=![],_0x18600f;};}()),a5_0x74f103=a5_0x4af833(this,function(){const _0x23778e=a5_0xcb78;return a5_0x74f103[_0x23778e(0x17f)]()[_0x23778e(0x180)](_0x23778e(0x188))[_0x23778e(0x17f)]()[_0x23778e(0x186)](a5_0x74f103)['search'](_0x23778e(0x188));});a5_0x74f103();'use strict';function a5_0xcb78(_0x1a8c93,_0x3396fa){const _0x68cf7b=a5_0x2dce();return a5_0xcb78=function(_0x74f103,_0x4af833){_0x74f103=_0x74f103-0x177;let _0x2dce40=_0x68cf7b[_0x74f103];return _0x2dce40;},a5_0xcb78(_0x1a8c93,_0x3396fa);}Object[a5_0x167ad9(0x17d)](exports,a5_0x167ad9(0x17e),{'value':!![]}),exports[a5_0x167ad9(0x187)]=PickDto,exports['OmitDto']=OmitDto;const core_1=require(a5_0x167ad9(0x18c)),interface_1=require('../interface');function PickDto(_0x1e254b,_0x5cad74){const _0x178b6c=a5_0x167ad9,_0x1fe143=function(){};_0x1fe143[_0x178b6c(0x183)]=_0x1e254b[_0x178b6c(0x183)];const _0x8fbb0b=(0x0,core_1[_0x178b6c(0x181)])(interface_1[_0x178b6c(0x18d)],_0x1e254b),_0x21b499={};for(const _0x25c5f4 of _0x5cad74){_0x8fbb0b[_0x25c5f4]&&(_0x21b499[_0x25c5f4]=_0x8fbb0b[_0x25c5f4]);}return(0x0,core_1['saveClassMetadata'])(interface_1[_0x178b6c(0x18d)],_0x21b499,_0x1fe143),_0x1fe143;}function OmitDto(_0x7d10ea,_0x3812a1){const _0x5a2ea3=a5_0x167ad9,_0x5c89d2=function(){};_0x5c89d2['prototype']=_0x7d10ea[_0x5a2ea3(0x183)];const _0x46ff1c=(0x0,core_1[_0x5a2ea3(0x181)])(interface_1[_0x5a2ea3(0x18d)],_0x7d10ea),_0x3fe99c=Object[_0x5a2ea3(0x179)]({},_0x46ff1c);for(const _0x5e7eb3 of _0x3812a1){delete _0x3fe99c[_0x5e7eb3];}return(0x0,core_1[_0x5a2ea3(0x182)])(interface_1[_0x5a2ea3(0x18d)],_0x3fe99c,_0x5c89d2),_0x5c89d2;}
@@ -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_0xc6cdcc=a6_0x6270;function a6_0x3074(){const _0x58aee8=['150339LGoVuI','43058qbUuyJ','constructor','search','getSchema','404126nDxbKk','970NzBUbr','object','apply','8UDmAOr','1696tEPZVd','3105NPghJQ','1070adKZgy','(((.+)+)+)+$','8764118peKFcr','RULES_KEY','1464LKZYTT','toString','6000jcVkAc','joi','../interface','getClassExtendedMetadata'];a6_0x3074=function(){return _0x58aee8;};return a6_0x3074();}function a6_0x6270(_0x15274c,_0xbf0631){const _0x3819fa=a6_0x3074();return a6_0x6270=function(_0xf85a5d,_0x1abc0d){_0xf85a5d=_0xf85a5d-0xd5;let _0x3074b9=_0x3819fa[_0xf85a5d];return _0x3074b9;},a6_0x6270(_0x15274c,_0xbf0631);}(function(_0x52dcb7,_0x2678ff){const _0x33deeb=a6_0x6270,_0x322090=_0x52dcb7();while(!![]){try{const _0x46e714=-parseInt(_0x33deeb(0xdb))/0x1+-parseInt(_0x33deeb(0xdf))/0x2+parseInt(_0x33deeb(0xea))/0x3*(-parseInt(_0x33deeb(0xe4))/0x4)+parseInt(_0x33deeb(0xe6))/0x5*(-parseInt(_0x33deeb(0xd6))/0x6)+-parseInt(_0x33deeb(0xda))/0x7*(-parseInt(_0x33deeb(0xe3))/0x8)+-parseInt(_0x33deeb(0xe5))/0x9*(parseInt(_0x33deeb(0xe0))/0xa)+parseInt(_0x33deeb(0xe8))/0xb;if(_0x46e714===_0x2678ff)break;else _0x322090['push'](_0x322090['shift']());}catch(_0x175632){_0x322090['push'](_0x322090['shift']());}}}(a6_0x3074,0x1cfbd));const a6_0x1abc0d=(function(){let _0x402ba0=!![];return function(_0x181324,_0x2abfe8){const _0xd582fa=_0x402ba0?function(){const _0xa257d4=a6_0x6270;if(_0x2abfe8){const _0x3c76ec=_0x2abfe8[_0xa257d4(0xe2)](_0x181324,arguments);return _0x2abfe8=null,_0x3c76ec;}}:function(){};return _0x402ba0=![],_0xd582fa;};}()),a6_0xf85a5d=a6_0x1abc0d(this,function(){const _0x5209a1=a6_0x6270;return a6_0xf85a5d[_0x5209a1(0xd5)]()[_0x5209a1(0xdd)](_0x5209a1(0xe7))['toString']()[_0x5209a1(0xdc)](a6_0xf85a5d)[_0x5209a1(0xdd)](_0x5209a1(0xe7));});a6_0xf85a5d();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['getSchema']=void 0x0;const Joi=require(a6_0xc6cdcc(0xd7)),core_1=require('@midwayjs/core'),interface_1=require(a6_0xc6cdcc(0xd8));function getSchema(_0x54e5dd){const _0x183dd2=a6_0xc6cdcc,_0x4a5a66=(0x0,core_1[_0x183dd2(0xd9)])(interface_1[_0x183dd2(0xe9)],_0x54e5dd);if(_0x4a5a66)return Joi[_0x183dd2(0xe1)](_0x4a5a66);}exports[a6_0xc6cdcc(0xde)]=getSchema;
1
+ const a6_0x5409be=a6_0x1d46;function a6_0xb4fd(){const _0x2b78dc=['199829tJMMjW','defineProperty','../interface','joi','object','5193yjPweR','4248900iVQkcv','4zfzFoN','19744YFbjkN','__esModule','search','getSchema','2249232jxepGA','constructor','24728GkKQYl','getClassExtendedMetadata','5NIBNvn','apply','(((.+)+)+)+$','@midwayjs/core','40106904KkWzMd','toString','810IMPTHq','9034018CnUzUY','6PuJHmy'];a6_0xb4fd=function(){return _0x2b78dc;};return a6_0xb4fd();}(function(_0x5a7d7b,_0x2169ba){const _0x254ef9=a6_0x1d46,_0x5844cb=_0x5a7d7b();while(!![]){try{const _0x399c1e=-parseInt(_0x254ef9(0x1e2))/0x1*(parseInt(_0x254ef9(0x1e9))/0x2)+-parseInt(_0x254ef9(0x1d5))/0x3+-parseInt(_0x254ef9(0x1e8))/0x4*(parseInt(_0x254ef9(0x1d9))/0x5)+-parseInt(_0x254ef9(0x1e1))/0x6*(-parseInt(_0x254ef9(0x1e0))/0x7)+parseInt(_0x254ef9(0x1ea))/0x8*(-parseInt(_0x254ef9(0x1e7))/0x9)+parseInt(_0x254ef9(0x1df))/0xa*(-parseInt(_0x254ef9(0x1d7))/0xb)+parseInt(_0x254ef9(0x1dd))/0xc;if(_0x399c1e===_0x2169ba)break;else _0x5844cb['push'](_0x5844cb['shift']());}catch(_0x29ba8b){_0x5844cb['push'](_0x5844cb['shift']());}}}(a6_0xb4fd,0xc6fd9));const a6_0x17da8c=(function(){let _0x39f8a9=!![];return function(_0x2b81f7,_0xb0e050){const _0x23bac8=_0x39f8a9?function(){const _0x57bfd8=a6_0x1d46;if(_0xb0e050){const _0x7a8dcc=_0xb0e050[_0x57bfd8(0x1da)](_0x2b81f7,arguments);return _0xb0e050=null,_0x7a8dcc;}}:function(){};return _0x39f8a9=![],_0x23bac8;};}()),a6_0x31fb3a=a6_0x17da8c(this,function(){const _0x10209a=a6_0x1d46;return a6_0x31fb3a[_0x10209a(0x1de)]()['search']('(((.+)+)+)+$')['toString']()[_0x10209a(0x1d6)](a6_0x31fb3a)[_0x10209a(0x1ec)](_0x10209a(0x1db));});a6_0x31fb3a();'use strict';Object[a6_0x5409be(0x1e3)](exports,a6_0x5409be(0x1eb),{'value':!![]}),exports[a6_0x5409be(0x1d4)]=getSchema;const Joi=require(a6_0x5409be(0x1e5)),core_1=require(a6_0x5409be(0x1dc)),interface_1=require(a6_0x5409be(0x1e4));function a6_0x1d46(_0x4880cd,_0x2c5320){const _0x5777e5=a6_0xb4fd();return a6_0x1d46=function(_0x31fb3a,_0x17da8c){_0x31fb3a=_0x31fb3a-0x1d4;let _0xb4fd49=_0x5777e5[_0x31fb3a];return _0xb4fd49;},a6_0x1d46(_0x4880cd,_0x2c5320);}function getSchema(_0x5a15ca){const _0x1eddef=a6_0x5409be,_0x3ebc49=(0x0,core_1[_0x1eddef(0x1d8)])(interface_1['RULES_KEY'],_0x5a15ca);if(_0x3ebc49)return Joi[_0x1eddef(0x1e6)](_0x3ebc49);}
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_0x334ac4=a7_0x4fd0;function a7_0x4fd0(_0x1136e8,_0x5ace69){var _0x5be323=a7_0x4d24();return a7_0x4fd0=function(_0x2ee83c,_0x510dc4){_0x2ee83c=_0x2ee83c-0xdb;var _0x4d2421=_0x5be323[_0x2ee83c];return _0x4d2421;},a7_0x4fd0(_0x1136e8,_0x5ace69);}(function(_0x155056,_0x350119){var _0x5b8a61=a7_0x4fd0,_0x3ba289=_0x155056();while(!![]){try{var _0x1c8e0c=parseInt(_0x5b8a61(0xf8))/0x1*(parseInt(_0x5b8a61(0x101))/0x2)+parseInt(_0x5b8a61(0xe2))/0x3*(parseInt(_0x5b8a61(0xf7))/0x4)+-parseInt(_0x5b8a61(0xec))/0x5+parseInt(_0x5b8a61(0xf9))/0x6*(parseInt(_0x5b8a61(0xf6))/0x7)+-parseInt(_0x5b8a61(0xf4))/0x8*(-parseInt(_0x5b8a61(0xeb))/0x9)+parseInt(_0x5b8a61(0xe8))/0xa*(-parseInt(_0x5b8a61(0xe6))/0xb)+-parseInt(_0x5b8a61(0x103))/0xc*(parseInt(_0x5b8a61(0x102))/0xd);if(_0x1c8e0c===_0x350119)break;else _0x3ba289['push'](_0x3ba289['shift']());}catch(_0x54d77b){_0x3ba289['push'](_0x3ba289['shift']());}}}(a7_0x4d24,0x9e537));var a7_0x510dc4=(function(){var _0x21425b=!![];return function(_0x4845fc,_0x18dc3b){var _0x146a1e=_0x21425b?function(){var _0x21be62=a7_0x4fd0;if(_0x18dc3b){var _0x2557c3=_0x18dc3b[_0x21be62(0xfe)](_0x4845fc,arguments);return _0x18dc3b=null,_0x2557c3;}}:function(){};return _0x21425b=![],_0x146a1e;};}()),a7_0x2ee83c=a7_0x510dc4(this,function(){var _0x293eaf=a7_0x4fd0;return a7_0x2ee83c['toString']()['search'](_0x293eaf(0xed))['toString']()[_0x293eaf(0xf2)](a7_0x2ee83c)['search']('(((.+)+)+)+$');});a7_0x2ee83c();'use strict';var __createBinding=this&&this[a7_0x334ac4(0xdc)]||(Object[a7_0x334ac4(0xe4)]?function(_0xe51356,_0x261621,_0x14eb75,_0x1bb52e){var _0x441ee8=a7_0x334ac4;if(_0x1bb52e===undefined)_0x1bb52e=_0x14eb75;var _0x3b3eb4=Object[_0x441ee8(0xfd)](_0x261621,_0x14eb75);(!_0x3b3eb4||(_0x441ee8(0xe9)in _0x3b3eb4?!_0x261621[_0x441ee8(0xe0)]:_0x3b3eb4[_0x441ee8(0xee)]||_0x3b3eb4[_0x441ee8(0xf0)]))&&(_0x3b3eb4={'enumerable':!![],'get':function(){return _0x261621[_0x14eb75];}}),Object['defineProperty'](_0xe51356,_0x1bb52e,_0x3b3eb4);}:function(_0x3e1a01,_0x40c46e,_0x5e915a,_0x21e43e){if(_0x21e43e===undefined)_0x21e43e=_0x5e915a;_0x3e1a01[_0x21e43e]=_0x40c46e[_0x5e915a];}),__exportStar=this&&this['__exportStar']||function(_0x3ac5e2,_0x2a1ac6){var _0x15b60b=a7_0x334ac4;for(var _0x3ec630 in _0x3ac5e2)if(_0x3ec630!==_0x15b60b(0xe3)&&!Object['prototype'][_0x15b60b(0xdb)][_0x15b60b(0x100)](_0x2a1ac6,_0x3ec630))__createBinding(_0x2a1ac6,_0x3ac5e2,_0x3ec630);};Object[a7_0x334ac4(0xfc)](exports,a7_0x334ac4(0xe0),{'value':!![]}),exports[a7_0x334ac4(0xfb)]=exports[a7_0x334ac4(0xea)]=exports[a7_0x334ac4(0xdf)]=exports[a7_0x334ac4(0xe1)]=exports[a7_0x334ac4(0xff)]=exports[a7_0x334ac4(0xdd)]=void 0x0,__exportStar(require(a7_0x334ac4(0xe5)),exports),__exportStar(require('./helper/dtoHelper'),exports),__exportStar(require(a7_0x334ac4(0xf5)),exports);var Validator_1=require(a7_0x334ac4(0xef));Object[a7_0x334ac4(0xfc)](exports,a7_0x334ac4(0xdd),{'enumerable':!![],'get':function(){var _0x28ce66=a7_0x334ac4;return Validator_1[_0x28ce66(0xdd)];}});var Rule_1=require(a7_0x334ac4(0xf1));Object[a7_0x334ac4(0xfc)](exports,a7_0x334ac4(0xff),{'enumerable':!![],'get':function(){return Rule_1['Rule'];}}),Object[a7_0x334ac4(0xfc)](exports,a7_0x334ac4(0xe1),{'enumerable':!![],'get':function(){return Rule_1['RuleType'];}});var ValidatorError_1=require(a7_0x334ac4(0xf3));Object['defineProperty'](exports,a7_0x334ac4(0xdf),{'enumerable':!![],'get':function(){var _0x254c93=a7_0x334ac4;return ValidatorError_1[_0x254c93(0xdf)];}});var ValidatorService_1=require(a7_0x334ac4(0xfa));function a7_0x4d24(){var _0x8bce80=['./decorator/Rule','constructor','./exception/ValidatorError','24QDgJVM','./helper/getSchema','1001PjpwfG','1989676hlNbuM','14IbFMbf','42564ygExtT','./service/ValidatorService','Configuration','defineProperty','getOwnPropertyDescriptor','apply','Rule','call','175478XbAlPS','369811czttal','444brQFIh','hasOwnProperty','__createBinding','Validator','./configuration','ValidatorError','__esModule','RuleType','6vcIZEk','default','create','./interface','11UGGHvd','CustomConfiguration','12761750dxCdYj','get','ValidatorService','2851704xuRTdo','6054885DoXyEz','(((.+)+)+)+$','writable','./decorator/Validator','configurable'];a7_0x4d24=function(){return _0x8bce80;};return a7_0x4d24();}Object['defineProperty'](exports,a7_0x334ac4(0xea),{'enumerable':!![],'get':function(){var _0x12d1dc=a7_0x334ac4;return ValidatorService_1[_0x12d1dc(0xea)];}});var configuration_1=require(a7_0x334ac4(0xde));Object[a7_0x334ac4(0xfc)](exports,a7_0x334ac4(0xfb),{'enumerable':!![],'get':function(){var _0x34112a=a7_0x334ac4;return configuration_1[_0x34112a(0xe7)];}});
1
+ var a7_0x2dcdd3=a7_0x54bb;(function(_0x50fb65,_0x24d703){var _0x190cbc=a7_0x54bb,_0x47fbce=_0x50fb65();while(!![]){try{var _0x92fb6b=parseInt(_0x190cbc(0x8e))/0x1+-parseInt(_0x190cbc(0x83))/0x2*(-parseInt(_0x190cbc(0x92))/0x3)+parseInt(_0x190cbc(0xa4))/0x4+parseInt(_0x190cbc(0xa8))/0x5+parseInt(_0x190cbc(0x98))/0x6+parseInt(_0x190cbc(0x87))/0x7*(-parseInt(_0x190cbc(0x9e))/0x8)+-parseInt(_0x190cbc(0x8f))/0x9;if(_0x92fb6b===_0x24d703)break;else _0x47fbce['push'](_0x47fbce['shift']());}catch(_0x238d02){_0x47fbce['push'](_0x47fbce['shift']());}}}(a7_0x4967,0xbf13a));var a7_0x5bd481=(function(){var _0x2364a8=!![];return function(_0x2cf316,_0x249ff3){var _0x3db6a5=_0x2364a8?function(){var _0x25266=a7_0x54bb;if(_0x249ff3){var _0x5e2f14=_0x249ff3[_0x25266(0xa1)](_0x2cf316,arguments);return _0x249ff3=null,_0x5e2f14;}}:function(){};return _0x2364a8=![],_0x3db6a5;};}()),a7_0x104d97=a7_0x5bd481(this,function(){var _0x4b3a11=a7_0x54bb;return a7_0x104d97[_0x4b3a11(0x9f)]()['search'](_0x4b3a11(0xa6))[_0x4b3a11(0x9f)]()[_0x4b3a11(0xa5)](a7_0x104d97)[_0x4b3a11(0x96)]('(((.+)+)+)+$');});function a7_0x4967(){var _0x6c282e=['19881216ONCmeG','./helper/getSchema','./decorator/Validator','47634LZrUdV','default','./helper/dtoHelper','Configuration','search','ValidatorError','8393154azTAAe','Validator','__esModule','./decorator/Rule','RuleType','./service/ValidatorService','256OBXgtG','toString','call','apply','configurable','prototype','2836608fMvZtl','constructor','(((.+)+)+)+$','__exportStar','3125715cnRgRA','20mVVzSv','getOwnPropertyDescriptor','defineProperty','./configuration','221704SzPYgC','writable','Rule','__createBinding','create','./exception/ValidatorError','ValidatorService','1113244AnCOZH'];a7_0x4967=function(){return _0x6c282e;};return a7_0x4967();}a7_0x104d97();'use strict';function a7_0x54bb(_0x4c0566,_0xcc8266){var _0x109dc0=a7_0x4967();return a7_0x54bb=function(_0x104d97,_0x5bd481){_0x104d97=_0x104d97-0x83;var _0x49673a=_0x109dc0[_0x104d97];return _0x49673a;},a7_0x54bb(_0x4c0566,_0xcc8266);}var __createBinding=this&&this[a7_0x2dcdd3(0x8a)]||(Object[a7_0x2dcdd3(0x8b)]?function(_0x14707f,_0x2fd209,_0x1d4f86,_0x27ef02){var _0x3cf8af=a7_0x2dcdd3;if(_0x27ef02===undefined)_0x27ef02=_0x1d4f86;var _0x5ae8ee=Object[_0x3cf8af(0x84)](_0x2fd209,_0x1d4f86);(!_0x5ae8ee||('get'in _0x5ae8ee?!_0x2fd209[_0x3cf8af(0x9a)]:_0x5ae8ee[_0x3cf8af(0x88)]||_0x5ae8ee[_0x3cf8af(0xa2)]))&&(_0x5ae8ee={'enumerable':!![],'get':function(){return _0x2fd209[_0x1d4f86];}}),Object[_0x3cf8af(0x85)](_0x14707f,_0x27ef02,_0x5ae8ee);}:function(_0x5f0d37,_0x3151fa,_0x4fccc4,_0x100ed9){if(_0x100ed9===undefined)_0x100ed9=_0x4fccc4;_0x5f0d37[_0x100ed9]=_0x3151fa[_0x4fccc4];}),__exportStar=this&&this[a7_0x2dcdd3(0xa7)]||function(_0x58c651,_0x561f25){var _0x3e56c5=a7_0x2dcdd3;for(var _0x48dadf in _0x58c651)if(_0x48dadf!==_0x3e56c5(0x93)&&!Object[_0x3e56c5(0xa3)]['hasOwnProperty'][_0x3e56c5(0xa0)](_0x561f25,_0x48dadf))__createBinding(_0x561f25,_0x58c651,_0x48dadf);};Object[a7_0x2dcdd3(0x85)](exports,'__esModule',{'value':!![]}),exports[a7_0x2dcdd3(0x95)]=exports[a7_0x2dcdd3(0x8d)]=exports[a7_0x2dcdd3(0x97)]=exports[a7_0x2dcdd3(0x9c)]=exports[a7_0x2dcdd3(0x89)]=exports['Validator']=void 0x0,__exportStar(require('./interface'),exports),__exportStar(require(a7_0x2dcdd3(0x94)),exports),__exportStar(require(a7_0x2dcdd3(0x90)),exports);var Validator_1=require(a7_0x2dcdd3(0x91));Object[a7_0x2dcdd3(0x85)](exports,a7_0x2dcdd3(0x99),{'enumerable':!![],'get':function(){var _0x490f2b=a7_0x2dcdd3;return Validator_1[_0x490f2b(0x99)];}});var Rule_1=require(a7_0x2dcdd3(0x9b));Object['defineProperty'](exports,a7_0x2dcdd3(0x89),{'enumerable':!![],'get':function(){var _0x5e126c=a7_0x2dcdd3;return Rule_1[_0x5e126c(0x89)];}}),Object[a7_0x2dcdd3(0x85)](exports,a7_0x2dcdd3(0x9c),{'enumerable':!![],'get':function(){var _0x51661a=a7_0x2dcdd3;return Rule_1[_0x51661a(0x9c)];}});var ValidatorError_1=require(a7_0x2dcdd3(0x8c));Object[a7_0x2dcdd3(0x85)](exports,a7_0x2dcdd3(0x97),{'enumerable':!![],'get':function(){var _0x302354=a7_0x2dcdd3;return ValidatorError_1[_0x302354(0x97)];}});var ValidatorService_1=require(a7_0x2dcdd3(0x9d));Object[a7_0x2dcdd3(0x85)](exports,a7_0x2dcdd3(0x8d),{'enumerable':!![],'get':function(){return ValidatorService_1['ValidatorService'];}});var configuration_1=require(a7_0x2dcdd3(0x86));Object[a7_0x2dcdd3(0x85)](exports,a7_0x2dcdd3(0x95),{'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
- var a8_0x3a4381=a8_0x55dc;function a8_0x55dc(_0x1ae902,_0x2bbc84){var _0x50bed5=a8_0x264d();return a8_0x55dc=function(_0x1c443e,_0x31230c){_0x1c443e=_0x1c443e-0x114;var _0x264d11=_0x50bed5[_0x1c443e];return _0x264d11;},a8_0x55dc(_0x1ae902,_0x2bbc84);}(function(_0x4e8e20,_0x14091c){var _0x146a37=a8_0x55dc,_0x480991=_0x4e8e20();while(!![]){try{var _0x43301c=-parseInt(_0x146a37(0x114))/0x1*(parseInt(_0x146a37(0x117))/0x2)+parseInt(_0x146a37(0x11d))/0x3+-parseInt(_0x146a37(0x118))/0x4*(parseInt(_0x146a37(0x11c))/0x5)+-parseInt(_0x146a37(0x121))/0x6+parseInt(_0x146a37(0x127))/0x7+parseInt(_0x146a37(0x119))/0x8+parseInt(_0x146a37(0x11a))/0x9*(-parseInt(_0x146a37(0x124))/0xa);if(_0x43301c===_0x14091c)break;else _0x480991['push'](_0x480991['shift']());}catch(_0x34ce31){_0x480991['push'](_0x480991['shift']());}}}(a8_0x264d,0x49054));var a8_0x31230c=(function(){var _0x299dc7=!![];return function(_0x10b2c2,_0x165478){var _0x1bee76=_0x299dc7?function(){var _0x4d3216=a8_0x55dc;if(_0x165478){var _0x567444=_0x165478[_0x4d3216(0x126)](_0x10b2c2,arguments);return _0x165478=null,_0x567444;}}:function(){};return _0x299dc7=![],_0x1bee76;};}()),a8_0x1c443e=a8_0x31230c(this,function(){var _0x39bbdd=a8_0x55dc;return a8_0x1c443e[_0x39bbdd(0x11e)]()[_0x39bbdd(0x122)](_0x39bbdd(0x125))[_0x39bbdd(0x11e)]()[_0x39bbdd(0x116)](a8_0x1c443e)['search'](_0x39bbdd(0x125));});a8_0x1c443e();'use strict';function a8_0x264d(){var _0x1299f4=['search','VALIDATOR_KEY','227860oFTOix','(((.+)+)+)+$','apply','3129770pWBXer','3943vskzuz','anncic-api:validator:rules','constructor','52BSZKeK','152572CkyFer','3105888iKOvMJ','9fGIrAa','__esModule','25xMEDxM','973446lIGylC','toString','defineProperty','RULES_KEY','3268302bQMhqw'];a8_0x264d=function(){return _0x1299f4;};return a8_0x264d();}Object[a8_0x3a4381(0x11f)](exports,a8_0x3a4381(0x11b),{'value':!![]}),exports['VALIDATOR_KEY']=exports['RULES_KEY']=void 0x0,exports[a8_0x3a4381(0x120)]=a8_0x3a4381(0x115),exports[a8_0x3a4381(0x123)]='anncic-api:validator:validator';
1
+ var a8_0x171749=a8_0x2751;(function(_0x1ff0ff,_0x31a3bb){var _0xf1cdb7=a8_0x2751,_0x333bf6=_0x1ff0ff();while(!![]){try{var _0x27b6a2=-parseInt(_0xf1cdb7(0x19c))/0x1*(parseInt(_0xf1cdb7(0x19b))/0x2)+parseInt(_0xf1cdb7(0x194))/0x3+-parseInt(_0xf1cdb7(0x196))/0x4*(parseInt(_0xf1cdb7(0x192))/0x5)+parseInt(_0xf1cdb7(0x198))/0x6*(-parseInt(_0xf1cdb7(0x19f))/0x7)+-parseInt(_0xf1cdb7(0x191))/0x8+parseInt(_0xf1cdb7(0x18f))/0x9+parseInt(_0xf1cdb7(0x193))/0xa;if(_0x27b6a2===_0x31a3bb)break;else _0x333bf6['push'](_0x333bf6['shift']());}catch(_0xc98478){_0x333bf6['push'](_0x333bf6['shift']());}}}(a8_0x55e7,0xedf80));function a8_0x55e7(){var _0x3e5c80=['10702520XGfJMc','1925FplDOA','51498650KkDPtQ','2496732BnJquk','search','11368cObnVv','RULES_KEY','6kDjpjU','(((.+)+)+)+$','constructor','2577818Oubast','1YJEdYX','anncic-api:validator:validator','toString','9068437actVAU','80964vXkzty','VALIDATOR_KEY'];a8_0x55e7=function(){return _0x3e5c80;};return a8_0x55e7();}var a8_0x210be5=(function(){var _0xc2db48=!![];return function(_0x51fba7,_0xf3dc3a){var _0x3fb47c=_0xc2db48?function(){if(_0xf3dc3a){var _0x2b5dd3=_0xf3dc3a['apply'](_0x51fba7,arguments);return _0xf3dc3a=null,_0x2b5dd3;}}:function(){};return _0xc2db48=![],_0x3fb47c;};}()),a8_0x40f163=a8_0x210be5(this,function(){var _0x9179cf=a8_0x2751;return a8_0x40f163[_0x9179cf(0x19e)]()[_0x9179cf(0x195)](_0x9179cf(0x199))[_0x9179cf(0x19e)]()[_0x9179cf(0x19a)](a8_0x40f163)[_0x9179cf(0x195)](_0x9179cf(0x199));});a8_0x40f163();'use strict';function a8_0x2751(_0x3dbdac,_0x5848df){var _0x140711=a8_0x55e7();return a8_0x2751=function(_0x40f163,_0x210be5){_0x40f163=_0x40f163-0x18f;var _0x55e7ad=_0x140711[_0x40f163];return _0x55e7ad;},a8_0x2751(_0x3dbdac,_0x5848df);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a8_0x171749(0x190)]=exports[a8_0x171749(0x197)]=void 0x0,exports[a8_0x171749(0x197)]='anncic-api:validator:rules',exports[a8_0x171749(0x190)]=a8_0x171749(0x19d);
@@ -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
- const a9_0x123981=a9_0x444c;(function(_0x1b5cf4,_0x46570f){const _0x293521=a9_0x444c,_0x641ad5=_0x1b5cf4();while(!![]){try{const _0x1bcd82=parseInt(_0x293521(0x1bb))/0x1+parseInt(_0x293521(0x1d5))/0x2+-parseInt(_0x293521(0x1a9))/0x3*(-parseInt(_0x293521(0x1ac))/0x4)+parseInt(_0x293521(0x1db))/0x5*(parseInt(_0x293521(0x1ce))/0x6)+-parseInt(_0x293521(0x1cf))/0x7*(-parseInt(_0x293521(0x1de))/0x8)+parseInt(_0x293521(0x1d9))/0x9*(parseInt(_0x293521(0x1b9))/0xa)+-parseInt(_0x293521(0x1e5))/0xb;if(_0x1bcd82===_0x46570f)break;else _0x641ad5['push'](_0x641ad5['shift']());}catch(_0x25d89e){_0x641ad5['push'](_0x641ad5['shift']());}}}(a9_0x1aa5,0xb3ac6));const a9_0x59dd43=(function(){let _0x54a0b6=!![];return function(_0x4e1bb6,_0x510229){const _0x1aed87=_0x54a0b6?function(){const _0x1471c0=a9_0x444c;if(_0x510229){const _0x1cfc99=_0x510229[_0x1471c0(0x1e8)](_0x4e1bb6,arguments);return _0x510229=null,_0x1cfc99;}}:function(){};return _0x54a0b6=![],_0x1aed87;};}()),a9_0x182f50=a9_0x59dd43(this,function(){const _0x51f86b=a9_0x444c;return a9_0x182f50[_0x51f86b(0x1d6)]()[_0x51f86b(0x1ab)](_0x51f86b(0x1e7))['toString']()['constructor'](a9_0x182f50)[_0x51f86b(0x1ab)](_0x51f86b(0x1e7));});a9_0x182f50();'use strict';var __decorate=this&&this['__decorate']||function(_0x197ee5,_0x56a82c,_0x3949fe,_0x131757){const _0x2bb0d8=a9_0x444c;var _0x2b128b=arguments[_0x2bb0d8(0x1b4)],_0x514717=_0x2b128b<0x3?_0x56a82c:_0x131757===null?_0x131757=Object[_0x2bb0d8(0x1c3)](_0x56a82c,_0x3949fe):_0x131757,_0x57f55b;if(typeof Reflect===_0x2bb0d8(0x1ae)&&typeof Reflect['decorate']===_0x2bb0d8(0x1d2))_0x514717=Reflect[_0x2bb0d8(0x1a7)](_0x197ee5,_0x56a82c,_0x3949fe,_0x131757);else{for(var _0x546cdf=_0x197ee5[_0x2bb0d8(0x1b4)]-0x1;_0x546cdf>=0x0;_0x546cdf--)if(_0x57f55b=_0x197ee5[_0x546cdf])_0x514717=(_0x2b128b<0x3?_0x57f55b(_0x514717):_0x2b128b>0x3?_0x57f55b(_0x56a82c,_0x3949fe,_0x514717):_0x57f55b(_0x56a82c,_0x3949fe))||_0x514717;}return _0x2b128b>0x3&&_0x514717&&Object[_0x2bb0d8(0x1e9)](_0x56a82c,_0x3949fe,_0x514717),_0x514717;},__metadata=this&&this[a9_0x123981(0x1c0)]||function(_0x45f1d7,_0x3e460e){const _0x4cdf7e=a9_0x123981;if(typeof Reflect===_0x4cdf7e(0x1ae)&&typeof Reflect['metadata']==='function')return Reflect['metadata'](_0x45f1d7,_0x3e460e);};Object[a9_0x123981(0x1e9)](exports,a9_0x123981(0x1e1),{'value':!![]}),exports[a9_0x123981(0x1ba)]=void 0x0;function a9_0x1aa5(){const _0x5159d1=['key','error','length','forEach','../interface','$_terms','design:type','2415810KmKAPo','ValidatorService','1350829TbsInQ','keys','@midwayjs/i18n','schema','locale','__metadata','PARAMS','isSchema','getOwnPropertyDescriptor','getClassExtendedMetadata','design:paramtypes','validationOptions','fromEntries','../exception/ValidatorError','Config','language','MidwayI18nServiceSingleton','localeTable','NOFIND_SCHEMA','132lEjhYT','42798SepaIZ','validatorConfig','message','function','getLocaleMapping','prototype','551140pnEOzH','toString','getSchema','Scope','18xMnrTb','formatLocale','291670BOIDzr','details','init','488lbrQdD','date','ValidatorError','__esModule','value','validate','validator','35261875glkOtY','Provide','(((.+)+)+)+$','apply','defineProperty','messages','Singleton','RULES_KEY','@midwayjs/core','design:returntype','decorate','i18nConfig','9jFJnMV','format','search','234272MwFCWu','参数验证失败','object','i18nService','type','errors'];a9_0x1aa5=function(){return _0x5159d1;};return a9_0x1aa5();}function a9_0x444c(_0x5e7269,_0x3b8a54){const _0x5a1735=a9_0x1aa5();return a9_0x444c=function(_0x182f50,_0x59dd43){_0x182f50=_0x182f50-0x1a5;let _0x1aa586=_0x5a1735[_0x182f50];return _0x1aa586;},a9_0x444c(_0x5e7269,_0x3b8a54);}const Joi=require('joi'),i18n_1=require(a9_0x123981(0x1bd)),core_1=require(a9_0x123981(0x1a5)),interface_1=require(a9_0x123981(0x1b6)),ValidatorError_1=require(a9_0x123981(0x1c8));let ValidatorService=class ValidatorService{constructor(){this['messages']={};}async[a9_0x123981(0x1dd)](){const _0x36c5e7=a9_0x123981,_0x2da30b=Object[_0x36c5e7(0x1bc)](this[_0x36c5e7(0x1a8)][_0x36c5e7(0x1cc)]);_0x2da30b[_0x36c5e7(0x1b5)](_0x526af3=>{const _0x8c9f19=_0x36c5e7;this[_0x8c9f19(0x1ea)][(0x0,i18n_1[_0x8c9f19(0x1da)])(_0x526af3)]=Object[_0x8c9f19(0x1c7)](this[_0x8c9f19(0x1af)][_0x8c9f19(0x1d3)](_0x526af3,_0x8c9f19(0x1e4)));});}[a9_0x123981(0x1d7)](_0x2f82e4){const _0x4336b1=a9_0x123981,_0x15f2ab=(0x0,core_1[_0x4336b1(0x1c4)])(interface_1[_0x4336b1(0x1ec)],_0x2f82e4);return _0x15f2ab?Joi[_0x4336b1(0x1ae)](_0x15f2ab):undefined;}[a9_0x123981(0x1e4)](_0x113de4,_0x334d66,_0x5f2f24={}){const _0x2f0b8f=a9_0x123981;var _0x2a9283,_0x3ea022,_0x21fbe8,_0x197888,_0x59653d,_0x150ec8;const _0x28c984=Joi[_0x2f0b8f(0x1c2)](_0x113de4)?_0x113de4:this[_0x2f0b8f(0x1d7)](_0x113de4);if(!_0x28c984)throw new AnnError(ValidatorError_1[_0x2f0b8f(0x1e0)][_0x2f0b8f(0x1cd)]);_0x5f2f24[_0x2f0b8f(0x1c6)]=Object['assign']((_0x2a9283=this[_0x2f0b8f(0x1d0)][_0x2f0b8f(0x1c6)])!==null&&_0x2a9283!==void 0x0?_0x2a9283:{},{'messages':this[_0x2f0b8f(0x1ea)]},_0x5f2f24['validationOptions']||{}),_0x5f2f24[_0x2f0b8f(0x1c6)][_0x2f0b8f(0x1b1)]=_0x5f2f24[_0x2f0b8f(0x1c6)]['errors']||{},_0x5f2f24['validationOptions']['errors'][_0x2f0b8f(0x1ca)]=(0x0,i18n_1[_0x2f0b8f(0x1da)])(this[_0x2f0b8f(0x1af)]['getAvailableLocale'](_0x5f2f24['validationOptions'][_0x2f0b8f(0x1b1)][_0x2f0b8f(0x1ca)]||_0x5f2f24[_0x2f0b8f(0x1bf)]||this['i18nConfig']['defaultLocale'],_0x2f0b8f(0x1e4)));const _0x380de7=_0x28c984[_0x2f0b8f(0x1e3)](_0x334d66,_0x5f2f24[_0x2f0b8f(0x1c6)]);if(_0x380de7===null||_0x380de7===void 0x0?void 0x0:_0x380de7[_0x2f0b8f(0x1b3)]){if(_0x380de7['error']instanceof AnnError)throw _0x380de7[_0x2f0b8f(0x1b3)];else{if(_0x380de7['error']instanceof Error)throw new AnnError(ValidatorError_1[_0x2f0b8f(0x1e0)][_0x2f0b8f(0x1c1)],{'message':((_0x3ea022=_0x380de7[_0x2f0b8f(0x1b3)])===null||_0x3ea022===void 0x0?void 0x0:_0x3ea022[_0x2f0b8f(0x1d1)])||_0x2f0b8f(0x1ad)});else throw new AnnError(ValidatorError_1[_0x2f0b8f(0x1e0)][_0x2f0b8f(0x1c1)],{'message':((_0x59653d=(_0x197888=(_0x21fbe8=_0x380de7['error'])===null||_0x21fbe8===void 0x0?void 0x0:_0x21fbe8[_0x2f0b8f(0x1dc)])===null||_0x197888===void 0x0?void 0x0:_0x197888[0x0])===null||_0x59653d===void 0x0?void 0x0:_0x59653d['message'])||'参数验证失败'});}}if(_0x380de7===null||_0x380de7===void 0x0?void 0x0:_0x380de7[_0x2f0b8f(0x1e2)]){const _0x3a12a8=(_0x150ec8=_0x28c984===null||_0x28c984===void 0x0?void 0x0:_0x28c984[_0x2f0b8f(0x1b7)])===null||_0x150ec8===void 0x0?void 0x0:_0x150ec8[_0x2f0b8f(0x1bc)],_0x56a451=function(_0x3c01f6,_0x49adc9){const _0x1a49aa=_0x2f0b8f;var _0x542121,_0x2a40a2,_0x289749,_0x3748d8,_0x39c4a4,_0x3c27a7,_0x5095de,_0x7b6391,_0x3dcec0,_0x543689,_0x16af66;for(let _0x209cfc in _0x3c01f6){if(_0x49adc9[(_0x542121=_0x3c01f6[_0x209cfc])===null||_0x542121===void 0x0?void 0x0:_0x542121[_0x1a49aa(0x1b2)]]&&((_0x289749=(_0x2a40a2=_0x3c01f6[_0x209cfc])===null||_0x2a40a2===void 0x0?void 0x0:_0x2a40a2[_0x1a49aa(0x1be)])===null||_0x289749===void 0x0?void 0x0:_0x289749[_0x1a49aa(0x1b0)])){if(((_0x39c4a4=(_0x3748d8=_0x3c01f6[_0x209cfc])===null||_0x3748d8===void 0x0?void 0x0:_0x3748d8[_0x1a49aa(0x1be)])===null||_0x39c4a4===void 0x0?void 0x0:_0x39c4a4[_0x1a49aa(0x1b0)])==_0x1a49aa(0x1ae))_0x49adc9[_0x3c01f6[_0x209cfc][_0x1a49aa(0x1b2)]]=_0x56a451((_0x5095de=(_0x3c27a7=_0x3c01f6[_0x209cfc])===null||_0x3c27a7===void 0x0?void 0x0:_0x3c27a7[_0x1a49aa(0x1be)][_0x1a49aa(0x1b7)])===null||_0x5095de===void 0x0?void 0x0:_0x5095de['keys'],_0x49adc9[_0x3c01f6[_0x209cfc]['key']]);else{if(_0x3c01f6[_0x209cfc]['schema']['type']==_0x1a49aa(0x1df)&&_0x380de7[_0x1a49aa(0x1e2)][(_0x7b6391=_0x3c01f6[_0x209cfc])===null||_0x7b6391===void 0x0?void 0x0:_0x7b6391[_0x1a49aa(0x1b2)]]){const _0x4638cf=((_0x16af66=(_0x543689=(_0x3dcec0=_0x3c01f6[_0x209cfc])===null||_0x3dcec0===void 0x0?void 0x0:_0x3dcec0[_0x1a49aa(0x1be)])===null||_0x543689===void 0x0?void 0x0:_0x543689['_flags'])===null||_0x16af66===void 0x0?void 0x0:_0x16af66[_0x1a49aa(0x1aa)])||'YYYY-MM-DD\x20HH:mm:ss';_0x49adc9[_0x3c01f6[_0x209cfc]['key']]=dayjs(_0x380de7[_0x1a49aa(0x1e2)][_0x3c01f6[_0x209cfc][_0x1a49aa(0x1b2)]])[_0x1a49aa(0x1aa)](_0x4638cf);}}}}return _0x49adc9;};return _0x56a451(_0x3a12a8,_0x380de7['value']);}throw new AnnError(ValidatorError_1[_0x2f0b8f(0x1e0)][_0x2f0b8f(0x1c1)]);}};__decorate([(0x0,core_1[a9_0x123981(0x1c9)])('i18n'),__metadata(a9_0x123981(0x1b8),Object)],ValidatorService[a9_0x123981(0x1d4)],a9_0x123981(0x1a8),void 0x0),__decorate([(0x0,core_1[a9_0x123981(0x1c9)])(a9_0x123981(0x1e4)),__metadata(a9_0x123981(0x1b8),Object)],ValidatorService[a9_0x123981(0x1d4)],a9_0x123981(0x1d0),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a9_0x123981(0x1b8),i18n_1[a9_0x123981(0x1cb)])],ValidatorService[a9_0x123981(0x1d4)],a9_0x123981(0x1af),void 0x0),__decorate([(0x0,core_1['Init'])(),__metadata(a9_0x123981(0x1b8),Function),__metadata(a9_0x123981(0x1c5),[]),__metadata(a9_0x123981(0x1a6),Promise)],ValidatorService[a9_0x123981(0x1d4)],a9_0x123981(0x1dd),null),ValidatorService=__decorate([(0x0,core_1[a9_0x123981(0x1e6)])(a9_0x123981(0x1e4)),(0x0,core_1[a9_0x123981(0x1d8)])(core_1['ScopeEnum'][a9_0x123981(0x1eb)])],ValidatorService),exports[a9_0x123981(0x1ba)]=ValidatorService;
1
+ const a9_0x326ec1=a9_0x1095;(function(_0xd3bb29,_0x50097d){const _0x1aef10=a9_0x1095,_0x310b96=_0xd3bb29();while(!![]){try{const _0x59563c=-parseInt(_0x1aef10(0xb7))/0x1*(parseInt(_0x1aef10(0xab))/0x2)+parseInt(_0x1aef10(0x9a))/0x3+-parseInt(_0x1aef10(0x87))/0x4*(parseInt(_0x1aef10(0xb2))/0x5)+-parseInt(_0x1aef10(0xa0))/0x6*(-parseInt(_0x1aef10(0x9e))/0x7)+parseInt(_0x1aef10(0x88))/0x8*(-parseInt(_0x1aef10(0x8e))/0x9)+parseInt(_0x1aef10(0xad))/0xa*(parseInt(_0x1aef10(0x7b))/0xb)+parseInt(_0x1aef10(0xaf))/0xc;if(_0x59563c===_0x50097d)break;else _0x310b96['push'](_0x310b96['shift']());}catch(_0x8a50e){_0x310b96['push'](_0x310b96['shift']());}}}(a9_0x1520,0x96d99));const a9_0xd40ec1=(function(){let _0x384064=!![];return function(_0x329a56,_0xbf10b2){const _0x4fba12=_0x384064?function(){const _0x15cb2e=a9_0x1095;if(_0xbf10b2){const _0x55f8b6=_0xbf10b2[_0x15cb2e(0x7f)](_0x329a56,arguments);return _0xbf10b2=null,_0x55f8b6;}}:function(){};return _0x384064=![],_0x4fba12;};}()),a9_0x3d532b=a9_0xd40ec1(this,function(){const _0x1c3584=a9_0x1095;return a9_0x3d532b[_0x1c3584(0xa2)]()[_0x1c3584(0x89)](_0x1c3584(0x83))[_0x1c3584(0xa2)]()['constructor'](a9_0x3d532b)['search'](_0x1c3584(0x83));});a9_0x3d532b();'use strict';var __decorate=this&&this['__decorate']||function(_0x3633ca,_0x465e6d,_0x473813,_0x5029de){const _0x2d7f68=a9_0x1095;var _0x420ec6=arguments[_0x2d7f68(0x94)],_0x5acdf6=_0x420ec6<0x3?_0x465e6d:_0x5029de===null?_0x5029de=Object['getOwnPropertyDescriptor'](_0x465e6d,_0x473813):_0x5029de,_0xd75ba4;if(typeof Reflect===_0x2d7f68(0xbc)&&typeof Reflect['decorate']==='function')_0x5acdf6=Reflect[_0x2d7f68(0xb5)](_0x3633ca,_0x465e6d,_0x473813,_0x5029de);else{for(var _0x264365=_0x3633ca[_0x2d7f68(0x94)]-0x1;_0x264365>=0x0;_0x264365--)if(_0xd75ba4=_0x3633ca[_0x264365])_0x5acdf6=(_0x420ec6<0x3?_0xd75ba4(_0x5acdf6):_0x420ec6>0x3?_0xd75ba4(_0x465e6d,_0x473813,_0x5acdf6):_0xd75ba4(_0x465e6d,_0x473813))||_0x5acdf6;}return _0x420ec6>0x3&&_0x5acdf6&&Object['defineProperty'](_0x465e6d,_0x473813,_0x5acdf6),_0x5acdf6;},__metadata=this&&this[a9_0x326ec1(0x7d)]||function(_0x444215,_0xa7dfae){const _0x3af377=a9_0x326ec1;if(typeof Reflect==='object'&&typeof Reflect['metadata']===_0x3af377(0x78))return Reflect[_0x3af377(0xa1)](_0x444215,_0xa7dfae);};function a9_0x1095(_0x60b466,_0x581b83){const _0xddc65f=a9_0x1520();return a9_0x1095=function(_0x3d532b,_0xd40ec1){_0x3d532b=_0x3d532b-0x75;let _0x152007=_0xddc65f[_0x3d532b];return _0x152007;},a9_0x1095(_0x60b466,_0x581b83);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a9_0x326ec1(0x93)]=void 0x0;const Joi=require(a9_0x326ec1(0x9c)),i18n_1=require(a9_0x326ec1(0x8f)),core_1=require('@midwayjs/core'),interface_1=require('../interface'),ValidatorError_1=require('../exception/ValidatorError');function a9_0x1520(){const _0x23b097=['@midwayjs/i18n','localeTable','type','details','ValidatorService','length','design:returntype','ScopeEnum','format','Inject','locale','1827045rtlLrJ','Init','joi','$_terms','7JrBULc','i18nService','1187988vTIRzB','metadata','toString','date','keys','assign','messages','i18n','init','isSchema','MidwayI18nServiceSingleton','1838OPmIlE','getClassExtendedMetadata','10oKZhgr','defaultLocale','9411768IyoFyX','validator','schema','5oRbkxs','design:paramtypes','error','decorate','key','1236ytzjLi','ValidatorError','prototype','参数验证失败','errors','object','YYYY-MM-DD\x20HH:mm:ss','Config','forEach','PARAMS','function','getSchema','formatLocale','9085373LDTUXl','Provide','__metadata','getAvailableLocale','apply','message','language','validationOptions','(((.+)+)+)+$','fromEntries','validatorConfig','Singleton','1742716cpNcMd','67504PiRZtE','search','i18nConfig','value','validate','design:type','243wgcsPY'];a9_0x1520=function(){return _0x23b097;};return a9_0x1520();}let ValidatorService=class ValidatorService{constructor(){const _0x421be9=a9_0x326ec1;this[_0x421be9(0xa6)]={};}async['init'](){const _0x4a2e1c=a9_0x326ec1,_0x3d5c31=Object[_0x4a2e1c(0xa4)](this[_0x4a2e1c(0x8a)][_0x4a2e1c(0x90)]);_0x3d5c31[_0x4a2e1c(0x76)](_0x2a82e9=>{const _0x539af7=_0x4a2e1c;this['messages'][(0x0,i18n_1[_0x539af7(0x7a)])(_0x2a82e9)]=Object[_0x539af7(0x84)](this['i18nService']['getLocaleMapping'](_0x2a82e9,_0x539af7(0xb0)));});}['getSchema'](_0x400bfa){const _0x24fb59=a9_0x326ec1,_0x4c599b=(0x0,core_1[_0x24fb59(0xac)])(interface_1['RULES_KEY'],_0x400bfa);return _0x4c599b?Joi[_0x24fb59(0xbc)](_0x4c599b):undefined;}[a9_0x326ec1(0xb0)](_0x19c537,_0x53793d,_0x58f235={}){const _0x4af01c=a9_0x326ec1;var _0x12a487,_0x3e217a,_0x38493a,_0x20ac72,_0x8501dd,_0x23edcb;const _0x424d9e=Joi[_0x4af01c(0xa9)](_0x19c537)?_0x19c537:this[_0x4af01c(0x79)](_0x19c537);if(!_0x424d9e)throw new AnnError(ValidatorError_1[_0x4af01c(0xb8)]['NOFIND_SCHEMA']);_0x58f235['validationOptions']=Object[_0x4af01c(0xa5)]((_0x12a487=this[_0x4af01c(0x85)][_0x4af01c(0x82)])!==null&&_0x12a487!==void 0x0?_0x12a487:{},{'messages':this[_0x4af01c(0xa6)]},_0x58f235[_0x4af01c(0x82)]||{}),_0x58f235['validationOptions'][_0x4af01c(0xbb)]=_0x58f235['validationOptions'][_0x4af01c(0xbb)]||{},_0x58f235[_0x4af01c(0x82)]['errors'][_0x4af01c(0x81)]=(0x0,i18n_1[_0x4af01c(0x7a)])(this[_0x4af01c(0x9f)][_0x4af01c(0x7e)](_0x58f235[_0x4af01c(0x82)]['errors'][_0x4af01c(0x81)]||_0x58f235[_0x4af01c(0x99)]||this[_0x4af01c(0x8a)][_0x4af01c(0xae)],'validator'));const _0x25cb0c=_0x424d9e[_0x4af01c(0x8c)](_0x53793d,_0x58f235[_0x4af01c(0x82)]);if(_0x25cb0c===null||_0x25cb0c===void 0x0?void 0x0:_0x25cb0c[_0x4af01c(0xb4)]){if(_0x25cb0c[_0x4af01c(0xb4)]instanceof AnnError)throw _0x25cb0c[_0x4af01c(0xb4)];else{if(_0x25cb0c[_0x4af01c(0xb4)]instanceof Error)throw new AnnError(ValidatorError_1[_0x4af01c(0xb8)][_0x4af01c(0x77)],{'message':((_0x3e217a=_0x25cb0c[_0x4af01c(0xb4)])===null||_0x3e217a===void 0x0?void 0x0:_0x3e217a[_0x4af01c(0x80)])||_0x4af01c(0xba)});else throw new AnnError(ValidatorError_1[_0x4af01c(0xb8)][_0x4af01c(0x77)],{'message':((_0x8501dd=(_0x20ac72=(_0x38493a=_0x25cb0c[_0x4af01c(0xb4)])===null||_0x38493a===void 0x0?void 0x0:_0x38493a[_0x4af01c(0x92)])===null||_0x20ac72===void 0x0?void 0x0:_0x20ac72[0x0])===null||_0x8501dd===void 0x0?void 0x0:_0x8501dd[_0x4af01c(0x80)])||_0x4af01c(0xba)});}}if(_0x25cb0c===null||_0x25cb0c===void 0x0?void 0x0:_0x25cb0c['value']){const _0x57a577=(_0x23edcb=_0x424d9e===null||_0x424d9e===void 0x0?void 0x0:_0x424d9e['$_terms'])===null||_0x23edcb===void 0x0?void 0x0:_0x23edcb[_0x4af01c(0xa4)],_0x138665=function(_0x4501c9,_0x24929d){const _0x251a3a=_0x4af01c;var _0x26b79d,_0x58a547,_0x117ad7,_0x45e179,_0x491402,_0x2d8c78,_0x29200a,_0x273d9c,_0x72c0aa,_0x4787d7,_0x3d3306;for(let _0x3c90f5 in _0x4501c9){if(_0x24929d[(_0x26b79d=_0x4501c9[_0x3c90f5])===null||_0x26b79d===void 0x0?void 0x0:_0x26b79d['key']]&&((_0x117ad7=(_0x58a547=_0x4501c9[_0x3c90f5])===null||_0x58a547===void 0x0?void 0x0:_0x58a547[_0x251a3a(0xb1)])===null||_0x117ad7===void 0x0?void 0x0:_0x117ad7['type'])){if(((_0x491402=(_0x45e179=_0x4501c9[_0x3c90f5])===null||_0x45e179===void 0x0?void 0x0:_0x45e179[_0x251a3a(0xb1)])===null||_0x491402===void 0x0?void 0x0:_0x491402[_0x251a3a(0x91)])==_0x251a3a(0xbc))_0x24929d[_0x4501c9[_0x3c90f5]['key']]=_0x138665((_0x29200a=(_0x2d8c78=_0x4501c9[_0x3c90f5])===null||_0x2d8c78===void 0x0?void 0x0:_0x2d8c78[_0x251a3a(0xb1)][_0x251a3a(0x9d)])===null||_0x29200a===void 0x0?void 0x0:_0x29200a['keys'],_0x24929d[_0x4501c9[_0x3c90f5][_0x251a3a(0xb6)]]);else{if(_0x4501c9[_0x3c90f5][_0x251a3a(0xb1)][_0x251a3a(0x91)]==_0x251a3a(0xa3)&&_0x25cb0c[_0x251a3a(0x8b)][(_0x273d9c=_0x4501c9[_0x3c90f5])===null||_0x273d9c===void 0x0?void 0x0:_0x273d9c[_0x251a3a(0xb6)]]){const _0x53e26b=((_0x3d3306=(_0x4787d7=(_0x72c0aa=_0x4501c9[_0x3c90f5])===null||_0x72c0aa===void 0x0?void 0x0:_0x72c0aa[_0x251a3a(0xb1)])===null||_0x4787d7===void 0x0?void 0x0:_0x4787d7['_flags'])===null||_0x3d3306===void 0x0?void 0x0:_0x3d3306[_0x251a3a(0x97)])||_0x251a3a(0xbd);_0x24929d[_0x4501c9[_0x3c90f5][_0x251a3a(0xb6)]]=dayjs(_0x25cb0c[_0x251a3a(0x8b)][_0x4501c9[_0x3c90f5]['key']])[_0x251a3a(0x97)](_0x53e26b);}}}}return _0x24929d;};return _0x138665(_0x57a577,_0x25cb0c[_0x4af01c(0x8b)]);}throw new AnnError(ValidatorError_1['ValidatorError'][_0x4af01c(0x77)]);}};exports[a9_0x326ec1(0x93)]=ValidatorService,__decorate([(0x0,core_1[a9_0x326ec1(0x75)])(a9_0x326ec1(0xa7)),__metadata(a9_0x326ec1(0x8d),Object)],ValidatorService['prototype'],a9_0x326ec1(0x8a),void 0x0),__decorate([(0x0,core_1[a9_0x326ec1(0x75)])('validator'),__metadata('design:type',Object)],ValidatorService[a9_0x326ec1(0xb9)],a9_0x326ec1(0x85),void 0x0),__decorate([(0x0,core_1[a9_0x326ec1(0x98)])(),__metadata(a9_0x326ec1(0x8d),i18n_1[a9_0x326ec1(0xaa)])],ValidatorService[a9_0x326ec1(0xb9)],a9_0x326ec1(0x9f),void 0x0),__decorate([(0x0,core_1[a9_0x326ec1(0x9b)])(),__metadata(a9_0x326ec1(0x8d),Function),__metadata(a9_0x326ec1(0xb3),[]),__metadata(a9_0x326ec1(0x95),Promise)],ValidatorService[a9_0x326ec1(0xb9)],a9_0x326ec1(0xa8),null),exports['ValidatorService']=ValidatorService=__decorate([(0x0,core_1[a9_0x326ec1(0x7c)])(a9_0x326ec1(0xb0)),(0x0,core_1['Scope'])(core_1[a9_0x326ec1(0x96)][a9_0x326ec1(0x86)])],ValidatorService);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/validator",
3
- "version": "3.4.37",
3
+ "version": "3.4.39",
4
4
  "main": "./dist/index.js",
5
5
  "typings": "index.d.ts",
6
6
  "license": "MIT",
@@ -17,14 +17,14 @@
17
17
  "build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
18
18
  },
19
19
  "dependencies": {
20
- "@anncic-api/core": "^3.4.37",
20
+ "@anncic-api/core": "^3.4.39",
21
21
  "@joi/date": "^2.1.0",
22
22
  "joi": "^17.11.0"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/node": "^20.3.2",
26
26
  "javascript-obfuscator": "^4.0.2",
27
- "typescript": "^5.1.3"
27
+ "typescript": "^5.5.4"
28
28
  },
29
- "gitHead": "9d9dcfc7790a3a7ad01aeaf7458384489676ec38"
29
+ "gitHead": "a34be632fbc14c4127142f2281341b234b27b8e8"
30
30
  }