@anncic-api/validator 3.2.8 → 3.2.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
|
+
const a0_0x1f3689=a0_0x29d2;(function(_0x4ca5b5,_0x3b64b4){const _0x336f5e=a0_0x29d2,_0x121d9b=_0x4ca5b5();while(!![]){try{const _0x5e19a4=-parseInt(_0x336f5e(0xcc))/0x1*(-parseInt(_0x336f5e(0xd6))/0x2)+-parseInt(_0x336f5e(0xd8))/0x3+-parseInt(_0x336f5e(0xc9))/0x4*(parseInt(_0x336f5e(0xd0))/0x5)+parseInt(_0x336f5e(0xd1))/0x6+parseInt(_0x336f5e(0xd3))/0x7+-parseInt(_0x336f5e(0xd7))/0x8+parseInt(_0x336f5e(0xd4))/0x9;if(_0x5e19a4===_0x3b64b4)break;else _0x121d9b['push'](_0x121d9b['shift']());}catch(_0x559131){_0x121d9b['push'](_0x121d9b['shift']());}}}(a0_0x542c,0x88c1b));const a0_0xa08c62=(function(){let _0x49cd65=!![];return function(_0x64a79d,_0x14660e){const _0x2fee7e=_0x49cd65?function(){const _0x31ce8f=a0_0x29d2;if(_0x14660e){const _0x4cb089=_0x14660e[_0x31ce8f(0xca)](_0x64a79d,arguments);return _0x14660e=null,_0x4cb089;}}:function(){};return _0x49cd65=![],_0x2fee7e;};}()),a0_0xbf1a35=a0_0xa08c62(this,function(){const _0x7ef282=a0_0x29d2;return a0_0xbf1a35[_0x7ef282(0xd2)]()[_0x7ef282(0xcd)](_0x7ef282(0xcf))[_0x7ef282(0xd2)]()['constructor'](a0_0xbf1a35)[_0x7ef282(0xcd)](_0x7ef282(0xcf));});a0_0xbf1a35();function a0_0x29d2(_0x37c91e,_0x35c86b){const _0xc2074e=a0_0x542c();return a0_0x29d2=function(_0xbf1a35,_0xa08c62){_0xbf1a35=_0xbf1a35-0xc5;let _0x542ca2=_0xc2074e[_0xbf1a35];return _0x542ca2;},a0_0x29d2(_0x37c91e,_0x35c86b);}'use strict';Object[a0_0x1f3689(0xce)](exports,a0_0x1f3689(0xd9),{'value':!![]});const ValidatorError_1=require(a0_0x1f3689(0xcb));exports[a0_0x1f3689(0xd5)]={'validator':{'errorStatus':ValidatorError_1['ValidatorError'][a0_0x1f3689(0xc7)],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':a0_0x1f3689(0xc5)}},'i18n':{'localeTable':{'en_US':{'validator':require(a0_0x1f3689(0xc8))},'zh_CN':{'validator':require(a0_0x1f3689(0xc6))}}}};function a0_0x542c(){const _0x1e9af0=['../../locales/zh_CN.json','PARAMS','../../locales/en_US.json','232nPkRvZ','apply','../exception/ValidatorError','14RxzyUx','search','defineProperty','(((.+)+)+)+$','63565SpHXWX','6454650ZnSEjT','toString','6940556gWkdjv','802836MfbWfN','default','5474lvcGHl','5161920gvjJoU','756168vecPQt','__esModule','string'];a0_0x542c=function(){return _0x1e9af0;};return a0_0x542c();}
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a1_0x277f79=a1_0x5b4f;(function(_0x1c0da3,_0x16ed66){const _0x476233=a1_0x5b4f,_0xdb740d=_0x1c0da3();while(!![]){try{const _0x4810a6=parseInt(_0x476233(0x1a3))/0x1+parseInt(_0x476233(0x1cb))/0x2+parseInt(_0x476233(0x1b1))/0x3+-parseInt(_0x476233(0x1a7))/0x4+-parseInt(_0x476233(0x19d))/0x5+parseInt(_0x476233(0x1b7))/0x6*(-parseInt(_0x476233(0x1c9))/0x7)+-parseInt(_0x476233(0x1c0))/0x8;if(_0x4810a6===_0x16ed66)break;else _0xdb740d['push'](_0xdb740d['shift']());}catch(_0x13eee0){_0xdb740d['push'](_0xdb740d['shift']());}}}(a1_0x13ad,0x8bb4e));function a1_0x5b4f(_0xa9c70e,_0x561964){const _0x8360c0=a1_0x13ad();return a1_0x5b4f=function(_0x14cb92,_0x184b4b){_0x14cb92=_0x14cb92-0x198;let _0x13ad9f=_0x8360c0[_0x14cb92];return _0x13ad9f;},a1_0x5b4f(_0xa9c70e,_0x561964);}const a1_0x184b4b=(function(){let _0x1b2f70=!![];return function(_0x1b6cec,_0x279aac){const _0x529c48=_0x1b2f70?function(){const _0xa28503=a1_0x5b4f;if(_0x279aac){const _0x5d8b8f=_0x279aac[_0xa28503(0x1ab)](_0x1b6cec,arguments);return _0x279aac=null,_0x5d8b8f;}}:function(){};return _0x1b2f70=![],_0x529c48;};}()),a1_0x14cb92=a1_0x184b4b(this,function(){const _0xc07fbf=a1_0x5b4f;return a1_0x14cb92['toString']()['search'](_0xc07fbf(0x198))['toString']()[_0xc07fbf(0x1a5)](a1_0x14cb92)[_0xc07fbf(0x1a0)]('(((.+)+)+)+$');});a1_0x14cb92();'use strict';function a1_0x13ad(){const _0x53f717=['defineProperty','find','methodArgs','2719272xniZdl','query','length','@midwayjs/core','prototype','locale','method','param','CustomConfiguration','77QELVPt','getMethodParamTypes','2279310FJWSXj','Inject','decorator','(((.+)+)+)+$','design:type','__esModule','propertyName','ValidatorService','1266975NPLngC','splice','VALIDATOR_KEY','search','__metadata','object','78366nBRtdC','./config/config.default','constructor','anncic-api:validator','2116292ibjDgm','function','assign','res','apply','__decorate','getAttr','getSchema','Configuration','getClassMetadata','2288673wOewvf','params','target','./interface','@midwayjs/i18n','args','156162ujroAV','getOwnPropertyDescriptor','I18N_ATTR_KEY','./service/ValidatorService','metadata','body'];a1_0x13ad=function(){return _0x53f717;};return a1_0x13ad();}var __decorate=this&&this[a1_0x277f79(0x1ac)]||function(_0x288343,_0x2ebd9b,_0x27d5ea,_0x547d72){const _0x4800d8=a1_0x277f79;var _0x263c9e=arguments[_0x4800d8(0x1c2)],_0x7daa35=_0x263c9e<0x3?_0x2ebd9b:_0x547d72===null?_0x547d72=Object[_0x4800d8(0x1b8)](_0x2ebd9b,_0x27d5ea):_0x547d72,_0x82c11c;if(typeof Reflect===_0x4800d8(0x1a2)&&typeof Reflect['decorate']===_0x4800d8(0x1a8))_0x7daa35=Reflect['decorate'](_0x288343,_0x2ebd9b,_0x27d5ea,_0x547d72);else{for(var _0x351e96=_0x288343[_0x4800d8(0x1c2)]-0x1;_0x351e96>=0x0;_0x351e96--)if(_0x82c11c=_0x288343[_0x351e96])_0x7daa35=(_0x263c9e<0x3?_0x82c11c(_0x7daa35):_0x263c9e>0x3?_0x82c11c(_0x2ebd9b,_0x27d5ea,_0x7daa35):_0x82c11c(_0x2ebd9b,_0x27d5ea))||_0x7daa35;}return _0x263c9e>0x3&&_0x7daa35&&Object[_0x4800d8(0x1bd)](_0x2ebd9b,_0x27d5ea,_0x7daa35),_0x7daa35;},__metadata=this&&this[a1_0x277f79(0x1a1)]||function(_0x23911d,_0x45e220){const _0x4b6331=a1_0x277f79;if(typeof Reflect==='object'&&typeof Reflect['metadata']===_0x4b6331(0x1a8))return Reflect[_0x4b6331(0x1bb)](_0x23911d,_0x45e220);};Object['defineProperty'](exports,a1_0x277f79(0x19a),{'value':!![]}),exports[a1_0x277f79(0x1c8)]=void 0x0;const i18n_1=require(a1_0x277f79(0x1b5)),core_1=require(a1_0x277f79(0x1c3)),core_2=require(a1_0x277f79(0x1c3)),interface_1=require(a1_0x277f79(0x1b4)),ValidatorService_1=require(a1_0x277f79(0x1ba)),i18n=require(a1_0x277f79(0x1b5)),anncic=require('@anncic-api/core'),ConfigDefault=require(a1_0x277f79(0x1a4));let CustomConfiguration=exports['CustomConfiguration']=class CustomConfiguration{async['onReady'](){this['decorator']['registerMethodHandler'](interface_1['VALIDATOR_KEY'],_0x468081=>{const _0x34f263=a1_0x5b4f,_0x4cc3a3=_0x468081[_0x34f263(0x1bb)],_0x219475=(0x0,core_2[_0x34f263(0x1ca)])(_0x468081[_0x34f263(0x1b3)],_0x468081[_0x34f263(0x19b)]);return{'before':_0x49bbeb=>{const _0x22ca72=_0x34f263;var _0x5b8d87,_0x41ccc1,_0x3e79fd,_0x507950,_0xcfc7c,_0x459d3,_0x44e38a,_0x1d093b,_0x279adc,_0x1f6fc3,_0x401c93,_0x27a5de,_0xb928bc;const _0x58c368=_0x49bbeb['target'][core_1['REQUEST_OBJ_CTX_KEY']],_0x2421e7=Object[_0x22ca72(0x1a9)]({},((_0x5b8d87=_0x58c368===null||_0x58c368===void 0x0?void 0x0:_0x58c368['request'])===null||_0x5b8d87===void 0x0?void 0x0:_0x5b8d87[_0x22ca72(0x1c1)])||{},((_0x41ccc1=_0x58c368===null||_0x58c368===void 0x0?void 0x0:_0x58c368['request'])===null||_0x41ccc1===void 0x0?void 0x0:_0x41ccc1[_0x22ca72(0x1bc)])||{}),_0x459b34=((0x0,core_2[_0x22ca72(0x1b0)])(interface_1[_0x22ca72(0x19f)],_0x49bbeb[_0x22ca72(0x1b3)])||[])[_0x22ca72(0x1be)](_0x309469=>_0x309469[_0x22ca72(0x1c6)]==_0x49bbeb['methodName']);!(_0x4cc3a3===null||_0x4cc3a3===void 0x0?void 0x0:_0x4cc3a3[_0x22ca72(0x1c5)])&&_0x58c368&&_0x58c368[_0x22ca72(0x1ad)]&&(_0x4cc3a3[_0x22ca72(0x1c5)]=_0x58c368[_0x22ca72(0x1ad)](i18n_1[_0x22ca72(0x1b9)]));for(let _0x4a3359=0x0;_0x4a3359<_0x219475[_0x22ca72(0x1c2)];_0x4a3359++){const _0x6025c5=_0x219475[_0x4a3359],_0x5e9386=this[_0x22ca72(0x19c)][_0x22ca72(0x1ae)](_0x6025c5);if(_0x5e9386){if(typeof _0x49bbeb[_0x22ca72(0x1b6)][_0x4a3359]=='undefined'||((_0x3e79fd=_0x49bbeb[_0x22ca72(0x1b6)][_0x4a3359])===null||_0x3e79fd===void 0x0?void 0x0:_0x3e79fd['request'])&&((_0x507950=_0x49bbeb[_0x22ca72(0x1b6)][_0x4a3359])===null||_0x507950===void 0x0?void 0x0:_0x507950[_0x22ca72(0x1aa)])&&((_0xcfc7c=_0x49bbeb[_0x22ca72(0x1b6)][_0x4a3359])===null||_0xcfc7c===void 0x0?void 0x0:_0xcfc7c['req']))_0x49bbeb['args'][_0x4a3359]=_0x2421e7;else((_0x459d3=_0x49bbeb[_0x22ca72(0x1b6)][_0x4a3359])===null||_0x459d3===void 0x0?void 0x0:_0x459d3['name'])=='bound\x20dispatch'&&_0x49bbeb[_0x22ca72(0x1b6)][_0x22ca72(0x19e)](_0x4a3359,0x0,_0x2421e7);const _0x9975f1=this['ValidatorService']['validator'](_0x5e9386,_0x49bbeb[_0x22ca72(0x1b6)][_0x4a3359],_0x4cc3a3);_0x9975f1&&(_0x49bbeb['args'][_0x4a3359]=_0x9975f1);}else{if((_0x459b34===null||_0x459b34===void 0x0?void 0x0:_0x459b34[_0x22ca72(0x1bf)][_0x4a3359])&&((_0x44e38a=_0x49bbeb[_0x22ca72(0x1b6)][_0x4a3359])===null||_0x44e38a===void 0x0?void 0x0:_0x44e38a[_0x22ca72(0x1b2)])&&typeof _0x49bbeb[_0x22ca72(0x1b6)][_0x4a3359][_0x22ca72(0x1c7)]==_0x22ca72(0x1a8)&&((_0x1d093b=_0x58c368===null||_0x58c368===void 0x0?void 0x0:_0x58c368[_0x22ca72(0x1b2)])===null||_0x1d093b===void 0x0?void 0x0:_0x1d093b[_0x459b34[_0x22ca72(0x1bf)][_0x4a3359]]))_0x49bbeb[_0x22ca72(0x1b6)][_0x4a3359]=_0x6025c5((_0x279adc=_0x58c368===null||_0x58c368===void 0x0?void 0x0:_0x58c368['params'])===null||_0x279adc===void 0x0?void 0x0:_0x279adc[_0x459b34[_0x22ca72(0x1bf)][_0x4a3359]]);else(_0x459b34===null||_0x459b34===void 0x0?void 0x0:_0x459b34['methodArgs'][_0x4a3359])&&((_0x401c93=(_0x1f6fc3=_0x49bbeb[_0x22ca72(0x1b6)][_0x4a3359])===null||_0x1f6fc3===void 0x0?void 0x0:_0x1f6fc3[_0x22ca72(0x1b2)])===null||_0x401c93===void 0x0?void 0x0:_0x401c93[_0x459b34[_0x22ca72(0x1bf)][_0x4a3359]])&&(_0x49bbeb['args'][_0x4a3359]=(_0xb928bc=(_0x27a5de=_0x49bbeb[_0x22ca72(0x1b6)][_0x4a3359])===null||_0x27a5de===void 0x0?void 0x0:_0x27a5de[_0x22ca72(0x1b2)])===null||_0xb928bc===void 0x0?void 0x0:_0xb928bc[_0x459b34[_0x22ca72(0x1bf)][_0x4a3359]]);}}},'afterThrow':(_0x2d5b3e,_0x194b5b)=>{throw _0x194b5b;}};});}};__decorate([(0x0,core_2[a1_0x277f79(0x1cc)])(),__metadata(a1_0x277f79(0x199),core_1['MidwayDecoratorService'])],CustomConfiguration['prototype'],a1_0x277f79(0x1cd),void 0x0),__decorate([(0x0,core_2[a1_0x277f79(0x1cc)])(),__metadata(a1_0x277f79(0x199),ValidatorService_1[a1_0x277f79(0x19c)])],CustomConfiguration[a1_0x277f79(0x1c4)],a1_0x277f79(0x19c),void 0x0),exports[a1_0x277f79(0x1c8)]=CustomConfiguration=__decorate([(0x0,core_2[a1_0x277f79(0x1af)])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':a1_0x277f79(0x1a6),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
|
package/dist/decorator/Rule.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0x2c8951=a2_0x1bf5;(function(_0x5bea82,_0x53a5ee){const _0x303513=a2_0x1bf5,_0x99e734=_0x5bea82();while(!![]){try{const _0x55a2d8=parseInt(_0x303513(0x1f0))/0x1+-parseInt(_0x303513(0x1d8))/0x2+-parseInt(_0x303513(0x1eb))/0x3+parseInt(_0x303513(0x1e4))/0x4*(-parseInt(_0x303513(0x1ea))/0x5)+parseInt(_0x303513(0x1e9))/0x6*(parseInt(_0x303513(0x1d2))/0x7)+-parseInt(_0x303513(0x1d0))/0x8*(parseInt(_0x303513(0x1e1))/0x9)+-parseInt(_0x303513(0x1ce))/0xa*(-parseInt(_0x303513(0x1cf))/0xb);if(_0x55a2d8===_0x53a5ee)break;else _0x99e734['push'](_0x99e734['shift']());}catch(_0x340940){_0x99e734['push'](_0x99e734['shift']());}}}(a2_0x336c,0xb349e));const a2_0x56c17d=(function(){let _0x39f1f3=!![];return function(_0xf5283a,_0x4e7e43){const _0x49e11e=_0x39f1f3?function(){const _0x4d0f27=a2_0x1bf5;if(_0x4e7e43){const _0x426284=_0x4e7e43[_0x4d0f27(0x1dd)](_0xf5283a,arguments);return _0x4e7e43=null,_0x426284;}}:function(){};return _0x39f1f3=![],_0x49e11e;};}()),a2_0x4c7c73=a2_0x56c17d(this,function(){const _0x4db75d=a2_0x1bf5;return a2_0x4c7c73[_0x4db75d(0x1d9)]()[_0x4db75d(0x1e7)](_0x4db75d(0x1de))[_0x4db75d(0x1d9)]()[_0x4db75d(0x1dc)](a2_0x4c7c73)['search']('(((.+)+)+)+$');});a2_0x4c7c73();function a2_0x336c(){const _0x3d6ffd=['484935TeKjsG','2179911yrVETt','object','extend','label','getClassMetadata','993093GPewUo','saveClassMetadata','RuleType','@midwayjs/core','array','keys','16880DwRToi','19118PsghYH','3561736PpcQsr','name','52612Uxszcd','defineProperty','getPropertyType','__esModule','../interface','Array','1740064wrjypB','toString','isSchema','function','constructor','apply','(((.+)+)+)+$','joi','meta','18nWVqMK','RULES_KEY','@joi/date','48Mfruwg','Rule','description','search','items','366OsEMWp'];a2_0x336c=function(){return _0x3d6ffd;};return a2_0x336c();}'use strict';Object[a2_0x2c8951(0x1d3)](exports,a2_0x2c8951(0x1d5),{'value':!![]}),exports[a2_0x2c8951(0x1e5)]=exports[a2_0x2c8951(0x1f2)]=void 0x0;function a2_0x1bf5(_0x202fe6,_0x343c61){const _0x194aab=a2_0x336c();return a2_0x1bf5=function(_0x4c7c73,_0x56c17d){_0x4c7c73=_0x4c7c73-0x1cb;let _0x336c10=_0x194aab[_0x4c7c73];return _0x336c10;},a2_0x1bf5(_0x202fe6,_0x343c61);}const joi=require(a2_0x2c8951(0x1df)),date_1=require(a2_0x2c8951(0x1e3)),core_1=require(a2_0x2c8951(0x1cb)),interface_1=require(a2_0x2c8951(0x1d6));exports['RuleType']=joi[a2_0x2c8951(0x1ed)](date_1['default']);function Rule(_0x20e2d2,_0x15083b,_0x13d993=''){return(_0x5eb326,_0x12e3cb)=>{const _0x1c4ff0=a2_0x1bf5;var _0x1e817c;if(_0x12e3cb)!joi[_0x1c4ff0(0x1da)](_0x15083b)&&(_0x15083b===null||_0x15083b===void 0x0?void 0x0:_0x15083b[_0x1c4ff0(0x1d1)])&&(_0x15083b=joi[_0x1c4ff0(0x1ec)]((0x0,core_1[_0x1c4ff0(0x1ef)])(interface_1[_0x1c4ff0(0x1e2)],_0x15083b))[_0x1c4ff0(0x1e0)]({'id':_0x15083b[_0x1c4ff0(0x1d1)]}),(0x0,core_1[_0x1c4ff0(0x1d4)])(_0x5eb326,_0x12e3cb)[_0x1c4ff0(0x1d1)]===_0x1c4ff0(0x1d7)&&(_0x15083b=joi[_0x1c4ff0(0x1cc)]()[_0x1c4ff0(0x1e8)](_0x15083b))),joi[_0x1c4ff0(0x1da)](_0x15083b)&&(_0x20e2d2&&typeof(_0x15083b===null||_0x15083b===void 0x0?void 0x0:_0x15083b[_0x1c4ff0(0x1ee)])==_0x1c4ff0(0x1db)&&(_0x15083b=_0x15083b[_0x1c4ff0(0x1ee)](_0x20e2d2)),_0x13d993&&typeof(_0x15083b===null||_0x15083b===void 0x0?void 0x0:_0x15083b[_0x1c4ff0(0x1e6)])==_0x1c4ff0(0x1db)&&(_0x15083b=_0x15083b['description'](_0x13d993)),(0x0,core_1['attachClassMetadata'])(interface_1[_0x1c4ff0(0x1e2)],_0x15083b,_0x5eb326,_0x12e3cb));else{const _0x151e4e=(0x0,core_1[_0x1c4ff0(0x1ef)])(interface_1[_0x1c4ff0(0x1e2)],_0x15083b);if(_0x151e4e){let _0x3ed9bf=(_0x1e817c=(0x0,core_1[_0x1c4ff0(0x1ef)])(interface_1[_0x1c4ff0(0x1e2)],_0x5eb326))!==null&&_0x1e817c!==void 0x0?_0x1e817c:{};Object[_0x1c4ff0(0x1cd)](_0x151e4e)['map'](_0x222192=>{!_0x3ed9bf[_0x222192]&&(_0x3ed9bf[_0x222192]=_0x151e4e[_0x222192]);}),(0x0,core_1[_0x1c4ff0(0x1f1)])(interface_1[_0x1c4ff0(0x1e2)],_0x3ed9bf,_0x5eb326);}}};}exports[a2_0x2c8951(0x1e5)]=Rule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x1a7e38=a3_0xf7fa;(function(_0x2044e8,_0x107a0a){const _0x463c54=a3_0xf7fa,_0x20670c=_0x2044e8();while(!![]){try{const _0x3ed4b9=parseInt(_0x463c54(0x14b))/0x1+parseInt(_0x463c54(0x142))/0x2+-parseInt(_0x463c54(0x145))/0x3+parseInt(_0x463c54(0x156))/0x4+-parseInt(_0x463c54(0x146))/0x5+-parseInt(_0x463c54(0x14f))/0x6+parseInt(_0x463c54(0x147))/0x7*(parseInt(_0x463c54(0x154))/0x8);if(_0x3ed4b9===_0x107a0a)break;else _0x20670c['push'](_0x20670c['shift']());}catch(_0x208412){_0x20670c['push'](_0x20670c['shift']());}}}(a3_0x33ff,0x204db));const a3_0x3ecd96=(function(){let _0x1bf62e=!![];return function(_0x462d83,_0xfde693){const _0x1daaa0=_0x1bf62e?function(){if(_0xfde693){const _0x2ecf9b=_0xfde693['apply'](_0x462d83,arguments);return _0xfde693=null,_0x2ecf9b;}}:function(){};return _0x1bf62e=![],_0x1daaa0;};}()),a3_0x29c626=a3_0x3ecd96(this,function(){const _0x1c0942=a3_0xf7fa;return a3_0x29c626[_0x1c0942(0x150)]()[_0x1c0942(0x143)](_0x1c0942(0x152))[_0x1c0942(0x150)]()['constructor'](a3_0x29c626)[_0x1c0942(0x143)](_0x1c0942(0x152));});a3_0x29c626();'use strict';Object['defineProperty'](exports,a3_0x1a7e38(0x14a),{'value':!![]}),exports[a3_0x1a7e38(0x144)]=exports['Validator']=void 0x0;function a3_0xf7fa(_0x493024,_0x21ee2e){const _0x35f0a1=a3_0x33ff();return a3_0xf7fa=function(_0x29c626,_0x3ecd96){_0x29c626=_0x29c626-0x141;let _0x33ff3d=_0x35f0a1[_0x29c626];return _0x33ff3d;},a3_0xf7fa(_0x493024,_0x21ee2e);}function a3_0x33ff(){const _0x41ee30=['search','getFuncArgs','630015jAQKJf','882690qJOQpz','1187438lsgItQ','indexOf','@midwayjs/core','__esModule','142269PrWHmG','constructor','slice','../interface','392184JrQBce','toString','match','(((.+)+)+)+$','attachClassMetadata','8bnvKYk','replace','473984SBtYel','createCustomMethodDecorator','VALIDATOR_KEY','Validator','prototype','307646XPRAxE'];a3_0x33ff=function(){return _0x41ee30;};return a3_0x33ff();}const core_1=require(a3_0x1a7e38(0x149)),interface_1=require(a3_0x1a7e38(0x14e));function Validator(_0xeab464={}){return(_0x36037c,_0x30f598,_0x13ca83)=>{const _0x266417=a3_0xf7fa,_0x52eaff=getFuncArgs(_0x36037c[_0x30f598]);(0x0,core_1[_0x266417(0x153)])(interface_1[_0x266417(0x158)],{'method':_0x30f598,'methodArgs':_0x52eaff},_0x36037c),(0x0,core_1[_0x266417(0x157)])(interface_1[_0x266417(0x158)],_0xeab464)(_0x36037c,_0x30f598,_0x13ca83);};}exports[a3_0x1a7e38(0x159)]=Validator;function getFuncArgs(_0x33f109){const _0x2f5b4a=a3_0x1a7e38;if(typeof _0x33f109=='function'){const _0x1739cd=/=>.*$/mg,_0x4dd4d4=/=[^,)]+/mg,_0x4c1ecb=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x518ca9=(_0x33f109[_0x2f5b4a(0x141)]?_0x33f109[_0x2f5b4a(0x141)][_0x2f5b4a(0x14c)][_0x2f5b4a(0x150)]():_0x33f109[_0x2f5b4a(0x150)]())[_0x2f5b4a(0x155)](_0x4c1ecb,'')[_0x2f5b4a(0x155)](_0x1739cd,'')[_0x2f5b4a(0x155)](_0x4dd4d4,''),_0x24fb3c=_0x518ca9[_0x2f5b4a(0x14d)](_0x518ca9[_0x2f5b4a(0x148)]('(')+0x1,_0x518ca9[_0x2f5b4a(0x148)](')'))[_0x2f5b4a(0x151)](/([^\s,]+)/g)||[];return _0x24fb3c;}}exports[a3_0x1a7e38(0x144)]=getFuncArgs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a4_0x43d679=a4_0x274e;(function(_0x5d1039,_0x17aae6){var _0x5a09fa=a4_0x274e,_0x493c2e=_0x5d1039();while(!![]){try{var _0x53b650=parseInt(_0x5a09fa(0x1a5))/0x1+-parseInt(_0x5a09fa(0x1b5))/0x2*(-parseInt(_0x5a09fa(0x1ae))/0x3)+parseInt(_0x5a09fa(0x1b9))/0x4+parseInt(_0x5a09fa(0x1ad))/0x5+parseInt(_0x5a09fa(0x1b1))/0x6*(-parseInt(_0x5a09fa(0x1bc))/0x7)+parseInt(_0x5a09fa(0x1ba))/0x8+-parseInt(_0x5a09fa(0x1b0))/0x9*(parseInt(_0x5a09fa(0x1b8))/0xa);if(_0x53b650===_0x17aae6)break;else _0x493c2e['push'](_0x493c2e['shift']());}catch(_0x328e85){_0x493c2e['push'](_0x493c2e['shift']());}}}(a4_0x1405,0x632fe));var a4_0x39e2e7=(function(){var _0x2fe585=!![];return function(_0x5f59a6,_0x21e5d6){var _0x3a4383=_0x2fe585?function(){var _0x5f4ce6=a4_0x274e;if(_0x21e5d6){var _0x55be2f=_0x21e5d6[_0x5f4ce6(0x1af)](_0x5f59a6,arguments);return _0x21e5d6=null,_0x55be2f;}}:function(){};return _0x2fe585=![],_0x3a4383;};}()),a4_0x578abb=a4_0x39e2e7(this,function(){var _0x59f0be=a4_0x274e;return a4_0x578abb[_0x59f0be(0x1a8)]()['search'](_0x59f0be(0x1a6))[_0x59f0be(0x1a8)]()[_0x59f0be(0x1b6)](a4_0x578abb)[_0x59f0be(0x1a7)](_0x59f0be(0x1a6));});a4_0x578abb();function a4_0x1405(){var _0x155d84=['constructor','__esModule','1438150oQkuFk','1078880boiYJu','2729640VTgpej','metadata','225827ROsUfi','decorate','getOwnPropertyDescriptor','NOFIND_SCHEMA','ValidatorError','参数验证失败','PARAMS','739823gYmXvw','(((.+)+)+)+$','search','toString','length','defineProperty','@anncic-api/core','function','1274365CDshrI','256953ewEUKn','apply','36VYXeEf','132wftcrx','AnnErrorMsg','design:type','object','2FNNSmz'];a4_0x1405=function(){return _0x155d84;};return a4_0x1405();}function a4_0x274e(_0x1fdb3c,_0x55a302){var _0x1e2731=a4_0x1405();return a4_0x274e=function(_0x578abb,_0x39e2e7){_0x578abb=_0x578abb-0x1a3;var _0x14056e=_0x1e2731[_0x578abb];return _0x14056e;},a4_0x274e(_0x1fdb3c,_0x55a302);}'use strict';var __decorate=this&&this['__decorate']||function(_0x14d6f3,_0x9acd95,_0x52a95a,_0x5a088a){var _0x567de6=a4_0x274e,_0x57825a=arguments[_0x567de6(0x1a9)],_0x23034d=_0x57825a<0x3?_0x9acd95:_0x5a088a===null?_0x5a088a=Object[_0x567de6(0x1be)](_0x9acd95,_0x52a95a):_0x5a088a,_0x5e966f;if(typeof Reflect===_0x567de6(0x1b4)&&typeof Reflect[_0x567de6(0x1bd)]===_0x567de6(0x1ac))_0x23034d=Reflect[_0x567de6(0x1bd)](_0x14d6f3,_0x9acd95,_0x52a95a,_0x5a088a);else{for(var _0x199667=_0x14d6f3[_0x567de6(0x1a9)]-0x1;_0x199667>=0x0;_0x199667--)if(_0x5e966f=_0x14d6f3[_0x199667])_0x23034d=(_0x57825a<0x3?_0x5e966f(_0x23034d):_0x57825a>0x3?_0x5e966f(_0x9acd95,_0x52a95a,_0x23034d):_0x5e966f(_0x9acd95,_0x52a95a))||_0x23034d;}return _0x57825a>0x3&&_0x23034d&&Object[_0x567de6(0x1aa)](_0x9acd95,_0x52a95a,_0x23034d),_0x23034d;},__metadata=this&&this['__metadata']||function(_0x38a9a5,_0x1f99ff){var _0x5ddf45=a4_0x274e;if(typeof Reflect===_0x5ddf45(0x1b4)&&typeof Reflect[_0x5ddf45(0x1bb)]==='function')return Reflect[_0x5ddf45(0x1bb)](_0x38a9a5,_0x1f99ff);};Object['defineProperty'](exports,a4_0x43d679(0x1b7),{'value':!![]}),exports['ValidatorError']=void 0x0;const core_1=require(a4_0x43d679(0x1ab));class ValidatorError extends AnnError{}exports[a4_0x43d679(0x1c0)]=ValidatorError,ValidatorError['PARAMS']=0x18c1e,ValidatorError[a4_0x43d679(0x1bf)]=0x18c1c,__decorate([(0x0,core_1['AnnErrorMsg'])(a4_0x43d679(0x1a3)),__metadata('design:type',Object)],ValidatorError,a4_0x43d679(0x1a4),void 0x0),__decorate([(0x0,core_1[a4_0x43d679(0x1b2)])(a4_0x43d679(0x1a3)),__metadata(a4_0x43d679(0x1b3),Object)],ValidatorError,a4_0x43d679(0x1bf),void 0x0);
|
package/dist/helper/dtoHelper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0xae8354=a5_0x3cdd;(function(_0x53e14f,_0x3284d2){const _0x445f90=a5_0x3cdd,_0xbccb69=_0x53e14f();while(!![]){try{const _0x58ed55=-parseInt(_0x445f90(0x15b))/0x1*(-parseInt(_0x445f90(0x152))/0x2)+-parseInt(_0x445f90(0x15f))/0x3+parseInt(_0x445f90(0x14d))/0x4*(parseInt(_0x445f90(0x154))/0x5)+-parseInt(_0x445f90(0x159))/0x6*(-parseInt(_0x445f90(0x160))/0x7)+parseInt(_0x445f90(0x14a))/0x8*(parseInt(_0x445f90(0x149))/0x9)+parseInt(_0x445f90(0x14c))/0xa*(parseInt(_0x445f90(0x15a))/0xb)+-parseInt(_0x445f90(0x157))/0xc;if(_0x58ed55===_0x3284d2)break;else _0xbccb69['push'](_0xbccb69['shift']());}catch(_0x813884){_0xbccb69['push'](_0xbccb69['shift']());}}}(a5_0x239e,0x3c9f7));const a5_0x3cce23=(function(){let _0x34cdb1=!![];return function(_0x4daab4,_0x254aa4){const _0x1d44a9=_0x34cdb1?function(){const _0xc59ac0=a5_0x3cdd;if(_0x254aa4){const _0x277dbf=_0x254aa4[_0xc59ac0(0x14f)](_0x4daab4,arguments);return _0x254aa4=null,_0x277dbf;}}:function(){};return _0x34cdb1=![],_0x1d44a9;};}()),a5_0x1aac58=a5_0x3cce23(this,function(){const _0x3db151=a5_0x3cdd;return a5_0x1aac58['toString']()['search'](_0x3db151(0x153))['toString']()['constructor'](a5_0x1aac58)[_0x3db151(0x14e)](_0x3db151(0x153));});a5_0x1aac58();function a5_0x3cdd(_0x4981c9,_0x2f3fea){const _0x42d6ec=a5_0x239e();return a5_0x3cdd=function(_0x1aac58,_0x3cce23){_0x1aac58=_0x1aac58-0x147;let _0x239e79=_0x42d6ec[_0x1aac58];return _0x239e79;},a5_0x3cdd(_0x4981c9,_0x2f3fea);}'use strict';Object[a5_0xae8354(0x148)](exports,a5_0xae8354(0x158),{'value':!![]}),exports['OmitDto']=exports[a5_0xae8354(0x150)]=void 0x0;const core_1=require(a5_0xae8354(0x15c)),interface_1=require(a5_0xae8354(0x14b));function PickDto(_0x4dafd8,_0x35dc3a){const _0x30d90b=a5_0xae8354,_0x18f966=function(){};_0x18f966[_0x30d90b(0x147)]=_0x4dafd8['prototype'];const _0xe4f7ed=(0x0,core_1[_0x30d90b(0x151)])(interface_1['RULES_KEY'],_0x4dafd8),_0x37d3eb={};for(const _0x2cacfb of _0x35dc3a){_0xe4f7ed[_0x2cacfb]&&(_0x37d3eb[_0x2cacfb]=_0xe4f7ed[_0x2cacfb]);}return(0x0,core_1['saveClassMetadata'])(interface_1['RULES_KEY'],_0x37d3eb,_0x18f966),_0x18f966;}function a5_0x239e(){const _0x5532d3=['saveClassMetadata','RULES_KEY','14859048KmlHaT','__esModule','2658606UsZwEU','11uvAEKL','179xKTtLs','@midwayjs/core','OmitDto','assign','180357VrFDcV','7ibaxVA','prototype','defineProperty','1398366EnJHFL','8hSwFQd','../interface','970540ADYpNF','112ZOPDnv','search','apply','PickDto','getClassExtendedMetadata','4202QpjmKa','(((.+)+)+)+$','84835idouKT'];a5_0x239e=function(){return _0x5532d3;};return a5_0x239e();}exports[a5_0xae8354(0x150)]=PickDto;function OmitDto(_0x305fa8,_0x22ebfb){const _0x2a01fc=a5_0xae8354,_0x536207=function(){};_0x536207[_0x2a01fc(0x147)]=_0x305fa8['prototype'];const _0x3ffc4d=(0x0,core_1[_0x2a01fc(0x151)])(interface_1[_0x2a01fc(0x156)],_0x305fa8),_0x598be7=Object[_0x2a01fc(0x15e)]({},_0x3ffc4d);for(const _0x144e91 of _0x22ebfb){delete _0x598be7[_0x144e91];}return(0x0,core_1[_0x2a01fc(0x155)])(interface_1[_0x2a01fc(0x156)],_0x598be7,_0x536207),_0x536207;}exports[a5_0xae8354(0x15d)]=OmitDto;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a6_0x25e43a=a6_0x1184;(function(_0x122673,_0x4df743){var _0x15a287=a6_0x1184,_0x44de41=_0x122673();while(!![]){try{var _0x2705bc=-parseInt(_0x15a287(0xee))/0x1+-parseInt(_0x15a287(0xf9))/0x2*(parseInt(_0x15a287(0xf7))/0x3)+parseInt(_0x15a287(0xfe))/0x4*(parseInt(_0x15a287(0xf2))/0x5)+parseInt(_0x15a287(0xf4))/0x6+parseInt(_0x15a287(0x102))/0x7+-parseInt(_0x15a287(0xf3))/0x8+-parseInt(_0x15a287(0xf8))/0x9*(parseInt(_0x15a287(0xeb))/0xa);if(_0x2705bc===_0x4df743)break;else _0x44de41['push'](_0x44de41['shift']());}catch(_0x23b5e8){_0x44de41['push'](_0x44de41['shift']());}}}(a6_0x29b7,0xcb59a));var a6_0x194de2=(function(){var _0x575aed=!![];return function(_0x5b262a,_0x2f241a){var _0x7c2ff2=_0x575aed?function(){var _0x11d13a=a6_0x1184;if(_0x2f241a){var _0x2297fc=_0x2f241a[_0x11d13a(0xef)](_0x5b262a,arguments);return _0x2f241a=null,_0x2297fc;}}:function(){};return _0x575aed=![],_0x7c2ff2;};}()),a6_0x141d51=a6_0x194de2(this,function(){var _0x51ffd3=a6_0x1184;return a6_0x141d51[_0x51ffd3(0xfd)]()['search'](_0x51ffd3(0xff))[_0x51ffd3(0xfd)]()['constructor'](a6_0x141d51)['search'](_0x51ffd3(0xff));});a6_0x141d51();'use strict';var __createBinding=this&&this[a6_0x25e43a(0xf1)]||(Object[a6_0x25e43a(0xfa)]?function(_0x26a463,_0x9a6e69,_0x48d9ee,_0x1940b2){var _0x34d579=a6_0x25e43a;if(_0x1940b2===undefined)_0x1940b2=_0x48d9ee;var _0x5857eb=Object[_0x34d579(0xf5)](_0x9a6e69,_0x48d9ee);(!_0x5857eb||(_0x34d579(0x107)in _0x5857eb?!_0x9a6e69[_0x34d579(0xec)]:_0x5857eb[_0x34d579(0xf6)]||_0x5857eb['configurable']))&&(_0x5857eb={'enumerable':!![],'get':function(){return _0x9a6e69[_0x48d9ee];}}),Object['defineProperty'](_0x26a463,_0x1940b2,_0x5857eb);}:function(_0x1bb27b,_0x690a62,_0x1c1dd7,_0x37c303){if(_0x37c303===undefined)_0x37c303=_0x1c1dd7;_0x1bb27b[_0x37c303]=_0x690a62[_0x1c1dd7];}),__exportStar=this&&this['__exportStar']||function(_0x2ad8c9,_0x41aba5){var _0x2df369=a6_0x25e43a;for(var _0x118852 in _0x2ad8c9)if(_0x118852!=='default'&&!Object['prototype'][_0x2df369(0x106)]['call'](_0x41aba5,_0x118852))__createBinding(_0x41aba5,_0x2ad8c9,_0x118852);};function a6_0x1184(_0x35995b,_0x436629){var _0xe49e8c=a6_0x29b7();return a6_0x1184=function(_0x141d51,_0x194de2){_0x141d51=_0x141d51-0xea;var _0x29b71e=_0xe49e8c[_0x141d51];return _0x29b71e;},a6_0x1184(_0x35995b,_0x436629);}Object[a6_0x25e43a(0x109)](exports,a6_0x25e43a(0xec),{'value':!![]}),exports[a6_0x25e43a(0x103)]=exports[a6_0x25e43a(0x10a)]=exports[a6_0x25e43a(0x105)]=exports['RuleType']=exports[a6_0x25e43a(0xea)]=exports[a6_0x25e43a(0xf0)]=void 0x0,__exportStar(require(a6_0x25e43a(0xfb)),exports),__exportStar(require(a6_0x25e43a(0x100)),exports);var Validator_1=require(a6_0x25e43a(0x104));Object[a6_0x25e43a(0x109)](exports,a6_0x25e43a(0xf0),{'enumerable':!![],'get':function(){var _0x4ae4f2=a6_0x25e43a;return Validator_1[_0x4ae4f2(0xf0)];}});var Rule_1=require('./decorator/Rule');Object[a6_0x25e43a(0x109)](exports,'Rule',{'enumerable':!![],'get':function(){var _0x21239f=a6_0x25e43a;return Rule_1[_0x21239f(0xea)];}}),Object[a6_0x25e43a(0x109)](exports,a6_0x25e43a(0xed),{'enumerable':!![],'get':function(){var _0x51ebbf=a6_0x25e43a;return Rule_1[_0x51ebbf(0xed)];}});var ValidatorError_1=require(a6_0x25e43a(0x108));Object[a6_0x25e43a(0x109)](exports,'ValidatorError',{'enumerable':!![],'get':function(){var _0x5de7d6=a6_0x25e43a;return ValidatorError_1[_0x5de7d6(0x105)];}});var ValidatorService_1=require(a6_0x25e43a(0x101));Object[a6_0x25e43a(0x109)](exports,'ValidatorService',{'enumerable':!![],'get':function(){var _0x491a56=a6_0x25e43a;return ValidatorService_1[_0x491a56(0x10a)];}});var configuration_1=require('./configuration');Object[a6_0x25e43a(0x109)](exports,a6_0x25e43a(0x103),{'enumerable':!![],'get':function(){var _0x28bba8=a6_0x25e43a;return configuration_1[_0x28bba8(0xfc)];}});function a6_0x29b7(){var _0x49be4d=['Rule','6740VnpyFg','__esModule','RuleType','815102clAupi','apply','Validator','__createBinding','8520LIZJzf','9902872DtnlZN','8454756kzATOS','getOwnPropertyDescriptor','writable','30YdAKwa','6093rugexj','137730iVdGBV','create','./interface','CustomConfiguration','toString','3292yWXnzp','(((.+)+)+)+$','./helper/dtoHelper','./service/ValidatorService','8535191RLFnwY','Configuration','./decorator/Validator','ValidatorError','hasOwnProperty','get','./exception/ValidatorError','defineProperty','ValidatorService'];a6_0x29b7=function(){return _0x49be4d;};return a6_0x29b7();}
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a7_0x33c421=a7_0x5e67;function a7_0x5e67(_0x20b0c2,_0x5a8d83){var _0x8b5963=a7_0x2f13();return a7_0x5e67=function(_0x186336,_0x3cb837){_0x186336=_0x186336-0x192;var _0x2f133b=_0x8b5963[_0x186336];return _0x2f133b;},a7_0x5e67(_0x20b0c2,_0x5a8d83);}(function(_0x140081,_0x39f026){var _0x2507e0=a7_0x5e67,_0x1f7754=_0x140081();while(!![]){try{var _0x307054=parseInt(_0x2507e0(0x19a))/0x1+-parseInt(_0x2507e0(0x19b))/0x2*(parseInt(_0x2507e0(0x1a1))/0x3)+-parseInt(_0x2507e0(0x19f))/0x4*(parseInt(_0x2507e0(0x192))/0x5)+-parseInt(_0x2507e0(0x1a4))/0x6+-parseInt(_0x2507e0(0x19d))/0x7*(parseInt(_0x2507e0(0x194))/0x8)+-parseInt(_0x2507e0(0x193))/0x9*(-parseInt(_0x2507e0(0x198))/0xa)+parseInt(_0x2507e0(0x19e))/0xb;if(_0x307054===_0x39f026)break;else _0x1f7754['push'](_0x1f7754['shift']());}catch(_0x153259){_0x1f7754['push'](_0x1f7754['shift']());}}}(a7_0x2f13,0xe219e));var a7_0x3cb837=(function(){var _0x245e5c=!![];return function(_0xc141ff,_0x3faa6f){var _0xf783f=_0x245e5c?function(){var _0xaf6fd6=a7_0x5e67;if(_0x3faa6f){var _0x48ec07=_0x3faa6f[_0xaf6fd6(0x195)](_0xc141ff,arguments);return _0x3faa6f=null,_0x48ec07;}}:function(){};return _0x245e5c=![],_0xf783f;};}()),a7_0x186336=a7_0x3cb837(this,function(){var _0x4bad6d=a7_0x5e67;return a7_0x186336[_0x4bad6d(0x1a5)]()[_0x4bad6d(0x196)](_0x4bad6d(0x1a6))['toString']()[_0x4bad6d(0x1a7)](a7_0x186336)[_0x4bad6d(0x196)]('(((.+)+)+)+$');});a7_0x186336();'use strict';function a7_0x2f13(){var _0x502c91=['constructor','10wXDGpC','9cIKrev','86248WLwhbk','apply','search','anncic-api:validator:rules','16045670cyDYcX','RULES_KEY','931346vQAcFE','2iSYTqn','__esModule','329YrFApx','41023785CcNjQc','3636364DXMVhk','VALIDATOR_KEY','4704771txiNhZ','anncic-api:validator:validator','defineProperty','8676552qRVtDI','toString','(((.+)+)+)+$'];a7_0x2f13=function(){return _0x502c91;};return a7_0x2f13();}Object[a7_0x33c421(0x1a3)](exports,a7_0x33c421(0x19c),{'value':!![]}),exports[a7_0x33c421(0x1a0)]=exports['RULES_KEY']=void 0x0,exports[a7_0x33c421(0x199)]=a7_0x33c421(0x197),exports['VALIDATOR_KEY']=a7_0x33c421(0x1a2);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a8_0x4523(){const _0x2e79dc=['__decorate','message','(((.+)+)+)+$','defaultLocale','14frAsnG','2092720PNkZPU','RULES_KEY','error','$_terms','formatLocale','language','__metadata','assign','i18nConfig','@midwayjs/core','design:returntype','messages','details','fromEntries','forEach','schema','1591671EcPwJz','toString','length','_flags','localeTable','init','function','decorate','errors','915172HVmzeC','constructor','search','ValidatorError','12901930QpXLfz','design:type','object','validator','defineProperty','MidwayI18nServiceSingleton','keys','PARAMS','ValidatorService','@midwayjs/i18n','isSchema','validationOptions','key','404136TTJRdw','10WwxpXu','../interface','YYYY-MM-DD\x20HH:mm:ss','63974Igkqnw','getSchema','../exception/ValidatorError','ScopeEnum','9OfVpWi','Init','Config','metadata','2251936LsOLno','__esModule','type','getOwnPropertyDescriptor','NOFIND_SCHEMA','validatorConfig','getAvailableLocale','getLocaleMapping','apply','format','locale','Provide','value','date','prototype'];a8_0x4523=function(){return _0x2e79dc;};return a8_0x4523();}function a8_0x1550(_0x4d161b,_0x2f10e4){const _0x1d10a1=a8_0x4523();return a8_0x1550=function(_0x3c91a1,_0x36be68){_0x3c91a1=_0x3c91a1-0x15a;let _0x452311=_0x1d10a1[_0x3c91a1];return _0x452311;},a8_0x1550(_0x4d161b,_0x2f10e4);}const a8_0x1c1144=a8_0x1550;(function(_0x3ac396,_0x3a623f){const _0x5e136c=a8_0x1550,_0x5a6201=_0x3ac396();while(!![]){try{const _0x577c08=-parseInt(_0x5e136c(0x19a))/0x1+-parseInt(_0x5e136c(0x185))/0x2+parseInt(_0x5e136c(0x17c))/0x3+-parseInt(_0x5e136c(0x16c))/0x4+parseInt(_0x5e136c(0x197))/0x5*(parseInt(_0x5e136c(0x196))/0x6)+-parseInt(_0x5e136c(0x16b))/0x7*(parseInt(_0x5e136c(0x1a2))/0x8)+parseInt(_0x5e136c(0x19e))/0x9*(parseInt(_0x5e136c(0x189))/0xa);if(_0x577c08===_0x3a623f)break;else _0x5a6201['push'](_0x5a6201['shift']());}catch(_0x45deed){_0x5a6201['push'](_0x5a6201['shift']());}}}(a8_0x4523,0x54e5a));const a8_0x36be68=(function(){let _0x4f2b42=!![];return function(_0xa55244,_0x47b0f9){const _0xa745ac=_0x4f2b42?function(){const _0x24d3bb=a8_0x1550;if(_0x47b0f9){const _0x453520=_0x47b0f9[_0x24d3bb(0x160)](_0xa55244,arguments);return _0x47b0f9=null,_0x453520;}}:function(){};return _0x4f2b42=![],_0xa745ac;};}()),a8_0x3c91a1=a8_0x36be68(this,function(){const _0x17efad=a8_0x1550;return a8_0x3c91a1[_0x17efad(0x17d)]()['search'](_0x17efad(0x169))[_0x17efad(0x17d)]()[_0x17efad(0x186)](a8_0x3c91a1)[_0x17efad(0x187)]('(((.+)+)+)+$');});a8_0x3c91a1();'use strict';var __decorate=this&&this[a8_0x1c1144(0x167)]||function(_0x167865,_0xfe903,_0x523768,_0x6615b1){const _0x1af76f=a8_0x1c1144;var _0x14cf01=arguments[_0x1af76f(0x17e)],_0x528e5f=_0x14cf01<0x3?_0xfe903:_0x6615b1===null?_0x6615b1=Object[_0x1af76f(0x15b)](_0xfe903,_0x523768):_0x6615b1,_0x4f1c6f;if(typeof Reflect===_0x1af76f(0x18b)&&typeof Reflect[_0x1af76f(0x183)]==='function')_0x528e5f=Reflect[_0x1af76f(0x183)](_0x167865,_0xfe903,_0x523768,_0x6615b1);else{for(var _0x310738=_0x167865['length']-0x1;_0x310738>=0x0;_0x310738--)if(_0x4f1c6f=_0x167865[_0x310738])_0x528e5f=(_0x14cf01<0x3?_0x4f1c6f(_0x528e5f):_0x14cf01>0x3?_0x4f1c6f(_0xfe903,_0x523768,_0x528e5f):_0x4f1c6f(_0xfe903,_0x523768))||_0x528e5f;}return _0x14cf01>0x3&&_0x528e5f&&Object[_0x1af76f(0x18d)](_0xfe903,_0x523768,_0x528e5f),_0x528e5f;},__metadata=this&&this[a8_0x1c1144(0x172)]||function(_0x22ad00,_0xcdf62e){const _0x4db623=a8_0x1c1144;if(typeof Reflect===_0x4db623(0x18b)&&typeof Reflect[_0x4db623(0x1a1)]===_0x4db623(0x182))return Reflect['metadata'](_0x22ad00,_0xcdf62e);};Object[a8_0x1c1144(0x18d)](exports,a8_0x1c1144(0x1a3),{'value':!![]}),exports[a8_0x1c1144(0x191)]=void 0x0;const Joi=require('joi'),i18n_1=require(a8_0x1c1144(0x192)),core_1=require(a8_0x1c1144(0x175)),interface_1=require(a8_0x1c1144(0x198)),ValidatorError_1=require(a8_0x1c1144(0x19c));let ValidatorService=exports[a8_0x1c1144(0x191)]=class ValidatorService{constructor(){const _0x332b78=a8_0x1c1144;this[_0x332b78(0x177)]={};}async[a8_0x1c1144(0x181)](){const _0x20be12=a8_0x1c1144,_0x53e43e=Object[_0x20be12(0x18f)](this[_0x20be12(0x174)][_0x20be12(0x180)]);_0x53e43e[_0x20be12(0x17a)](_0xd97925=>{const _0x86319=_0x20be12;this[_0x86319(0x177)][(0x0,i18n_1[_0x86319(0x170)])(_0xd97925)]=Object[_0x86319(0x179)](this['i18nService'][_0x86319(0x15f)](_0xd97925,'validator'));});}[a8_0x1c1144(0x19b)](_0x257b24){const _0x575f3a=a8_0x1c1144,_0x4d0997=(0x0,core_1['getClassExtendedMetadata'])(interface_1[_0x575f3a(0x16d)],_0x257b24);return _0x4d0997?Joi[_0x575f3a(0x18b)](_0x4d0997):undefined;}[a8_0x1c1144(0x18c)](_0x3bb3a5,_0x2ddb18,_0x43263f={}){const _0x35e5cf=a8_0x1c1144;var _0x360b46,_0x52b1fa,_0x55838f,_0x537a28,_0x47e396,_0xe87d0f;const _0x1563e0=Joi[_0x35e5cf(0x193)](_0x3bb3a5)?_0x3bb3a5:this['getSchema'](_0x3bb3a5);if(!_0x1563e0)throw new AnnError(ValidatorError_1[_0x35e5cf(0x188)][_0x35e5cf(0x15c)]);_0x43263f['validationOptions']=Object[_0x35e5cf(0x173)]((_0x360b46=this[_0x35e5cf(0x15d)][_0x35e5cf(0x194)])!==null&&_0x360b46!==void 0x0?_0x360b46:{},{'messages':this[_0x35e5cf(0x177)]},_0x43263f['validationOptions']||{}),_0x43263f[_0x35e5cf(0x194)][_0x35e5cf(0x184)]=_0x43263f[_0x35e5cf(0x194)][_0x35e5cf(0x184)]||{},_0x43263f[_0x35e5cf(0x194)][_0x35e5cf(0x184)][_0x35e5cf(0x171)]=(0x0,i18n_1['formatLocale'])(this['i18nService'][_0x35e5cf(0x15e)](_0x43263f[_0x35e5cf(0x194)][_0x35e5cf(0x184)][_0x35e5cf(0x171)]||_0x43263f[_0x35e5cf(0x162)]||this[_0x35e5cf(0x174)][_0x35e5cf(0x16a)],_0x35e5cf(0x18c)));const _0x4c0319=_0x1563e0['validate'](_0x2ddb18,_0x43263f[_0x35e5cf(0x194)]);if(_0x4c0319===null||_0x4c0319===void 0x0?void 0x0:_0x4c0319['error']){if(_0x4c0319[_0x35e5cf(0x16e)]instanceof AnnError)throw _0x4c0319['error'];else{if(_0x4c0319[_0x35e5cf(0x16e)]instanceof Error)throw new AnnError(ValidatorError_1[_0x35e5cf(0x188)][_0x35e5cf(0x190)],{'message':((_0x52b1fa=_0x4c0319['error'])===null||_0x52b1fa===void 0x0?void 0x0:_0x52b1fa[_0x35e5cf(0x168)])||'参数验证失败'});else throw new AnnError(ValidatorError_1[_0x35e5cf(0x188)][_0x35e5cf(0x190)],{'message':((_0x47e396=(_0x537a28=(_0x55838f=_0x4c0319[_0x35e5cf(0x16e)])===null||_0x55838f===void 0x0?void 0x0:_0x55838f[_0x35e5cf(0x178)])===null||_0x537a28===void 0x0?void 0x0:_0x537a28[0x0])===null||_0x47e396===void 0x0?void 0x0:_0x47e396[_0x35e5cf(0x168)])||'参数验证失败'});}}if(_0x4c0319===null||_0x4c0319===void 0x0?void 0x0:_0x4c0319['value']){const _0x2fc73a=(_0xe87d0f=_0x1563e0===null||_0x1563e0===void 0x0?void 0x0:_0x1563e0[_0x35e5cf(0x16f)])===null||_0xe87d0f===void 0x0?void 0x0:_0xe87d0f['keys'],_0x2ce6fd=function(_0x252f31,_0x207db8){const _0x4ef328=_0x35e5cf;var _0x35881f,_0x34404a,_0x1869e9,_0x358e6e,_0x4128d6,_0x46c2ff,_0x5cbde9,_0x5ef45a,_0x553783,_0x5e397c,_0x146a2d;for(let _0x51ee38 in _0x252f31){if(_0x207db8[(_0x35881f=_0x252f31[_0x51ee38])===null||_0x35881f===void 0x0?void 0x0:_0x35881f[_0x4ef328(0x195)]]&&((_0x1869e9=(_0x34404a=_0x252f31[_0x51ee38])===null||_0x34404a===void 0x0?void 0x0:_0x34404a[_0x4ef328(0x17b)])===null||_0x1869e9===void 0x0?void 0x0:_0x1869e9[_0x4ef328(0x15a)])){if(((_0x4128d6=(_0x358e6e=_0x252f31[_0x51ee38])===null||_0x358e6e===void 0x0?void 0x0:_0x358e6e[_0x4ef328(0x17b)])===null||_0x4128d6===void 0x0?void 0x0:_0x4128d6[_0x4ef328(0x15a)])==_0x4ef328(0x18b))_0x207db8[_0x252f31[_0x51ee38][_0x4ef328(0x195)]]=_0x2ce6fd((_0x5cbde9=(_0x46c2ff=_0x252f31[_0x51ee38])===null||_0x46c2ff===void 0x0?void 0x0:_0x46c2ff[_0x4ef328(0x17b)][_0x4ef328(0x16f)])===null||_0x5cbde9===void 0x0?void 0x0:_0x5cbde9[_0x4ef328(0x18f)],_0x207db8[_0x252f31[_0x51ee38][_0x4ef328(0x195)]]);else{if(_0x252f31[_0x51ee38][_0x4ef328(0x17b)][_0x4ef328(0x15a)]==_0x4ef328(0x165)&&_0x4c0319[_0x4ef328(0x164)][(_0x5ef45a=_0x252f31[_0x51ee38])===null||_0x5ef45a===void 0x0?void 0x0:_0x5ef45a[_0x4ef328(0x195)]]){const _0x588b8c=((_0x146a2d=(_0x5e397c=(_0x553783=_0x252f31[_0x51ee38])===null||_0x553783===void 0x0?void 0x0:_0x553783[_0x4ef328(0x17b)])===null||_0x5e397c===void 0x0?void 0x0:_0x5e397c[_0x4ef328(0x17f)])===null||_0x146a2d===void 0x0?void 0x0:_0x146a2d['format'])||_0x4ef328(0x199);_0x207db8[_0x252f31[_0x51ee38]['key']]=dayjs(_0x4c0319[_0x4ef328(0x164)][_0x252f31[_0x51ee38][_0x4ef328(0x195)]])[_0x4ef328(0x161)](_0x588b8c);}}}}return _0x207db8;};return _0x2ce6fd(_0x2fc73a,_0x4c0319['value']);}throw new AnnError(ValidatorError_1[_0x35e5cf(0x188)][_0x35e5cf(0x190)]);}};__decorate([(0x0,core_1[a8_0x1c1144(0x1a0)])('i18n'),__metadata(a8_0x1c1144(0x18a),Object)],ValidatorService[a8_0x1c1144(0x166)],a8_0x1c1144(0x174),void 0x0),__decorate([(0x0,core_1[a8_0x1c1144(0x1a0)])(a8_0x1c1144(0x18c)),__metadata(a8_0x1c1144(0x18a),Object)],ValidatorService[a8_0x1c1144(0x166)],a8_0x1c1144(0x15d),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',i18n_1[a8_0x1c1144(0x18e)])],ValidatorService[a8_0x1c1144(0x166)],'i18nService',void 0x0),__decorate([(0x0,core_1[a8_0x1c1144(0x19f)])(),__metadata(a8_0x1c1144(0x18a),Function),__metadata('design:paramtypes',[]),__metadata(a8_0x1c1144(0x176),Promise)],ValidatorService[a8_0x1c1144(0x166)],'init',null),exports['ValidatorService']=ValidatorService=__decorate([(0x0,core_1[a8_0x1c1144(0x163)])(a8_0x1c1144(0x18c)),(0x0,core_1['Scope'])(core_1[a8_0x1c1144(0x19d)]['Singleton'])],ValidatorService);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/validator",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.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": "^3.2.
|
|
20
|
+
"@anncic-api/core": "^3.2.9",
|
|
21
21
|
"@joi/date": "^2.1.0",
|
|
22
22
|
"joi": "^17.9.2"
|
|
23
23
|
},
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"javascript-obfuscator": "^4.0.2",
|
|
27
27
|
"typescript": "^5.1.3"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "eb7ed2c81d03e4756945e8a30fd8b923ccf087fb"
|
|
30
30
|
}
|