@anncic-api/validator 3.4.38 → 3.4.41

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_0xeb141c=a0_0x542a;(function(_0xa56d13,_0x4159e9){const _0x38dde5=a0_0x542a,_0x4f4a1d=_0xa56d13();while(!![]){try{const _0x432e16=-parseInt(_0x38dde5(0x1d4))/0x1*(-parseInt(_0x38dde5(0x1c6))/0x2)+parseInt(_0x38dde5(0x1c4))/0x3+-parseInt(_0x38dde5(0x1d1))/0x4*(-parseInt(_0x38dde5(0x1c3))/0x5)+parseInt(_0x38dde5(0x1d3))/0x6*(parseInt(_0x38dde5(0x1c1))/0x7)+-parseInt(_0x38dde5(0x1c9))/0x8+parseInt(_0x38dde5(0x1cb))/0x9+parseInt(_0x38dde5(0x1c2))/0xa*(-parseInt(_0x38dde5(0x1cc))/0xb);if(_0x432e16===_0x4159e9)break;else _0x4f4a1d['push'](_0x4f4a1d['shift']());}catch(_0x320f59){_0x4f4a1d['push'](_0x4f4a1d['shift']());}}}(a0_0x5abe,0x8e7a0));const a0_0x1bb1b2=(function(){let _0x53a09a=!![];return function(_0x36cb23,_0x57ee9d){const _0x302aea=_0x53a09a?function(){const _0x2c6e28=a0_0x542a;if(_0x57ee9d){const _0x11a333=_0x57ee9d[_0x2c6e28(0x1d2)](_0x36cb23,arguments);return _0x57ee9d=null,_0x11a333;}}:function(){};return _0x53a09a=![],_0x302aea;};}()),a0_0xd91487=a0_0x1bb1b2(this,function(){const _0x4ab827=a0_0x542a;return a0_0xd91487[_0x4ab827(0x1cf)]()[_0x4ab827(0x1c8)](_0x4ab827(0x1c5))['toString']()['constructor'](a0_0xd91487)[_0x4ab827(0x1c8)]('(((.+)+)+)+$');});a0_0xd91487();function a0_0x542a(_0x1114ce,_0x260f25){const _0x529fd7=a0_0x5abe();return a0_0x542a=function(_0xd91487,_0x1bb1b2){_0xd91487=_0xd91487-0x1c1;let _0x5abe93=_0x529fd7[_0xd91487];return _0x5abe93;},a0_0x542a(_0x1114ce,_0x260f25);}'use strict';function a0_0x5abe(){const _0x30fb05=['470lrJnHo','4861685NuOJSL','1315899WiYHJI','(((.+)+)+)+$','199406ULwMQm','PARAMS','search','7792576yGdulN','ValidatorError','6330591WlSkKE','481261MWAXPU','default','../../locales/en_US.json','toString','../../locales/zh_CN.json','4UbHMJp','apply','6nRVUIQ','9msbqCG','4215799ByFxuG'];a0_0x5abe=function(){return _0x30fb05;};return a0_0x5abe();}Object['defineProperty'](exports,'__esModule',{'value':!![]});const ValidatorError_1=require('../exception/ValidatorError');exports[a0_0xeb141c(0x1cd)]={'validator':{'errorStatus':ValidatorError_1[a0_0xeb141c(0x1ca)][a0_0xeb141c(0x1c7)],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':'string'}},'i18n':{'localeTable':{'en_US':{'validator':require(a0_0xeb141c(0x1ce))},'zh_CN':{'validator':require(a0_0xeb141c(0x1d0))}}}};
1
+ const a0_0x5ea79d=a0_0x7498;function a0_0x7498(_0x5656b4,_0x1cd361){const _0x4d1a6e=a0_0x2c0a();return a0_0x7498=function(_0x1aeb70,_0x162449){_0x1aeb70=_0x1aeb70-0xc2;let _0x2c0ab5=_0x4d1a6e[_0x1aeb70];return _0x2c0ab5;},a0_0x7498(_0x5656b4,_0x1cd361);}function a0_0x2c0a(){const _0x42748a=['search','972URDoaK','57765DQxEmQ','../exception/ValidatorError','(((.+)+)+)+$','apply','176018DNwtyx','__esModule','2904AQpMEw','string','26608sRyWKg','toString','927tKgIOo','93180yAXNfL','ValidatorError','default','1513545FaNMRi','2787912ylgxTE','constructor','../../locales/en_US.json','8227205TzOZxq','12VgyXzZ'];a0_0x2c0a=function(){return _0x42748a;};return a0_0x2c0a();}(function(_0x43494a,_0x18d2c0){const _0x53f503=a0_0x7498,_0x1be546=_0x43494a();while(!![]){try{const _0x583f0d=parseInt(_0x53f503(0xd2))/0x1+parseInt(_0x53f503(0xc7))/0x2+-parseInt(_0x53f503(0xc6))/0x3*(-parseInt(_0x53f503(0xcb))/0x4)+-parseInt(_0x53f503(0xce))/0x5*(-parseInt(_0x53f503(0xcd))/0x6)+-parseInt(_0x53f503(0xca))/0x7+parseInt(_0x53f503(0xd6))/0x8*(-parseInt(_0x53f503(0xc2))/0x9)+-parseInt(_0x53f503(0xc3))/0xa*(parseInt(_0x53f503(0xd4))/0xb);if(_0x583f0d===_0x18d2c0)break;else _0x1be546['push'](_0x1be546['shift']());}catch(_0x2d1fa4){_0x1be546['push'](_0x1be546['shift']());}}}(a0_0x2c0a,0xee96c));const a0_0x162449=(function(){let _0xd98171=!![];return function(_0x4c9084,_0x20a69a){const _0x7e3300=_0xd98171?function(){const _0x2ada4b=a0_0x7498;if(_0x20a69a){const _0x301d5b=_0x20a69a[_0x2ada4b(0xd1)](_0x4c9084,arguments);return _0x20a69a=null,_0x301d5b;}}:function(){};return _0xd98171=![],_0x7e3300;};}()),a0_0x1aeb70=a0_0x162449(this,function(){const _0x3e643f=a0_0x7498;return a0_0x1aeb70[_0x3e643f(0xd7)]()[_0x3e643f(0xcc)](_0x3e643f(0xd0))[_0x3e643f(0xd7)]()[_0x3e643f(0xc8)](a0_0x1aeb70)[_0x3e643f(0xcc)](_0x3e643f(0xd0));});a0_0x1aeb70();'use strict';Object['defineProperty'](exports,a0_0x5ea79d(0xd3),{'value':!![]});const ValidatorError_1=require(a0_0x5ea79d(0xcf));exports[a0_0x5ea79d(0xc5)]={'validator':{'errorStatus':ValidatorError_1[a0_0x5ea79d(0xc4)]['PARAMS'],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':a0_0x5ea79d(0xd5)}},'i18n':{'localeTable':{'en_US':{'validator':require(a0_0x5ea79d(0xc9))},'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
- const a1_0x1473f2=a1_0x1775;(function(_0x3ab261,_0xab9af1){const _0x16ef70=a1_0x1775,_0xdfa1cc=_0x3ab261();while(!![]){try{const _0x2bec94=parseInt(_0x16ef70(0x220))/0x1*(parseInt(_0x16ef70(0x202))/0x2)+-parseInt(_0x16ef70(0x225))/0x3+-parseInt(_0x16ef70(0x20b))/0x4+parseInt(_0x16ef70(0x1f1))/0x5*(-parseInt(_0x16ef70(0x1ec))/0x6)+-parseInt(_0x16ef70(0x1ef))/0x7*(-parseInt(_0x16ef70(0x1fa))/0x8)+-parseInt(_0x16ef70(0x1f0))/0x9*(parseInt(_0x16ef70(0x20f))/0xa)+-parseInt(_0x16ef70(0x1fe))/0xb*(-parseInt(_0x16ef70(0x1fd))/0xc);if(_0x2bec94===_0xab9af1)break;else _0xdfa1cc['push'](_0xdfa1cc['shift']());}catch(_0x517ab1){_0xdfa1cc['push'](_0xdfa1cc['shift']());}}}(a1_0x43d7,0x950c9));function a1_0x43d7(){const _0x2f4e83=['param','target','assign','2363794DquoDr','bound\x20dispatch','getOwnPropertyDescriptor','query','design:type','methodName','./service/ValidatorService','getClassMetadata','splice','524308pHxHuo','req','REQUEST_OBJ_CTX_KEY','args','678820ovyaTF','VALIDATOR_KEY','search','getMethodParamTypes','toString','getSchema','decorator','prototype','decorate','anncic-api:validator','__esModule','request','registerMethodHandler','@midwayjs/core','res','object','name','1NmhuFP','undefined','params','onReady','length','2292864ZlkIaz','@midwayjs/i18n','validator','propertyName','metadata','102jCktUI','(((.+)+)+)+$','methodArgs','180761rNEmnA','36xaFvue','193355AqKyDK','Inject','MidwayDecoratorService','CustomConfiguration','locale','ValidatorService','./interface','getAttr','function','8GwfBbh','body','__metadata','2945004zyNQOT','55qJLnrY'];a1_0x43d7=function(){return _0x2f4e83;};return a1_0x43d7();}const a1_0x36c528=(function(){let _0x345901=!![];return function(_0x13a601,_0x1455dd){const _0x995b9d=_0x345901?function(){if(_0x1455dd){const _0x27d993=_0x1455dd['apply'](_0x13a601,arguments);return _0x1455dd=null,_0x27d993;}}:function(){};return _0x345901=![],_0x995b9d;};}()),a1_0x1bcd7d=a1_0x36c528(this,function(){const _0x39d47f=a1_0x1775;return a1_0x1bcd7d['toString']()[_0x39d47f(0x211)](_0x39d47f(0x1ed))[_0x39d47f(0x213)]()['constructor'](a1_0x1bcd7d)[_0x39d47f(0x211)](_0x39d47f(0x1ed));});a1_0x1bcd7d();'use strict';var __decorate=this&&this['__decorate']||function(_0x587595,_0x21af2c,_0x51a39f,_0x419a3c){const _0xb10b8d=a1_0x1775;var _0x584e12=arguments[_0xb10b8d(0x224)],_0xc0ac9c=_0x584e12<0x3?_0x21af2c:_0x419a3c===null?_0x419a3c=Object[_0xb10b8d(0x204)](_0x21af2c,_0x51a39f):_0x419a3c,_0x472023;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0xb10b8d(0x1f9))_0xc0ac9c=Reflect[_0xb10b8d(0x217)](_0x587595,_0x21af2c,_0x51a39f,_0x419a3c);else{for(var _0x4bdcd5=_0x587595['length']-0x1;_0x4bdcd5>=0x0;_0x4bdcd5--)if(_0x472023=_0x587595[_0x4bdcd5])_0xc0ac9c=(_0x584e12<0x3?_0x472023(_0xc0ac9c):_0x584e12>0x3?_0x472023(_0x21af2c,_0x51a39f,_0xc0ac9c):_0x472023(_0x21af2c,_0x51a39f))||_0xc0ac9c;}return _0x584e12>0x3&&_0xc0ac9c&&Object['defineProperty'](_0x21af2c,_0x51a39f,_0xc0ac9c),_0xc0ac9c;},__metadata=this&&this[a1_0x1473f2(0x1fc)]||function(_0x34d03a,_0x590201){const _0x44f877=a1_0x1473f2;if(typeof Reflect===_0x44f877(0x21e)&&typeof Reflect[_0x44f877(0x1eb)]===_0x44f877(0x1f9))return Reflect['metadata'](_0x34d03a,_0x590201);};Object['defineProperty'](exports,a1_0x1473f2(0x219),{'value':!![]}),exports[a1_0x1473f2(0x1f4)]=void 0x0;const i18n_1=require('@midwayjs/i18n'),core_1=require(a1_0x1473f2(0x21c)),core_2=require('@midwayjs/core'),interface_1=require(a1_0x1473f2(0x1f7)),ValidatorService_1=require(a1_0x1473f2(0x208)),i18n=require(a1_0x1473f2(0x226)),anncic=require('@anncic-api/core'),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{async[a1_0x1473f2(0x223)](){const _0x122d28=a1_0x1473f2;this['decorator'][_0x122d28(0x21b)](interface_1[_0x122d28(0x210)],_0x1a8cad=>{const _0x5ac76d=_0x122d28,_0x4e3b2e=_0x1a8cad[_0x5ac76d(0x1eb)],_0x5f71a3=(0x0,core_2[_0x5ac76d(0x212)])(_0x1a8cad[_0x5ac76d(0x200)],_0x1a8cad[_0x5ac76d(0x1ea)]);return{'before':_0x1de516=>{const _0x3beee6=_0x5ac76d;var _0x3c34b3,_0x3ae549,_0x22e9d7,_0x2d7e45,_0x247131,_0x41fffc,_0x44e616,_0x3070b7,_0x19e9d5,_0x3dbd3e,_0xe1ee46,_0x3ad668,_0x26839c;const _0x1c700a=_0x1de516['target'][core_1[_0x3beee6(0x20d)]],_0x480d6d=Object[_0x3beee6(0x201)]({},((_0x3c34b3=_0x1c700a===null||_0x1c700a===void 0x0?void 0x0:_0x1c700a[_0x3beee6(0x21a)])===null||_0x3c34b3===void 0x0?void 0x0:_0x3c34b3[_0x3beee6(0x205)])||{},((_0x3ae549=_0x1c700a===null||_0x1c700a===void 0x0?void 0x0:_0x1c700a['request'])===null||_0x3ae549===void 0x0?void 0x0:_0x3ae549[_0x3beee6(0x1fb)])||{}),_0x40ca51=((0x0,core_2[_0x3beee6(0x209)])(interface_1[_0x3beee6(0x210)],_0x1de516['target'])||[])['find'](_0x2db757=>_0x2db757['method']==_0x1de516[_0x3beee6(0x207)]);!(_0x4e3b2e===null||_0x4e3b2e===void 0x0?void 0x0:_0x4e3b2e[_0x3beee6(0x1f5)])&&_0x1c700a&&_0x1c700a['getAttr']&&(_0x4e3b2e[_0x3beee6(0x1f5)]=_0x1c700a[_0x3beee6(0x1f8)](i18n_1['I18N_ATTR_KEY']));for(let _0x49929b=0x0;_0x49929b<_0x5f71a3[_0x3beee6(0x224)];_0x49929b++){const _0xaaf82c=_0x5f71a3[_0x49929b],_0x5c1378=this[_0x3beee6(0x1f6)][_0x3beee6(0x214)](_0xaaf82c);if(_0x5c1378){if(typeof _0x1de516[_0x3beee6(0x20e)][_0x49929b]==_0x3beee6(0x221)||((_0x22e9d7=_0x1de516['args'][_0x49929b])===null||_0x22e9d7===void 0x0?void 0x0:_0x22e9d7[_0x3beee6(0x21a)])&&((_0x2d7e45=_0x1de516[_0x3beee6(0x20e)][_0x49929b])===null||_0x2d7e45===void 0x0?void 0x0:_0x2d7e45[_0x3beee6(0x21d)])&&((_0x247131=_0x1de516[_0x3beee6(0x20e)][_0x49929b])===null||_0x247131===void 0x0?void 0x0:_0x247131[_0x3beee6(0x20c)]))_0x1de516[_0x3beee6(0x20e)][_0x49929b]=_0x480d6d;else((_0x41fffc=_0x1de516['args'][_0x49929b])===null||_0x41fffc===void 0x0?void 0x0:_0x41fffc[_0x3beee6(0x21f)])==_0x3beee6(0x203)&&_0x1de516[_0x3beee6(0x20e)][_0x3beee6(0x20a)](_0x49929b,0x0,_0x480d6d);const _0x4f7354=this['ValidatorService'][_0x3beee6(0x227)](_0x5c1378,_0x1de516[_0x3beee6(0x20e)][_0x49929b],_0x4e3b2e);_0x4f7354&&(_0x1de516[_0x3beee6(0x20e)][_0x49929b]=_0x4f7354);}else{if((_0x40ca51===null||_0x40ca51===void 0x0?void 0x0:_0x40ca51[_0x3beee6(0x1ee)][_0x49929b])&&((_0x44e616=_0x1de516['args'][_0x49929b])===null||_0x44e616===void 0x0?void 0x0:_0x44e616[_0x3beee6(0x222)])&&typeof _0x1de516['args'][_0x49929b][_0x3beee6(0x1ff)]==_0x3beee6(0x1f9)&&((_0x3070b7=_0x1c700a===null||_0x1c700a===void 0x0?void 0x0:_0x1c700a[_0x3beee6(0x222)])===null||_0x3070b7===void 0x0?void 0x0:_0x3070b7[_0x40ca51[_0x3beee6(0x1ee)][_0x49929b]]))_0x1de516[_0x3beee6(0x20e)][_0x49929b]=_0xaaf82c((_0x19e9d5=_0x1c700a===null||_0x1c700a===void 0x0?void 0x0:_0x1c700a['params'])===null||_0x19e9d5===void 0x0?void 0x0:_0x19e9d5[_0x40ca51[_0x3beee6(0x1ee)][_0x49929b]]);else(_0x40ca51===null||_0x40ca51===void 0x0?void 0x0:_0x40ca51['methodArgs'][_0x49929b])&&((_0xe1ee46=(_0x3dbd3e=_0x1de516['args'][_0x49929b])===null||_0x3dbd3e===void 0x0?void 0x0:_0x3dbd3e[_0x3beee6(0x222)])===null||_0xe1ee46===void 0x0?void 0x0:_0xe1ee46[_0x40ca51[_0x3beee6(0x1ee)][_0x49929b]])&&(_0x1de516[_0x3beee6(0x20e)][_0x49929b]=(_0x26839c=(_0x3ad668=_0x1de516[_0x3beee6(0x20e)][_0x49929b])===null||_0x3ad668===void 0x0?void 0x0:_0x3ad668['params'])===null||_0x26839c===void 0x0?void 0x0:_0x26839c[_0x40ca51[_0x3beee6(0x1ee)][_0x49929b]]);}}},'afterThrow':(_0x55d046,_0x114905)=>{throw _0x114905;}};});}};function a1_0x1775(_0x4bbeb2,_0x1a1358){const _0x409e6d=a1_0x43d7();return a1_0x1775=function(_0x1bcd7d,_0x36c528){_0x1bcd7d=_0x1bcd7d-0x1ea;let _0x43d7ba=_0x409e6d[_0x1bcd7d];return _0x43d7ba;},a1_0x1775(_0x4bbeb2,_0x1a1358);}__decorate([(0x0,core_2['Inject'])(),__metadata(a1_0x1473f2(0x206),core_1[a1_0x1473f2(0x1f3)])],CustomConfiguration[a1_0x1473f2(0x216)],a1_0x1473f2(0x215),void 0x0),__decorate([(0x0,core_2[a1_0x1473f2(0x1f2)])(),__metadata(a1_0x1473f2(0x206),ValidatorService_1[a1_0x1473f2(0x1f6)])],CustomConfiguration[a1_0x1473f2(0x216)],a1_0x1473f2(0x1f6),void 0x0),CustomConfiguration=__decorate([(0x0,core_2['Configuration'])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':a1_0x1473f2(0x218),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
1
+ const a1_0x43822d=a1_0x900c;(function(_0x36f56c,_0x4cd3d0){const _0x2f8553=a1_0x900c,_0x5d7bc1=_0x36f56c();while(!![]){try{const _0x4da0ed=parseInt(_0x2f8553(0x1a9))/0x1+-parseInt(_0x2f8553(0x199))/0x2*(-parseInt(_0x2f8553(0x1a4))/0x3)+parseInt(_0x2f8553(0x1ab))/0x4+-parseInt(_0x2f8553(0x1cb))/0x5+parseInt(_0x2f8553(0x19c))/0x6*(-parseInt(_0x2f8553(0x1b4))/0x7)+parseInt(_0x2f8553(0x1c2))/0x8*(parseInt(_0x2f8553(0x1c5))/0x9)+parseInt(_0x2f8553(0x1b8))/0xa;if(_0x4da0ed===_0x4cd3d0)break;else _0x5d7bc1['push'](_0x5d7bc1['shift']());}catch(_0x12c0a7){_0x5d7bc1['push'](_0x5d7bc1['shift']());}}}(a1_0x14bd,0xb76af));const a1_0x3a62d9=(function(){let _0x31fea0=!![];return function(_0x48a9cb,_0x5ee956){const _0x5b83c7=_0x31fea0?function(){const _0x21230b=a1_0x900c;if(_0x5ee956){const _0x55cfdc=_0x5ee956[_0x21230b(0x19d)](_0x48a9cb,arguments);return _0x5ee956=null,_0x55cfdc;}}:function(){};return _0x31fea0=![],_0x5b83c7;};}()),a1_0x66abf0=a1_0x3a62d9(this,function(){const _0x3eec31=a1_0x900c;return a1_0x66abf0[_0x3eec31(0x1ae)]()[_0x3eec31(0x190)](_0x3eec31(0x1aa))['toString']()[_0x3eec31(0x18f)](a1_0x66abf0)[_0x3eec31(0x190)](_0x3eec31(0x1aa));});a1_0x66abf0();function a1_0x14bd(){const _0x403746=['constructor','search','length','methodArgs','Inject','defineProperty','bound\x20dispatch','getMethodParamTypes','params','splice','3874RHggfm','metadata','getAttr','1560JIRYUc','apply','query','getOwnPropertyDescriptor','locale','VALIDATOR_KEY','req','request','447UQDPHY','getClassMetadata','find','MidwayDecoratorService','anncic-api:validator','239473NlplNp','(((.+)+)+)+$','5349500jMEOIx','registerMethodHandler','decorate','toString','undefined','Configuration','object','param','body','5040dEaqNU','@midwayjs/i18n','REQUEST_OBJ_CTX_KEY','res','3899920VkwhjV','validator','@midwayjs/core','function','design:type','CustomConfiguration','./interface','decorator','getSchema','onReady','8GbGYzG','args','__esModule','1422783AGJxpl','propertyName','ValidatorService','@anncic-api/core','methodName','target','7375305griuyR'];a1_0x14bd=function(){return _0x403746;};return a1_0x14bd();}function a1_0x900c(_0x277f3d,_0x1893d3){const _0x3244bf=a1_0x14bd();return a1_0x900c=function(_0x66abf0,_0x3a62d9){_0x66abf0=_0x66abf0-0x18f;let _0x14bd44=_0x3244bf[_0x66abf0];return _0x14bd44;},a1_0x900c(_0x277f3d,_0x1893d3);}'use strict';var __decorate=this&&this['__decorate']||function(_0x1073ad,_0x432e1f,_0x2d32bc,_0x1a428){const _0x1a53b5=a1_0x900c;var _0x25b003=arguments['length'],_0x974a55=_0x25b003<0x3?_0x432e1f:_0x1a428===null?_0x1a428=Object[_0x1a53b5(0x19f)](_0x432e1f,_0x2d32bc):_0x1a428,_0x53d81a;if(typeof Reflect==='object'&&typeof Reflect[_0x1a53b5(0x1ad)]===_0x1a53b5(0x1bb))_0x974a55=Reflect[_0x1a53b5(0x1ad)](_0x1073ad,_0x432e1f,_0x2d32bc,_0x1a428);else{for(var _0xfa29d=_0x1073ad[_0x1a53b5(0x191)]-0x1;_0xfa29d>=0x0;_0xfa29d--)if(_0x53d81a=_0x1073ad[_0xfa29d])_0x974a55=(_0x25b003<0x3?_0x53d81a(_0x974a55):_0x25b003>0x3?_0x53d81a(_0x432e1f,_0x2d32bc,_0x974a55):_0x53d81a(_0x432e1f,_0x2d32bc))||_0x974a55;}return _0x25b003>0x3&&_0x974a55&&Object[_0x1a53b5(0x194)](_0x432e1f,_0x2d32bc,_0x974a55),_0x974a55;},__metadata=this&&this['__metadata']||function(_0x5d8304,_0x367d4b){const _0x312bfd=a1_0x900c;if(typeof Reflect===_0x312bfd(0x1b1)&&typeof Reflect[_0x312bfd(0x19a)]===_0x312bfd(0x1bb))return Reflect[_0x312bfd(0x19a)](_0x5d8304,_0x367d4b);};Object[a1_0x43822d(0x194)](exports,a1_0x43822d(0x1c4),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const i18n_1=require(a1_0x43822d(0x1b5)),core_1=require(a1_0x43822d(0x1ba)),core_2=require(a1_0x43822d(0x1ba)),interface_1=require(a1_0x43822d(0x1be)),ValidatorService_1=require('./service/ValidatorService'),i18n=require(a1_0x43822d(0x1b5)),anncic=require(a1_0x43822d(0x1c8)),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{async[a1_0x43822d(0x1c1)](){const _0x3824df=a1_0x43822d;this[_0x3824df(0x1bf)][_0x3824df(0x1ac)](interface_1[_0x3824df(0x1a1)],_0x21524c=>{const _0x59f5cb=_0x3824df,_0x84efd7=_0x21524c[_0x59f5cb(0x19a)],_0x9c1cdb=(0x0,core_2[_0x59f5cb(0x196)])(_0x21524c['target'],_0x21524c[_0x59f5cb(0x1c6)]);return{'before':_0x91219e=>{const _0x38bcc2=_0x59f5cb;var _0x5c99e,_0x45fef5,_0xeaef80,_0x283c7b,_0x687762,_0x274d04,_0x4d3447,_0x16e40b,_0x4ed622,_0x4d1607,_0x4f6c76,_0x3ce4a8,_0x20ff04;const _0x3aeb5f=_0x91219e[_0x38bcc2(0x1ca)][core_1[_0x38bcc2(0x1b6)]],_0x21c9de=Object['assign']({},((_0x5c99e=_0x3aeb5f===null||_0x3aeb5f===void 0x0?void 0x0:_0x3aeb5f[_0x38bcc2(0x1a3)])===null||_0x5c99e===void 0x0?void 0x0:_0x5c99e[_0x38bcc2(0x19e)])||{},((_0x45fef5=_0x3aeb5f===null||_0x3aeb5f===void 0x0?void 0x0:_0x3aeb5f['request'])===null||_0x45fef5===void 0x0?void 0x0:_0x45fef5[_0x38bcc2(0x1b3)])||{}),_0x28b96e=((0x0,core_2[_0x38bcc2(0x1a5)])(interface_1[_0x38bcc2(0x1a1)],_0x91219e['target'])||[])[_0x38bcc2(0x1a6)](_0x4bf2ea=>_0x4bf2ea['method']==_0x91219e[_0x38bcc2(0x1c9)]);!(_0x84efd7===null||_0x84efd7===void 0x0?void 0x0:_0x84efd7[_0x38bcc2(0x1a0)])&&_0x3aeb5f&&_0x3aeb5f[_0x38bcc2(0x19b)]&&(_0x84efd7[_0x38bcc2(0x1a0)]=_0x3aeb5f[_0x38bcc2(0x19b)](i18n_1['I18N_ATTR_KEY']));for(let _0x58bd38=0x0;_0x58bd38<_0x9c1cdb['length'];_0x58bd38++){const _0x467def=_0x9c1cdb[_0x58bd38],_0x90bb56=this[_0x38bcc2(0x1c7)][_0x38bcc2(0x1c0)](_0x467def);if(_0x90bb56){if(typeof _0x91219e[_0x38bcc2(0x1c3)][_0x58bd38]==_0x38bcc2(0x1af)||((_0xeaef80=_0x91219e[_0x38bcc2(0x1c3)][_0x58bd38])===null||_0xeaef80===void 0x0?void 0x0:_0xeaef80[_0x38bcc2(0x1a3)])&&((_0x283c7b=_0x91219e[_0x38bcc2(0x1c3)][_0x58bd38])===null||_0x283c7b===void 0x0?void 0x0:_0x283c7b[_0x38bcc2(0x1b7)])&&((_0x687762=_0x91219e[_0x38bcc2(0x1c3)][_0x58bd38])===null||_0x687762===void 0x0?void 0x0:_0x687762[_0x38bcc2(0x1a2)]))_0x91219e[_0x38bcc2(0x1c3)][_0x58bd38]=_0x21c9de;else((_0x274d04=_0x91219e[_0x38bcc2(0x1c3)][_0x58bd38])===null||_0x274d04===void 0x0?void 0x0:_0x274d04['name'])==_0x38bcc2(0x195)&&_0x91219e['args'][_0x38bcc2(0x198)](_0x58bd38,0x0,_0x21c9de);const _0x299ac1=this[_0x38bcc2(0x1c7)][_0x38bcc2(0x1b9)](_0x90bb56,_0x91219e[_0x38bcc2(0x1c3)][_0x58bd38],_0x84efd7);_0x299ac1&&(_0x91219e[_0x38bcc2(0x1c3)][_0x58bd38]=_0x299ac1);}else{if((_0x28b96e===null||_0x28b96e===void 0x0?void 0x0:_0x28b96e[_0x38bcc2(0x192)][_0x58bd38])&&((_0x4d3447=_0x91219e['args'][_0x58bd38])===null||_0x4d3447===void 0x0?void 0x0:_0x4d3447[_0x38bcc2(0x197)])&&typeof _0x91219e[_0x38bcc2(0x1c3)][_0x58bd38][_0x38bcc2(0x1b2)]==_0x38bcc2(0x1bb)&&((_0x16e40b=_0x3aeb5f===null||_0x3aeb5f===void 0x0?void 0x0:_0x3aeb5f[_0x38bcc2(0x197)])===null||_0x16e40b===void 0x0?void 0x0:_0x16e40b[_0x28b96e[_0x38bcc2(0x192)][_0x58bd38]]))_0x91219e[_0x38bcc2(0x1c3)][_0x58bd38]=_0x467def((_0x4ed622=_0x3aeb5f===null||_0x3aeb5f===void 0x0?void 0x0:_0x3aeb5f[_0x38bcc2(0x197)])===null||_0x4ed622===void 0x0?void 0x0:_0x4ed622[_0x28b96e['methodArgs'][_0x58bd38]]);else(_0x28b96e===null||_0x28b96e===void 0x0?void 0x0:_0x28b96e[_0x38bcc2(0x192)][_0x58bd38])&&((_0x4f6c76=(_0x4d1607=_0x91219e[_0x38bcc2(0x1c3)][_0x58bd38])===null||_0x4d1607===void 0x0?void 0x0:_0x4d1607[_0x38bcc2(0x197)])===null||_0x4f6c76===void 0x0?void 0x0:_0x4f6c76[_0x28b96e['methodArgs'][_0x58bd38]])&&(_0x91219e[_0x38bcc2(0x1c3)][_0x58bd38]=(_0x20ff04=(_0x3ce4a8=_0x91219e[_0x38bcc2(0x1c3)][_0x58bd38])===null||_0x3ce4a8===void 0x0?void 0x0:_0x3ce4a8['params'])===null||_0x20ff04===void 0x0?void 0x0:_0x20ff04[_0x28b96e[_0x38bcc2(0x192)][_0x58bd38]]);}}},'afterThrow':(_0x15f2c8,_0x7006ce)=>{throw _0x7006ce;}};});}};exports[a1_0x43822d(0x1bd)]=CustomConfiguration,__decorate([(0x0,core_2[a1_0x43822d(0x193)])(),__metadata(a1_0x43822d(0x1bc),core_1[a1_0x43822d(0x1a7)])],CustomConfiguration['prototype'],'decorator',void 0x0),__decorate([(0x0,core_2['Inject'])(),__metadata(a1_0x43822d(0x1bc),ValidatorService_1['ValidatorService'])],CustomConfiguration['prototype'],'ValidatorService',void 0x0),exports['CustomConfiguration']=CustomConfiguration=__decorate([(0x0,core_2[a1_0x43822d(0x1b0)])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':a1_0x43822d(0x1a8),'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
- const a2_0x45af56=a2_0x1629;(function(_0x445256,_0x4c536f){const _0x27cff2=a2_0x1629,_0x2acc78=_0x445256();while(!![]){try{const _0x1a716b=parseInt(_0x27cff2(0xe4))/0x1+-parseInt(_0x27cff2(0xdd))/0x2+parseInt(_0x27cff2(0xef))/0x3+-parseInt(_0x27cff2(0xf0))/0x4+-parseInt(_0x27cff2(0xe6))/0x5*(-parseInt(_0x27cff2(0xe1))/0x6)+-parseInt(_0x27cff2(0xd9))/0x7+parseInt(_0x27cff2(0xe2))/0x8;if(_0x1a716b===_0x4c536f)break;else _0x2acc78['push'](_0x2acc78['shift']());}catch(_0x2562aa){_0x2acc78['push'](_0x2acc78['shift']());}}}(a2_0xe35e,0x5526c));const a2_0x13126f=(function(){let _0x2ca3d7=!![];return function(_0x3a3d39,_0x37d0c1){const _0x427fb5=_0x2ca3d7?function(){const _0x8fa7c5=a2_0x1629;if(_0x37d0c1){const _0x2dec6d=_0x37d0c1[_0x8fa7c5(0xe5)](_0x3a3d39,arguments);return _0x37d0c1=null,_0x2dec6d;}}:function(){};return _0x2ca3d7=![],_0x427fb5;};}()),a2_0x48405a=a2_0x13126f(this,function(){const _0x3772dd=a2_0x1629;return a2_0x48405a['toString']()['search']('(((.+)+)+)+$')[_0x3772dd(0xf4)]()[_0x3772dd(0xe0)](a2_0x48405a)[_0x3772dd(0xeb)]('(((.+)+)+)+$');});a2_0x48405a();function a2_0xe35e(){const _0x55df42=['1642188QiJPlE','977832KsCHpB','RULES_KEY','meta','description','toString','defineProperty','getClassMetadata','attachClassMetadata','1737456TeVCsi','array','@midwayjs/core','Rule','388380wFOXSd','name','extend','constructor','84BBQbWe','238480kuvCtR','RuleType','114436ufQQci','apply','122855ICgVYT','items','function','../interface','label','search','default','joi','map'];a2_0xe35e=function(){return _0x55df42;};return a2_0xe35e();}'use strict';Object[a2_0x45af56(0xd6)](exports,'__esModule',{'value':!![]}),exports[a2_0x45af56(0xdc)]=exports[a2_0x45af56(0xe3)]=void 0x0;function a2_0x1629(_0x2fca23,_0x628320){const _0x390881=a2_0xe35e();return a2_0x1629=function(_0x48405a,_0x13126f){_0x48405a=_0x48405a-0xd6;let _0xe35e12=_0x390881[_0x48405a];return _0xe35e12;},a2_0x1629(_0x2fca23,_0x628320);}const joi=require(a2_0x45af56(0xed)),date_1=require('@joi/date'),core_1=require(a2_0x45af56(0xdb)),interface_1=require(a2_0x45af56(0xe9));exports[a2_0x45af56(0xe3)]=joi[a2_0x45af56(0xdf)](date_1[a2_0x45af56(0xec)]);function Rule(_0x135603,_0x4db0bf,_0xbb2c3e=''){return(_0x377667,_0x51f41d)=>{const _0x16aafc=a2_0x1629;var _0x219f59;if(_0x51f41d)!joi['isSchema'](_0x4db0bf)&&(_0x4db0bf===null||_0x4db0bf===void 0x0?void 0x0:_0x4db0bf[_0x16aafc(0xde)])&&(_0x4db0bf=joi['object']((0x0,core_1[_0x16aafc(0xd7)])(interface_1[_0x16aafc(0xf1)],_0x4db0bf))[_0x16aafc(0xf2)]({'id':_0x4db0bf[_0x16aafc(0xde)]}),(0x0,core_1['getPropertyType'])(_0x377667,_0x51f41d)[_0x16aafc(0xde)]==='Array'&&(_0x4db0bf=joi[_0x16aafc(0xda)]()[_0x16aafc(0xe7)](_0x4db0bf))),joi['isSchema'](_0x4db0bf)&&(_0x135603&&typeof(_0x4db0bf===null||_0x4db0bf===void 0x0?void 0x0:_0x4db0bf[_0x16aafc(0xea)])==_0x16aafc(0xe8)&&(_0x4db0bf=_0x4db0bf[_0x16aafc(0xea)](_0x135603)),_0xbb2c3e&&typeof(_0x4db0bf===null||_0x4db0bf===void 0x0?void 0x0:_0x4db0bf[_0x16aafc(0xf3)])=='function'&&(_0x4db0bf=_0x4db0bf[_0x16aafc(0xf3)](_0xbb2c3e)),(0x0,core_1[_0x16aafc(0xd8)])(interface_1[_0x16aafc(0xf1)],_0x4db0bf,_0x377667,_0x51f41d));else{const _0x1fafe3=(0x0,core_1['getClassMetadata'])(interface_1['RULES_KEY'],_0x4db0bf);if(_0x1fafe3){let _0x41bdde=(_0x219f59=(0x0,core_1[_0x16aafc(0xd7)])(interface_1[_0x16aafc(0xf1)],_0x377667))!==null&&_0x219f59!==void 0x0?_0x219f59:{};Object['keys'](_0x1fafe3)[_0x16aafc(0xee)](_0x4526fe=>{!_0x41bdde[_0x4526fe]&&(_0x41bdde[_0x4526fe]=_0x1fafe3[_0x4526fe]);}),(0x0,core_1['saveClassMetadata'])(interface_1['RULES_KEY'],_0x41bdde,_0x377667);}}};}exports[a2_0x45af56(0xdc)]=Rule;
1
+ const a2_0x207ef7=a2_0xf335;(function(_0x194d07,_0x4f04d6){const _0x1d79eb=a2_0xf335,_0x402d6c=_0x194d07();while(!![]){try{const _0x39c707=-parseInt(_0x1d79eb(0xa0))/0x1*(-parseInt(_0x1d79eb(0xb1))/0x2)+-parseInt(_0x1d79eb(0xbb))/0x3*(parseInt(_0x1d79eb(0xae))/0x4)+parseInt(_0x1d79eb(0xb6))/0x5*(-parseInt(_0x1d79eb(0x9e))/0x6)+-parseInt(_0x1d79eb(0xa6))/0x7*(parseInt(_0x1d79eb(0xb2))/0x8)+parseInt(_0x1d79eb(0xc1))/0x9+parseInt(_0x1d79eb(0xc2))/0xa+parseInt(_0x1d79eb(0xb5))/0xb;if(_0x39c707===_0x4f04d6)break;else _0x402d6c['push'](_0x402d6c['shift']());}catch(_0x15189d){_0x402d6c['push'](_0x402d6c['shift']());}}}(a2_0x4bde,0xbd27a));const a2_0x997b3b=(function(){let _0x2352cb=!![];return function(_0x2f6e46,_0x3471ab){const _0x4216b3=_0x2352cb?function(){const _0x1b0cd4=a2_0xf335;if(_0x3471ab){const _0x28dba4=_0x3471ab[_0x1b0cd4(0xa1)](_0x2f6e46,arguments);return _0x3471ab=null,_0x28dba4;}}:function(){};return _0x2352cb=![],_0x4216b3;};}()),a2_0x5a7ce0=a2_0x997b3b(this,function(){const _0xd1b7f3=a2_0xf335;return a2_0x5a7ce0[_0xd1b7f3(0xba)]()['search']('(((.+)+)+)+$')[_0xd1b7f3(0xba)]()[_0xd1b7f3(0xb3)](a2_0x5a7ce0)[_0xd1b7f3(0xb4)](_0xd1b7f3(0x9f));});a2_0x5a7ce0();'use strict';Object[a2_0x207ef7(0xb8)](exports,a2_0x207ef7(0xb9),{'value':!![]}),exports[a2_0x207ef7(0xac)]=void 0x0,exports['Rule']=Rule;const joi=require(a2_0x207ef7(0x9d)),date_1=require(a2_0x207ef7(0xc3)),core_1=require(a2_0x207ef7(0xa8)),interface_1=require(a2_0x207ef7(0xa5));function a2_0x4bde(){const _0x2c76c2=['RuleType','getClassMetadata','172ZFSUaN','RULES_KEY','Array','26xGvFey','10073392aujhyg','constructor','search','12642498HFQAaQ','10WizCQT','object','defineProperty','__esModule','toString','24369SkLzri','isSchema','function','map','getPropertyType','label','4800537xcixma','6655310vUZMyD','@joi/date','joi','1912980QUxASY','(((.+)+)+)+$','51743npNKfI','apply','description','meta','array','../interface','7UkgnBK','default','@midwayjs/core','keys','items','name'];a2_0x4bde=function(){return _0x2c76c2;};return a2_0x4bde();}exports[a2_0x207ef7(0xac)]=joi['extend'](date_1[a2_0x207ef7(0xa7)]);function a2_0xf335(_0x9cfb14,_0x5bde54){const _0x4b55a6=a2_0x4bde();return a2_0xf335=function(_0x5a7ce0,_0x997b3b){_0x5a7ce0=_0x5a7ce0-0x9d;let _0x4bde50=_0x4b55a6[_0x5a7ce0];return _0x4bde50;},a2_0xf335(_0x9cfb14,_0x5bde54);}function Rule(_0x1c5f93,_0x11561c,_0x4d1549=''){return(_0x2cb1a3,_0x4b77c0)=>{const _0x5a298f=a2_0xf335;var _0x5665a3;if(_0x4b77c0)!joi[_0x5a298f(0xbc)](_0x11561c)&&(_0x11561c===null||_0x11561c===void 0x0?void 0x0:_0x11561c[_0x5a298f(0xab)])&&(_0x11561c=joi[_0x5a298f(0xb7)]((0x0,core_1[_0x5a298f(0xad)])(interface_1[_0x5a298f(0xaf)],_0x11561c))[_0x5a298f(0xa3)]({'id':_0x11561c[_0x5a298f(0xab)]}),(0x0,core_1[_0x5a298f(0xbf)])(_0x2cb1a3,_0x4b77c0)[_0x5a298f(0xab)]===_0x5a298f(0xb0)&&(_0x11561c=joi[_0x5a298f(0xa4)]()[_0x5a298f(0xaa)](_0x11561c))),joi[_0x5a298f(0xbc)](_0x11561c)&&(_0x1c5f93&&typeof(_0x11561c===null||_0x11561c===void 0x0?void 0x0:_0x11561c[_0x5a298f(0xc0)])==_0x5a298f(0xbd)&&(_0x11561c=_0x11561c[_0x5a298f(0xc0)](_0x1c5f93)),_0x4d1549&&typeof(_0x11561c===null||_0x11561c===void 0x0?void 0x0:_0x11561c[_0x5a298f(0xa2)])=='function'&&(_0x11561c=_0x11561c[_0x5a298f(0xa2)](_0x4d1549)),(0x0,core_1['attachClassMetadata'])(interface_1[_0x5a298f(0xaf)],_0x11561c,_0x2cb1a3,_0x4b77c0));else{const _0x1b4f24=(0x0,core_1[_0x5a298f(0xad)])(interface_1[_0x5a298f(0xaf)],_0x11561c);if(_0x1b4f24){let _0x2013d3=(_0x5665a3=(0x0,core_1[_0x5a298f(0xad)])(interface_1[_0x5a298f(0xaf)],_0x2cb1a3))!==null&&_0x5665a3!==void 0x0?_0x5665a3:{};Object[_0x5a298f(0xa9)](_0x1b4f24)[_0x5a298f(0xbe)](_0x3c4fc9=>{!_0x2013d3[_0x3c4fc9]&&(_0x2013d3[_0x3c4fc9]=_0x1b4f24[_0x3c4fc9]);}),(0x0,core_1['saveClassMetadata'])(interface_1[_0x5a298f(0xaf)],_0x2013d3,_0x2cb1a3);}}};}
@@ -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_0x1c8307=a3_0x3bd1;(function(_0x2db103,_0x5ab3c0){const _0x25698c=a3_0x3bd1,_0x568417=_0x2db103();while(!![]){try{const _0x368fc2=parseInt(_0x25698c(0xb8))/0x1*(-parseInt(_0x25698c(0xc2))/0x2)+parseInt(_0x25698c(0xae))/0x3*(-parseInt(_0x25698c(0xbb))/0x4)+parseInt(_0x25698c(0xc1))/0x5*(-parseInt(_0x25698c(0xb2))/0x6)+parseInt(_0x25698c(0xb7))/0x7*(parseInt(_0x25698c(0xb6))/0x8)+parseInt(_0x25698c(0xaf))/0x9*(parseInt(_0x25698c(0xbc))/0xa)+-parseInt(_0x25698c(0xc5))/0xb*(parseInt(_0x25698c(0xb3))/0xc)+parseInt(_0x25698c(0xba))/0xd;if(_0x368fc2===_0x5ab3c0)break;else _0x568417['push'](_0x568417['shift']());}catch(_0x90d89a){_0x568417['push'](_0x568417['shift']());}}}(a3_0x531e,0x775c1));function a3_0x531e(){const _0x493316=['1Woelfv','match','19200493CfCPDo','8sWtBIa','10WqqQFQ','defineProperty','constructor','toString','slice','785435ZZyCkQ','747490PnCkFV','prototype','indexOf','33BkVuQx','function','createCustomMethodDecorator','getFuncArgs','316257YnNVbM','392949IawYFB','VALIDATOR_KEY','__esModule','6DWZnJo','2699052ENeoZM','replace','../interface','32uKYuaM','673239ttPjOL'];a3_0x531e=function(){return _0x493316;};return a3_0x531e();}const a3_0x4ab070=(function(){let _0x2def67=!![];return function(_0x2e353e,_0x5122ae){const _0x4c6c48=_0x2def67?function(){if(_0x5122ae){const _0x3fbf17=_0x5122ae['apply'](_0x2e353e,arguments);return _0x5122ae=null,_0x3fbf17;}}:function(){};return _0x2def67=![],_0x4c6c48;};}()),a3_0x9f535e=a3_0x4ab070(this,function(){const _0x41faad=a3_0x3bd1;return a3_0x9f535e[_0x41faad(0xbf)]()['search']('(((.+)+)+)+$')[_0x41faad(0xbf)]()[_0x41faad(0xbe)](a3_0x9f535e)['search']('(((.+)+)+)+$');});a3_0x9f535e();function a3_0x3bd1(_0x16cba2,_0xc3cf74){const _0x504eaf=a3_0x531e();return a3_0x3bd1=function(_0x9f535e,_0x4ab070){_0x9f535e=_0x9f535e-0xae;let _0x531eac=_0x504eaf[_0x9f535e];return _0x531eac;},a3_0x3bd1(_0x16cba2,_0xc3cf74);}'use strict';Object[a3_0x1c8307(0xbd)](exports,a3_0x1c8307(0xb1),{'value':!![]}),exports[a3_0x1c8307(0xc8)]=exports['Validator']=void 0x0;const core_1=require('@midwayjs/core'),interface_1=require(a3_0x1c8307(0xb5));function Validator(_0x26397f={}){return(_0x50d4b2,_0x20546f,_0x5243b9)=>{const _0x444a01=a3_0x3bd1,_0x52f4f2=getFuncArgs(_0x50d4b2[_0x20546f]);(0x0,core_1['attachClassMetadata'])(interface_1[_0x444a01(0xb0)],{'method':_0x20546f,'methodArgs':_0x52f4f2},_0x50d4b2),(0x0,core_1[_0x444a01(0xc7)])(interface_1['VALIDATOR_KEY'],_0x26397f)(_0x50d4b2,_0x20546f,_0x5243b9);};}exports['Validator']=Validator;function getFuncArgs(_0x3721c9){const _0x413275=a3_0x1c8307;if(typeof _0x3721c9==_0x413275(0xc6)){const _0x56c070=/=>.*$/mg,_0x251a1c=/=[^,)]+/mg,_0x29186e=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x5835cd=(_0x3721c9[_0x413275(0xc3)]?_0x3721c9[_0x413275(0xc3)]['constructor'][_0x413275(0xbf)]():_0x3721c9[_0x413275(0xbf)]())['replace'](_0x29186e,'')[_0x413275(0xb4)](_0x56c070,'')[_0x413275(0xb4)](_0x251a1c,''),_0x3780a8=_0x5835cd[_0x413275(0xc0)](_0x5835cd['indexOf']('(')+0x1,_0x5835cd[_0x413275(0xc4)](')'))[_0x413275(0xb9)](/([^\s,]+)/g)||[];return _0x3780a8;}}exports[a3_0x1c8307(0xc8)]=getFuncArgs;
1
+ const a3_0x8ba46d=a3_0x45c5;(function(_0xd1419a,_0x949b98){const _0x21ee6a=a3_0x45c5,_0x342eb8=_0xd1419a();while(!![]){try{const _0xda2dbf=parseInt(_0x21ee6a(0x17b))/0x1+-parseInt(_0x21ee6a(0x18d))/0x2*(parseInt(_0x21ee6a(0x17a))/0x3)+parseInt(_0x21ee6a(0x184))/0x4*(-parseInt(_0x21ee6a(0x18f))/0x5)+-parseInt(_0x21ee6a(0x188))/0x6+parseInt(_0x21ee6a(0x182))/0x7*(-parseInt(_0x21ee6a(0x183))/0x8)+parseInt(_0x21ee6a(0x189))/0x9+-parseInt(_0x21ee6a(0x17d))/0xa*(-parseInt(_0x21ee6a(0x180))/0xb);if(_0xda2dbf===_0x949b98)break;else _0x342eb8['push'](_0x342eb8['shift']());}catch(_0x41791e){_0x342eb8['push'](_0x342eb8['shift']());}}}(a3_0x184d,0xda959));function a3_0x45c5(_0x55ed7c,_0x3e54ae){const _0x4e3eda=a3_0x184d();return a3_0x45c5=function(_0x156999,_0x1ee1b2){_0x156999=_0x156999-0x179;let _0x184d15=_0x4e3eda[_0x156999];return _0x184d15;},a3_0x45c5(_0x55ed7c,_0x3e54ae);}const a3_0x1ee1b2=(function(){let _0x418b85=!![];return function(_0x42dd06,_0x10d4f6){const _0x4b1fc5=_0x418b85?function(){const _0x5b9187=a3_0x45c5;if(_0x10d4f6){const _0x3740fa=_0x10d4f6[_0x5b9187(0x192)](_0x42dd06,arguments);return _0x10d4f6=null,_0x3740fa;}}:function(){};return _0x418b85=![],_0x4b1fc5;};}()),a3_0x156999=a3_0x1ee1b2(this,function(){const _0x50da8d=a3_0x45c5;return a3_0x156999[_0x50da8d(0x185)]()[_0x50da8d(0x191)](_0x50da8d(0x17e))['toString']()[_0x50da8d(0x186)](a3_0x156999)[_0x50da8d(0x191)](_0x50da8d(0x17e));});a3_0x156999();'use strict';Object[a3_0x8ba46d(0x17c)](exports,a3_0x8ba46d(0x187),{'value':!![]}),exports['Validator']=Validator,exports[a3_0x8ba46d(0x194)]=getFuncArgs;function a3_0x184d(){const _0x2b20ed=['3127014QbHMUN','createCustomMethodDecorator','indexOf','prototype','2YulExj','slice','849565KgrYIL','replace','search','apply','attachClassMetadata','getFuncArgs','match','3131091dYYPYB','1594288PzEUlK','defineProperty','10khwZkl','(((.+)+)+)+$','function','29301437FybIfq','../interface','74655NexsvX','8JDhHNQ','36ixVYGa','toString','constructor','__esModule','6759606pdmObi'];a3_0x184d=function(){return _0x2b20ed;};return a3_0x184d();}const core_1=require('@midwayjs/core'),interface_1=require(a3_0x8ba46d(0x181));function Validator(_0x177992={}){return(_0x18c1f1,_0x16d82b,_0x7bbc58)=>{const _0x53baeb=a3_0x45c5,_0x260482=getFuncArgs(_0x18c1f1[_0x16d82b]);(0x0,core_1[_0x53baeb(0x193)])(interface_1['VALIDATOR_KEY'],{'method':_0x16d82b,'methodArgs':_0x260482},_0x18c1f1),(0x0,core_1[_0x53baeb(0x18a)])(interface_1['VALIDATOR_KEY'],_0x177992)(_0x18c1f1,_0x16d82b,_0x7bbc58);};}function getFuncArgs(_0x122959){const _0x20d0d0=a3_0x8ba46d;if(typeof _0x122959==_0x20d0d0(0x17f)){const _0x2bbc84=/=>.*$/mg,_0x1a8161=/=[^,)]+/mg,_0x51890e=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x2403f5=(_0x122959[_0x20d0d0(0x18c)]?_0x122959[_0x20d0d0(0x18c)]['constructor'][_0x20d0d0(0x185)]():_0x122959[_0x20d0d0(0x185)]())['replace'](_0x51890e,'')[_0x20d0d0(0x190)](_0x2bbc84,'')['replace'](_0x1a8161,''),_0xbeac03=_0x2403f5[_0x20d0d0(0x18e)](_0x2403f5[_0x20d0d0(0x18b)]('(')+0x1,_0x2403f5[_0x20d0d0(0x18b)](')'))[_0x20d0d0(0x179)](/([^\s,]+)/g)||[];return _0xbeac03;}}
@@ -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_0x3fc77f=a4_0x2aec;(function(_0x92ac7e,_0x273492){var _0x443514=a4_0x2aec,_0x2303ed=_0x92ac7e();while(!![]){try{var _0x48a2f6=parseInt(_0x443514(0x101))/0x1+parseInt(_0x443514(0xe8))/0x2*(parseInt(_0x443514(0xec))/0x3)+-parseInt(_0x443514(0xf2))/0x4+parseInt(_0x443514(0xf9))/0x5+-parseInt(_0x443514(0xff))/0x6*(parseInt(_0x443514(0x103))/0x7)+-parseInt(_0x443514(0xfa))/0x8+parseInt(_0x443514(0xe7))/0x9;if(_0x48a2f6===_0x273492)break;else _0x2303ed['push'](_0x2303ed['shift']());}catch(_0x326e09){_0x2303ed['push'](_0x2303ed['shift']());}}}(a4_0x15bc,0x1b546));var a4_0x51b9cc=(function(){var _0x1a8f87=!![];return function(_0x21af7e,_0x4028b8){var _0x2af53e=_0x1a8f87?function(){var _0x3724a4=a4_0x2aec;if(_0x4028b8){var _0x4dd01f=_0x4028b8[_0x3724a4(0xe9)](_0x21af7e,arguments);return _0x4028b8=null,_0x4dd01f;}}:function(){};return _0x1a8f87=![],_0x2af53e;};}()),a4_0x1b5dcc=a4_0x51b9cc(this,function(){var _0x337f32=a4_0x2aec;return a4_0x1b5dcc['toString']()[_0x337f32(0xe6)]('(((.+)+)+)+$')[_0x337f32(0xf8)]()[_0x337f32(0xfe)](a4_0x1b5dcc)['search'](_0x337f32(0x100));});function a4_0x15bc(){var _0x2431c3=['object','参数验证失败','design:type','getOwnPropertyDescriptor','41144mRVZwF','__metadata','PARAMS','__decorate','__esModule','decorate','toString','985810uIDwwX','1387200zmcApZ','function','AnnErrorMsg','@anncic-api/core','constructor','17952MmuVcx','(((.+)+)+)+$','113530GejivN','length','287ltGbYA','search','626085lTHrwu','76086nnqmAC','apply','NOFIND_SCHEMA','defineProperty','3ItBGlf','ValidatorError'];a4_0x15bc=function(){return _0x2431c3;};return a4_0x15bc();}a4_0x1b5dcc();'use strict';var __decorate=this&&this[a4_0x3fc77f(0xf5)]||function(_0x2c2d89,_0x494749,_0x594139,_0x23c959){var _0x3b8993=a4_0x3fc77f,_0x224ae3=arguments['length'],_0x5d155f=_0x224ae3<0x3?_0x494749:_0x23c959===null?_0x23c959=Object[_0x3b8993(0xf1)](_0x494749,_0x594139):_0x23c959,_0x432e86;if(typeof Reflect===_0x3b8993(0xee)&&typeof Reflect['decorate']==='function')_0x5d155f=Reflect[_0x3b8993(0xf7)](_0x2c2d89,_0x494749,_0x594139,_0x23c959);else{for(var _0x53c521=_0x2c2d89[_0x3b8993(0x102)]-0x1;_0x53c521>=0x0;_0x53c521--)if(_0x432e86=_0x2c2d89[_0x53c521])_0x5d155f=(_0x224ae3<0x3?_0x432e86(_0x5d155f):_0x224ae3>0x3?_0x432e86(_0x494749,_0x594139,_0x5d155f):_0x432e86(_0x494749,_0x594139))||_0x5d155f;}return _0x224ae3>0x3&&_0x5d155f&&Object[_0x3b8993(0xeb)](_0x494749,_0x594139,_0x5d155f),_0x5d155f;},__metadata=this&&this[a4_0x3fc77f(0xf3)]||function(_0xda5b12,_0xf53975){var _0x26c1af=a4_0x3fc77f;if(typeof Reflect===_0x26c1af(0xee)&&typeof Reflect['metadata']===_0x26c1af(0xfb))return Reflect['metadata'](_0xda5b12,_0xf53975);};Object[a4_0x3fc77f(0xeb)](exports,a4_0x3fc77f(0xf6),{'value':!![]}),exports[a4_0x3fc77f(0xed)]=void 0x0;function a4_0x2aec(_0xaabadd,_0x3e738b){var _0x41471c=a4_0x15bc();return a4_0x2aec=function(_0x1b5dcc,_0x51b9cc){_0x1b5dcc=_0x1b5dcc-0xe6;var _0x15bcee=_0x41471c[_0x1b5dcc];return _0x15bcee;},a4_0x2aec(_0xaabadd,_0x3e738b);}const core_1=require(a4_0x3fc77f(0xfd));class ValidatorError extends AnnError{}ValidatorError[a4_0x3fc77f(0xf4)]=0x18c1e,ValidatorError['NOFIND_SCHEMA']=0x18c1c,__decorate([(0x0,core_1['AnnErrorMsg'])(a4_0x3fc77f(0xef)),__metadata(a4_0x3fc77f(0xf0),Object)],ValidatorError,a4_0x3fc77f(0xf4),void 0x0),__decorate([(0x0,core_1[a4_0x3fc77f(0xfc)])(a4_0x3fc77f(0xef)),__metadata('design:type',Object)],ValidatorError,a4_0x3fc77f(0xea),void 0x0),exports['ValidatorError']=ValidatorError;
1
+ var a4_0x4985a7=a4_0x1a85;function a4_0x1a85(_0x177b4d,_0xcb23c){var _0xec8f73=a4_0xa086();return a4_0x1a85=function(_0x1ce94e,_0x3af0c1){_0x1ce94e=_0x1ce94e-0xe2;var _0xa0862b=_0xec8f73[_0x1ce94e];return _0xa0862b;},a4_0x1a85(_0x177b4d,_0xcb23c);}(function(_0x214b52,_0x2e0cbb){var _0x35ffcd=a4_0x1a85,_0xa940e=_0x214b52();while(!![]){try{var _0x3a6ff6=parseInt(_0x35ffcd(0xe7))/0x1*(parseInt(_0x35ffcd(0x100))/0x2)+-parseInt(_0x35ffcd(0xe4))/0x3*(parseInt(_0x35ffcd(0xf2))/0x4)+-parseInt(_0x35ffcd(0xf3))/0x5*(parseInt(_0x35ffcd(0xfc))/0x6)+parseInt(_0x35ffcd(0xfa))/0x7*(-parseInt(_0x35ffcd(0xed))/0x8)+parseInt(_0x35ffcd(0xeb))/0x9+parseInt(_0x35ffcd(0xf1))/0xa*(-parseInt(_0x35ffcd(0x102))/0xb)+parseInt(_0x35ffcd(0x101))/0xc*(parseInt(_0x35ffcd(0xee))/0xd);if(_0x3a6ff6===_0x2e0cbb)break;else _0xa940e['push'](_0xa940e['shift']());}catch(_0x55cce2){_0xa940e['push'](_0xa940e['shift']());}}}(a4_0xa086,0xedc00));var a4_0x3af0c1=(function(){var _0x14f08e=!![];return function(_0x1f4904,_0x99fadc){var _0x175337=_0x14f08e?function(){var _0x7ac065=a4_0x1a85;if(_0x99fadc){var _0x146e93=_0x99fadc[_0x7ac065(0xfd)](_0x1f4904,arguments);return _0x99fadc=null,_0x146e93;}}:function(){};return _0x14f08e=![],_0x175337;};}()),a4_0x1ce94e=a4_0x3af0c1(this,function(){var _0x1ea11f=a4_0x1a85;return a4_0x1ce94e[_0x1ea11f(0xef)]()['search'](_0x1ea11f(0xfe))[_0x1ea11f(0xef)]()[_0x1ea11f(0xe6)](a4_0x1ce94e)[_0x1ea11f(0xe3)](_0x1ea11f(0xfe));});a4_0x1ce94e();'use strict';var __decorate=this&&this[a4_0x4985a7(0xe8)]||function(_0x3086c9,_0x49ba64,_0x1b0194,_0x414529){var _0x33161d=a4_0x4985a7,_0xd002e7=arguments[_0x33161d(0xff)],_0x3213a7=_0xd002e7<0x3?_0x49ba64:_0x414529===null?_0x414529=Object[_0x33161d(0xf6)](_0x49ba64,_0x1b0194):_0x414529,_0x2540c8;if(typeof Reflect===_0x33161d(0xf9)&&typeof Reflect['decorate']==='function')_0x3213a7=Reflect[_0x33161d(0xf7)](_0x3086c9,_0x49ba64,_0x1b0194,_0x414529);else{for(var _0x38bf3e=_0x3086c9[_0x33161d(0xff)]-0x1;_0x38bf3e>=0x0;_0x38bf3e--)if(_0x2540c8=_0x3086c9[_0x38bf3e])_0x3213a7=(_0xd002e7<0x3?_0x2540c8(_0x3213a7):_0xd002e7>0x3?_0x2540c8(_0x49ba64,_0x1b0194,_0x3213a7):_0x2540c8(_0x49ba64,_0x1b0194))||_0x3213a7;}return _0xd002e7>0x3&&_0x3213a7&&Object[_0x33161d(0xf0)](_0x49ba64,_0x1b0194,_0x3213a7),_0x3213a7;},__metadata=this&&this['__metadata']||function(_0xefa5a6,_0x364137){var _0x34c19f=a4_0x4985a7;if(typeof Reflect==='object'&&typeof Reflect[_0x34c19f(0xfb)]===_0x34c19f(0xe5))return Reflect['metadata'](_0xefa5a6,_0x364137);};function a4_0xa086(){var _0x47a458=['44NUcgem','ValidatorError','search','26865bOjFrD','function','constructor','1TPAAlE','__decorate','NOFIND_SCHEMA','@anncic-api/core','8777475VRdzjw','PARAMS','6536kBSQVx','62923003bLXRap','toString','defineProperty','3709450ZWGmry','624bzNIJd','60VoOUAy','参数验证失败','AnnErrorMsg','getOwnPropertyDescriptor','decorate','design:type','object','13741QaaIVu','metadata','328182iMAJlW','apply','(((.+)+)+)+$','length','598426cwPyUr','12qpYyzr'];a4_0xa086=function(){return _0x47a458;};return a4_0xa086();}Object[a4_0x4985a7(0xf0)](exports,'__esModule',{'value':!![]}),exports[a4_0x4985a7(0xe2)]=void 0x0;const core_1=require(a4_0x4985a7(0xea));class ValidatorError extends AnnError{}exports[a4_0x4985a7(0xe2)]=ValidatorError,ValidatorError[a4_0x4985a7(0xec)]=0x18c1e,ValidatorError[a4_0x4985a7(0xe9)]=0x18c1c,__decorate([(0x0,core_1[a4_0x4985a7(0xf5)])(a4_0x4985a7(0xf4)),__metadata(a4_0x4985a7(0xf8),Object)],ValidatorError,a4_0x4985a7(0xec),void 0x0),__decorate([(0x0,core_1[a4_0x4985a7(0xf5)])(a4_0x4985a7(0xf4)),__metadata(a4_0x4985a7(0xf8),Object)],ValidatorError,a4_0x4985a7(0xe9),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
- function a5_0x1bb3(){const _0x3bf5fd=['9uBmqNC','(((.+)+)+)+$','toString','prototype','defineProperty','../interface','1GUafzC','15205080qTynJl','search','PickDto','3117005vuutwk','1274096ZWtrZY','constructor','24fBmcyy','OmitDto','4644720NvqWZE','getClassExtendedMetadata','RULES_KEY','apply','2052366sQSMUZ','1302798vVkyaL','__esModule','@midwayjs/core','1551495eHCzgt'];a5_0x1bb3=function(){return _0x3bf5fd;};return a5_0x1bb3();}const a5_0x12d246=a5_0x2166;function a5_0x2166(_0x1c21f6,_0xd83dc6){const _0x4c51d2=a5_0x1bb3();return a5_0x2166=function(_0x36fcd8,_0x426eaa){_0x36fcd8=_0x36fcd8-0xaa;let _0x1bb373=_0x4c51d2[_0x36fcd8];return _0x1bb373;},a5_0x2166(_0x1c21f6,_0xd83dc6);}(function(_0xad5a3d,_0x5695ad){const _0x2ffe26=a5_0x2166,_0x371132=_0xad5a3d();while(!![]){try{const _0x316fec=parseInt(_0x2ffe26(0xba))/0x1*(-parseInt(_0x2ffe26(0xaf))/0x2)+parseInt(_0x2ffe26(0xb3))/0x3+parseInt(_0x2ffe26(0xbf))/0x4+-parseInt(_0x2ffe26(0xbe))/0x5+parseInt(_0x2ffe26(0xc1))/0x6*(-parseInt(_0x2ffe26(0xb0))/0x7)+parseInt(_0x2ffe26(0xab))/0x8+parseInt(_0x2ffe26(0xb4))/0x9*(parseInt(_0x2ffe26(0xbb))/0xa);if(_0x316fec===_0x5695ad)break;else _0x371132['push'](_0x371132['shift']());}catch(_0x47fdc0){_0x371132['push'](_0x371132['shift']());}}}(a5_0x1bb3,0x8481b));const a5_0x426eaa=(function(){let _0x1243de=!![];return function(_0xd55177,_0x21e6c4){const _0x245d6b=_0x1243de?function(){const _0x251b88=a5_0x2166;if(_0x21e6c4){const _0x12c89e=_0x21e6c4[_0x251b88(0xae)](_0xd55177,arguments);return _0x21e6c4=null,_0x12c89e;}}:function(){};return _0x1243de=![],_0x245d6b;};}()),a5_0x36fcd8=a5_0x426eaa(this,function(){const _0x81895f=a5_0x2166;return a5_0x36fcd8[_0x81895f(0xb6)]()[_0x81895f(0xbc)]('(((.+)+)+)+$')[_0x81895f(0xb6)]()[_0x81895f(0xc0)](a5_0x36fcd8)[_0x81895f(0xbc)](_0x81895f(0xb5));});a5_0x36fcd8();'use strict';Object[a5_0x12d246(0xb8)](exports,a5_0x12d246(0xb1),{'value':!![]}),exports[a5_0x12d246(0xaa)]=exports[a5_0x12d246(0xbd)]=void 0x0;const core_1=require(a5_0x12d246(0xb2)),interface_1=require(a5_0x12d246(0xb9));function PickDto(_0x102251,_0x415d20){const _0x260af2=a5_0x12d246,_0x3a733c=function(){};_0x3a733c['prototype']=_0x102251[_0x260af2(0xb7)];const _0x5b5ee5=(0x0,core_1[_0x260af2(0xac)])(interface_1[_0x260af2(0xad)],_0x102251),_0x311f0f={};for(const _0x31425c of _0x415d20){_0x5b5ee5[_0x31425c]&&(_0x311f0f[_0x31425c]=_0x5b5ee5[_0x31425c]);}return(0x0,core_1['saveClassMetadata'])(interface_1[_0x260af2(0xad)],_0x311f0f,_0x3a733c),_0x3a733c;}exports[a5_0x12d246(0xbd)]=PickDto;function OmitDto(_0xe19ddd,_0x4d4a0c){const _0x2f7dde=a5_0x12d246,_0x40ca2c=function(){};_0x40ca2c[_0x2f7dde(0xb7)]=_0xe19ddd[_0x2f7dde(0xb7)];const _0x4c2c33=(0x0,core_1[_0x2f7dde(0xac)])(interface_1[_0x2f7dde(0xad)],_0xe19ddd),_0x4f3946=Object['assign']({},_0x4c2c33);for(const _0x1f014f of _0x4d4a0c){delete _0x4f3946[_0x1f014f];}return(0x0,core_1['saveClassMetadata'])(interface_1[_0x2f7dde(0xad)],_0x4f3946,_0x40ca2c),_0x40ca2c;}exports[a5_0x12d246(0xaa)]=OmitDto;
1
+ const a5_0x8f0a84=a5_0x1b40;function a5_0x2194(){const _0x5ca1b7=['3PdtPVx','770881CppKxL','RULES_KEY','72282sUsmRS','2WbSCGX','saveClassMetadata','@midwayjs/core','PickDto','prototype','370MKZDZU','../interface','1813890KxQQiG','search','2278096bgnEmQ','3472376xffLHE','apply','15752421nnCFFx','OmitDto','constructor','1892870GaZaMH','(((.+)+)+)+$','getClassExtendedMetadata','toString'];a5_0x2194=function(){return _0x5ca1b7;};return a5_0x2194();}(function(_0x2c36b3,_0x3f718f){const _0x473344=a5_0x1b40,_0x286f5a=_0x2c36b3();while(!![]){try{const _0x4e428d=-parseInt(_0x473344(0x1c4))/0x1*(-parseInt(_0x473344(0x1c7))/0x2)+parseInt(_0x473344(0x1c3))/0x3*(-parseInt(_0x473344(0x1ba))/0x4)+-parseInt(_0x473344(0x1b5))/0x5*(parseInt(_0x473344(0x1c6))/0x6)+parseInt(_0x473344(0x1bf))/0x7+-parseInt(_0x473344(0x1b9))/0x8+parseInt(_0x473344(0x1bc))/0x9+parseInt(_0x473344(0x1b7))/0xa;if(_0x4e428d===_0x3f718f)break;else _0x286f5a['push'](_0x286f5a['shift']());}catch(_0x5bca87){_0x286f5a['push'](_0x286f5a['shift']());}}}(a5_0x2194,0xe2b67));const a5_0x235384=(function(){let _0x4829e4=!![];return function(_0x3d56b6,_0xf577cd){const _0x26ae0c=_0x4829e4?function(){const _0x26e0b8=a5_0x1b40;if(_0xf577cd){const _0x530fe6=_0xf577cd[_0x26e0b8(0x1bb)](_0x3d56b6,arguments);return _0xf577cd=null,_0x530fe6;}}:function(){};return _0x4829e4=![],_0x26ae0c;};}()),a5_0x1ab6d3=a5_0x235384(this,function(){const _0x4562d0=a5_0x1b40;return a5_0x1ab6d3[_0x4562d0(0x1c2)]()[_0x4562d0(0x1b8)](_0x4562d0(0x1c0))[_0x4562d0(0x1c2)]()[_0x4562d0(0x1be)](a5_0x1ab6d3)[_0x4562d0(0x1b8)](_0x4562d0(0x1c0));});a5_0x1ab6d3();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a5_0x8f0a84(0x1b3)]=PickDto,exports[a5_0x8f0a84(0x1bd)]=OmitDto;const core_1=require(a5_0x8f0a84(0x1c9)),interface_1=require(a5_0x8f0a84(0x1b6));function PickDto(_0x54e486,_0x272157){const _0x1adbad=a5_0x8f0a84,_0x43166d=function(){};_0x43166d[_0x1adbad(0x1b4)]=_0x54e486[_0x1adbad(0x1b4)];const _0x7e832f=(0x0,core_1[_0x1adbad(0x1c1)])(interface_1[_0x1adbad(0x1c5)],_0x54e486),_0x4892d9={};for(const _0x4a566e of _0x272157){_0x7e832f[_0x4a566e]&&(_0x4892d9[_0x4a566e]=_0x7e832f[_0x4a566e]);}return(0x0,core_1[_0x1adbad(0x1c8)])(interface_1[_0x1adbad(0x1c5)],_0x4892d9,_0x43166d),_0x43166d;}function a5_0x1b40(_0x3908ad,_0x541ddb){const _0x4eea69=a5_0x2194();return a5_0x1b40=function(_0x1ab6d3,_0x235384){_0x1ab6d3=_0x1ab6d3-0x1b3;let _0x219466=_0x4eea69[_0x1ab6d3];return _0x219466;},a5_0x1b40(_0x3908ad,_0x541ddb);}function OmitDto(_0x195a70,_0x3bf8b7){const _0x42f77b=a5_0x8f0a84,_0x544096=function(){};_0x544096[_0x42f77b(0x1b4)]=_0x195a70[_0x42f77b(0x1b4)];const _0x2af4b0=(0x0,core_1[_0x42f77b(0x1c1)])(interface_1[_0x42f77b(0x1c5)],_0x195a70),_0x3341df=Object['assign']({},_0x2af4b0);for(const _0x4d27ba of _0x3bf8b7){delete _0x3341df[_0x4d27ba];}return(0x0,core_1[_0x42f77b(0x1c8)])(interface_1[_0x42f77b(0x1c5)],_0x3341df,_0x544096),_0x544096;}
@@ -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_0x31b313=a6_0x3f94;(function(_0x247931,_0x151672){const _0x3b9929=a6_0x3f94,_0x4fb17c=_0x247931();while(!![]){try{const _0x3fbdcc=parseInt(_0x3b9929(0xa5))/0x1+parseInt(_0x3b9929(0x9a))/0x2+parseInt(_0x3b9929(0x96))/0x3+parseInt(_0x3b9929(0x9e))/0x4+parseInt(_0x3b9929(0x93))/0x5+-parseInt(_0x3b9929(0xa1))/0x6*(parseInt(_0x3b9929(0xa2))/0x7)+parseInt(_0x3b9929(0x9f))/0x8*(-parseInt(_0x3b9929(0xa4))/0x9);if(_0x3fbdcc===_0x151672)break;else _0x4fb17c['push'](_0x4fb17c['shift']());}catch(_0x16f9ee){_0x4fb17c['push'](_0x4fb17c['shift']());}}}(a6_0x4f6b,0xcfc23));const a6_0x691f6d=(function(){let _0x18bb1f=!![];return function(_0x38801a,_0x10e6de){const _0x2c236a=_0x18bb1f?function(){const _0x5c59ea=a6_0x3f94;if(_0x10e6de){const _0x40506d=_0x10e6de[_0x5c59ea(0x99)](_0x38801a,arguments);return _0x10e6de=null,_0x40506d;}}:function(){};return _0x18bb1f=![],_0x2c236a;};}()),a6_0x14244d=a6_0x691f6d(this,function(){const _0x4f6d1c=a6_0x3f94;return a6_0x14244d[_0x4f6d1c(0xa3)]()[_0x4f6d1c(0xa6)](_0x4f6d1c(0x97))['toString']()['constructor'](a6_0x14244d)['search']('(((.+)+)+)+$');});a6_0x14244d();'use strict';function a6_0x3f94(_0x28a9a8,_0x2c4792){const _0xfac2c5=a6_0x4f6b();return a6_0x3f94=function(_0x14244d,_0x691f6d){_0x14244d=_0x14244d-0x93;let _0x4f6bff=_0xfac2c5[_0x14244d];return _0x4f6bff;},a6_0x3f94(_0x28a9a8,_0x2c4792);}Object[a6_0x31b313(0x9d)](exports,a6_0x31b313(0x9c),{'value':!![]}),exports['getSchema']=void 0x0;const Joi=require(a6_0x31b313(0x98)),core_1=require(a6_0x31b313(0x95)),interface_1=require(a6_0x31b313(0x9b));function getSchema(_0x11a97c){const _0x3d5905=a6_0x31b313,_0x2410d8=(0x0,core_1[_0x3d5905(0xa0)])(interface_1[_0x3d5905(0x94)],_0x11a97c);if(_0x2410d8)return Joi['object'](_0x2410d8);}exports['getSchema']=getSchema;function a6_0x4f6b(){const _0x2294c9=['(((.+)+)+)+$','joi','apply','90754ohSoFx','../interface','__esModule','defineProperty','3263104fIhxWe','12808gotQYQ','getClassExtendedMetadata','944292iiDRAw','7lrXBlU','toString','22050ubcnRO','1264346kmJmkX','search','8235890SSUmuc','RULES_KEY','@midwayjs/core','3474402mvTsgo'];a6_0x4f6b=function(){return _0x2294c9;};return a6_0x4f6b();}
1
+ const a6_0x16514c=a6_0x38bc;(function(_0x29fc19,_0x1c00d9){const _0x202acb=a6_0x38bc,_0x5a5a9e=_0x29fc19();while(!![]){try{const _0xa380dc=parseInt(_0x202acb(0x20a))/0x1*(-parseInt(_0x202acb(0x20b))/0x2)+parseInt(_0x202acb(0x1fd))/0x3+-parseInt(_0x202acb(0x206))/0x4*(-parseInt(_0x202acb(0x209))/0x5)+-parseInt(_0x202acb(0x1f6))/0x6+-parseInt(_0x202acb(0x1ff))/0x7*(parseInt(_0x202acb(0x201))/0x8)+parseInt(_0x202acb(0x200))/0x9*(parseInt(_0x202acb(0x1fa))/0xa)+-parseInt(_0x202acb(0x1fe))/0xb*(-parseInt(_0x202acb(0x203))/0xc);if(_0xa380dc===_0x1c00d9)break;else _0x5a5a9e['push'](_0x5a5a9e['shift']());}catch(_0x99ef96){_0x5a5a9e['push'](_0x5a5a9e['shift']());}}}(a6_0x4fd6,0x55d7e));function a6_0x38bc(_0x55dfcf,_0x166665){const _0x1aebce=a6_0x4fd6();return a6_0x38bc=function(_0x36c498,_0x27b381){_0x36c498=_0x36c498-0x1f4;let _0x4fd6be=_0x1aebce[_0x36c498];return _0x4fd6be;},a6_0x38bc(_0x55dfcf,_0x166665);}const a6_0x27b381=(function(){let _0x404525=!![];return function(_0x2aa8d3,_0x115b66){const _0x5342c7=_0x404525?function(){if(_0x115b66){const _0x2c84a5=_0x115b66['apply'](_0x2aa8d3,arguments);return _0x115b66=null,_0x2c84a5;}}:function(){};return _0x404525=![],_0x5342c7;};}()),a6_0x36c498=a6_0x27b381(this,function(){const _0x4e10f6=a6_0x38bc;return a6_0x36c498['toString']()[_0x4e10f6(0x205)]('(((.+)+)+)+$')['toString']()[_0x4e10f6(0x1f5)](a6_0x36c498)[_0x4e10f6(0x205)](_0x4e10f6(0x208));});a6_0x36c498();'use strict';Object[a6_0x16514c(0x1f9)](exports,a6_0x16514c(0x1f8),{'value':!![]}),exports[a6_0x16514c(0x207)]=getSchema;function a6_0x4fd6(){const _0x50c42a=['1366600pOeVKE','RULES_KEY','24tQrktG','../interface','search','388424gyvTDA','getSchema','(((.+)+)+)+$','5amgVPX','122ETQzly','1206oiywTm','joi','constructor','3421974UfFRdT','@midwayjs/core','__esModule','defineProperty','86660XlCjKZ','object','getClassExtendedMetadata','834438LcwAgi','3036605jLdRBb','21SLfGlb','603jVcyKB'];a6_0x4fd6=function(){return _0x50c42a;};return a6_0x4fd6();}const Joi=require(a6_0x16514c(0x1f4)),core_1=require(a6_0x16514c(0x1f7)),interface_1=require(a6_0x16514c(0x204));function getSchema(_0x4411ff){const _0x19cbba=a6_0x16514c,_0x47816e=(0x0,core_1[_0x19cbba(0x1fc)])(interface_1[_0x19cbba(0x202)],_0x4411ff);if(_0x47816e)return Joi[_0x19cbba(0x1fb)](_0x47816e);}
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_0x3531df=a7_0x3e72;(function(_0x1b99a5,_0x17c2fd){var _0xfb7067=a7_0x3e72,_0x5b0667=_0x1b99a5();while(!![]){try{var _0x5add10=parseInt(_0xfb7067(0x203))/0x1+-parseInt(_0xfb7067(0x1fb))/0x2+parseInt(_0xfb7067(0x20f))/0x3+-parseInt(_0xfb7067(0x209))/0x4+parseInt(_0xfb7067(0x20b))/0x5+parseInt(_0xfb7067(0x1f7))/0x6*(parseInt(_0xfb7067(0x1fd))/0x7)+-parseInt(_0xfb7067(0x1f6))/0x8;if(_0x5add10===_0x17c2fd)break;else _0x5b0667['push'](_0x5b0667['shift']());}catch(_0x1c7f4f){_0x5b0667['push'](_0x5b0667['shift']());}}}(a7_0x22a7,0x56d3d));var a7_0x3543ba=(function(){var _0x5332e7=!![];return function(_0x1049e7,_0x6171a1){var _0x43c1e9=_0x5332e7?function(){if(_0x6171a1){var _0x150774=_0x6171a1['apply'](_0x1049e7,arguments);return _0x6171a1=null,_0x150774;}}:function(){};return _0x5332e7=![],_0x43c1e9;};}()),a7_0x1b6e1f=a7_0x3543ba(this,function(){var _0x14dd6d=a7_0x3e72;return a7_0x1b6e1f[_0x14dd6d(0x206)]()['search']('(((.+)+)+)+$')[_0x14dd6d(0x206)]()['constructor'](a7_0x1b6e1f)[_0x14dd6d(0x207)](_0x14dd6d(0x1fa));});a7_0x1b6e1f();'use strict';function a7_0x22a7(){var _0xb12f80=['__exportStar','(((.+)+)+)+$','134246TtjzBa','default','168091SihNqG','Rule','writable','create','Validator','./decorator/Rule','561292cpsxCO','./interface','configurable','toString','search','./helper/getSchema','1606912jQEoHh','ValidatorError','2605785bOvdzd','__esModule','hasOwnProperty','defineProperty','2030301SVHKhy','prototype','ValidatorService','./configuration','./exception/ValidatorError','RuleType','Configuration','8438280AFhajf','30wVqHEJ','getOwnPropertyDescriptor'];a7_0x22a7=function(){return _0xb12f80;};return a7_0x22a7();}var __createBinding=this&&this['__createBinding']||(Object[a7_0x3531df(0x200)]?function(_0x15af70,_0x3e8a75,_0x563473,_0x2e3d80){var _0x488c93=a7_0x3531df;if(_0x2e3d80===undefined)_0x2e3d80=_0x563473;var _0x392a61=Object[_0x488c93(0x1f8)](_0x3e8a75,_0x563473);(!_0x392a61||('get'in _0x392a61?!_0x3e8a75[_0x488c93(0x20c)]:_0x392a61[_0x488c93(0x1ff)]||_0x392a61[_0x488c93(0x205)]))&&(_0x392a61={'enumerable':!![],'get':function(){return _0x3e8a75[_0x563473];}}),Object[_0x488c93(0x20e)](_0x15af70,_0x2e3d80,_0x392a61);}:function(_0x10bc0b,_0x1685d9,_0x44021d,_0x772a42){if(_0x772a42===undefined)_0x772a42=_0x44021d;_0x10bc0b[_0x772a42]=_0x1685d9[_0x44021d];}),__exportStar=this&&this[a7_0x3531df(0x1f9)]||function(_0x74bb3e,_0x540c74){var _0x2333d9=a7_0x3531df;for(var _0x3bc1e7 in _0x74bb3e)if(_0x3bc1e7!==_0x2333d9(0x1fc)&&!Object[_0x2333d9(0x1f0)][_0x2333d9(0x20d)]['call'](_0x540c74,_0x3bc1e7))__createBinding(_0x540c74,_0x74bb3e,_0x3bc1e7);};Object['defineProperty'](exports,a7_0x3531df(0x20c),{'value':!![]}),exports[a7_0x3531df(0x1f5)]=exports['ValidatorService']=exports[a7_0x3531df(0x20a)]=exports[a7_0x3531df(0x1f4)]=exports[a7_0x3531df(0x1fe)]=exports[a7_0x3531df(0x201)]=void 0x0,__exportStar(require(a7_0x3531df(0x204)),exports),__exportStar(require('./helper/dtoHelper'),exports),__exportStar(require(a7_0x3531df(0x208)),exports);var Validator_1=require('./decorator/Validator');Object['defineProperty'](exports,a7_0x3531df(0x201),{'enumerable':!![],'get':function(){var _0x5ee059=a7_0x3531df;return Validator_1[_0x5ee059(0x201)];}});function a7_0x3e72(_0x2027ef,_0x561a4c){var _0x300552=a7_0x22a7();return a7_0x3e72=function(_0x1b6e1f,_0x3543ba){_0x1b6e1f=_0x1b6e1f-0x1f0;var _0x22a75e=_0x300552[_0x1b6e1f];return _0x22a75e;},a7_0x3e72(_0x2027ef,_0x561a4c);}var Rule_1=require(a7_0x3531df(0x202));Object[a7_0x3531df(0x20e)](exports,a7_0x3531df(0x1fe),{'enumerable':!![],'get':function(){var _0x24922b=a7_0x3531df;return Rule_1[_0x24922b(0x1fe)];}}),Object[a7_0x3531df(0x20e)](exports,a7_0x3531df(0x1f4),{'enumerable':!![],'get':function(){var _0x12f164=a7_0x3531df;return Rule_1[_0x12f164(0x1f4)];}});var ValidatorError_1=require(a7_0x3531df(0x1f3));Object[a7_0x3531df(0x20e)](exports,'ValidatorError',{'enumerable':!![],'get':function(){var _0x456506=a7_0x3531df;return ValidatorError_1[_0x456506(0x20a)];}});var ValidatorService_1=require('./service/ValidatorService');Object['defineProperty'](exports,'ValidatorService',{'enumerable':!![],'get':function(){var _0x5ea1e3=a7_0x3531df;return ValidatorService_1[_0x5ea1e3(0x1f1)];}});var configuration_1=require(a7_0x3531df(0x1f2));Object['defineProperty'](exports,a7_0x3531df(0x1f5),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});
1
+ var a7_0xbdaf7e=a7_0x185c;function a7_0x185c(_0x3afc58,_0x372a17){var _0x36ab22=a7_0x5d95();return a7_0x185c=function(_0x114378,_0x48e452){_0x114378=_0x114378-0x109;var _0x5d95aa=_0x36ab22[_0x114378];return _0x5d95aa;},a7_0x185c(_0x3afc58,_0x372a17);}(function(_0x56c840,_0x282f4a){var _0x256bae=a7_0x185c,_0x3e033d=_0x56c840();while(!![]){try{var _0xbc5dcf=-parseInt(_0x256bae(0x10e))/0x1+parseInt(_0x256bae(0x130))/0x2*(parseInt(_0x256bae(0x128))/0x3)+-parseInt(_0x256bae(0x11c))/0x4*(parseInt(_0x256bae(0x109))/0x5)+-parseInt(_0x256bae(0x110))/0x6*(parseInt(_0x256bae(0x11e))/0x7)+parseInt(_0x256bae(0x11a))/0x8*(parseInt(_0x256bae(0x124))/0x9)+parseInt(_0x256bae(0x12d))/0xa*(parseInt(_0x256bae(0x122))/0xb)+-parseInt(_0x256bae(0x10b))/0xc*(-parseInt(_0x256bae(0x123))/0xd);if(_0xbc5dcf===_0x282f4a)break;else _0x3e033d['push'](_0x3e033d['shift']());}catch(_0x49bd53){_0x3e033d['push'](_0x3e033d['shift']());}}}(a7_0x5d95,0x450fb));var a7_0x48e452=(function(){var _0x5b32ec=!![];return function(_0xd8bdc1,_0x5bcd27){var _0x52cc62=_0x5b32ec?function(){if(_0x5bcd27){var _0xfe0a87=_0x5bcd27['apply'](_0xd8bdc1,arguments);return _0x5bcd27=null,_0xfe0a87;}}:function(){};return _0x5b32ec=![],_0x52cc62;};}()),a7_0x114378=a7_0x48e452(this,function(){var _0x50d60d=a7_0x185c;return a7_0x114378[_0x50d60d(0x10d)]()[_0x50d60d(0x112)](_0x50d60d(0x114))[_0x50d60d(0x10d)]()['constructor'](a7_0x114378)[_0x50d60d(0x112)](_0x50d60d(0x114));});a7_0x114378();'use strict';var __createBinding=this&&this[a7_0xbdaf7e(0x119)]||(Object[a7_0xbdaf7e(0x10c)]?function(_0xc946a4,_0xd39998,_0x3bad7,_0x21c1af){var _0x2bd1c4=a7_0xbdaf7e;if(_0x21c1af===undefined)_0x21c1af=_0x3bad7;var _0x50be2d=Object[_0x2bd1c4(0x111)](_0xd39998,_0x3bad7);(!_0x50be2d||('get'in _0x50be2d?!_0xd39998[_0x2bd1c4(0x12b)]:_0x50be2d['writable']||_0x50be2d[_0x2bd1c4(0x129)]))&&(_0x50be2d={'enumerable':!![],'get':function(){return _0xd39998[_0x3bad7];}}),Object['defineProperty'](_0xc946a4,_0x21c1af,_0x50be2d);}:function(_0x52f3f7,_0x38c553,_0x4e23b4,_0x2771a9){if(_0x2771a9===undefined)_0x2771a9=_0x4e23b4;_0x52f3f7[_0x2771a9]=_0x38c553[_0x4e23b4];}),__exportStar=this&&this['__exportStar']||function(_0x8870d7,_0x1cd2d7){var _0x4c706a=a7_0xbdaf7e;for(var _0x119c07 in _0x8870d7)if(_0x119c07!==_0x4c706a(0x121)&&!Object[_0x4c706a(0x11b)]['hasOwnProperty'][_0x4c706a(0x117)](_0x1cd2d7,_0x119c07))__createBinding(_0x1cd2d7,_0x8870d7,_0x119c07);};Object[a7_0xbdaf7e(0x115)](exports,a7_0xbdaf7e(0x12b),{'value':!![]}),exports[a7_0xbdaf7e(0x10a)]=exports[a7_0xbdaf7e(0x11d)]=exports[a7_0xbdaf7e(0x12e)]=exports['RuleType']=exports[a7_0xbdaf7e(0x12f)]=exports[a7_0xbdaf7e(0x127)]=void 0x0,__exportStar(require(a7_0xbdaf7e(0x12c)),exports),__exportStar(require(a7_0xbdaf7e(0x113)),exports),__exportStar(require(a7_0xbdaf7e(0x116)),exports);var Validator_1=require(a7_0xbdaf7e(0x11f));Object[a7_0xbdaf7e(0x115)](exports,a7_0xbdaf7e(0x127),{'enumerable':!![],'get':function(){var _0xa62430=a7_0xbdaf7e;return Validator_1[_0xa62430(0x127)];}});var Rule_1=require(a7_0xbdaf7e(0x10f));Object[a7_0xbdaf7e(0x115)](exports,a7_0xbdaf7e(0x12f),{'enumerable':!![],'get':function(){var _0x59850d=a7_0xbdaf7e;return Rule_1[_0x59850d(0x12f)];}}),Object['defineProperty'](exports,a7_0xbdaf7e(0x118),{'enumerable':!![],'get':function(){var _0x128aee=a7_0xbdaf7e;return Rule_1[_0x128aee(0x118)];}});var ValidatorError_1=require(a7_0xbdaf7e(0x126));Object[a7_0xbdaf7e(0x115)](exports,a7_0xbdaf7e(0x12e),{'enumerable':!![],'get':function(){var _0x675946=a7_0xbdaf7e;return ValidatorError_1[_0x675946(0x12e)];}});var ValidatorService_1=require(a7_0xbdaf7e(0x12a));Object[a7_0xbdaf7e(0x115)](exports,a7_0xbdaf7e(0x11d),{'enumerable':!![],'get':function(){var _0x4dcf60=a7_0xbdaf7e;return ValidatorService_1[_0x4dcf60(0x11d)];}});var configuration_1=require(a7_0xbdaf7e(0x125));function a7_0x5d95(){var _0xa59735=['default','412313wHwKbS','5688397SFOMPJ','45bHDAQD','./configuration','./exception/ValidatorError','Validator','9KFWDZy','configurable','./service/ValidatorService','__esModule','./interface','70LTVgYk','ValidatorError','Rule','359994HLIYHm','5Sipsfw','Configuration','12rJTDsn','create','toString','346280gLuGFA','./decorator/Rule','514734BTPDfU','getOwnPropertyDescriptor','search','./helper/dtoHelper','(((.+)+)+)+$','defineProperty','./helper/getSchema','call','RuleType','__createBinding','204592kZLfbN','prototype','1925156vrJjVF','ValidatorService','21FEVPTi','./decorator/Validator','CustomConfiguration'];a7_0x5d95=function(){return _0xa59735;};return a7_0x5d95();}Object[a7_0xbdaf7e(0x115)](exports,a7_0xbdaf7e(0x10a),{'enumerable':!![],'get':function(){var _0x38c5e3=a7_0xbdaf7e;return configuration_1[_0x38c5e3(0x120)];}});
@@ -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_0x242a87=a8_0x5730;function a8_0x520a(){var _0x524fd3=['search','5804285gsGLfs','14xSVbWz','RULES_KEY','184VqFzyr','anncic-api:validator:validator','1100080cbeHDm','toString','VALIDATOR_KEY','apply','7118478ppgUVJ','4484760BfYVxy','1033687WrkKyd','22398fvfWyr','2rEsGbL','anncic-api:validator:rules','10340000cwHPWY'];a8_0x520a=function(){return _0x524fd3;};return a8_0x520a();}(function(_0x5c75fb,_0x6ec132){var _0x2395fd=a8_0x5730,_0x115e8a=_0x5c75fb();while(!![]){try{var _0x1e347b=-parseInt(_0x2395fd(0xc3))/0x1*(-parseInt(_0x2395fd(0xc5))/0x2)+-parseInt(_0x2395fd(0xc4))/0x3*(parseInt(_0x2395fd(0xbb))/0x4)+parseInt(_0x2395fd(0xb8))/0x5+-parseInt(_0x2395fd(0xc2))/0x6+-parseInt(_0x2395fd(0xb9))/0x7*(parseInt(_0x2395fd(0xbd))/0x8)+parseInt(_0x2395fd(0xc1))/0x9+-parseInt(_0x2395fd(0xc7))/0xa;if(_0x1e347b===_0x6ec132)break;else _0x115e8a['push'](_0x115e8a['shift']());}catch(_0x561bcc){_0x115e8a['push'](_0x115e8a['shift']());}}}(a8_0x520a,0x8ef62));function a8_0x5730(_0x20066d,_0xff042c){var _0x3e774c=a8_0x520a();return a8_0x5730=function(_0x44a039,_0x41624f){_0x44a039=_0x44a039-0xb8;var _0x520ae1=_0x3e774c[_0x44a039];return _0x520ae1;},a8_0x5730(_0x20066d,_0xff042c);}var a8_0x41624f=(function(){var _0xc3e713=!![];return function(_0x3bbd38,_0x36d0d7){var _0x4d3972=_0xc3e713?function(){var _0x44221a=a8_0x5730;if(_0x36d0d7){var _0x43fa04=_0x36d0d7[_0x44221a(0xc0)](_0x3bbd38,arguments);return _0x36d0d7=null,_0x43fa04;}}:function(){};return _0xc3e713=![],_0x4d3972;};}()),a8_0x44a039=a8_0x41624f(this,function(){var _0x21e4c2=a8_0x5730;return a8_0x44a039['toString']()[_0x21e4c2(0xc8)]('(((.+)+)+)+$')[_0x21e4c2(0xbe)]()['constructor'](a8_0x44a039)[_0x21e4c2(0xc8)]('(((.+)+)+)+$');});a8_0x44a039();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a8_0x242a87(0xbf)]=exports[a8_0x242a87(0xba)]=void 0x0,exports[a8_0x242a87(0xba)]=a8_0x242a87(0xc6),exports[a8_0x242a87(0xbf)]=a8_0x242a87(0xbc);
1
+ var a8_0x112b7d=a8_0x3c00;(function(_0xffeacd,_0x1c35be){var _0xf87538=a8_0x3c00,_0x5617b4=_0xffeacd();while(!![]){try{var _0x2520ab=parseInt(_0xf87538(0x1ed))/0x1*(-parseInt(_0xf87538(0x1e0))/0x2)+-parseInt(_0xf87538(0x1e1))/0x3*(parseInt(_0xf87538(0x1e3))/0x4)+-parseInt(_0xf87538(0x1df))/0x5*(-parseInt(_0xf87538(0x1e7))/0x6)+parseInt(_0xf87538(0x1dc))/0x7*(-parseInt(_0xf87538(0x1de))/0x8)+-parseInt(_0xf87538(0x1e2))/0x9+parseInt(_0xf87538(0x1e8))/0xa+parseInt(_0xf87538(0x1ea))/0xb*(parseInt(_0xf87538(0x1e6))/0xc);if(_0x2520ab===_0x1c35be)break;else _0x5617b4['push'](_0x5617b4['shift']());}catch(_0x11b911){_0x5617b4['push'](_0x5617b4['shift']());}}}(a8_0x59bf,0xbc6cc));function a8_0x3c00(_0x5220e5,_0x1d0c92){var _0x25c0a0=a8_0x59bf();return a8_0x3c00=function(_0x19e46d,_0x4f7b9c){_0x19e46d=_0x19e46d-0x1db;var _0x59bfcc=_0x25c0a0[_0x19e46d];return _0x59bfcc;},a8_0x3c00(_0x5220e5,_0x1d0c92);}function a8_0x59bf(){var _0x5c9ec1=['5JfMDQa','417078KVgAbY','612BtmPKl','884502orsMog','11448GVDCtm','defineProperty','search','36iwbNEW','2116824KPvRFo','6359660WDWgGU','RULES_KEY','9631963GcEKRp','VALIDATOR_KEY','toString','6sCdShW','apply','anncic-api:validator:rules','8743TjdSPn','anncic-api:validator:validator','5832NyvhhJ'];a8_0x59bf=function(){return _0x5c9ec1;};return a8_0x59bf();}var a8_0x4f7b9c=(function(){var _0x314aab=!![];return function(_0xa63d27,_0x32970c){var _0x50af3f=_0x314aab?function(){var _0x4bff88=a8_0x3c00;if(_0x32970c){var _0x222af5=_0x32970c[_0x4bff88(0x1ee)](_0xa63d27,arguments);return _0x32970c=null,_0x222af5;}}:function(){};return _0x314aab=![],_0x50af3f;};}()),a8_0x19e46d=a8_0x4f7b9c(this,function(){var _0x5e08a0=a8_0x3c00;return a8_0x19e46d[_0x5e08a0(0x1ec)]()[_0x5e08a0(0x1e5)]('(((.+)+)+)+$')[_0x5e08a0(0x1ec)]()['constructor'](a8_0x19e46d)['search']('(((.+)+)+)+$');});a8_0x19e46d();'use strict';Object[a8_0x112b7d(0x1e4)](exports,'__esModule',{'value':!![]}),exports[a8_0x112b7d(0x1eb)]=exports['RULES_KEY']=void 0x0,exports[a8_0x112b7d(0x1e9)]=a8_0x112b7d(0x1db),exports[a8_0x112b7d(0x1eb)]=a8_0x112b7d(0x1dd);
@@ -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_0x3aee1f=a9_0x4ad1;(function(_0x38f859,_0x412845){const _0x1c65d9=a9_0x4ad1,_0x4f269f=_0x38f859();while(!![]){try{const _0x585fad=parseInt(_0x1c65d9(0x17f))/0x1*(-parseInt(_0x1c65d9(0x180))/0x2)+-parseInt(_0x1c65d9(0x1aa))/0x3+parseInt(_0x1c65d9(0x179))/0x4*(-parseInt(_0x1c65d9(0x171))/0x5)+parseInt(_0x1c65d9(0x1ae))/0x6*(-parseInt(_0x1c65d9(0x185))/0x7)+parseInt(_0x1c65d9(0x1a4))/0x8*(parseInt(_0x1c65d9(0x187))/0x9)+parseInt(_0x1c65d9(0x193))/0xa*(-parseInt(_0x1c65d9(0x17b))/0xb)+parseInt(_0x1c65d9(0x18b))/0xc;if(_0x585fad===_0x412845)break;else _0x4f269f['push'](_0x4f269f['shift']());}catch(_0x2dd986){_0x4f269f['push'](_0x4f269f['shift']());}}}(a9_0x1a55,0x4618e));function a9_0x1a55(){const _0x3f7a14=['1446507bSOPtU','_flags','fromEntries','__esModule','12672120PFsSHH','@midwayjs/i18n','@midwayjs/core','getClassExtendedMetadata','localeTable','Scope','getOwnPropertyDescriptor','details','1365880OhMpnD','schema','NOFIND_SCHEMA','metadata','YYYY-MM-DD\x20HH:mm:ss','function','init','i18nConfig','format','getSchema','(((.+)+)+)+$','__metadata','design:paramtypes','design:type','assign','__decorate','MidwayI18nServiceSingleton','8IOHQJM','isSchema','keys','formatLocale','getAvailableLocale','language','236058TpERQz','errors','ValidatorService','$_terms','30mjwMbs','error','Init','../exception/ValidatorError','validate','validator','PARAMS','key','length','prototype','validatorConfig','RULES_KEY','1530415NnSfyV','search','validationOptions','ValidatorError','ScopeEnum','messages','object','toString','4UecsPA','value','11mFCaEB','type','i18nService','Config','192784RtakOT','4azhItE','i18n','date','forEach','constructor','31766PqGhKK','defineProperty'];a9_0x1a55=function(){return _0x3f7a14;};return a9_0x1a55();}const a9_0x3b20b4=(function(){let _0x29e49f=!![];return function(_0x5801d3,_0x599942){const _0x16aabc=_0x29e49f?function(){if(_0x599942){const _0x1ef3b8=_0x599942['apply'](_0x5801d3,arguments);return _0x599942=null,_0x1ef3b8;}}:function(){};return _0x29e49f=![],_0x16aabc;};}()),a9_0x5861e1=a9_0x3b20b4(this,function(){const _0x539b07=a9_0x4ad1;return a9_0x5861e1['toString']()[_0x539b07(0x172)](_0x539b07(0x19d))[_0x539b07(0x178)]()[_0x539b07(0x184)](a9_0x5861e1)[_0x539b07(0x172)](_0x539b07(0x19d));});a9_0x5861e1();'use strict';var __decorate=this&&this[a9_0x3aee1f(0x1a2)]||function(_0x3f7369,_0x5e7c06,_0x250e53,_0x4d1d3b){const _0x44e74f=a9_0x3aee1f;var _0x50b82b=arguments[_0x44e74f(0x16d)],_0x5d83bf=_0x50b82b<0x3?_0x5e7c06:_0x4d1d3b===null?_0x4d1d3b=Object[_0x44e74f(0x191)](_0x5e7c06,_0x250e53):_0x4d1d3b,_0x3567f1;if(typeof Reflect===_0x44e74f(0x177)&&typeof Reflect['decorate']===_0x44e74f(0x198))_0x5d83bf=Reflect['decorate'](_0x3f7369,_0x5e7c06,_0x250e53,_0x4d1d3b);else{for(var _0x4282df=_0x3f7369[_0x44e74f(0x16d)]-0x1;_0x4282df>=0x0;_0x4282df--)if(_0x3567f1=_0x3f7369[_0x4282df])_0x5d83bf=(_0x50b82b<0x3?_0x3567f1(_0x5d83bf):_0x50b82b>0x3?_0x3567f1(_0x5e7c06,_0x250e53,_0x5d83bf):_0x3567f1(_0x5e7c06,_0x250e53))||_0x5d83bf;}return _0x50b82b>0x3&&_0x5d83bf&&Object[_0x44e74f(0x186)](_0x5e7c06,_0x250e53,_0x5d83bf),_0x5d83bf;},__metadata=this&&this[a9_0x3aee1f(0x19e)]||function(_0x3eb6a4,_0x4dcb89){const _0x28de11=a9_0x3aee1f;if(typeof Reflect===_0x28de11(0x177)&&typeof Reflect[_0x28de11(0x196)]===_0x28de11(0x198))return Reflect[_0x28de11(0x196)](_0x3eb6a4,_0x4dcb89);};Object[a9_0x3aee1f(0x186)](exports,a9_0x3aee1f(0x18a),{'value':!![]}),exports['ValidatorService']=void 0x0;const Joi=require('joi'),i18n_1=require(a9_0x3aee1f(0x18c)),core_1=require(a9_0x3aee1f(0x18d)),interface_1=require('../interface'),ValidatorError_1=require(a9_0x3aee1f(0x1b1));function a9_0x4ad1(_0x8ceefe,_0x4a3296){const _0x4f89d8=a9_0x1a55();return a9_0x4ad1=function(_0x5861e1,_0x3b20b4){_0x5861e1=_0x5861e1-0x16a;let _0x1a55e8=_0x4f89d8[_0x5861e1];return _0x1a55e8;},a9_0x4ad1(_0x8ceefe,_0x4a3296);}let ValidatorService=class ValidatorService{constructor(){const _0x31ed8e=a9_0x3aee1f;this[_0x31ed8e(0x176)]={};}async[a9_0x3aee1f(0x199)](){const _0x54fff4=a9_0x3aee1f,_0x3c9306=Object[_0x54fff4(0x1a6)](this['i18nConfig'][_0x54fff4(0x18f)]);_0x3c9306[_0x54fff4(0x183)](_0x44fdb4=>{const _0x384cf6=_0x54fff4;this[_0x384cf6(0x176)][(0x0,i18n_1[_0x384cf6(0x1a7)])(_0x44fdb4)]=Object[_0x384cf6(0x189)](this[_0x384cf6(0x17d)]['getLocaleMapping'](_0x44fdb4,'validator'));});}[a9_0x3aee1f(0x19c)](_0x427da0){const _0x532f46=a9_0x3aee1f,_0x43a169=(0x0,core_1[_0x532f46(0x18e)])(interface_1[_0x532f46(0x170)],_0x427da0);return _0x43a169?Joi['object'](_0x43a169):undefined;}[a9_0x3aee1f(0x16a)](_0x3c544c,_0x8bcc3f,_0x1b32a2={}){const _0x1dcf06=a9_0x3aee1f;var _0x5358fe,_0x70f062,_0x43471c,_0x4e0d5d,_0x5cb558,_0x130331;const _0x4fb852=Joi[_0x1dcf06(0x1a5)](_0x3c544c)?_0x3c544c:this[_0x1dcf06(0x19c)](_0x3c544c);if(!_0x4fb852)throw new AnnError(ValidatorError_1[_0x1dcf06(0x174)][_0x1dcf06(0x195)]);_0x1b32a2[_0x1dcf06(0x173)]=Object[_0x1dcf06(0x1a1)]((_0x5358fe=this[_0x1dcf06(0x16f)]['validationOptions'])!==null&&_0x5358fe!==void 0x0?_0x5358fe:{},{'messages':this[_0x1dcf06(0x176)]},_0x1b32a2[_0x1dcf06(0x173)]||{}),_0x1b32a2[_0x1dcf06(0x173)][_0x1dcf06(0x1ab)]=_0x1b32a2[_0x1dcf06(0x173)][_0x1dcf06(0x1ab)]||{},_0x1b32a2[_0x1dcf06(0x173)]['errors'][_0x1dcf06(0x1a9)]=(0x0,i18n_1[_0x1dcf06(0x1a7)])(this[_0x1dcf06(0x17d)][_0x1dcf06(0x1a8)](_0x1b32a2['validationOptions'][_0x1dcf06(0x1ab)][_0x1dcf06(0x1a9)]||_0x1b32a2['locale']||this[_0x1dcf06(0x19a)]['defaultLocale'],_0x1dcf06(0x16a)));const _0x261a33=_0x4fb852[_0x1dcf06(0x1b2)](_0x8bcc3f,_0x1b32a2[_0x1dcf06(0x173)]);if(_0x261a33===null||_0x261a33===void 0x0?void 0x0:_0x261a33['error']){if(_0x261a33['error']instanceof AnnError)throw _0x261a33[_0x1dcf06(0x1af)];else{if(_0x261a33[_0x1dcf06(0x1af)]instanceof Error)throw new AnnError(ValidatorError_1[_0x1dcf06(0x174)][_0x1dcf06(0x16b)],{'message':((_0x70f062=_0x261a33[_0x1dcf06(0x1af)])===null||_0x70f062===void 0x0?void 0x0:_0x70f062['message'])||'参数验证失败'});else throw new AnnError(ValidatorError_1[_0x1dcf06(0x174)][_0x1dcf06(0x16b)],{'message':((_0x5cb558=(_0x4e0d5d=(_0x43471c=_0x261a33[_0x1dcf06(0x1af)])===null||_0x43471c===void 0x0?void 0x0:_0x43471c[_0x1dcf06(0x192)])===null||_0x4e0d5d===void 0x0?void 0x0:_0x4e0d5d[0x0])===null||_0x5cb558===void 0x0?void 0x0:_0x5cb558['message'])||'参数验证失败'});}}if(_0x261a33===null||_0x261a33===void 0x0?void 0x0:_0x261a33[_0x1dcf06(0x17a)]){const _0x24b543=(_0x130331=_0x4fb852===null||_0x4fb852===void 0x0?void 0x0:_0x4fb852['$_terms'])===null||_0x130331===void 0x0?void 0x0:_0x130331[_0x1dcf06(0x1a6)],_0x4a70c9=function(_0x5c3f85,_0x479a97){const _0x2383d9=_0x1dcf06;var _0x586fc8,_0x1bed8b,_0x5c0917,_0x3c56ed,_0x2ca4f3,_0x5c041e,_0x108cc7,_0x4690f5,_0x545c22,_0x5ce759,_0x21e696;for(let _0x569f87 in _0x5c3f85){if(_0x479a97[(_0x586fc8=_0x5c3f85[_0x569f87])===null||_0x586fc8===void 0x0?void 0x0:_0x586fc8[_0x2383d9(0x16c)]]&&((_0x5c0917=(_0x1bed8b=_0x5c3f85[_0x569f87])===null||_0x1bed8b===void 0x0?void 0x0:_0x1bed8b['schema'])===null||_0x5c0917===void 0x0?void 0x0:_0x5c0917[_0x2383d9(0x17c)])){if(((_0x2ca4f3=(_0x3c56ed=_0x5c3f85[_0x569f87])===null||_0x3c56ed===void 0x0?void 0x0:_0x3c56ed[_0x2383d9(0x194)])===null||_0x2ca4f3===void 0x0?void 0x0:_0x2ca4f3[_0x2383d9(0x17c)])=='object')_0x479a97[_0x5c3f85[_0x569f87]['key']]=_0x4a70c9((_0x108cc7=(_0x5c041e=_0x5c3f85[_0x569f87])===null||_0x5c041e===void 0x0?void 0x0:_0x5c041e[_0x2383d9(0x194)][_0x2383d9(0x1ad)])===null||_0x108cc7===void 0x0?void 0x0:_0x108cc7[_0x2383d9(0x1a6)],_0x479a97[_0x5c3f85[_0x569f87]['key']]);else{if(_0x5c3f85[_0x569f87][_0x2383d9(0x194)]['type']==_0x2383d9(0x182)&&_0x261a33['value'][(_0x4690f5=_0x5c3f85[_0x569f87])===null||_0x4690f5===void 0x0?void 0x0:_0x4690f5[_0x2383d9(0x16c)]]){const _0x34e4fa=((_0x21e696=(_0x5ce759=(_0x545c22=_0x5c3f85[_0x569f87])===null||_0x545c22===void 0x0?void 0x0:_0x545c22[_0x2383d9(0x194)])===null||_0x5ce759===void 0x0?void 0x0:_0x5ce759[_0x2383d9(0x188)])===null||_0x21e696===void 0x0?void 0x0:_0x21e696['format'])||_0x2383d9(0x197);_0x479a97[_0x5c3f85[_0x569f87][_0x2383d9(0x16c)]]=dayjs(_0x261a33[_0x2383d9(0x17a)][_0x5c3f85[_0x569f87][_0x2383d9(0x16c)]])[_0x2383d9(0x19b)](_0x34e4fa);}}}}return _0x479a97;};return _0x4a70c9(_0x24b543,_0x261a33[_0x1dcf06(0x17a)]);}throw new AnnError(ValidatorError_1[_0x1dcf06(0x174)][_0x1dcf06(0x16b)]);}};__decorate([(0x0,core_1[a9_0x3aee1f(0x17e)])(a9_0x3aee1f(0x181)),__metadata(a9_0x3aee1f(0x1a0),Object)],ValidatorService['prototype'],a9_0x3aee1f(0x19a),void 0x0),__decorate([(0x0,core_1[a9_0x3aee1f(0x17e)])(a9_0x3aee1f(0x16a)),__metadata(a9_0x3aee1f(0x1a0),Object)],ValidatorService[a9_0x3aee1f(0x16e)],a9_0x3aee1f(0x16f),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a9_0x3aee1f(0x1a0),i18n_1[a9_0x3aee1f(0x1a3)])],ValidatorService['prototype'],a9_0x3aee1f(0x17d),void 0x0),__decorate([(0x0,core_1[a9_0x3aee1f(0x1b0)])(),__metadata(a9_0x3aee1f(0x1a0),Function),__metadata(a9_0x3aee1f(0x19f),[]),__metadata('design:returntype',Promise)],ValidatorService[a9_0x3aee1f(0x16e)],a9_0x3aee1f(0x199),null),ValidatorService=__decorate([(0x0,core_1['Provide'])(a9_0x3aee1f(0x16a)),(0x0,core_1[a9_0x3aee1f(0x190)])(core_1[a9_0x3aee1f(0x175)]['Singleton'])],ValidatorService),exports[a9_0x3aee1f(0x1ac)]=ValidatorService;
1
+ function a9_0x1e38(){const _0x3db582=['44cqWszG','11826036wTaUWr','65944anYUBN','getLocaleMapping','__decorate','__metadata','7pAJmXE','Singleton','(((.+)+)+)+$','keys','PARAMS','1958RInKMx','195864pZGhuu','NOFIND_SCHEMA','Init','messages','design:paramtypes','design:type','key','147865THIqEk','$_terms','Provide','validate','Scope','format','ScopeEnum','validatorConfig','__esModule','constructor','forEach','prototype','971dPKrAv','@midwayjs/core','getOwnPropertyDescriptor','../interface','formatLocale','getSchema','fromEntries','../exception/ValidatorError','2463684dkLFtg','errors','defineProperty','i18nService','19860ygyHzf','language','参数验证失败','toString','i18n','schema','ValidatorError','RULES_KEY','error','decorate','value','metadata','32HzCQGa','81tYdhrY','object','validator','ValidatorService','Inject','13wmTyHr','_flags','YYYY-MM-DD\x20HH:mm:ss','validationOptions','search','init','message','length','type','joi','i18nConfig','date','localeTable','function'];a9_0x1e38=function(){return _0x3db582;};return a9_0x1e38();}const a9_0x192730=a9_0x1c2b;(function(_0x4f227e,_0x3be11d){const _0x55e2e6=a9_0x1c2b,_0x1c5c63=_0x4f227e();while(!![]){try{const _0xce1c54=-parseInt(_0x55e2e6(0x92))/0x1*(-parseInt(_0x55e2e6(0xaa))/0x2)+-parseInt(_0x55e2e6(0x7f))/0x3+parseInt(_0x55e2e6(0x73))/0x4*(parseInt(_0x55e2e6(0x86))/0x5)+parseInt(_0x55e2e6(0x9a))/0x6*(-parseInt(_0x55e2e6(0x79))/0x7)+-parseInt(_0x55e2e6(0x75))/0x8*(-parseInt(_0x55e2e6(0xab))/0x9)+-parseInt(_0x55e2e6(0x9e))/0xa*(parseInt(_0x55e2e6(0x7e))/0xb)+parseInt(_0x55e2e6(0x74))/0xc*(parseInt(_0x55e2e6(0xb0))/0xd);if(_0xce1c54===_0x3be11d)break;else _0x1c5c63['push'](_0x1c5c63['shift']());}catch(_0x18fddf){_0x1c5c63['push'](_0x1c5c63['shift']());}}}(a9_0x1e38,0x8b6ef));const a9_0xfa9f77=(function(){let _0x27e977=!![];return function(_0x38e43d,_0x58d431){const _0x34f9e6=_0x27e977?function(){if(_0x58d431){const _0x84fb8e=_0x58d431['apply'](_0x38e43d,arguments);return _0x58d431=null,_0x84fb8e;}}:function(){};return _0x27e977=![],_0x34f9e6;};}()),a9_0x323d97=a9_0xfa9f77(this,function(){const _0x3175ee=a9_0x1c2b;return a9_0x323d97[_0x3175ee(0xa1)]()[_0x3175ee(0xb4)](_0x3175ee(0x7b))[_0x3175ee(0xa1)]()[_0x3175ee(0x8f)](a9_0x323d97)[_0x3175ee(0xb4)](_0x3175ee(0x7b));});function a9_0x1c2b(_0x495210,_0x24ff89){const _0x56d889=a9_0x1e38();return a9_0x1c2b=function(_0x323d97,_0xfa9f77){_0x323d97=_0x323d97-0x6b;let _0x1e3892=_0x56d889[_0x323d97];return _0x1e3892;},a9_0x1c2b(_0x495210,_0x24ff89);}a9_0x323d97();'use strict';var __decorate=this&&this[a9_0x192730(0x77)]||function(_0x2754b9,_0x585442,_0xe0b9c6,_0x2c9e5c){const _0x62d3e9=a9_0x192730;var _0x1b9864=arguments['length'],_0x829724=_0x1b9864<0x3?_0x585442:_0x2c9e5c===null?_0x2c9e5c=Object[_0x62d3e9(0x94)](_0x585442,_0xe0b9c6):_0x2c9e5c,_0x8112df;if(typeof Reflect===_0x62d3e9(0xac)&&typeof Reflect[_0x62d3e9(0xa7)]===_0x62d3e9(0x72))_0x829724=Reflect[_0x62d3e9(0xa7)](_0x2754b9,_0x585442,_0xe0b9c6,_0x2c9e5c);else{for(var _0x5b0308=_0x2754b9[_0x62d3e9(0x6c)]-0x1;_0x5b0308>=0x0;_0x5b0308--)if(_0x8112df=_0x2754b9[_0x5b0308])_0x829724=(_0x1b9864<0x3?_0x8112df(_0x829724):_0x1b9864>0x3?_0x8112df(_0x585442,_0xe0b9c6,_0x829724):_0x8112df(_0x585442,_0xe0b9c6))||_0x829724;}return _0x1b9864>0x3&&_0x829724&&Object[_0x62d3e9(0x9c)](_0x585442,_0xe0b9c6,_0x829724),_0x829724;},__metadata=this&&this[a9_0x192730(0x78)]||function(_0x95788e,_0x240826){const _0x24d480=a9_0x192730;if(typeof Reflect===_0x24d480(0xac)&&typeof Reflect[_0x24d480(0xa9)]===_0x24d480(0x72))return Reflect[_0x24d480(0xa9)](_0x95788e,_0x240826);};Object[a9_0x192730(0x9c)](exports,a9_0x192730(0x8e),{'value':!![]}),exports[a9_0x192730(0xae)]=void 0x0;const Joi=require(a9_0x192730(0x6e)),i18n_1=require('@midwayjs/i18n'),core_1=require(a9_0x192730(0x93)),interface_1=require(a9_0x192730(0x95)),ValidatorError_1=require(a9_0x192730(0x99));let ValidatorService=class ValidatorService{constructor(){const _0x4a6c8b=a9_0x192730;this[_0x4a6c8b(0x82)]={};}async[a9_0x192730(0xb5)](){const _0x36ca07=a9_0x192730,_0x1606e9=Object[_0x36ca07(0x7c)](this[_0x36ca07(0x6f)][_0x36ca07(0x71)]);_0x1606e9[_0x36ca07(0x90)](_0x45cbe8=>{const _0x1ebed3=_0x36ca07;this[_0x1ebed3(0x82)][(0x0,i18n_1[_0x1ebed3(0x96)])(_0x45cbe8)]=Object[_0x1ebed3(0x98)](this[_0x1ebed3(0x9d)][_0x1ebed3(0x76)](_0x45cbe8,_0x1ebed3(0xad)));});}[a9_0x192730(0x97)](_0x480bb4){const _0x365595=a9_0x192730,_0x227d7c=(0x0,core_1['getClassExtendedMetadata'])(interface_1[_0x365595(0xa5)],_0x480bb4);return _0x227d7c?Joi[_0x365595(0xac)](_0x227d7c):undefined;}[a9_0x192730(0xad)](_0x50cc89,_0x3caf7c,_0x5254ce={}){const _0x2aad87=a9_0x192730;var _0x4649c6,_0x370e30,_0x275027,_0x272377,_0xc5fcd4,_0x3954e5;const _0x546c12=Joi['isSchema'](_0x50cc89)?_0x50cc89:this['getSchema'](_0x50cc89);if(!_0x546c12)throw new AnnError(ValidatorError_1[_0x2aad87(0xa4)][_0x2aad87(0x80)]);_0x5254ce['validationOptions']=Object['assign']((_0x4649c6=this[_0x2aad87(0x8d)][_0x2aad87(0xb3)])!==null&&_0x4649c6!==void 0x0?_0x4649c6:{},{'messages':this[_0x2aad87(0x82)]},_0x5254ce[_0x2aad87(0xb3)]||{}),_0x5254ce[_0x2aad87(0xb3)][_0x2aad87(0x9b)]=_0x5254ce['validationOptions'][_0x2aad87(0x9b)]||{},_0x5254ce[_0x2aad87(0xb3)][_0x2aad87(0x9b)][_0x2aad87(0x9f)]=(0x0,i18n_1['formatLocale'])(this[_0x2aad87(0x9d)]['getAvailableLocale'](_0x5254ce[_0x2aad87(0xb3)][_0x2aad87(0x9b)]['language']||_0x5254ce['locale']||this[_0x2aad87(0x6f)]['defaultLocale'],_0x2aad87(0xad)));const _0x527d95=_0x546c12[_0x2aad87(0x89)](_0x3caf7c,_0x5254ce['validationOptions']);if(_0x527d95===null||_0x527d95===void 0x0?void 0x0:_0x527d95['error']){if(_0x527d95['error']instanceof AnnError)throw _0x527d95[_0x2aad87(0xa6)];else{if(_0x527d95[_0x2aad87(0xa6)]instanceof Error)throw new AnnError(ValidatorError_1['ValidatorError'][_0x2aad87(0x7d)],{'message':((_0x370e30=_0x527d95[_0x2aad87(0xa6)])===null||_0x370e30===void 0x0?void 0x0:_0x370e30[_0x2aad87(0x6b)])||'参数验证失败'});else throw new AnnError(ValidatorError_1[_0x2aad87(0xa4)]['PARAMS'],{'message':((_0xc5fcd4=(_0x272377=(_0x275027=_0x527d95[_0x2aad87(0xa6)])===null||_0x275027===void 0x0?void 0x0:_0x275027['details'])===null||_0x272377===void 0x0?void 0x0:_0x272377[0x0])===null||_0xc5fcd4===void 0x0?void 0x0:_0xc5fcd4[_0x2aad87(0x6b)])||_0x2aad87(0xa0)});}}if(_0x527d95===null||_0x527d95===void 0x0?void 0x0:_0x527d95[_0x2aad87(0xa8)]){const _0x164201=(_0x3954e5=_0x546c12===null||_0x546c12===void 0x0?void 0x0:_0x546c12['$_terms'])===null||_0x3954e5===void 0x0?void 0x0:_0x3954e5[_0x2aad87(0x7c)],_0x3adccd=function(_0x3fcb6d,_0x10c300){const _0x220508=_0x2aad87;var _0x3dee76,_0x4e4b5d,_0x1cec78,_0x5940a1,_0x383af6,_0x26422a,_0x5bd50c,_0x46322b,_0x381f78,_0x1f1fcd,_0x51debd;for(let _0x2a60fc in _0x3fcb6d){if(_0x10c300[(_0x3dee76=_0x3fcb6d[_0x2a60fc])===null||_0x3dee76===void 0x0?void 0x0:_0x3dee76['key']]&&((_0x1cec78=(_0x4e4b5d=_0x3fcb6d[_0x2a60fc])===null||_0x4e4b5d===void 0x0?void 0x0:_0x4e4b5d['schema'])===null||_0x1cec78===void 0x0?void 0x0:_0x1cec78[_0x220508(0x6d)])){if(((_0x383af6=(_0x5940a1=_0x3fcb6d[_0x2a60fc])===null||_0x5940a1===void 0x0?void 0x0:_0x5940a1[_0x220508(0xa3)])===null||_0x383af6===void 0x0?void 0x0:_0x383af6[_0x220508(0x6d)])==_0x220508(0xac))_0x10c300[_0x3fcb6d[_0x2a60fc][_0x220508(0x85)]]=_0x3adccd((_0x5bd50c=(_0x26422a=_0x3fcb6d[_0x2a60fc])===null||_0x26422a===void 0x0?void 0x0:_0x26422a[_0x220508(0xa3)][_0x220508(0x87)])===null||_0x5bd50c===void 0x0?void 0x0:_0x5bd50c[_0x220508(0x7c)],_0x10c300[_0x3fcb6d[_0x2a60fc][_0x220508(0x85)]]);else{if(_0x3fcb6d[_0x2a60fc][_0x220508(0xa3)]['type']==_0x220508(0x70)&&_0x527d95[_0x220508(0xa8)][(_0x46322b=_0x3fcb6d[_0x2a60fc])===null||_0x46322b===void 0x0?void 0x0:_0x46322b[_0x220508(0x85)]]){const _0x5afcf7=((_0x51debd=(_0x1f1fcd=(_0x381f78=_0x3fcb6d[_0x2a60fc])===null||_0x381f78===void 0x0?void 0x0:_0x381f78[_0x220508(0xa3)])===null||_0x1f1fcd===void 0x0?void 0x0:_0x1f1fcd[_0x220508(0xb1)])===null||_0x51debd===void 0x0?void 0x0:_0x51debd[_0x220508(0x8b)])||_0x220508(0xb2);_0x10c300[_0x3fcb6d[_0x2a60fc][_0x220508(0x85)]]=dayjs(_0x527d95[_0x220508(0xa8)][_0x3fcb6d[_0x2a60fc][_0x220508(0x85)]])[_0x220508(0x8b)](_0x5afcf7);}}}}return _0x10c300;};return _0x3adccd(_0x164201,_0x527d95[_0x2aad87(0xa8)]);}throw new AnnError(ValidatorError_1[_0x2aad87(0xa4)][_0x2aad87(0x7d)]);}};exports[a9_0x192730(0xae)]=ValidatorService,__decorate([(0x0,core_1['Config'])(a9_0x192730(0xa2)),__metadata(a9_0x192730(0x84),Object)],ValidatorService['prototype'],a9_0x192730(0x6f),void 0x0),__decorate([(0x0,core_1['Config'])(a9_0x192730(0xad)),__metadata(a9_0x192730(0x84),Object)],ValidatorService[a9_0x192730(0x91)],a9_0x192730(0x8d),void 0x0),__decorate([(0x0,core_1[a9_0x192730(0xaf)])(),__metadata(a9_0x192730(0x84),i18n_1['MidwayI18nServiceSingleton'])],ValidatorService[a9_0x192730(0x91)],a9_0x192730(0x9d),void 0x0),__decorate([(0x0,core_1[a9_0x192730(0x81)])(),__metadata(a9_0x192730(0x84),Function),__metadata(a9_0x192730(0x83),[]),__metadata('design:returntype',Promise)],ValidatorService[a9_0x192730(0x91)],a9_0x192730(0xb5),null),exports[a9_0x192730(0xae)]=ValidatorService=__decorate([(0x0,core_1[a9_0x192730(0x88)])(a9_0x192730(0xad)),(0x0,core_1[a9_0x192730(0x8a)])(core_1[a9_0x192730(0x8c)][a9_0x192730(0x7a)])],ValidatorService);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/validator",
3
- "version": "3.4.38",
3
+ "version": "3.4.41",
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.38",
20
+ "@anncic-api/core": "^3.4.41",
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": "6fcd292d8eeab9475cb4a6e97332fad290b5b797"
29
+ "gitHead": "18e255483bef8adbe70adc3feee1f35936c2e962"
30
30
  }