@anncic-api/validator 1.5.8 → 1.5.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Rule.js +1 -1
- package/dist/decorator/Validator.js +1 -1
- package/dist/exception/ValidatorError.js +1 -1
- package/dist/helper/dtoHelper.js +1 -1
- package/dist/index.js +1 -1
- package/dist/interface.js +1 -1
- package/dist/service/ValidatorService.js +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a0_0x5a92(_0xd09e95,_0x5e6059){const _0x1b063e=a0_0x3b50();return a0_0x5a92=function(_0x71a05b,_0x29a109){_0x71a05b=_0x71a05b-0xf3;let _0x3b50eb=_0x1b063e[_0x71a05b];return _0x3b50eb;},a0_0x5a92(_0xd09e95,_0x5e6059);}function a0_0x3b50(){const _0x4348dd=['toString','602183ZvxEDq','PARAMS','search','5818770aIIObP','53675byajYZ','constructor','1698116MaglXz','../../locales/zh_CN.json','68RnqgWu','default','7tWQqcA','9BFuRcW','(((.+)+)+)+$','ValidatorError','apply','2377935elubdV','6887208qoqqGJ','string','../../locales/en_US.json','3953490Dyjihl'];a0_0x3b50=function(){return _0x4348dd;};return a0_0x3b50();}const a0_0x158404=a0_0x5a92;(function(_0x35b2df,_0x2478cd){const _0x5005a3=a0_0x5a92,_0x24a80f=_0x35b2df();while(!![]){try{const _0x3329ce=-parseInt(_0x5005a3(0xf7))/0x1+parseInt(_0x5005a3(0xfd))/0x2+parseInt(_0x5005a3(0x106))/0x3+-parseInt(_0x5005a3(0xff))/0x4*(parseInt(_0x5005a3(0xfb))/0x5)+parseInt(_0x5005a3(0xf5))/0x6*(-parseInt(_0x5005a3(0x101))/0x7)+-parseInt(_0x5005a3(0x107))/0x8*(-parseInt(_0x5005a3(0x102))/0x9)+-parseInt(_0x5005a3(0xfa))/0xa;if(_0x3329ce===_0x2478cd)break;else _0x24a80f['push'](_0x24a80f['shift']());}catch(_0xdc50d7){_0x24a80f['push'](_0x24a80f['shift']());}}}(a0_0x3b50,0x747ce));const a0_0x29a109=(function(){let _0x1761c2=!![];return function(_0x442a09,_0x3de427){const _0xcebde3=_0x1761c2?function(){const _0x127bbe=a0_0x5a92;if(_0x3de427){const _0x52ede2=_0x3de427[_0x127bbe(0x105)](_0x442a09,arguments);return _0x3de427=null,_0x52ede2;}}:function(){};return _0x1761c2=![],_0xcebde3;};}()),a0_0x71a05b=a0_0x29a109(this,function(){const _0x3d26a1=a0_0x5a92;return a0_0x71a05b['toString']()[_0x3d26a1(0xf9)](_0x3d26a1(0x103))[_0x3d26a1(0xf6)]()[_0x3d26a1(0xfc)](a0_0x71a05b)[_0x3d26a1(0xf9)](_0x3d26a1(0x103));});a0_0x71a05b();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]});const ValidatorError_1=require('../exception/ValidatorError');exports[a0_0x158404(0x100)]={'validator':{'errorStatus':ValidatorError_1[a0_0x158404(0x104)][a0_0x158404(0xf8)],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':a0_0x158404(0xf3)}},'i18n':{'localeTable':{'en_US':{'validator':require(a0_0x158404(0xf4))},'zh_CN':{'validator':require(a0_0x158404(0xfe))}}}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a1_0x472a6d=a1_0x2bde;(function(_0x5ec997,_0x4f8ad0){const _0x33cb29=a1_0x2bde,_0x190caa=_0x5ec997();while(!![]){try{const _0x58728b=parseInt(_0x33cb29(0x199))/0x1*(parseInt(_0x33cb29(0x175))/0x2)+parseInt(_0x33cb29(0x185))/0x3+parseInt(_0x33cb29(0x170))/0x4+parseInt(_0x33cb29(0x18d))/0x5*(-parseInt(_0x33cb29(0x17b))/0x6)+parseInt(_0x33cb29(0x193))/0x7*(parseInt(_0x33cb29(0x194))/0x8)+parseInt(_0x33cb29(0x195))/0x9*(-parseInt(_0x33cb29(0x17d))/0xa)+-parseInt(_0x33cb29(0x179))/0xb;if(_0x58728b===_0x4f8ad0)break;else _0x190caa['push'](_0x190caa['shift']());}catch(_0x250338){_0x190caa['push'](_0x190caa['shift']());}}}(a1_0x5a64,0x31bef));const a1_0x34a6dd=(function(){let _0x1abe0d=!![];return function(_0x2c6732,_0x1c2818){const _0x229367=_0x1abe0d?function(){const _0x4a596c=a1_0x2bde;if(_0x1c2818){const _0x2d938e=_0x1c2818[_0x4a596c(0x19b)](_0x2c6732,arguments);return _0x1c2818=null,_0x2d938e;}}:function(){};return _0x1abe0d=![],_0x229367;};}()),a1_0x4123b6=a1_0x34a6dd(this,function(){const _0x56a607=a1_0x2bde;return a1_0x4123b6[_0x56a607(0x18a)]()[_0x56a607(0x162)](_0x56a607(0x16c))['toString']()[_0x56a607(0x160)](a1_0x4123b6)['search'](_0x56a607(0x16c));});a1_0x4123b6();'use strict';var __decorate=this&&this[a1_0x472a6d(0x191)]||function(_0x359ec0,_0x5151ed,_0x30e749,_0x21fa6e){const _0x425226=a1_0x472a6d;var _0x4d0c02=arguments[_0x425226(0x16f)],_0x5569d7=_0x4d0c02<0x3?_0x5151ed:_0x21fa6e===null?_0x21fa6e=Object[_0x425226(0x182)](_0x5151ed,_0x30e749):_0x21fa6e,_0xad54e;if(typeof Reflect===_0x425226(0x19c)&&typeof Reflect[_0x425226(0x163)]===_0x425226(0x17c))_0x5569d7=Reflect[_0x425226(0x163)](_0x359ec0,_0x5151ed,_0x30e749,_0x21fa6e);else{for(var _0x4cfd9f=_0x359ec0['length']-0x1;_0x4cfd9f>=0x0;_0x4cfd9f--)if(_0xad54e=_0x359ec0[_0x4cfd9f])_0x5569d7=(_0x4d0c02<0x3?_0xad54e(_0x5569d7):_0x4d0c02>0x3?_0xad54e(_0x5151ed,_0x30e749,_0x5569d7):_0xad54e(_0x5151ed,_0x30e749))||_0x5569d7;}return _0x4d0c02>0x3&&_0x5569d7&&Object[_0x425226(0x186)](_0x5151ed,_0x30e749,_0x5569d7),_0x5569d7;},__metadata=this&&this[a1_0x472a6d(0x177)]||function(_0x440a07,_0x482128){const _0x53f3e4=a1_0x472a6d;if(typeof Reflect===_0x53f3e4(0x19c)&&typeof Reflect[_0x53f3e4(0x197)]==='function')return Reflect[_0x53f3e4(0x197)](_0x440a07,_0x482128);};Object[a1_0x472a6d(0x186)](exports,a1_0x472a6d(0x19a),{'value':!![]}),exports[a1_0x472a6d(0x173)]=void 0x0;const i18n_1=require('@midwayjs/i18n'),core_1=require(a1_0x472a6d(0x198)),core_2=require(a1_0x472a6d(0x198)),interface_1=require(a1_0x472a6d(0x166)),ValidatorService_1=require(a1_0x472a6d(0x174)),i18n=require(a1_0x472a6d(0x176)),anncic=require(a1_0x472a6d(0x165)),ConfigDefault=require('./config/config.default');function a1_0x2bde(_0x41a4a5,_0x166703){const _0x1402b1=a1_0x5a64();return a1_0x2bde=function(_0x4123b6,_0x34a6dd){_0x4123b6=_0x4123b6-0x15f;let _0x5a64f8=_0x1402b1[_0x4123b6];return _0x5a64f8;},a1_0x2bde(_0x41a4a5,_0x166703);}let CustomConfiguration=class CustomConfiguration{async[a1_0x472a6d(0x190)](){const _0x53bebe=a1_0x472a6d;this[_0x53bebe(0x19f)][_0x53bebe(0x18e)](interface_1[_0x53bebe(0x16a)],_0x324420=>{const _0x6e0049=_0x53bebe,_0x525b47=_0x324420[_0x6e0049(0x197)],_0x4c8e10=(0x0,core_2[_0x6e0049(0x183)])(_0x324420[_0x6e0049(0x187)],_0x324420[_0x6e0049(0x19d)]);return{'before':_0xcde85e=>{const _0xe89827=_0x6e0049;var _0x3de084,_0x4a49a0,_0x347171,_0xf63a4d,_0x908c56,_0x2f6f92,_0x580f39,_0xcfa9c3,_0x5638b9,_0x538da9,_0x1cfd96,_0x3f37bf,_0x3ba1de;const _0x2c6954=_0xcde85e[_0xe89827(0x187)][core_1[_0xe89827(0x167)]],_0x260e38=Object['assign']({},((_0x3de084=_0x2c6954===null||_0x2c6954===void 0x0?void 0x0:_0x2c6954[_0xe89827(0x164)])===null||_0x3de084===void 0x0?void 0x0:_0x3de084[_0xe89827(0x180)])||{},((_0x4a49a0=_0x2c6954===null||_0x2c6954===void 0x0?void 0x0:_0x2c6954[_0xe89827(0x164)])===null||_0x4a49a0===void 0x0?void 0x0:_0x4a49a0[_0xe89827(0x18f)])||{}),_0x554c2e=((0x0,core_2[_0xe89827(0x171)])(interface_1[_0xe89827(0x16a)],_0xcde85e[_0xe89827(0x187)])||[])['find'](_0x9c6e42=>_0x9c6e42[_0xe89827(0x16e)]==_0xcde85e[_0xe89827(0x15f)]);!(_0x525b47===null||_0x525b47===void 0x0?void 0x0:_0x525b47[_0xe89827(0x16d)])&&_0x2c6954&&_0x2c6954[_0xe89827(0x17e)]&&(_0x525b47[_0xe89827(0x16d)]=_0x2c6954[_0xe89827(0x17e)](i18n_1[_0xe89827(0x161)]));for(let _0x1d1845=0x0;_0x1d1845<_0x4c8e10['length'];_0x1d1845++){const _0x2b110f=_0x4c8e10[_0x1d1845],_0x5571d2=this[_0xe89827(0x188)]['getSchema'](_0x2b110f);if(_0x5571d2){if(typeof _0xcde85e[_0xe89827(0x18b)][_0x1d1845]==_0xe89827(0x17f)||((_0x347171=_0xcde85e['args'][_0x1d1845])===null||_0x347171===void 0x0?void 0x0:_0x347171[_0xe89827(0x164)])&&((_0xf63a4d=_0xcde85e['args'][_0x1d1845])===null||_0xf63a4d===void 0x0?void 0x0:_0xf63a4d[_0xe89827(0x18c)])&&((_0x908c56=_0xcde85e['args'][_0x1d1845])===null||_0x908c56===void 0x0?void 0x0:_0x908c56[_0xe89827(0x196)]))_0xcde85e[_0xe89827(0x18b)][_0x1d1845]=_0x260e38;else((_0x2f6f92=_0xcde85e[_0xe89827(0x18b)][_0x1d1845])===null||_0x2f6f92===void 0x0?void 0x0:_0x2f6f92[_0xe89827(0x17a)])==_0xe89827(0x189)&&_0xcde85e['args'][_0xe89827(0x172)](_0x1d1845,0x0,_0x260e38);const _0x22926d=this['ValidatorService'][_0xe89827(0x168)](_0x5571d2,_0xcde85e[_0xe89827(0x18b)][_0x1d1845],_0x525b47);_0x22926d&&(_0xcde85e[_0xe89827(0x18b)][_0x1d1845]=_0x22926d);}else{if((_0x554c2e===null||_0x554c2e===void 0x0?void 0x0:_0x554c2e['methodArgs'][_0x1d1845])&&((_0x580f39=_0xcde85e[_0xe89827(0x18b)][_0x1d1845])===null||_0x580f39===void 0x0?void 0x0:_0x580f39[_0xe89827(0x16b)])&&typeof _0xcde85e[_0xe89827(0x18b)][_0x1d1845]['param']==_0xe89827(0x17c)&&((_0xcfa9c3=_0x2c6954===null||_0x2c6954===void 0x0?void 0x0:_0x2c6954[_0xe89827(0x16b)])===null||_0xcfa9c3===void 0x0?void 0x0:_0xcfa9c3[_0x554c2e[_0xe89827(0x19e)][_0x1d1845]]))_0xcde85e[_0xe89827(0x18b)][_0x1d1845]=_0x2b110f((_0x5638b9=_0x2c6954===null||_0x2c6954===void 0x0?void 0x0:_0x2c6954[_0xe89827(0x16b)])===null||_0x5638b9===void 0x0?void 0x0:_0x5638b9[_0x554c2e['methodArgs'][_0x1d1845]]);else(_0x554c2e===null||_0x554c2e===void 0x0?void 0x0:_0x554c2e['methodArgs'][_0x1d1845])&&((_0x1cfd96=(_0x538da9=_0xcde85e['args'][_0x1d1845])===null||_0x538da9===void 0x0?void 0x0:_0x538da9[_0xe89827(0x16b)])===null||_0x1cfd96===void 0x0?void 0x0:_0x1cfd96[_0x554c2e['methodArgs'][_0x1d1845]])&&(_0xcde85e[_0xe89827(0x18b)][_0x1d1845]=(_0x3ba1de=(_0x3f37bf=_0xcde85e[_0xe89827(0x18b)][_0x1d1845])===null||_0x3f37bf===void 0x0?void 0x0:_0x3f37bf[_0xe89827(0x16b)])===null||_0x3ba1de===void 0x0?void 0x0:_0x3ba1de[_0x554c2e['methodArgs'][_0x1d1845]]);}}},'afterThrow':(_0x2f3075,_0x2fbc28)=>{throw _0x2fbc28;}};});}};__decorate([(0x0,core_2['Inject'])(),__metadata(a1_0x472a6d(0x181),core_1[a1_0x472a6d(0x192)])],CustomConfiguration[a1_0x472a6d(0x169)],'decorator',void 0x0),__decorate([(0x0,core_2[a1_0x472a6d(0x184)])(),__metadata(a1_0x472a6d(0x181),ValidatorService_1[a1_0x472a6d(0x188)])],CustomConfiguration['prototype'],a1_0x472a6d(0x188),void 0x0),CustomConfiguration=__decorate([(0x0,core_2[a1_0x472a6d(0x178)])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':'anncic-api:validator','importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x472a6d(0x173)]=CustomConfiguration;function a1_0x5a64(){const _0x734b9c=['object','propertyName','methodArgs','decorator','methodName','constructor','I18N_ATTR_KEY','search','decorate','request','@anncic-api/core','./interface','REQUEST_OBJ_CTX_KEY','validator','prototype','VALIDATOR_KEY','params','(((.+)+)+)+$','locale','method','length','835868hRtWlJ','getClassMetadata','splice','CustomConfiguration','./service/ValidatorService','26mHhALi','@midwayjs/i18n','__metadata','Configuration','3239115BaqufQ','name','172422hFfnlC','function','235670kmOJLS','getAttr','undefined','query','design:type','getOwnPropertyDescriptor','getMethodParamTypes','Inject','861456VDYELS','defineProperty','target','ValidatorService','bound\x20dispatch','toString','args','res','45zTSoEp','registerMethodHandler','body','onReady','__decorate','MidwayDecoratorService','14AwAaHl','804184RbVSkE','99qZYaHl','req','metadata','@midwayjs/core','24533xZMhYC','__esModule','apply'];a1_0x5a64=function(){return _0x734b9c;};return a1_0x5a64();}
|
package/dist/decorator/Rule.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0x195e92=a2_0x1c14;(function(_0x5ecddd,_0x27d283){const _0x22153a=a2_0x1c14,_0x24cabe=_0x5ecddd();while(!![]){try{const _0x281ee7=parseInt(_0x22153a(0xe9))/0x1+-parseInt(_0x22153a(0xd8))/0x2+-parseInt(_0x22153a(0xce))/0x3+parseInt(_0x22153a(0xd1))/0x4*(-parseInt(_0x22153a(0xe0))/0x5)+parseInt(_0x22153a(0xcc))/0x6+-parseInt(_0x22153a(0xd5))/0x7*(-parseInt(_0x22153a(0xd9))/0x8)+parseInt(_0x22153a(0xe8))/0x9;if(_0x281ee7===_0x27d283)break;else _0x24cabe['push'](_0x24cabe['shift']());}catch(_0x47b035){_0x24cabe['push'](_0x24cabe['shift']());}}}(a2_0x7919,0xd6df4));function a2_0x1c14(_0x440b88,_0x2e8d2f){const _0xdae29a=a2_0x7919();return a2_0x1c14=function(_0x3a4b3b,_0x3f7f4b){_0x3a4b3b=_0x3a4b3b-0xc8;let _0x791905=_0xdae29a[_0x3a4b3b];return _0x791905;},a2_0x1c14(_0x440b88,_0x2e8d2f);}const a2_0x3f7f4b=(function(){let _0x4126bd=!![];return function(_0xd19a80,_0x33be52){const _0x3ca4cf=_0x4126bd?function(){const _0x425f82=a2_0x1c14;if(_0x33be52){const _0x6744fb=_0x33be52[_0x425f82(0xcd)](_0xd19a80,arguments);return _0x33be52=null,_0x6744fb;}}:function(){};return _0x4126bd=![],_0x3ca4cf;};}()),a2_0x3a4b3b=a2_0x3f7f4b(this,function(){const _0x803a7e=a2_0x1c14;return a2_0x3a4b3b[_0x803a7e(0xdb)]()[_0x803a7e(0xeb)](_0x803a7e(0xd2))[_0x803a7e(0xdb)]()['constructor'](a2_0x3a4b3b)[_0x803a7e(0xeb)](_0x803a7e(0xd2));});a2_0x3a4b3b();'use strict';Object['defineProperty'](exports,a2_0x195e92(0xde),{'value':!![]}),exports[a2_0x195e92(0xe6)]=exports[a2_0x195e92(0xe1)]=void 0x0;const joi=require(a2_0x195e92(0xe5)),date_1=require(a2_0x195e92(0xe7)),core_1=require(a2_0x195e92(0xd0)),interface_1=require(a2_0x195e92(0xdf));exports[a2_0x195e92(0xe1)]=joi[a2_0x195e92(0xc9)](date_1[a2_0x195e92(0xe3)]);function Rule(_0x245b28,_0x7b4f96,_0x47fb44=''){return(_0xcbb50b,_0x521883)=>{const _0x3b7c0e=a2_0x1c14;var _0x100fcd;if(_0x521883)!joi['isSchema'](_0x7b4f96)&&(_0x7b4f96===null||_0x7b4f96===void 0x0?void 0x0:_0x7b4f96[_0x3b7c0e(0xdc)])&&(_0x7b4f96=joi['object']((0x0,core_1[_0x3b7c0e(0xe4)])(interface_1[_0x3b7c0e(0xd6)],_0x7b4f96))[_0x3b7c0e(0xcb)]({'id':_0x7b4f96[_0x3b7c0e(0xdc)]}),(0x0,core_1[_0x3b7c0e(0xdd)])(_0xcbb50b,_0x521883)[_0x3b7c0e(0xdc)]===_0x3b7c0e(0xca)&&(_0x7b4f96=joi['array']()['items'](_0x7b4f96))),joi[_0x3b7c0e(0xea)](_0x7b4f96)&&(_0x245b28&&typeof(_0x7b4f96===null||_0x7b4f96===void 0x0?void 0x0:_0x7b4f96[_0x3b7c0e(0xd3)])==_0x3b7c0e(0xc8)&&(_0x7b4f96=_0x7b4f96[_0x3b7c0e(0xd3)](_0x245b28)),_0x47fb44&&typeof(_0x7b4f96===null||_0x7b4f96===void 0x0?void 0x0:_0x7b4f96['description'])==_0x3b7c0e(0xc8)&&(_0x7b4f96=_0x7b4f96[_0x3b7c0e(0xcf)](_0x47fb44)),(0x0,core_1[_0x3b7c0e(0xd4)])(interface_1[_0x3b7c0e(0xd6)],_0x7b4f96,_0xcbb50b,_0x521883));else{const _0x5c295f=(0x0,core_1[_0x3b7c0e(0xe4)])(interface_1[_0x3b7c0e(0xd6)],_0x7b4f96);if(_0x5c295f){let _0x33afd2=(_0x100fcd=(0x0,core_1[_0x3b7c0e(0xe4)])(interface_1[_0x3b7c0e(0xd6)],_0xcbb50b))!==null&&_0x100fcd!==void 0x0?_0x100fcd:{};Object[_0x3b7c0e(0xe2)](_0x5c295f)[_0x3b7c0e(0xda)](_0x38d88b=>{!_0x33afd2[_0x38d88b]&&(_0x33afd2[_0x38d88b]=_0x5c295f[_0x38d88b]);}),(0x0,core_1[_0x3b7c0e(0xd7)])(interface_1[_0x3b7c0e(0xd6)],_0x33afd2,_0xcbb50b);}}};}exports[a2_0x195e92(0xe6)]=Rule;function a2_0x7919(){const _0x728a82=['20980KeSIxd','RuleType','keys','default','getClassMetadata','joi','Rule','@joi/date','466848tpkTXC','1010352lerCuS','isSchema','search','function','extend','Array','meta','1442142mhcvWB','apply','1730412VZEFdL','description','@midwayjs/core','1020jmCaFo','(((.+)+)+)+$','label','attachClassMetadata','88571zeMczD','RULES_KEY','saveClassMetadata','107268dnCPpO','808CqzIFQ','map','toString','name','getPropertyType','__esModule','../interface'];a2_0x7919=function(){return _0x728a82;};return a2_0x7919();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a3_0x5c80(_0x57ed4b,_0x34505b){const _0xd22d0c=a3_0x385a();return a3_0x5c80=function(_0x1519c2,_0x4e5a74){_0x1519c2=_0x1519c2-0xbc;let _0x385a3b=_0xd22d0c[_0x1519c2];return _0x385a3b;},a3_0x5c80(_0x57ed4b,_0x34505b);}function a3_0x385a(){const _0xdaf0cd=['19628lvBIBI','createCustomMethodDecorator','Validator','400820VVENWH','toString','279zBWqqj','../interface','getFuncArgs','22bnndBg','@midwayjs/core','(((.+)+)+)+$','defineProperty','apply','indexOf','VALIDATOR_KEY','search','6006340WqBXfZ','function','560640qZLTWP','match','constructor','136105uKBvaa','2TgIarx','__esModule','4552tjVOtI','prototype','replace','1157089QnNQvc','6350772tdIkUu','114gLYkne'];a3_0x385a=function(){return _0xdaf0cd;};return a3_0x385a();}const a3_0x26bf5f=a3_0x5c80;(function(_0x415722,_0x3f8d49){const _0x263f84=a3_0x5c80,_0xdadb34=_0x415722();while(!![]){try{const _0x25992f=parseInt(_0x263f84(0xc3))/0x1*(-parseInt(_0x263f84(0xbe))/0x2)+parseInt(_0x263f84(0xd8))/0x3+-parseInt(_0x263f84(0xd6))/0x4+-parseInt(_0x263f84(0xbd))/0x5*(parseInt(_0x263f84(0xc5))/0x6)+parseInt(_0x263f84(0xc6))/0x7*(parseInt(_0x263f84(0xc0))/0x8)+-parseInt(_0x263f84(0xcb))/0x9*(-parseInt(_0x263f84(0xc9))/0xa)+parseInt(_0x263f84(0xce))/0xb*(parseInt(_0x263f84(0xc4))/0xc);if(_0x25992f===_0x3f8d49)break;else _0xdadb34['push'](_0xdadb34['shift']());}catch(_0x1b4a4e){_0xdadb34['push'](_0xdadb34['shift']());}}}(a3_0x385a,0xdd8df));const a3_0x4e5a74=(function(){let _0x5a4e62=!![];return function(_0x2fabde,_0xc76ee5){const _0x356cbb=_0x5a4e62?function(){const _0x268081=a3_0x5c80;if(_0xc76ee5){const _0x4d79fa=_0xc76ee5[_0x268081(0xd2)](_0x2fabde,arguments);return _0xc76ee5=null,_0x4d79fa;}}:function(){};return _0x5a4e62=![],_0x356cbb;};}()),a3_0x1519c2=a3_0x4e5a74(this,function(){const _0x1d0d38=a3_0x5c80;return a3_0x1519c2[_0x1d0d38(0xca)]()[_0x1d0d38(0xd5)](_0x1d0d38(0xd0))[_0x1d0d38(0xca)]()[_0x1d0d38(0xbc)](a3_0x1519c2)[_0x1d0d38(0xd5)](_0x1d0d38(0xd0));});a3_0x1519c2();'use strict';Object[a3_0x26bf5f(0xd1)](exports,a3_0x26bf5f(0xbf),{'value':!![]}),exports[a3_0x26bf5f(0xcd)]=exports[a3_0x26bf5f(0xc8)]=void 0x0;const core_1=require(a3_0x26bf5f(0xcf)),interface_1=require(a3_0x26bf5f(0xcc));function Validator(_0x857137={}){return(_0x56af2e,_0x37b58f,_0x4d092d)=>{const _0x4fff09=a3_0x5c80,_0x126468=getFuncArgs(_0x56af2e[_0x37b58f]);(0x0,core_1['attachClassMetadata'])(interface_1[_0x4fff09(0xd4)],{'method':_0x37b58f,'methodArgs':_0x126468},_0x56af2e),(0x0,core_1[_0x4fff09(0xc7)])(interface_1['VALIDATOR_KEY'],_0x857137)(_0x56af2e,_0x37b58f,_0x4d092d);};}exports['Validator']=Validator;function getFuncArgs(_0x350d94){const _0xcff3a6=a3_0x26bf5f;if(typeof _0x350d94==_0xcff3a6(0xd7)){const _0x5951bd=/=>.*$/mg,_0xd1fcd8=/=[^,)]+/mg,_0x4fc635=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x3c376b=(_0x350d94['prototype']?_0x350d94[_0xcff3a6(0xc1)]['constructor']['toString']():_0x350d94['toString']())['replace'](_0x4fc635,'')[_0xcff3a6(0xc2)](_0x5951bd,'')[_0xcff3a6(0xc2)](_0xd1fcd8,''),_0x3840d2=_0x3c376b['slice'](_0x3c376b['indexOf']('(')+0x1,_0x3c376b[_0xcff3a6(0xd3)](')'))[_0xcff3a6(0xd9)](/([^\s,]+)/g)||[];return _0x3840d2;}}exports['getFuncArgs']=getFuncArgs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a4_0xe13f4=a4_0x5073;(function(_0x485557,_0x4c5352){var _0x250752=a4_0x5073,_0x52758f=_0x485557();while(!![]){try{var _0x8d88f7=parseInt(_0x250752(0xdc))/0x1*(parseInt(_0x250752(0xcf))/0x2)+parseInt(_0x250752(0xcb))/0x3+parseInt(_0x250752(0xc5))/0x4*(-parseInt(_0x250752(0xde))/0x5)+parseInt(_0x250752(0xd5))/0x6*(-parseInt(_0x250752(0xda))/0x7)+-parseInt(_0x250752(0xcd))/0x8*(-parseInt(_0x250752(0xd8))/0x9)+-parseInt(_0x250752(0xc7))/0xa+parseInt(_0x250752(0xc8))/0xb;if(_0x8d88f7===_0x4c5352)break;else _0x52758f['push'](_0x52758f['shift']());}catch(_0x3c1739){_0x52758f['push'](_0x52758f['shift']());}}}(a4_0x425e,0x5f03d));var a4_0x8422f9=(function(){var _0x3d29b9=!![];return function(_0x42bec1,_0x45a78e){var _0x43a768=_0x3d29b9?function(){if(_0x45a78e){var _0xf59120=_0x45a78e['apply'](_0x42bec1,arguments);return _0x45a78e=null,_0xf59120;}}:function(){};return _0x3d29b9=![],_0x43a768;};}()),a4_0x5cb72e=a4_0x8422f9(this,function(){var _0x1f1508=a4_0x5073;return a4_0x5cb72e[_0x1f1508(0xca)]()[_0x1f1508(0xd0)](_0x1f1508(0xd6))[_0x1f1508(0xca)]()[_0x1f1508(0xe3)](a4_0x5cb72e)['search']('(((.+)+)+)+$');});a4_0x5cb72e();'use strict';var __decorate=this&&this[a4_0xe13f4(0xc4)]||function(_0xa85ba9,_0x4fe226,_0x27b829,_0x69f7e6){var _0x50aa2a=a4_0xe13f4,_0x2ee7ff=arguments[_0x50aa2a(0xd7)],_0xc529b9=_0x2ee7ff<0x3?_0x4fe226:_0x69f7e6===null?_0x69f7e6=Object[_0x50aa2a(0xdf)](_0x4fe226,_0x27b829):_0x69f7e6,_0x154718;if(typeof Reflect===_0x50aa2a(0xdd)&&typeof Reflect[_0x50aa2a(0xe1)]===_0x50aa2a(0xd1))_0xc529b9=Reflect[_0x50aa2a(0xe1)](_0xa85ba9,_0x4fe226,_0x27b829,_0x69f7e6);else{for(var _0xe95ad0=_0xa85ba9[_0x50aa2a(0xd7)]-0x1;_0xe95ad0>=0x0;_0xe95ad0--)if(_0x154718=_0xa85ba9[_0xe95ad0])_0xc529b9=(_0x2ee7ff<0x3?_0x154718(_0xc529b9):_0x2ee7ff>0x3?_0x154718(_0x4fe226,_0x27b829,_0xc529b9):_0x154718(_0x4fe226,_0x27b829))||_0xc529b9;}return _0x2ee7ff>0x3&&_0xc529b9&&Object[_0x50aa2a(0xe0)](_0x4fe226,_0x27b829,_0xc529b9),_0xc529b9;},__metadata=this&&this[a4_0xe13f4(0xe2)]||function(_0x59a0cf,_0x661452){var _0x4f126e=a4_0xe13f4;if(typeof Reflect==='object'&&typeof Reflect[_0x4f126e(0xd2)]===_0x4f126e(0xd1))return Reflect[_0x4f126e(0xd2)](_0x59a0cf,_0x661452);};function a4_0x5073(_0x271343,_0x200c3b){var _0x411800=a4_0x425e();return a4_0x5073=function(_0x5cb72e,_0x8422f9){_0x5cb72e=_0x5cb72e-0xc4;var _0x425ebe=_0x411800[_0x5cb72e];return _0x425ebe;},a4_0x5073(_0x271343,_0x200c3b);}Object[a4_0xe13f4(0xe0)](exports,a4_0xe13f4(0xd3),{'value':!![]}),exports[a4_0xe13f4(0xd4)]=void 0x0;function a4_0x425e(){var _0x1e810c=['233994RbqCFw','search','function','metadata','__esModule','ValidatorError','18sjpExv','(((.+)+)+)+$','length','290124FsGymw','参数验证失败','380317FwBAEb','AnnErrorMsg','1yiTSdD','object','765565dHRgvm','getOwnPropertyDescriptor','defineProperty','decorate','__metadata','constructor','__decorate','12BNwQGq','design:type','7429660JLJgIH','7669772XjCWLS','PARAMS','toString','1273362lRLhWT','NOFIND_SCHEMA','128wCnTzf','@anncic-api/core'];a4_0x425e=function(){return _0x1e810c;};return a4_0x425e();}const core_1=require(a4_0xe13f4(0xce));class ValidatorError{}ValidatorError['PARAMS']=0x3df374,ValidatorError[a4_0xe13f4(0xcc)]=0x3df36a,__decorate([(0x0,core_1['AnnErrorMsg'])(a4_0xe13f4(0xd9)),__metadata(a4_0xe13f4(0xc6),Object)],ValidatorError,a4_0xe13f4(0xc9),void 0x0),__decorate([(0x0,core_1[a4_0xe13f4(0xdb)])(a4_0xe13f4(0xd9)),__metadata(a4_0xe13f4(0xc6),Object)],ValidatorError,a4_0xe13f4(0xcc),void 0x0),exports[a4_0xe13f4(0xd4)]=ValidatorError;
|
package/dist/helper/dtoHelper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x39bc1a=a5_0xd2bb;(function(_0x3d04b5,_0x2b92f8){const _0x462b0d=a5_0xd2bb,_0x3fd40c=_0x3d04b5();while(!![]){try{const _0x583902=-parseInt(_0x462b0d(0x18d))/0x1*(-parseInt(_0x462b0d(0x184))/0x2)+-parseInt(_0x462b0d(0x183))/0x3+-parseInt(_0x462b0d(0x185))/0x4*(-parseInt(_0x462b0d(0x197))/0x5)+parseInt(_0x462b0d(0x196))/0x6*(-parseInt(_0x462b0d(0x18b))/0x7)+-parseInt(_0x462b0d(0x190))/0x8+parseInt(_0x462b0d(0x195))/0x9+parseInt(_0x462b0d(0x186))/0xa*(parseInt(_0x462b0d(0x194))/0xb);if(_0x583902===_0x2b92f8)break;else _0x3fd40c['push'](_0x3fd40c['shift']());}catch(_0x328895){_0x3fd40c['push'](_0x3fd40c['shift']());}}}(a5_0x38f3,0xb30e1));function a5_0xd2bb(_0x10ee6f,_0x1684b0){const _0x4f1ce2=a5_0x38f3();return a5_0xd2bb=function(_0x13520b,_0x2de211){_0x13520b=_0x13520b-0x17f;let _0x38f3e1=_0x4f1ce2[_0x13520b];return _0x38f3e1;},a5_0xd2bb(_0x10ee6f,_0x1684b0);}const a5_0x2de211=(function(){let _0x5dbc20=!![];return function(_0x130f7f,_0x5e3f84){const _0x3cac7f=_0x5dbc20?function(){const _0x456528=a5_0xd2bb;if(_0x5e3f84){const _0x9a4fec=_0x5e3f84[_0x456528(0x189)](_0x130f7f,arguments);return _0x5e3f84=null,_0x9a4fec;}}:function(){};return _0x5dbc20=![],_0x3cac7f;};}()),a5_0x13520b=a5_0x2de211(this,function(){const _0x1498f1=a5_0xd2bb;return a5_0x13520b[_0x1498f1(0x18a)]()[_0x1498f1(0x193)]('(((.+)+)+)+$')[_0x1498f1(0x18a)]()['constructor'](a5_0x13520b)[_0x1498f1(0x193)]('(((.+)+)+)+$');});a5_0x13520b();'use strict';function a5_0x38f3(){const _0x54a4f8=['getClassExtendedMetadata','../interface','9906968DINarV','defineProperty','saveClassMetadata','search','4796qUDPtH','8922546ulwanU','7962flcTRx','1815355jtpHdb','RULES_KEY','OmitDto','__esModule','assign','925728waRAqW','2KsQfPn','8tXSjLb','27290RsjAxG','@midwayjs/core','PickDto','apply','toString','3598KSlzGu','prototype','55054QrycBX'];a5_0x38f3=function(){return _0x54a4f8;};return a5_0x38f3();}Object[a5_0x39bc1a(0x191)](exports,a5_0x39bc1a(0x181),{'value':!![]}),exports[a5_0x39bc1a(0x180)]=exports['PickDto']=void 0x0;const core_1=require(a5_0x39bc1a(0x187)),interface_1=require(a5_0x39bc1a(0x18f));function PickDto(_0x37e997,_0x26487d){const _0x4bf4f0=a5_0x39bc1a,_0x122f9a=function(){};_0x122f9a['prototype']=_0x37e997[_0x4bf4f0(0x18c)];const _0x8b08dd=(0x0,core_1[_0x4bf4f0(0x18e)])(interface_1[_0x4bf4f0(0x17f)],_0x37e997),_0x1d6680={};for(const _0x5bccb0 of _0x26487d){_0x8b08dd[_0x5bccb0]&&(_0x1d6680[_0x5bccb0]=_0x8b08dd[_0x5bccb0]);}return(0x0,core_1[_0x4bf4f0(0x192)])(interface_1[_0x4bf4f0(0x17f)],_0x1d6680,_0x122f9a),_0x122f9a;}exports[a5_0x39bc1a(0x188)]=PickDto;function OmitDto(_0x190384,_0xa23ad8){const _0x2c607c=a5_0x39bc1a,_0x5a5841=function(){};_0x5a5841['prototype']=_0x190384[_0x2c607c(0x18c)];const _0x395e62=(0x0,core_1[_0x2c607c(0x18e)])(interface_1[_0x2c607c(0x17f)],_0x190384),_0x5a31bb=Object[_0x2c607c(0x182)]({},_0x395e62);for(const _0x49ee17 of _0xa23ad8){delete _0x5a31bb[_0x49ee17];}return(0x0,core_1[_0x2c607c(0x192)])(interface_1['RULES_KEY'],_0x5a31bb,_0x5a5841),_0x5a5841;}exports[a5_0x39bc1a(0x180)]=OmitDto;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a6_0x57bde5=a6_0x2a96;function a6_0x4727(){var _0x424f53=['writable','./decorator/Validator','prototype','6152824ZCCAFZ','default','35mKpzEu','./helper/dtoHelper','55242pyscMa','apply','constructor','./service/ValidatorService','RuleType','./exception/ValidatorError','defineProperty','ValidatorError','__createBinding','call','3114430JxhzQt','(((.+)+)+)+$','Validator','ValidatorService','55xzeDRc','__esModule','2711676vfZrZV','Rule','search','./decorator/Rule','52494TmLNGg','./interface','toString','CustomConfiguration','__exportStar','configurable','3874745dZLnxN','Configuration','351330qZAIxC','9UGztSk','8XVInht','8FXTIfe'];a6_0x4727=function(){return _0x424f53;};return a6_0x4727();}(function(_0x29aca4,_0x30f719){var _0x4c1c8c=a6_0x2a96,_0x23469e=_0x29aca4();while(!![]){try{var _0x1e3192=-parseInt(_0x4c1c8c(0x177))/0x1*(-parseInt(_0x4c1c8c(0x180))/0x2)+parseInt(_0x4c1c8c(0x16d))/0x3*(-parseInt(_0x4c1c8c(0x178))/0x4)+-parseInt(_0x4c1c8c(0x17e))/0x5*(-parseInt(_0x4c1c8c(0x175))/0x6)+parseInt(_0x4c1c8c(0x173))/0x7+-parseInt(_0x4c1c8c(0x17c))/0x8*(-parseInt(_0x4c1c8c(0x176))/0x9)+-parseInt(_0x4c1c8c(0x163))/0xa+parseInt(_0x4c1c8c(0x167))/0xb*(-parseInt(_0x4c1c8c(0x169))/0xc);if(_0x1e3192===_0x30f719)break;else _0x23469e['push'](_0x23469e['shift']());}catch(_0x1848fc){_0x23469e['push'](_0x23469e['shift']());}}}(a6_0x4727,0x74803));var a6_0x27715f=(function(){var _0x365b44=!![];return function(_0x36febf,_0x50c386){var _0x2d5780=_0x365b44?function(){var _0x400c44=a6_0x2a96;if(_0x50c386){var _0x3bed36=_0x50c386[_0x400c44(0x181)](_0x36febf,arguments);return _0x50c386=null,_0x3bed36;}}:function(){};return _0x365b44=![],_0x2d5780;};}()),a6_0x4f7d3f=a6_0x27715f(this,function(){var _0x1527ae=a6_0x2a96;return a6_0x4f7d3f['toString']()[_0x1527ae(0x16b)]('(((.+)+)+)+$')[_0x1527ae(0x16f)]()[_0x1527ae(0x182)](a6_0x4f7d3f)[_0x1527ae(0x16b)](_0x1527ae(0x164));});a6_0x4f7d3f();'use strict';var __createBinding=this&&this[a6_0x57bde5(0x161)]||(Object['create']?function(_0x3b6ea1,_0x58e660,_0x59b120,_0x24f3a0){var _0x7c9b3e=a6_0x57bde5;if(_0x24f3a0===undefined)_0x24f3a0=_0x59b120;var _0x469dfb=Object['getOwnPropertyDescriptor'](_0x58e660,_0x59b120);(!_0x469dfb||('get'in _0x469dfb?!_0x58e660[_0x7c9b3e(0x168)]:_0x469dfb[_0x7c9b3e(0x179)]||_0x469dfb[_0x7c9b3e(0x172)]))&&(_0x469dfb={'enumerable':!![],'get':function(){return _0x58e660[_0x59b120];}}),Object[_0x7c9b3e(0x15f)](_0x3b6ea1,_0x24f3a0,_0x469dfb);}:function(_0x1a6dab,_0x4d4f2b,_0x4e6f7b,_0xd0bd02){if(_0xd0bd02===undefined)_0xd0bd02=_0x4e6f7b;_0x1a6dab[_0xd0bd02]=_0x4d4f2b[_0x4e6f7b];}),__exportStar=this&&this[a6_0x57bde5(0x171)]||function(_0x59e7c3,_0x2967c2){var _0x5aa429=a6_0x57bde5;for(var _0x1e50cf in _0x59e7c3)if(_0x1e50cf!==_0x5aa429(0x17d)&&!Object[_0x5aa429(0x17b)]['hasOwnProperty'][_0x5aa429(0x162)](_0x2967c2,_0x1e50cf))__createBinding(_0x2967c2,_0x59e7c3,_0x1e50cf);};Object[a6_0x57bde5(0x15f)](exports,a6_0x57bde5(0x168),{'value':!![]}),exports[a6_0x57bde5(0x174)]=exports[a6_0x57bde5(0x166)]=exports[a6_0x57bde5(0x160)]=exports[a6_0x57bde5(0x15d)]=exports[a6_0x57bde5(0x16a)]=exports[a6_0x57bde5(0x165)]=void 0x0,__exportStar(require(a6_0x57bde5(0x16e)),exports),__exportStar(require(a6_0x57bde5(0x17f)),exports);var Validator_1=require(a6_0x57bde5(0x17a));Object[a6_0x57bde5(0x15f)](exports,a6_0x57bde5(0x165),{'enumerable':!![],'get':function(){var _0x38f4a4=a6_0x57bde5;return Validator_1[_0x38f4a4(0x165)];}});var Rule_1=require(a6_0x57bde5(0x16c));Object[a6_0x57bde5(0x15f)](exports,'Rule',{'enumerable':!![],'get':function(){var _0x6a204c=a6_0x57bde5;return Rule_1[_0x6a204c(0x16a)];}}),Object['defineProperty'](exports,'RuleType',{'enumerable':!![],'get':function(){var _0x37a75d=a6_0x57bde5;return Rule_1[_0x37a75d(0x15d)];}});var ValidatorError_1=require(a6_0x57bde5(0x15e));Object['defineProperty'](exports,a6_0x57bde5(0x160),{'enumerable':!![],'get':function(){var _0x23bf88=a6_0x57bde5;return ValidatorError_1[_0x23bf88(0x160)];}});function a6_0x2a96(_0x3b6b8c,_0x31d90d){var _0x40b9c4=a6_0x4727();return a6_0x2a96=function(_0x4f7d3f,_0x27715f){_0x4f7d3f=_0x4f7d3f-0x15c;var _0x472732=_0x40b9c4[_0x4f7d3f];return _0x472732;},a6_0x2a96(_0x3b6b8c,_0x31d90d);}var ValidatorService_1=require(a6_0x57bde5(0x15c));Object[a6_0x57bde5(0x15f)](exports,'ValidatorService',{'enumerable':!![],'get':function(){var _0x44d4ac=a6_0x57bde5;return ValidatorService_1[_0x44d4ac(0x166)];}});var configuration_1=require('./configuration');Object['defineProperty'](exports,a6_0x57bde5(0x174),{'enumerable':!![],'get':function(){var _0x127190=a6_0x57bde5;return configuration_1[_0x127190(0x170)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a7_0x353b9f=a7_0x49b1;(function(_0x14c516,_0x928944){var _0x25b36a=a7_0x49b1,_0x171c4d=_0x14c516();while(!![]){try{var _0x5afc21=parseInt(_0x25b36a(0x18b))/0x1+parseInt(_0x25b36a(0x189))/0x2+-parseInt(_0x25b36a(0x17f))/0x3+-parseInt(_0x25b36a(0x185))/0x4*(parseInt(_0x25b36a(0x181))/0x5)+parseInt(_0x25b36a(0x188))/0x6+-parseInt(_0x25b36a(0x17e))/0x7+parseInt(_0x25b36a(0x183))/0x8;if(_0x5afc21===_0x928944)break;else _0x171c4d['push'](_0x171c4d['shift']());}catch(_0x29a1a7){_0x171c4d['push'](_0x171c4d['shift']());}}}(a7_0x3e6f,0xcde87));var a7_0x105223=(function(){var _0x469b63=!![];return function(_0x4e8891,_0x4a2c30){var _0xa58a75=_0x469b63?function(){var _0x1f35e2=a7_0x49b1;if(_0x4a2c30){var _0x1ddc6f=_0x4a2c30[_0x1f35e2(0x182)](_0x4e8891,arguments);return _0x4a2c30=null,_0x1ddc6f;}}:function(){};return _0x469b63=![],_0xa58a75;};}()),a7_0x24a7d7=a7_0x105223(this,function(){var _0x2ff6a3=a7_0x49b1;return a7_0x24a7d7[_0x2ff6a3(0x186)]()['search'](_0x2ff6a3(0x180))['toString']()[_0x2ff6a3(0x18a)](a7_0x24a7d7)['search'](_0x2ff6a3(0x180));});a7_0x24a7d7();function a7_0x3e6f(){var _0xe54d14=['9186205erQCyt','2966607Qvahpg','(((.+)+)+)+$','18815bRWvbK','apply','16761128fSoksB','anncic-api:validator:rules','956ZMAoUV','toString','defineProperty','7583442OJdUDr','1134162bewSSa','constructor','117811WHNqre','anncic-api:validator:validator','VALIDATOR_KEY'];a7_0x3e6f=function(){return _0xe54d14;};return a7_0x3e6f();}function a7_0x49b1(_0x139777,_0xa141b9){var _0x49031d=a7_0x3e6f();return a7_0x49b1=function(_0x24a7d7,_0x105223){_0x24a7d7=_0x24a7d7-0x17c;var _0x3e6fdf=_0x49031d[_0x24a7d7];return _0x3e6fdf;},a7_0x49b1(_0x139777,_0xa141b9);}'use strict';Object[a7_0x353b9f(0x187)](exports,'__esModule',{'value':!![]}),exports[a7_0x353b9f(0x17d)]=exports['RULES_KEY']=void 0x0,exports['RULES_KEY']=a7_0x353b9f(0x184),exports[a7_0x353b9f(0x17d)]=a7_0x353b9f(0x17c);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a8_0x508409=a8_0x173a;(function(_0x104ef0,_0x59c015){const _0x9169fc=a8_0x173a,_0x3c9ab7=_0x104ef0();while(!![]){try{const _0x25cdfd=-parseInt(_0x9169fc(0x11f))/0x1+-parseInt(_0x9169fc(0x109))/0x2*(parseInt(_0x9169fc(0x128))/0x3)+parseInt(_0x9169fc(0x101))/0x4+-parseInt(_0x9169fc(0xe3))/0x5+-parseInt(_0x9169fc(0x102))/0x6+-parseInt(_0x9169fc(0x114))/0x7*(-parseInt(_0x9169fc(0xf5))/0x8)+parseInt(_0x9169fc(0x117))/0x9;if(_0x25cdfd===_0x59c015)break;else _0x3c9ab7['push'](_0x3c9ab7['shift']());}catch(_0x45c4c5){_0x3c9ab7['push'](_0x3c9ab7['shift']());}}}(a8_0x5809,0x3e101));const a8_0x2368f3=(function(){let _0x59c5ae=!![];return function(_0x171763,_0x49eedb){const _0xd5970f=_0x59c5ae?function(){const _0x11d319=a8_0x173a;if(_0x49eedb){const _0x3a7151=_0x49eedb[_0x11d319(0x126)](_0x171763,arguments);return _0x49eedb=null,_0x3a7151;}}:function(){};return _0x59c5ae=![],_0xd5970f;};}()),a8_0xc717e4=a8_0x2368f3(this,function(){const _0x942c=a8_0x173a;return a8_0xc717e4[_0x942c(0xe2)]()[_0x942c(0xea)](_0x942c(0xfb))[_0x942c(0xe2)]()[_0x942c(0xfa)](a8_0xc717e4)[_0x942c(0xea)](_0x942c(0xfb));});a8_0xc717e4();'use strict';function a8_0x173a(_0x4e2fd7,_0xe3b3db){const _0x3f9e96=a8_0x5809();return a8_0x173a=function(_0xc717e4,_0x2368f3){_0xc717e4=_0xc717e4-0xe1;let _0x5809be=_0x3f9e96[_0xc717e4];return _0x5809be;},a8_0x173a(_0x4e2fd7,_0xe3b3db);}var __decorate=this&&this[a8_0x508409(0x113)]||function(_0x5ea88d,_0x395bf5,_0x2800d8,_0x2880de){const _0xbbce09=a8_0x508409;var _0x64b6d4=arguments[_0xbbce09(0x121)],_0x1953b8=_0x64b6d4<0x3?_0x395bf5:_0x2880de===null?_0x2880de=Object[_0xbbce09(0xf6)](_0x395bf5,_0x2800d8):_0x2880de,_0x3e2ac2;if(typeof Reflect===_0xbbce09(0xe6)&&typeof Reflect[_0xbbce09(0xee)]===_0xbbce09(0x127))_0x1953b8=Reflect['decorate'](_0x5ea88d,_0x395bf5,_0x2800d8,_0x2880de);else{for(var _0x18acbd=_0x5ea88d[_0xbbce09(0x121)]-0x1;_0x18acbd>=0x0;_0x18acbd--)if(_0x3e2ac2=_0x5ea88d[_0x18acbd])_0x1953b8=(_0x64b6d4<0x3?_0x3e2ac2(_0x1953b8):_0x64b6d4>0x3?_0x3e2ac2(_0x395bf5,_0x2800d8,_0x1953b8):_0x3e2ac2(_0x395bf5,_0x2800d8))||_0x1953b8;}return _0x64b6d4>0x3&&_0x1953b8&&Object['defineProperty'](_0x395bf5,_0x2800d8,_0x1953b8),_0x1953b8;},__metadata=this&&this[a8_0x508409(0xef)]||function(_0xc4ef7f,_0x33191b){const _0xd691ec=a8_0x508409;if(typeof Reflect===_0xd691ec(0xe6)&&typeof Reflect['metadata']===_0xd691ec(0x127))return Reflect[_0xd691ec(0x115)](_0xc4ef7f,_0x33191b);};function a8_0x5809(){const _0xda11e0=['apply','function','444elXNEp','参数验证失败','toString','969250hFuyog','$_terms','message','object','error','Provide','schema','search','Init','ValidatorService','design:paramtypes','decorate','__metadata','PARAMS','init','details','validator-result','RULES_KEY','24WwdjiC','getOwnPropertyDescriptor','validatorConfig','getAvailableLocale','ValidatorError','constructor','(((.+)+)+)+$','../interface','type','ScopeEnum','log','validationOptions','1959240seIBuM','2244438OmJZsH','errors','design:returntype','NOFIND_SCHEMA','keys','forEach','getLocaleMapping','3704OFXuaC','getSchema','YYYY-MM-DD\x20HH:mm:ss','language','validator','date','key','_flags','format','assign','__decorate','983703lTDszl','metadata','messages','5817870PExlbB','i18nConfig','defineProperty','value','locale','i18nService','Config','design:type','461599ReApzM','formatLocale','length','@midwayjs/core','getClassExtendedMetadata','prototype','validate'];a8_0x5809=function(){return _0xda11e0;};return a8_0x5809();}Object[a8_0x508409(0x119)](exports,'__esModule',{'value':!![]}),exports[a8_0x508409(0xec)]=void 0x0;const Joi=require('joi'),i18n_1=require('@midwayjs/i18n'),core_1=require(a8_0x508409(0x122)),interface_1=require(a8_0x508409(0xfc)),ValidatorError_1=require('../exception/ValidatorError');let ValidatorService=class ValidatorService{constructor(){const _0x1a946a=a8_0x508409;this[_0x1a946a(0x116)]={};}async[a8_0x508409(0xf1)](){const _0xa9df7b=a8_0x508409,_0xfcb5f6=Object[_0xa9df7b(0x106)](this[_0xa9df7b(0x118)]['localeTable']);_0xfcb5f6[_0xa9df7b(0x107)](_0x5c68ec=>{const _0x9e6a1d=_0xa9df7b;this['messages'][(0x0,i18n_1[_0x9e6a1d(0x120)])(_0x5c68ec)]=Object['fromEntries'](this[_0x9e6a1d(0x11c)][_0x9e6a1d(0x108)](_0x5c68ec,'validator'));});}['getSchema'](_0x56d962){const _0x247615=a8_0x508409,_0x5afcc3=(0x0,core_1[_0x247615(0x123)])(interface_1[_0x247615(0xf4)],_0x56d962);return _0x5afcc3?Joi[_0x247615(0xe6)](_0x5afcc3):undefined;}[a8_0x508409(0x10d)](_0x1685e0,_0x2c895a,_0x5001f6={}){const _0x3d642e=a8_0x508409;var _0x5df817,_0x9e0472,_0x203f55,_0x1181c4,_0x2a48e4,_0x16e011;const _0x53cf0c=Joi['isSchema'](_0x1685e0)?_0x1685e0:this[_0x3d642e(0x10a)](_0x1685e0);if(!_0x53cf0c)throw new AnnError(ValidatorError_1[_0x3d642e(0xf9)][_0x3d642e(0x105)]);_0x5001f6[_0x3d642e(0x100)]=Object[_0x3d642e(0x112)]((_0x5df817=this[_0x3d642e(0xf7)][_0x3d642e(0x100)])!==null&&_0x5df817!==void 0x0?_0x5df817:{},{'messages':this[_0x3d642e(0x116)]},_0x5001f6[_0x3d642e(0x100)]||{}),_0x5001f6['validationOptions']['errors']=_0x5001f6[_0x3d642e(0x100)][_0x3d642e(0x103)]||{},_0x5001f6[_0x3d642e(0x100)]['errors'][_0x3d642e(0x10c)]=(0x0,i18n_1[_0x3d642e(0x120)])(this['i18nService'][_0x3d642e(0xf8)](_0x5001f6[_0x3d642e(0x100)][_0x3d642e(0x103)][_0x3d642e(0x10c)]||_0x5001f6[_0x3d642e(0x11b)]||this[_0x3d642e(0x118)]['defaultLocale'],_0x3d642e(0x10d)));const _0x2883e8=_0x53cf0c[_0x3d642e(0x125)](_0x2c895a,_0x5001f6[_0x3d642e(0x100)]);console[_0x3d642e(0xff)](_0x3d642e(0xf3),_0x2883e8);if(_0x2883e8===null||_0x2883e8===void 0x0?void 0x0:_0x2883e8[_0x3d642e(0xe7)]){if(_0x2883e8[_0x3d642e(0xe7)]instanceof AnnError)throw _0x2883e8['error'];else{if(_0x2883e8[_0x3d642e(0xe7)]instanceof Error)throw new AnnError(ValidatorError_1[_0x3d642e(0xf9)][_0x3d642e(0xf0)],{'message':((_0x9e0472=_0x2883e8[_0x3d642e(0xe7)])===null||_0x9e0472===void 0x0?void 0x0:_0x9e0472['message'])||'参数验证失败'});else throw new AnnError(ValidatorError_1[_0x3d642e(0xf9)][_0x3d642e(0xf0)],{'message':((_0x2a48e4=(_0x1181c4=(_0x203f55=_0x2883e8[_0x3d642e(0xe7)])===null||_0x203f55===void 0x0?void 0x0:_0x203f55[_0x3d642e(0xf2)])===null||_0x1181c4===void 0x0?void 0x0:_0x1181c4[0x0])===null||_0x2a48e4===void 0x0?void 0x0:_0x2a48e4[_0x3d642e(0xe5)])||_0x3d642e(0xe1)});}}if(_0x2883e8===null||_0x2883e8===void 0x0?void 0x0:_0x2883e8['value']){const _0x13b746=(_0x16e011=_0x53cf0c===null||_0x53cf0c===void 0x0?void 0x0:_0x53cf0c[_0x3d642e(0xe4)])===null||_0x16e011===void 0x0?void 0x0:_0x16e011['keys'],_0x148d49=function(_0x546a74,_0x9fc152){const _0x510ea1=_0x3d642e;var _0x2cdce9,_0x42e674,_0x54f418,_0x12712a,_0x43faa5,_0x139d0b,_0x582608,_0x55d30b,_0x3c1ae3,_0x311a2a,_0x3cb2de;for(let _0x58cd07 in _0x546a74){if(_0x9fc152[(_0x2cdce9=_0x546a74[_0x58cd07])===null||_0x2cdce9===void 0x0?void 0x0:_0x2cdce9['key']]&&((_0x54f418=(_0x42e674=_0x546a74[_0x58cd07])===null||_0x42e674===void 0x0?void 0x0:_0x42e674[_0x510ea1(0xe9)])===null||_0x54f418===void 0x0?void 0x0:_0x54f418[_0x510ea1(0xfd)])){if(((_0x43faa5=(_0x12712a=_0x546a74[_0x58cd07])===null||_0x12712a===void 0x0?void 0x0:_0x12712a[_0x510ea1(0xe9)])===null||_0x43faa5===void 0x0?void 0x0:_0x43faa5[_0x510ea1(0xfd)])==_0x510ea1(0xe6))_0x9fc152[_0x546a74[_0x58cd07]['key']]=_0x148d49((_0x582608=(_0x139d0b=_0x546a74[_0x58cd07])===null||_0x139d0b===void 0x0?void 0x0:_0x139d0b[_0x510ea1(0xe9)][_0x510ea1(0xe4)])===null||_0x582608===void 0x0?void 0x0:_0x582608['keys'],_0x9fc152[_0x546a74[_0x58cd07]['key']]);else{if(_0x546a74[_0x58cd07][_0x510ea1(0xe9)]['type']==_0x510ea1(0x10e)&&_0x2883e8[_0x510ea1(0x11a)][(_0x55d30b=_0x546a74[_0x58cd07])===null||_0x55d30b===void 0x0?void 0x0:_0x55d30b[_0x510ea1(0x10f)]]){const _0xa181e0=((_0x3cb2de=(_0x311a2a=(_0x3c1ae3=_0x546a74[_0x58cd07])===null||_0x3c1ae3===void 0x0?void 0x0:_0x3c1ae3[_0x510ea1(0xe9)])===null||_0x311a2a===void 0x0?void 0x0:_0x311a2a[_0x510ea1(0x110)])===null||_0x3cb2de===void 0x0?void 0x0:_0x3cb2de[_0x510ea1(0x111)])||_0x510ea1(0x10b);_0x9fc152[_0x546a74[_0x58cd07][_0x510ea1(0x10f)]]=dayjs(_0x2883e8[_0x510ea1(0x11a)][_0x546a74[_0x58cd07][_0x510ea1(0x10f)]])['format'](_0xa181e0);}}}}return _0x9fc152;};return _0x148d49(_0x13b746,_0x2883e8[_0x3d642e(0x11a)]);}throw new AnnError(ValidatorError_1[_0x3d642e(0xf9)][_0x3d642e(0xf0)]);}};__decorate([(0x0,core_1['Config'])('i18n'),__metadata(a8_0x508409(0x11e),Object)],ValidatorService[a8_0x508409(0x124)],a8_0x508409(0x118),void 0x0),__decorate([(0x0,core_1[a8_0x508409(0x11d)])(a8_0x508409(0x10d)),__metadata('design:type',Object)],ValidatorService[a8_0x508409(0x124)],a8_0x508409(0xf7),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a8_0x508409(0x11e),i18n_1['MidwayI18nServiceSingleton'])],ValidatorService[a8_0x508409(0x124)],a8_0x508409(0x11c),void 0x0),__decorate([(0x0,core_1[a8_0x508409(0xeb)])(),__metadata(a8_0x508409(0x11e),Function),__metadata(a8_0x508409(0xed),[]),__metadata(a8_0x508409(0x104),Promise)],ValidatorService[a8_0x508409(0x124)],a8_0x508409(0xf1),null),ValidatorService=__decorate([(0x0,core_1[a8_0x508409(0xe8)])(a8_0x508409(0x10d)),(0x0,core_1['Scope'])(core_1[a8_0x508409(0xfe)]['Singleton'])],ValidatorService),exports[a8_0x508409(0xec)]=ValidatorService;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/validator",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.9",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/core": "^1.5.
|
|
20
|
+
"@anncic-api/core": "^1.5.9",
|
|
21
21
|
"@joi/date": "^2.1.0",
|
|
22
22
|
"joi": "^17.7.0"
|
|
23
23
|
},
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"javascript-obfuscator": "^4.0.0",
|
|
27
27
|
"typescript": "^4.7.4"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "027b7ec1703d6d53028a5cd66c5d5e35765f91b3"
|
|
30
30
|
}
|