@anncic-api/validator 3.3.1 → 3.3.2

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 +1 @@
1
- const a0_0x2939cd=a0_0xcf82;(function(_0x55fb28,_0xd05f24){const _0x31e18a=a0_0xcf82,_0x5a4cc1=_0x55fb28();while(!![]){try{const _0x1160d1=-parseInt(_0x31e18a(0x1be))/0x1+-parseInt(_0x31e18a(0x1ca))/0x2*(-parseInt(_0x31e18a(0x1d0))/0x3)+-parseInt(_0x31e18a(0x1d1))/0x4*(parseInt(_0x31e18a(0x1c3))/0x5)+-parseInt(_0x31e18a(0x1c1))/0x6+-parseInt(_0x31e18a(0x1bf))/0x7*(-parseInt(_0x31e18a(0x1c9))/0x8)+-parseInt(_0x31e18a(0x1cd))/0x9+parseInt(_0x31e18a(0x1ce))/0xa;if(_0x1160d1===_0xd05f24)break;else _0x5a4cc1['push'](_0x5a4cc1['shift']());}catch(_0x5ca710){_0x5a4cc1['push'](_0x5a4cc1['shift']());}}}(a0_0x29ba,0x3f2eb));const a0_0x1eae73=(function(){let _0x354f87=!![];return function(_0x5d513b,_0x512e35){const _0x8ad33=_0x354f87?function(){const _0x44f248=a0_0xcf82;if(_0x512e35){const _0x301619=_0x512e35[_0x44f248(0x1cc)](_0x5d513b,arguments);return _0x512e35=null,_0x301619;}}:function(){};return _0x354f87=![],_0x8ad33;};}()),a0_0x23dd19=a0_0x1eae73(this,function(){const _0x3c4f54=a0_0xcf82;return a0_0x23dd19[_0x3c4f54(0x1c5)]()[_0x3c4f54(0x1cf)](_0x3c4f54(0x1c0))['toString']()['constructor'](a0_0x23dd19)[_0x3c4f54(0x1cf)](_0x3c4f54(0x1c0));});function a0_0xcf82(_0x4049fc,_0x349b2c){const _0x4c8486=a0_0x29ba();return a0_0xcf82=function(_0x23dd19,_0x1eae73){_0x23dd19=_0x23dd19-0x1bd;let _0x29bac5=_0x4c8486[_0x23dd19];return _0x29bac5;},a0_0xcf82(_0x4049fc,_0x349b2c);}a0_0x23dd19();'use strict';Object[a0_0x2939cd(0x1c8)](exports,a0_0x2939cd(0x1c6),{'value':!![]});function a0_0x29ba(){const _0x4682fe=['default','288179DZFzXk','66311qVheIv','(((.+)+)+)+$','2564430JtVGJf','../../locales/zh_CN.json','50fzmkKE','PARAMS','toString','__esModule','../../locales/en_US.json','defineProperty','104htyVFz','4016RMNyyY','../exception/ValidatorError','apply','3632805syCrsP','14750870DPvAoT','search','273SEfuxD','161176ihcWQa'];a0_0x29ba=function(){return _0x4682fe;};return a0_0x29ba();}const ValidatorError_1=require(a0_0x2939cd(0x1cb));exports[a0_0x2939cd(0x1bd)]={'validator':{'errorStatus':ValidatorError_1['ValidatorError'][a0_0x2939cd(0x1c4)],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':'string'}},'i18n':{'localeTable':{'en_US':{'validator':require(a0_0x2939cd(0x1c7))},'zh_CN':{'validator':require(a0_0x2939cd(0x1c2))}}}};
1
+ const a0_0x490f43=a0_0x4ce3;(function(_0xd4e653,_0x48cff2){const _0x2fca83=a0_0x4ce3,_0x532a51=_0xd4e653();while(!![]){try{const _0x2ff5a5=parseInt(_0x2fca83(0x110))/0x1*(-parseInt(_0x2fca83(0x10b))/0x2)+-parseInt(_0x2fca83(0x10e))/0x3+-parseInt(_0x2fca83(0x111))/0x4*(parseInt(_0x2fca83(0x10c))/0x5)+parseInt(_0x2fca83(0x106))/0x6+-parseInt(_0x2fca83(0x115))/0x7*(-parseInt(_0x2fca83(0x109))/0x8)+parseInt(_0x2fca83(0x107))/0x9+parseInt(_0x2fca83(0x112))/0xa;if(_0x2ff5a5===_0x48cff2)break;else _0x532a51['push'](_0x532a51['shift']());}catch(_0x3c4bea){_0x532a51['push'](_0x532a51['shift']());}}}(a0_0x5e53,0x49151));const a0_0x37d90d=(function(){let _0x3e95f1=!![];return function(_0x5ebaf2,_0x16729c){const _0x210596=_0x3e95f1?function(){const _0x5a4b82=a0_0x4ce3;if(_0x16729c){const _0x5b5b4e=_0x16729c[_0x5a4b82(0x105)](_0x5ebaf2,arguments);return _0x16729c=null,_0x5b5b4e;}}:function(){};return _0x3e95f1=![],_0x210596;};}()),a0_0x295a73=a0_0x37d90d(this,function(){const _0x1c20dc=a0_0x4ce3;return a0_0x295a73[_0x1c20dc(0x114)]()['search'](_0x1c20dc(0x116))['toString']()['constructor'](a0_0x295a73)[_0x1c20dc(0x10f)](_0x1c20dc(0x116));});a0_0x295a73();function a0_0x5e53(){const _0x2c5d91=['defineProperty','569652oNkRwO','search','1vXddmt','16LWBWex','5753530qCYYTN','__esModule','toString','792806wssotU','(((.+)+)+)+$','default','apply','887244piRtcd','4214439HbthMr','../exception/ValidatorError','16qBIfCd','../../locales/zh_CN.json','930218LTIXEn','579595gvHras'];a0_0x5e53=function(){return _0x2c5d91;};return a0_0x5e53();}function a0_0x4ce3(_0x47b0ee,_0x5c952d){const _0xad895d=a0_0x5e53();return a0_0x4ce3=function(_0x295a73,_0x37d90d){_0x295a73=_0x295a73-0x104;let _0x5e53f5=_0xad895d[_0x295a73];return _0x5e53f5;},a0_0x4ce3(_0x47b0ee,_0x5c952d);}'use strict';Object[a0_0x490f43(0x10d)](exports,a0_0x490f43(0x113),{'value':!![]});const ValidatorError_1=require(a0_0x490f43(0x108));exports[a0_0x490f43(0x104)]={'validator':{'errorStatus':ValidatorError_1['ValidatorError']['PARAMS'],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':'string'}},'i18n':{'localeTable':{'en_US':{'validator':require('../../locales/en_US.json')},'zh_CN':{'validator':require(a0_0x490f43(0x10a))}}}};
@@ -1 +1 @@
1
- const a1_0x1f213a=a1_0x4fc8;(function(_0x4b8d53,_0xc90849){const _0x1a3b69=a1_0x4fc8,_0x1a9055=_0x4b8d53();while(!![]){try{const _0x16c8ce=parseInt(_0x1a3b69(0x167))/0x1+parseInt(_0x1a3b69(0x189))/0x2*(-parseInt(_0x1a3b69(0x196))/0x3)+parseInt(_0x1a3b69(0x15b))/0x4*(parseInt(_0x1a3b69(0x166))/0x5)+parseInt(_0x1a3b69(0x17b))/0x6+-parseInt(_0x1a3b69(0x17e))/0x7*(parseInt(_0x1a3b69(0x174))/0x8)+parseInt(_0x1a3b69(0x16e))/0x9*(-parseInt(_0x1a3b69(0x180))/0xa)+parseInt(_0x1a3b69(0x15c))/0xb;if(_0x16c8ce===_0xc90849)break;else _0x1a9055['push'](_0x1a9055['shift']());}catch(_0x45c38b){_0x1a9055['push'](_0x1a9055['shift']());}}}(a1_0x5e8f,0xbbe04));const a1_0x1d8667=(function(){let _0x5664d7=!![];return function(_0x44149c,_0x493121){const _0x20b5fe=_0x5664d7?function(){if(_0x493121){const _0x13fab0=_0x493121['apply'](_0x44149c,arguments);return _0x493121=null,_0x13fab0;}}:function(){};return _0x5664d7=![],_0x20b5fe;};}()),a1_0x539852=a1_0x1d8667(this,function(){const _0x4ba56e=a1_0x4fc8;return a1_0x539852[_0x4ba56e(0x18c)]()[_0x4ba56e(0x160)](_0x4ba56e(0x175))['toString']()[_0x4ba56e(0x168)](a1_0x539852)[_0x4ba56e(0x160)](_0x4ba56e(0x175));});a1_0x539852();function a1_0x5e8f(){const _0x52a9df=['decorator','body','./config/config.default','324vwNKYF','28662678udGEbN','@midwayjs/core','validator','param','search','function','bound\x20dispatch','method','Configuration','getSchema','11980qxirXk','528617lKAFPF','constructor','methodName','design:type','VALIDATOR_KEY','./service/ValidatorService','anncic-api:validator','18qpMmkT','./interface','@midwayjs/i18n','name','defineProperty','ValidatorService','3826024aEFYRb','(((.+)+)+)+$','assign','__esModule','getMethodParamTypes','__metadata','propertyName','8730396OTxjqf','@anncic-api/core','methodArgs','21vygybN','target','6781790UlTijw','__decorate','getAttr','locale','res','object','registerMethodHandler','args','decorate','10ssuPBn','splice','CustomConfiguration','toString','find','I18N_ATTR_KEY','params','Inject','prototype','request','getOwnPropertyDescriptor','req','metadata','733680VqaYKx'];a1_0x5e8f=function(){return _0x52a9df;};return a1_0x5e8f();}'use strict';var __decorate=this&&this[a1_0x1f213a(0x181)]||function(_0x15ca0c,_0x731fbb,_0x1a30b9,_0x581b93){const _0x2e691e=a1_0x1f213a;var _0x4178e1=arguments['length'],_0x4e6d5b=_0x4178e1<0x3?_0x731fbb:_0x581b93===null?_0x581b93=Object[_0x2e691e(0x193)](_0x731fbb,_0x1a30b9):_0x581b93,_0x11c5a9;if(typeof Reflect===_0x2e691e(0x185)&&typeof Reflect['decorate']===_0x2e691e(0x161))_0x4e6d5b=Reflect[_0x2e691e(0x188)](_0x15ca0c,_0x731fbb,_0x1a30b9,_0x581b93);else{for(var _0x8dc311=_0x15ca0c['length']-0x1;_0x8dc311>=0x0;_0x8dc311--)if(_0x11c5a9=_0x15ca0c[_0x8dc311])_0x4e6d5b=(_0x4178e1<0x3?_0x11c5a9(_0x4e6d5b):_0x4178e1>0x3?_0x11c5a9(_0x731fbb,_0x1a30b9,_0x4e6d5b):_0x11c5a9(_0x731fbb,_0x1a30b9))||_0x4e6d5b;}return _0x4178e1>0x3&&_0x4e6d5b&&Object[_0x2e691e(0x172)](_0x731fbb,_0x1a30b9,_0x4e6d5b),_0x4e6d5b;},__metadata=this&&this[a1_0x1f213a(0x179)]||function(_0x1f2fb8,_0x8d7bbb){const _0xbe1cd8=a1_0x1f213a;if(typeof Reflect===_0xbe1cd8(0x185)&&typeof Reflect['metadata']===_0xbe1cd8(0x161))return Reflect[_0xbe1cd8(0x195)](_0x1f2fb8,_0x8d7bbb);};function a1_0x4fc8(_0x10ed4d,_0x37ec05){const _0x1f893d=a1_0x5e8f();return a1_0x4fc8=function(_0x539852,_0x1d8667){_0x539852=_0x539852-0x15a;let _0x5e8f34=_0x1f893d[_0x539852];return _0x5e8f34;},a1_0x4fc8(_0x10ed4d,_0x37ec05);}Object[a1_0x1f213a(0x172)](exports,a1_0x1f213a(0x177),{'value':!![]}),exports[a1_0x1f213a(0x18b)]=void 0x0;const i18n_1=require(a1_0x1f213a(0x170)),core_1=require(a1_0x1f213a(0x15d)),core_2=require(a1_0x1f213a(0x15d)),interface_1=require(a1_0x1f213a(0x16f)),ValidatorService_1=require(a1_0x1f213a(0x16c)),i18n=require(a1_0x1f213a(0x170)),anncic=require(a1_0x1f213a(0x17c)),ConfigDefault=require(a1_0x1f213a(0x15a));let CustomConfiguration=exports[a1_0x1f213a(0x18b)]=class CustomConfiguration{async['onReady'](){const _0x244602=a1_0x1f213a;this['decorator'][_0x244602(0x186)](interface_1[_0x244602(0x16b)],_0x493a6a=>{const _0x5ba89a=_0x244602,_0x5ba680=_0x493a6a[_0x5ba89a(0x195)],_0xcd42b9=(0x0,core_2[_0x5ba89a(0x178)])(_0x493a6a['target'],_0x493a6a[_0x5ba89a(0x17a)]);return{'before':_0x4ac900=>{const _0x372cfb=_0x5ba89a;var _0x2a650b,_0x2cd725,_0x5e97d3,_0x18970d,_0x45e7c5,_0x6d83d5,_0x39f96e,_0x1f72a8,_0x44867f,_0x176d25,_0x49f843,_0x267759,_0x92e406;const _0xf60e61=_0x4ac900[_0x372cfb(0x17f)][core_1['REQUEST_OBJ_CTX_KEY']],_0x398177=Object[_0x372cfb(0x176)]({},((_0x2a650b=_0xf60e61===null||_0xf60e61===void 0x0?void 0x0:_0xf60e61['request'])===null||_0x2a650b===void 0x0?void 0x0:_0x2a650b['query'])||{},((_0x2cd725=_0xf60e61===null||_0xf60e61===void 0x0?void 0x0:_0xf60e61[_0x372cfb(0x192)])===null||_0x2cd725===void 0x0?void 0x0:_0x2cd725[_0x372cfb(0x198)])||{}),_0x1585dc=((0x0,core_2['getClassMetadata'])(interface_1['VALIDATOR_KEY'],_0x4ac900[_0x372cfb(0x17f)])||[])[_0x372cfb(0x18d)](_0x568b64=>_0x568b64[_0x372cfb(0x163)]==_0x4ac900[_0x372cfb(0x169)]);!(_0x5ba680===null||_0x5ba680===void 0x0?void 0x0:_0x5ba680[_0x372cfb(0x183)])&&_0xf60e61&&_0xf60e61[_0x372cfb(0x182)]&&(_0x5ba680[_0x372cfb(0x183)]=_0xf60e61['getAttr'](i18n_1[_0x372cfb(0x18e)]));for(let _0x57e7e8=0x0;_0x57e7e8<_0xcd42b9['length'];_0x57e7e8++){const _0x9dd66=_0xcd42b9[_0x57e7e8],_0x1aaa9f=this[_0x372cfb(0x173)][_0x372cfb(0x165)](_0x9dd66);if(_0x1aaa9f){if(typeof _0x4ac900[_0x372cfb(0x187)][_0x57e7e8]=='undefined'||((_0x5e97d3=_0x4ac900[_0x372cfb(0x187)][_0x57e7e8])===null||_0x5e97d3===void 0x0?void 0x0:_0x5e97d3[_0x372cfb(0x192)])&&((_0x18970d=_0x4ac900[_0x372cfb(0x187)][_0x57e7e8])===null||_0x18970d===void 0x0?void 0x0:_0x18970d[_0x372cfb(0x184)])&&((_0x45e7c5=_0x4ac900['args'][_0x57e7e8])===null||_0x45e7c5===void 0x0?void 0x0:_0x45e7c5[_0x372cfb(0x194)]))_0x4ac900[_0x372cfb(0x187)][_0x57e7e8]=_0x398177;else((_0x6d83d5=_0x4ac900[_0x372cfb(0x187)][_0x57e7e8])===null||_0x6d83d5===void 0x0?void 0x0:_0x6d83d5[_0x372cfb(0x171)])==_0x372cfb(0x162)&&_0x4ac900[_0x372cfb(0x187)][_0x372cfb(0x18a)](_0x57e7e8,0x0,_0x398177);const _0x537894=this[_0x372cfb(0x173)][_0x372cfb(0x15e)](_0x1aaa9f,_0x4ac900[_0x372cfb(0x187)][_0x57e7e8],_0x5ba680);_0x537894&&(_0x4ac900['args'][_0x57e7e8]=_0x537894);}else{if((_0x1585dc===null||_0x1585dc===void 0x0?void 0x0:_0x1585dc[_0x372cfb(0x17d)][_0x57e7e8])&&((_0x39f96e=_0x4ac900[_0x372cfb(0x187)][_0x57e7e8])===null||_0x39f96e===void 0x0?void 0x0:_0x39f96e[_0x372cfb(0x18f)])&&typeof _0x4ac900['args'][_0x57e7e8][_0x372cfb(0x15f)]==_0x372cfb(0x161)&&((_0x1f72a8=_0xf60e61===null||_0xf60e61===void 0x0?void 0x0:_0xf60e61[_0x372cfb(0x18f)])===null||_0x1f72a8===void 0x0?void 0x0:_0x1f72a8[_0x1585dc[_0x372cfb(0x17d)][_0x57e7e8]]))_0x4ac900[_0x372cfb(0x187)][_0x57e7e8]=_0x9dd66((_0x44867f=_0xf60e61===null||_0xf60e61===void 0x0?void 0x0:_0xf60e61[_0x372cfb(0x18f)])===null||_0x44867f===void 0x0?void 0x0:_0x44867f[_0x1585dc['methodArgs'][_0x57e7e8]]);else(_0x1585dc===null||_0x1585dc===void 0x0?void 0x0:_0x1585dc[_0x372cfb(0x17d)][_0x57e7e8])&&((_0x49f843=(_0x176d25=_0x4ac900[_0x372cfb(0x187)][_0x57e7e8])===null||_0x176d25===void 0x0?void 0x0:_0x176d25[_0x372cfb(0x18f)])===null||_0x49f843===void 0x0?void 0x0:_0x49f843[_0x1585dc[_0x372cfb(0x17d)][_0x57e7e8]])&&(_0x4ac900[_0x372cfb(0x187)][_0x57e7e8]=(_0x92e406=(_0x267759=_0x4ac900['args'][_0x57e7e8])===null||_0x267759===void 0x0?void 0x0:_0x267759[_0x372cfb(0x18f)])===null||_0x92e406===void 0x0?void 0x0:_0x92e406[_0x1585dc['methodArgs'][_0x57e7e8]]);}}},'afterThrow':(_0x731f1,_0x55fa1f)=>{throw _0x55fa1f;}};});}};__decorate([(0x0,core_2[a1_0x1f213a(0x190)])(),__metadata('design:type',core_1['MidwayDecoratorService'])],CustomConfiguration['prototype'],a1_0x1f213a(0x197),void 0x0),__decorate([(0x0,core_2['Inject'])(),__metadata(a1_0x1f213a(0x16a),ValidatorService_1[a1_0x1f213a(0x173)])],CustomConfiguration[a1_0x1f213a(0x191)],'ValidatorService',void 0x0),exports[a1_0x1f213a(0x18b)]=CustomConfiguration=__decorate([(0x0,core_2[a1_0x1f213a(0x164)])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':a1_0x1f213a(0x16d),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
1
+ const a1_0x24dd24=a1_0x336c;(function(_0x1933fa,_0x113b86){const _0x40401c=a1_0x336c,_0x46ca0e=_0x1933fa();while(!![]){try{const _0x144229=parseInt(_0x40401c(0x17c))/0x1*(-parseInt(_0x40401c(0x188))/0x2)+parseInt(_0x40401c(0x16d))/0x3+-parseInt(_0x40401c(0x161))/0x4+parseInt(_0x40401c(0x195))/0x5*(-parseInt(_0x40401c(0x192))/0x6)+-parseInt(_0x40401c(0x193))/0x7*(-parseInt(_0x40401c(0x18a))/0x8)+-parseInt(_0x40401c(0x17f))/0x9*(parseInt(_0x40401c(0x16a))/0xa)+-parseInt(_0x40401c(0x191))/0xb*(-parseInt(_0x40401c(0x196))/0xc);if(_0x144229===_0x113b86)break;else _0x46ca0e['push'](_0x46ca0e['shift']());}catch(_0xc0b6a9){_0x46ca0e['push'](_0x46ca0e['shift']());}}}(a1_0x473c,0xd71cb));const a1_0x4c6f39=(function(){let _0xb23094=!![];return function(_0x2bbc65,_0x33dfc4){const _0x10d45d=_0xb23094?function(){const _0x400d1d=a1_0x336c;if(_0x33dfc4){const _0x3d739f=_0x33dfc4[_0x400d1d(0x186)](_0x2bbc65,arguments);return _0x33dfc4=null,_0x3d739f;}}:function(){};return _0xb23094=![],_0x10d45d;};}()),a1_0x44952c=a1_0x4c6f39(this,function(){const _0x2fc3bf=a1_0x336c;return a1_0x44952c[_0x2fc3bf(0x17a)]()[_0x2fc3bf(0x198)](_0x2fc3bf(0x163))['toString']()[_0x2fc3bf(0x165)](a1_0x44952c)[_0x2fc3bf(0x198)](_0x2fc3bf(0x163));});a1_0x44952c();'use strict';var __decorate=this&&this['__decorate']||function(_0xd58baa,_0x4d9d46,_0x293e47,_0x48d218){const _0x5db56b=a1_0x336c;var _0x26c488=arguments[_0x5db56b(0x199)],_0x5d7fe7=_0x26c488<0x3?_0x4d9d46:_0x48d218===null?_0x48d218=Object[_0x5db56b(0x16b)](_0x4d9d46,_0x293e47):_0x48d218,_0x42b164;if(typeof Reflect===_0x5db56b(0x169)&&typeof Reflect[_0x5db56b(0x16e)]===_0x5db56b(0x17e))_0x5d7fe7=Reflect[_0x5db56b(0x16e)](_0xd58baa,_0x4d9d46,_0x293e47,_0x48d218);else{for(var _0x5e253a=_0xd58baa[_0x5db56b(0x199)]-0x1;_0x5e253a>=0x0;_0x5e253a--)if(_0x42b164=_0xd58baa[_0x5e253a])_0x5d7fe7=(_0x26c488<0x3?_0x42b164(_0x5d7fe7):_0x26c488>0x3?_0x42b164(_0x4d9d46,_0x293e47,_0x5d7fe7):_0x42b164(_0x4d9d46,_0x293e47))||_0x5d7fe7;}return _0x26c488>0x3&&_0x5d7fe7&&Object[_0x5db56b(0x16c)](_0x4d9d46,_0x293e47,_0x5d7fe7),_0x5d7fe7;},__metadata=this&&this['__metadata']||function(_0x5b049a,_0x219236){const _0x166ffb=a1_0x336c;if(typeof Reflect===_0x166ffb(0x169)&&typeof Reflect['metadata']===_0x166ffb(0x17e))return Reflect[_0x166ffb(0x183)](_0x5b049a,_0x219236);};Object['defineProperty'](exports,a1_0x24dd24(0x18f),{'value':!![]}),exports[a1_0x24dd24(0x184)]=void 0x0;const i18n_1=require(a1_0x24dd24(0x197)),core_1=require('@midwayjs/core'),core_2=require(a1_0x24dd24(0x19a)),interface_1=require(a1_0x24dd24(0x182)),ValidatorService_1=require('./service/ValidatorService'),i18n=require('@midwayjs/i18n'),anncic=require('@anncic-api/core'),ConfigDefault=require('./config/config.default');function a1_0x473c(){const _0x9e78d=['defineProperty','4753701whwUuT','decorate','MidwayDecoratorService','onReady','validator','decorator','registerMethodHandler','anncic-api:validator','REQUEST_OBJ_CTX_KEY','getMethodParamTypes','body','undefined','Inject','toString','params','42GvehOz','locale','function','2196IXuiON','ValidatorService','res','./interface','metadata','CustomConfiguration','args','apply','prototype','22234aPHYdr','design:type','524712mwHPUt','Configuration','getClassMetadata','methodName','req','__esModule','query','4741IHouyI','542796sIBzEd','35kDJISm','splice','50hnfrZA','53976xOEDpd','@midwayjs/i18n','search','length','@midwayjs/core','target','5804404STJubV','assign','(((.+)+)+)+$','methodArgs','constructor','propertyName','VALIDATOR_KEY','getAttr','object','6040jQihqr','getOwnPropertyDescriptor'];a1_0x473c=function(){return _0x9e78d;};return a1_0x473c();}function a1_0x336c(_0x4b25e3,_0x2fe2e9){const _0x4da7b5=a1_0x473c();return a1_0x336c=function(_0x44952c,_0x4c6f39){_0x44952c=_0x44952c-0x161;let _0x473c9f=_0x4da7b5[_0x44952c];return _0x473c9f;},a1_0x336c(_0x4b25e3,_0x2fe2e9);}let CustomConfiguration=exports[a1_0x24dd24(0x184)]=class CustomConfiguration{async[a1_0x24dd24(0x170)](){const _0x56868b=a1_0x24dd24;this[_0x56868b(0x172)][_0x56868b(0x173)](interface_1[_0x56868b(0x167)],_0x2f6e99=>{const _0x321a53=_0x56868b,_0x23273d=_0x2f6e99[_0x321a53(0x183)],_0x4ceedb=(0x0,core_2[_0x321a53(0x176)])(_0x2f6e99[_0x321a53(0x19b)],_0x2f6e99[_0x321a53(0x166)]);return{'before':_0x28c39b=>{const _0x12e6b1=_0x321a53;var _0x1acd04,_0x5e1e7c,_0x5465b9,_0x4e03dc,_0x2f1bd4,_0x1debf1,_0x54b5a6,_0x14511e,_0x3fd309,_0x2f6acb,_0x4f1292,_0x337a52,_0x544c9d;const _0x2051fb=_0x28c39b[_0x12e6b1(0x19b)][core_1[_0x12e6b1(0x175)]],_0x29ebbc=Object[_0x12e6b1(0x162)]({},((_0x1acd04=_0x2051fb===null||_0x2051fb===void 0x0?void 0x0:_0x2051fb['request'])===null||_0x1acd04===void 0x0?void 0x0:_0x1acd04[_0x12e6b1(0x190)])||{},((_0x5e1e7c=_0x2051fb===null||_0x2051fb===void 0x0?void 0x0:_0x2051fb['request'])===null||_0x5e1e7c===void 0x0?void 0x0:_0x5e1e7c[_0x12e6b1(0x177)])||{}),_0x216784=((0x0,core_2[_0x12e6b1(0x18c)])(interface_1[_0x12e6b1(0x167)],_0x28c39b[_0x12e6b1(0x19b)])||[])['find'](_0x515f94=>_0x515f94['method']==_0x28c39b[_0x12e6b1(0x18d)]);!(_0x23273d===null||_0x23273d===void 0x0?void 0x0:_0x23273d['locale'])&&_0x2051fb&&_0x2051fb['getAttr']&&(_0x23273d[_0x12e6b1(0x17d)]=_0x2051fb[_0x12e6b1(0x168)](i18n_1['I18N_ATTR_KEY']));for(let _0x21c57b=0x0;_0x21c57b<_0x4ceedb[_0x12e6b1(0x199)];_0x21c57b++){const _0x4ccf8f=_0x4ceedb[_0x21c57b],_0x3d962f=this['ValidatorService']['getSchema'](_0x4ccf8f);if(_0x3d962f){if(typeof _0x28c39b[_0x12e6b1(0x185)][_0x21c57b]==_0x12e6b1(0x178)||((_0x5465b9=_0x28c39b[_0x12e6b1(0x185)][_0x21c57b])===null||_0x5465b9===void 0x0?void 0x0:_0x5465b9['request'])&&((_0x4e03dc=_0x28c39b[_0x12e6b1(0x185)][_0x21c57b])===null||_0x4e03dc===void 0x0?void 0x0:_0x4e03dc[_0x12e6b1(0x181)])&&((_0x2f1bd4=_0x28c39b['args'][_0x21c57b])===null||_0x2f1bd4===void 0x0?void 0x0:_0x2f1bd4[_0x12e6b1(0x18e)]))_0x28c39b[_0x12e6b1(0x185)][_0x21c57b]=_0x29ebbc;else((_0x1debf1=_0x28c39b[_0x12e6b1(0x185)][_0x21c57b])===null||_0x1debf1===void 0x0?void 0x0:_0x1debf1['name'])=='bound\x20dispatch'&&_0x28c39b[_0x12e6b1(0x185)][_0x12e6b1(0x194)](_0x21c57b,0x0,_0x29ebbc);const _0x3e5abb=this[_0x12e6b1(0x180)][_0x12e6b1(0x171)](_0x3d962f,_0x28c39b[_0x12e6b1(0x185)][_0x21c57b],_0x23273d);_0x3e5abb&&(_0x28c39b[_0x12e6b1(0x185)][_0x21c57b]=_0x3e5abb);}else{if((_0x216784===null||_0x216784===void 0x0?void 0x0:_0x216784[_0x12e6b1(0x164)][_0x21c57b])&&((_0x54b5a6=_0x28c39b[_0x12e6b1(0x185)][_0x21c57b])===null||_0x54b5a6===void 0x0?void 0x0:_0x54b5a6[_0x12e6b1(0x17b)])&&typeof _0x28c39b[_0x12e6b1(0x185)][_0x21c57b]['param']==_0x12e6b1(0x17e)&&((_0x14511e=_0x2051fb===null||_0x2051fb===void 0x0?void 0x0:_0x2051fb[_0x12e6b1(0x17b)])===null||_0x14511e===void 0x0?void 0x0:_0x14511e[_0x216784[_0x12e6b1(0x164)][_0x21c57b]]))_0x28c39b[_0x12e6b1(0x185)][_0x21c57b]=_0x4ccf8f((_0x3fd309=_0x2051fb===null||_0x2051fb===void 0x0?void 0x0:_0x2051fb[_0x12e6b1(0x17b)])===null||_0x3fd309===void 0x0?void 0x0:_0x3fd309[_0x216784[_0x12e6b1(0x164)][_0x21c57b]]);else(_0x216784===null||_0x216784===void 0x0?void 0x0:_0x216784[_0x12e6b1(0x164)][_0x21c57b])&&((_0x4f1292=(_0x2f6acb=_0x28c39b[_0x12e6b1(0x185)][_0x21c57b])===null||_0x2f6acb===void 0x0?void 0x0:_0x2f6acb[_0x12e6b1(0x17b)])===null||_0x4f1292===void 0x0?void 0x0:_0x4f1292[_0x216784[_0x12e6b1(0x164)][_0x21c57b]])&&(_0x28c39b[_0x12e6b1(0x185)][_0x21c57b]=(_0x544c9d=(_0x337a52=_0x28c39b[_0x12e6b1(0x185)][_0x21c57b])===null||_0x337a52===void 0x0?void 0x0:_0x337a52[_0x12e6b1(0x17b)])===null||_0x544c9d===void 0x0?void 0x0:_0x544c9d[_0x216784[_0x12e6b1(0x164)][_0x21c57b]]);}}},'afterThrow':(_0x505a7e,_0x23c2ff)=>{throw _0x23c2ff;}};});}};__decorate([(0x0,core_2[a1_0x24dd24(0x179)])(),__metadata(a1_0x24dd24(0x189),core_1[a1_0x24dd24(0x16f)])],CustomConfiguration[a1_0x24dd24(0x187)],'decorator',void 0x0),__decorate([(0x0,core_2['Inject'])(),__metadata('design:type',ValidatorService_1[a1_0x24dd24(0x180)])],CustomConfiguration[a1_0x24dd24(0x187)],'ValidatorService',void 0x0),exports[a1_0x24dd24(0x184)]=CustomConfiguration=__decorate([(0x0,core_2[a1_0x24dd24(0x18b)])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':a1_0x24dd24(0x174),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
@@ -1 +1 @@
1
- const a2_0x108b5e=a2_0xde7c;(function(_0x2841d5,_0x5ee000){const _0x1ce0d=a2_0xde7c,_0x472009=_0x2841d5();while(!![]){try{const _0x127604=parseInt(_0x1ce0d(0xda))/0x1+parseInt(_0x1ce0d(0xed))/0x2+-parseInt(_0x1ce0d(0xe6))/0x3*(parseInt(_0x1ce0d(0xe5))/0x4)+parseInt(_0x1ce0d(0xe7))/0x5+parseInt(_0x1ce0d(0xd8))/0x6*(parseInt(_0x1ce0d(0xe0))/0x7)+parseInt(_0x1ce0d(0xe9))/0x8+-parseInt(_0x1ce0d(0xe8))/0x9;if(_0x127604===_0x5ee000)break;else _0x472009['push'](_0x472009['shift']());}catch(_0x23588a){_0x472009['push'](_0x472009['shift']());}}}(a2_0x4675,0x7fb32));const a2_0x674444=(function(){let _0x32a256=!![];return function(_0x3dbffc,_0x4e2d15){const _0x3a3995=_0x32a256?function(){if(_0x4e2d15){const _0x4b166a=_0x4e2d15['apply'](_0x3dbffc,arguments);return _0x4e2d15=null,_0x4b166a;}}:function(){};return _0x32a256=![],_0x3a3995;};}()),a2_0x3acf43=a2_0x674444(this,function(){const _0x21d6bb=a2_0xde7c;return a2_0x3acf43[_0x21d6bb(0xe3)]()[_0x21d6bb(0xd0)](_0x21d6bb(0xd3))[_0x21d6bb(0xe3)]()[_0x21d6bb(0xea)](a2_0x3acf43)[_0x21d6bb(0xd0)](_0x21d6bb(0xd3));});function a2_0x4675(){const _0x1c05a8=['522865HMiqoV','RuleType','meta','../interface','RULES_KEY','name','43603VViYyd','@joi/date','Rule','toString','extend','3871564FRvfJE','3zHPqAE','1892115iZRqTV','1854891JveSXd','4076728fQGQha','constructor','__esModule','joi','123850FOLehw','keys','getClassMetadata','isSchema','search','saveClassMetadata','label','(((.+)+)+)+$','items','attachClassMetadata','default','defineProperty','216mSQUta','description'];a2_0x4675=function(){return _0x1c05a8;};return a2_0x4675();}function a2_0xde7c(_0x145379,_0x4c0ef0){const _0x55b4d0=a2_0x4675();return a2_0xde7c=function(_0x3acf43,_0x674444){_0x3acf43=_0x3acf43-0xd0;let _0x4675d8=_0x55b4d0[_0x3acf43];return _0x4675d8;},a2_0xde7c(_0x145379,_0x4c0ef0);}a2_0x3acf43();'use strict';Object[a2_0x108b5e(0xd7)](exports,a2_0x108b5e(0xeb),{'value':!![]}),exports[a2_0x108b5e(0xe2)]=exports['RuleType']=void 0x0;const joi=require(a2_0x108b5e(0xec)),date_1=require(a2_0x108b5e(0xe1)),core_1=require('@midwayjs/core'),interface_1=require(a2_0x108b5e(0xdd));exports[a2_0x108b5e(0xdb)]=joi[a2_0x108b5e(0xe4)](date_1[a2_0x108b5e(0xd6)]);function Rule(_0x957eff,_0x2c7f71,_0x2c9c7e=''){return(_0x11012c,_0x175c7f)=>{const _0x4eec97=a2_0xde7c;var _0x2c363a;if(_0x175c7f)!joi[_0x4eec97(0xf0)](_0x2c7f71)&&(_0x2c7f71===null||_0x2c7f71===void 0x0?void 0x0:_0x2c7f71[_0x4eec97(0xdf)])&&(_0x2c7f71=joi['object']((0x0,core_1[_0x4eec97(0xef)])(interface_1[_0x4eec97(0xde)],_0x2c7f71))[_0x4eec97(0xdc)]({'id':_0x2c7f71['name']}),(0x0,core_1['getPropertyType'])(_0x11012c,_0x175c7f)['name']==='Array'&&(_0x2c7f71=joi['array']()[_0x4eec97(0xd4)](_0x2c7f71))),joi[_0x4eec97(0xf0)](_0x2c7f71)&&(_0x957eff&&typeof(_0x2c7f71===null||_0x2c7f71===void 0x0?void 0x0:_0x2c7f71[_0x4eec97(0xd2)])=='function'&&(_0x2c7f71=_0x2c7f71['label'](_0x957eff)),_0x2c9c7e&&typeof(_0x2c7f71===null||_0x2c7f71===void 0x0?void 0x0:_0x2c7f71[_0x4eec97(0xd9)])=='function'&&(_0x2c7f71=_0x2c7f71[_0x4eec97(0xd9)](_0x2c9c7e)),(0x0,core_1[_0x4eec97(0xd5)])(interface_1['RULES_KEY'],_0x2c7f71,_0x11012c,_0x175c7f));else{const _0x15a8de=(0x0,core_1[_0x4eec97(0xef)])(interface_1[_0x4eec97(0xde)],_0x2c7f71);if(_0x15a8de){let _0x26b4fe=(_0x2c363a=(0x0,core_1[_0x4eec97(0xef)])(interface_1[_0x4eec97(0xde)],_0x11012c))!==null&&_0x2c363a!==void 0x0?_0x2c363a:{};Object[_0x4eec97(0xee)](_0x15a8de)['map'](_0x49a501=>{!_0x26b4fe[_0x49a501]&&(_0x26b4fe[_0x49a501]=_0x15a8de[_0x49a501]);}),(0x0,core_1[_0x4eec97(0xd1)])(interface_1[_0x4eec97(0xde)],_0x26b4fe,_0x11012c);}}};}exports[a2_0x108b5e(0xe2)]=Rule;
1
+ const a2_0x548b91=a2_0x3ebd;(function(_0x332453,_0x17e84e){const _0x20d7da=a2_0x3ebd,_0x4613d8=_0x332453();while(!![]){try{const _0x2b46af=-parseInt(_0x20d7da(0x185))/0x1*(-parseInt(_0x20d7da(0x16a))/0x2)+parseInt(_0x20d7da(0x178))/0x3+parseInt(_0x20d7da(0x16b))/0x4+-parseInt(_0x20d7da(0x174))/0x5+parseInt(_0x20d7da(0x16f))/0x6*(parseInt(_0x20d7da(0x170))/0x7)+parseInt(_0x20d7da(0x16d))/0x8*(-parseInt(_0x20d7da(0x182))/0x9)+-parseInt(_0x20d7da(0x180))/0xa;if(_0x2b46af===_0x17e84e)break;else _0x4613d8['push'](_0x4613d8['shift']());}catch(_0x37c81d){_0x4613d8['push'](_0x4613d8['shift']());}}}(a2_0x4f6c,0xbca3f));const a2_0x2bcd33=(function(){let _0x5e1e43=!![];return function(_0x3edf66,_0x566ca8){const _0x506f3c=_0x5e1e43?function(){const _0x338117=a2_0x3ebd;if(_0x566ca8){const _0x38840e=_0x566ca8[_0x338117(0x172)](_0x3edf66,arguments);return _0x566ca8=null,_0x38840e;}}:function(){};return _0x5e1e43=![],_0x506f3c;};}()),a2_0x24c628=a2_0x2bcd33(this,function(){const _0x3de7ed=a2_0x3ebd;return a2_0x24c628[_0x3de7ed(0x17d)]()[_0x3de7ed(0x184)](_0x3de7ed(0x188))[_0x3de7ed(0x17d)]()[_0x3de7ed(0x183)](a2_0x24c628)['search'](_0x3de7ed(0x188));});a2_0x24c628();'use strict';Object[a2_0x548b91(0x168)](exports,'__esModule',{'value':!![]}),exports[a2_0x548b91(0x175)]=exports[a2_0x548b91(0x186)]=void 0x0;const joi=require('joi'),date_1=require('@joi/date'),core_1=require(a2_0x548b91(0x169)),interface_1=require('../interface');exports[a2_0x548b91(0x186)]=joi[a2_0x548b91(0x17b)](date_1[a2_0x548b91(0x16e)]);function Rule(_0x2e8908,_0x65ed8b,_0xf94e9=''){return(_0x33a5e9,_0x4d3a54)=>{const _0xa728c2=a2_0x3ebd;var _0x560aa7;if(_0x4d3a54)!joi[_0xa728c2(0x173)](_0x65ed8b)&&(_0x65ed8b===null||_0x65ed8b===void 0x0?void 0x0:_0x65ed8b[_0xa728c2(0x189)])&&(_0x65ed8b=joi[_0xa728c2(0x16c)]((0x0,core_1[_0xa728c2(0x171)])(interface_1[_0xa728c2(0x176)],_0x65ed8b))['meta']({'id':_0x65ed8b[_0xa728c2(0x189)]}),(0x0,core_1['getPropertyType'])(_0x33a5e9,_0x4d3a54)[_0xa728c2(0x189)]==='Array'&&(_0x65ed8b=joi[_0xa728c2(0x17f)]()[_0xa728c2(0x17c)](_0x65ed8b))),joi[_0xa728c2(0x173)](_0x65ed8b)&&(_0x2e8908&&typeof(_0x65ed8b===null||_0x65ed8b===void 0x0?void 0x0:_0x65ed8b[_0xa728c2(0x187)])==_0xa728c2(0x177)&&(_0x65ed8b=_0x65ed8b['label'](_0x2e8908)),_0xf94e9&&typeof(_0x65ed8b===null||_0x65ed8b===void 0x0?void 0x0:_0x65ed8b['description'])==_0xa728c2(0x177)&&(_0x65ed8b=_0x65ed8b[_0xa728c2(0x179)](_0xf94e9)),(0x0,core_1[_0xa728c2(0x17e)])(interface_1['RULES_KEY'],_0x65ed8b,_0x33a5e9,_0x4d3a54));else{const _0x3df935=(0x0,core_1['getClassMetadata'])(interface_1[_0xa728c2(0x176)],_0x65ed8b);if(_0x3df935){let _0x43653b=(_0x560aa7=(0x0,core_1['getClassMetadata'])(interface_1['RULES_KEY'],_0x33a5e9))!==null&&_0x560aa7!==void 0x0?_0x560aa7:{};Object['keys'](_0x3df935)[_0xa728c2(0x181)](_0x3366d4=>{!_0x43653b[_0x3366d4]&&(_0x43653b[_0x3366d4]=_0x3df935[_0x3366d4]);}),(0x0,core_1[_0xa728c2(0x17a)])(interface_1[_0xa728c2(0x176)],_0x43653b,_0x33a5e9);}}};}function a2_0x4f6c(){const _0x5c88d0=['attachClassMetadata','array','11833160wmJezw','map','18hsFSsM','constructor','search','933494ELkAft','RuleType','label','(((.+)+)+)+$','name','defineProperty','@midwayjs/core','2RGEqfE','2396680EyffJX','object','1000408bQTAvr','default','2753670ACiPZZ','7UhnfNt','getClassMetadata','apply','isSchema','4716325JkiBcB','Rule','RULES_KEY','function','3473235cDKTCA','description','saveClassMetadata','extend','items','toString'];a2_0x4f6c=function(){return _0x5c88d0;};return a2_0x4f6c();}function a2_0x3ebd(_0x58c9c0,_0xf3cf8c){const _0x2d1724=a2_0x4f6c();return a2_0x3ebd=function(_0x24c628,_0x2bcd33){_0x24c628=_0x24c628-0x168;let _0x4f6c2c=_0x2d1724[_0x24c628];return _0x4f6c2c;},a2_0x3ebd(_0x58c9c0,_0xf3cf8c);}exports[a2_0x548b91(0x175)]=Rule;
@@ -1 +1 @@
1
- const a3_0x2b8cc5=a3_0x7777;(function(_0x4e39bf,_0x23eef5){const _0x35345d=a3_0x7777,_0x5ab98d=_0x4e39bf();while(!![]){try{const _0x445eac=-parseInt(_0x35345d(0xaa))/0x1*(parseInt(_0x35345d(0x96))/0x2)+-parseInt(_0x35345d(0x9e))/0x3+parseInt(_0x35345d(0xab))/0x4+-parseInt(_0x35345d(0xa5))/0x5*(-parseInt(_0x35345d(0x9f))/0x6)+-parseInt(_0x35345d(0xa3))/0x7*(-parseInt(_0x35345d(0xa6))/0x8)+parseInt(_0x35345d(0x9d))/0x9*(-parseInt(_0x35345d(0xa7))/0xa)+parseInt(_0x35345d(0xa4))/0xb;if(_0x445eac===_0x23eef5)break;else _0x5ab98d['push'](_0x5ab98d['shift']());}catch(_0x23961c){_0x5ab98d['push'](_0x5ab98d['shift']());}}}(a3_0x24eb,0x9a033));function a3_0x7777(_0x3c6eb0,_0x4e9efc){const _0x3e24fb=a3_0x24eb();return a3_0x7777=function(_0x3a732a,_0x2608fd){_0x3a732a=_0x3a732a-0x92;let _0x24ebc6=_0x3e24fb[_0x3a732a];return _0x24ebc6;},a3_0x7777(_0x3c6eb0,_0x4e9efc);}const a3_0x2608fd=(function(){let _0x252947=!![];return function(_0x26923e,_0x1d6d66){const _0x1dc9d7=_0x252947?function(){const _0x1ac042=a3_0x7777;if(_0x1d6d66){const _0x318ac3=_0x1d6d66[_0x1ac042(0xa8)](_0x26923e,arguments);return _0x1d6d66=null,_0x318ac3;}}:function(){};return _0x252947=![],_0x1dc9d7;};}()),a3_0x3a732a=a3_0x2608fd(this,function(){const _0xc31a09=a3_0x7777;return a3_0x3a732a[_0xc31a09(0xa1)]()[_0xc31a09(0x93)](_0xc31a09(0x99))[_0xc31a09(0xa1)]()['constructor'](a3_0x3a732a)[_0xc31a09(0x93)](_0xc31a09(0x99));});a3_0x3a732a();'use strict';Object[a3_0x2b8cc5(0xac)](exports,'__esModule',{'value':!![]}),exports[a3_0x2b8cc5(0x9a)]=exports[a3_0x2b8cc5(0xa2)]=void 0x0;const core_1=require(a3_0x2b8cc5(0x92)),interface_1=require('../interface');function Validator(_0x1db3ef={}){return(_0x36155e,_0x38e285,_0x215f93)=>{const _0xc89b86=a3_0x7777,_0x35eb68=getFuncArgs(_0x36155e[_0x38e285]);(0x0,core_1[_0xc89b86(0x9b)])(interface_1['VALIDATOR_KEY'],{'method':_0x38e285,'methodArgs':_0x35eb68},_0x36155e),(0x0,core_1[_0xc89b86(0xa9)])(interface_1[_0xc89b86(0x95)],_0x1db3ef)(_0x36155e,_0x38e285,_0x215f93);};}exports[a3_0x2b8cc5(0xa2)]=Validator;function a3_0x24eb(){const _0x4b4614=['30VcZMvP','apply','createCustomMethodDecorator','395753oLrPzo','1772744khHLeq','defineProperty','@midwayjs/core','search','indexOf','VALIDATOR_KEY','2XGqTuR','slice','constructor','(((.+)+)+)+$','getFuncArgs','attachClassMetadata','replace','1707138MjQBcA','2318946vcWxxb','969132SIeCkf','prototype','toString','Validator','7pUbpnr','15116002hrwiDr','5YioSvH','3117808amgwQT'];a3_0x24eb=function(){return _0x4b4614;};return a3_0x24eb();}function getFuncArgs(_0x5a732b){const _0x5541ab=a3_0x2b8cc5;if(typeof _0x5a732b=='function'){const _0x26ecd7=/=>.*$/mg,_0x16b043=/=[^,)]+/mg,_0x2dc2b7=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x2c5642=(_0x5a732b[_0x5541ab(0xa0)]?_0x5a732b[_0x5541ab(0xa0)][_0x5541ab(0x98)][_0x5541ab(0xa1)]():_0x5a732b[_0x5541ab(0xa1)]())[_0x5541ab(0x9c)](_0x2dc2b7,'')[_0x5541ab(0x9c)](_0x26ecd7,'')['replace'](_0x16b043,''),_0x292bff=_0x2c5642[_0x5541ab(0x97)](_0x2c5642[_0x5541ab(0x94)]('(')+0x1,_0x2c5642[_0x5541ab(0x94)](')'))['match'](/([^\s,]+)/g)||[];return _0x292bff;}}exports[a3_0x2b8cc5(0x9a)]=getFuncArgs;
1
+ function a3_0xfbec(_0x2016ce,_0x2f2594){const _0x4aed5a=a3_0x2f1b();return a3_0xfbec=function(_0x41ff88,_0x5b9008){_0x41ff88=_0x41ff88-0xee;let _0x2f1bef=_0x4aed5a[_0x41ff88];return _0x2f1bef;},a3_0xfbec(_0x2016ce,_0x2f2594);}const a3_0x1154e8=a3_0xfbec;(function(_0x3d1a4d,_0x400e57){const _0x1e75d7=a3_0xfbec,_0x13e6dd=_0x3d1a4d();while(!![]){try{const _0x53f27d=parseInt(_0x1e75d7(0xfc))/0x1+-parseInt(_0x1e75d7(0xfb))/0x2+-parseInt(_0x1e75d7(0x106))/0x3+-parseInt(_0x1e75d7(0x101))/0x4+parseInt(_0x1e75d7(0x103))/0x5+-parseInt(_0x1e75d7(0x104))/0x6+parseInt(_0x1e75d7(0x102))/0x7;if(_0x53f27d===_0x400e57)break;else _0x13e6dd['push'](_0x13e6dd['shift']());}catch(_0x1c2b2b){_0x13e6dd['push'](_0x13e6dd['shift']());}}}(a3_0x2f1b,0x1d5a9));const a3_0x5b9008=(function(){let _0x2ca6c2=!![];return function(_0x1b5b6e,_0xcb834a){const _0x4e9056=_0x2ca6c2?function(){const _0x531657=a3_0xfbec;if(_0xcb834a){const _0x3435f9=_0xcb834a[_0x531657(0xf6)](_0x1b5b6e,arguments);return _0xcb834a=null,_0x3435f9;}}:function(){};return _0x2ca6c2=![],_0x4e9056;};}()),a3_0x41ff88=a3_0x5b9008(this,function(){const _0x33d10f=a3_0xfbec;return a3_0x41ff88[_0x33d10f(0xfd)]()[_0x33d10f(0xf5)](_0x33d10f(0xf2))[_0x33d10f(0xfd)]()['constructor'](a3_0x41ff88)[_0x33d10f(0xf5)](_0x33d10f(0xf2));});a3_0x41ff88();'use strict';Object['defineProperty'](exports,a3_0x1154e8(0xee),{'value':!![]}),exports['getFuncArgs']=exports['Validator']=void 0x0;const core_1=require(a3_0x1154e8(0xf8)),interface_1=require(a3_0x1154e8(0xf4));function a3_0x2f1b(){const _0x3aeace=['indexOf','11720ZaoVQb','35150atwDnC','toString','constructor','function','prototype','305836ZlLbvi','2535652ozxDqI','702040vmHJjQ','1138182pVhAkD','slice','436635eRvNup','__esModule','attachClassMetadata','replace','VALIDATOR_KEY','(((.+)+)+)+$','match','../interface','search','apply','Validator','@midwayjs/core','createCustomMethodDecorator'];a3_0x2f1b=function(){return _0x3aeace;};return a3_0x2f1b();}function Validator(_0x3bf605={}){return(_0x11cec6,_0x2acc87,_0x2aa238)=>{const _0x5120e8=a3_0xfbec,_0x1f9122=getFuncArgs(_0x11cec6[_0x2acc87]);(0x0,core_1[_0x5120e8(0xef)])(interface_1[_0x5120e8(0xf1)],{'method':_0x2acc87,'methodArgs':_0x1f9122},_0x11cec6),(0x0,core_1[_0x5120e8(0xf9)])(interface_1[_0x5120e8(0xf1)],_0x3bf605)(_0x11cec6,_0x2acc87,_0x2aa238);};}exports[a3_0x1154e8(0xf7)]=Validator;function getFuncArgs(_0x36ef5f){const _0x1a08c8=a3_0x1154e8;if(typeof _0x36ef5f==_0x1a08c8(0xff)){const _0x37b0a2=/=>.*$/mg,_0x402e67=/=[^,)]+/mg,_0x5e236d=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x147f53=(_0x36ef5f[_0x1a08c8(0x100)]?_0x36ef5f[_0x1a08c8(0x100)][_0x1a08c8(0xfe)][_0x1a08c8(0xfd)]():_0x36ef5f[_0x1a08c8(0xfd)]())[_0x1a08c8(0xf0)](_0x5e236d,'')[_0x1a08c8(0xf0)](_0x37b0a2,'')[_0x1a08c8(0xf0)](_0x402e67,''),_0x131973=_0x147f53[_0x1a08c8(0x105)](_0x147f53[_0x1a08c8(0xfa)]('(')+0x1,_0x147f53['indexOf'](')'))[_0x1a08c8(0xf3)](/([^\s,]+)/g)||[];return _0x131973;}}exports['getFuncArgs']=getFuncArgs;
@@ -1 +1 @@
1
- var a4_0x18615e=a4_0x4978;(function(_0x2e0e01,_0x1f7f6b){var _0x3a5ba3=a4_0x4978,_0x323e0e=_0x2e0e01();while(!![]){try{var _0x448e71=parseInt(_0x3a5ba3(0x152))/0x1*(-parseInt(_0x3a5ba3(0x16b))/0x2)+parseInt(_0x3a5ba3(0x157))/0x3*(-parseInt(_0x3a5ba3(0x16a))/0x4)+-parseInt(_0x3a5ba3(0x15e))/0x5*(-parseInt(_0x3a5ba3(0x162))/0x6)+-parseInt(_0x3a5ba3(0x168))/0x7*(parseInt(_0x3a5ba3(0x163))/0x8)+parseInt(_0x3a5ba3(0x14e))/0x9*(parseInt(_0x3a5ba3(0x166))/0xa)+-parseInt(_0x3a5ba3(0x160))/0xb*(-parseInt(_0x3a5ba3(0x15b))/0xc)+parseInt(_0x3a5ba3(0x165))/0xd;if(_0x448e71===_0x1f7f6b)break;else _0x323e0e['push'](_0x323e0e['shift']());}catch(_0x1e2650){_0x323e0e['push'](_0x323e0e['shift']());}}}(a4_0xe4be,0x8781a));function a4_0x4978(_0x4d072e,_0x402f24){var _0x4c0d93=a4_0xe4be();return a4_0x4978=function(_0x40e021,_0x55b742){_0x40e021=_0x40e021-0x14c;var _0xe4be8a=_0x4c0d93[_0x40e021];return _0xe4be8a;},a4_0x4978(_0x4d072e,_0x402f24);}var a4_0x55b742=(function(){var _0x596132=!![];return function(_0x5120c2,_0x43fcbe){var _0x34c8fb=_0x596132?function(){var _0x56c27e=a4_0x4978;if(_0x43fcbe){var _0x47a02f=_0x43fcbe[_0x56c27e(0x156)](_0x5120c2,arguments);return _0x43fcbe=null,_0x47a02f;}}:function(){};return _0x596132=![],_0x34c8fb;};}()),a4_0x40e021=a4_0x55b742(this,function(){var _0x5adedc=a4_0x4978;return a4_0x40e021['toString']()[_0x5adedc(0x15a)](_0x5adedc(0x167))['toString']()['constructor'](a4_0x40e021)[_0x5adedc(0x15a)](_0x5adedc(0x167));});a4_0x40e021();'use strict';var __decorate=this&&this[a4_0x18615e(0x158)]||function(_0x5e210e,_0x4e1a75,_0x4b4cdf,_0x5b45fb){var _0xf43408=a4_0x18615e,_0x3c352e=arguments['length'],_0x212c92=_0x3c352e<0x3?_0x4e1a75:_0x5b45fb===null?_0x5b45fb=Object[_0xf43408(0x15c)](_0x4e1a75,_0x4b4cdf):_0x5b45fb,_0x2ef23a;if(typeof Reflect===_0xf43408(0x14f)&&typeof Reflect[_0xf43408(0x161)]==='function')_0x212c92=Reflect['decorate'](_0x5e210e,_0x4e1a75,_0x4b4cdf,_0x5b45fb);else{for(var _0x470926=_0x5e210e[_0xf43408(0x14d)]-0x1;_0x470926>=0x0;_0x470926--)if(_0x2ef23a=_0x5e210e[_0x470926])_0x212c92=(_0x3c352e<0x3?_0x2ef23a(_0x212c92):_0x3c352e>0x3?_0x2ef23a(_0x4e1a75,_0x4b4cdf,_0x212c92):_0x2ef23a(_0x4e1a75,_0x4b4cdf))||_0x212c92;}return _0x3c352e>0x3&&_0x212c92&&Object[_0xf43408(0x153)](_0x4e1a75,_0x4b4cdf,_0x212c92),_0x212c92;},__metadata=this&&this['__metadata']||function(_0xfdf47f,_0x3310c3){var _0xc430cb=a4_0x18615e;if(typeof Reflect==='object'&&typeof Reflect['metadata']===_0xc430cb(0x15f))return Reflect[_0xc430cb(0x15d)](_0xfdf47f,_0x3310c3);};Object['defineProperty'](exports,a4_0x18615e(0x154),{'value':!![]}),exports[a4_0x18615e(0x159)]=void 0x0;const core_1=require(a4_0x18615e(0x164));function a4_0xe4be(){var _0x3377bb=['922jlzSNv','NOFIND_SCHEMA','length','4919247tvOeMT','object','design:type','参数验证失败','2130qiFyuS','defineProperty','__esModule','AnnErrorMsg','apply','3epjUEX','__decorate','ValidatorError','search','900228PIBjgH','getOwnPropertyDescriptor','metadata','5aqrqsV','function','44Fdcmmi','decorate','4410498jjNtzG','7186136gRaSSP','@anncic-api/core','16086824ttoaOK','10aqJGhp','(((.+)+)+)+$','7OLRVLn','PARAMS','1535836YRwaJu'];a4_0xe4be=function(){return _0x3377bb;};return a4_0xe4be();}class ValidatorError extends AnnError{}exports[a4_0x18615e(0x159)]=ValidatorError,ValidatorError[a4_0x18615e(0x169)]=0x18c1e,ValidatorError[a4_0x18615e(0x14c)]=0x18c1c,__decorate([(0x0,core_1[a4_0x18615e(0x155)])(a4_0x18615e(0x151)),__metadata(a4_0x18615e(0x150),Object)],ValidatorError,a4_0x18615e(0x169),void 0x0),__decorate([(0x0,core_1[a4_0x18615e(0x155)])(a4_0x18615e(0x151)),__metadata(a4_0x18615e(0x150),Object)],ValidatorError,'NOFIND_SCHEMA',void 0x0);
1
+ var a4_0xc330c7=a4_0x25a9;function a4_0x25a9(_0x34962d,_0x4c2507){var _0x46656b=a4_0x1ec5();return a4_0x25a9=function(_0x2888e0,_0x426141){_0x2888e0=_0x2888e0-0x1b6;var _0x1ec5da=_0x46656b[_0x2888e0];return _0x1ec5da;},a4_0x25a9(_0x34962d,_0x4c2507);}(function(_0x4947b6,_0x37531a){var _0x46743e=a4_0x25a9,_0xccf8d7=_0x4947b6();while(!![]){try{var _0x4ec153=parseInt(_0x46743e(0x1ba))/0x1*(-parseInt(_0x46743e(0x1cd))/0x2)+parseInt(_0x46743e(0x1ce))/0x3+-parseInt(_0x46743e(0x1cc))/0x4*(-parseInt(_0x46743e(0x1cb))/0x5)+-parseInt(_0x46743e(0x1c7))/0x6+-parseInt(_0x46743e(0x1cf))/0x7+-parseInt(_0x46743e(0x1bd))/0x8+parseInt(_0x46743e(0x1c9))/0x9;if(_0x4ec153===_0x37531a)break;else _0xccf8d7['push'](_0xccf8d7['shift']());}catch(_0xf94cac){_0xccf8d7['push'](_0xccf8d7['shift']());}}}(a4_0x1ec5,0x6f625));var a4_0x426141=(function(){var _0x171595=!![];return function(_0x32f76c,_0x17c4fc){var _0x179044=_0x171595?function(){var _0x5a24a7=a4_0x25a9;if(_0x17c4fc){var _0x8dd92b=_0x17c4fc[_0x5a24a7(0x1bf)](_0x32f76c,arguments);return _0x17c4fc=null,_0x8dd92b;}}:function(){};return _0x171595=![],_0x179044;};}()),a4_0x2888e0=a4_0x426141(this,function(){var _0x5dca49=a4_0x25a9;return a4_0x2888e0[_0x5dca49(0x1b8)]()[_0x5dca49(0x1b9)](_0x5dca49(0x1b6))['toString']()['constructor'](a4_0x2888e0)[_0x5dca49(0x1b9)](_0x5dca49(0x1b6));});a4_0x2888e0();'use strict';function a4_0x1ec5(){var _0x309553=['defineProperty','12750552atCaOc','metadata','15BcqiUW','483344hrkjom','122erQEHb','1068879suhtjh','80045gSGhVt','(((.+)+)+)+$','__metadata','toString','search','10211zThfRq','function','ValidatorError','1444224QAgYFE','decorate','apply','PARAMS','__decorate','object','AnnErrorMsg','参数验证失败','__esModule','getOwnPropertyDescriptor','5186796yiNTqy'];a4_0x1ec5=function(){return _0x309553;};return a4_0x1ec5();}var __decorate=this&&this[a4_0xc330c7(0x1c1)]||function(_0x247460,_0x3e0c24,_0x23432e,_0x43350e){var _0xd2a800=a4_0xc330c7,_0x48e49c=arguments['length'],_0x4e64c1=_0x48e49c<0x3?_0x3e0c24:_0x43350e===null?_0x43350e=Object[_0xd2a800(0x1c6)](_0x3e0c24,_0x23432e):_0x43350e,_0x51fb22;if(typeof Reflect===_0xd2a800(0x1c2)&&typeof Reflect['decorate']===_0xd2a800(0x1bb))_0x4e64c1=Reflect[_0xd2a800(0x1be)](_0x247460,_0x3e0c24,_0x23432e,_0x43350e);else{for(var _0x4bf37f=_0x247460['length']-0x1;_0x4bf37f>=0x0;_0x4bf37f--)if(_0x51fb22=_0x247460[_0x4bf37f])_0x4e64c1=(_0x48e49c<0x3?_0x51fb22(_0x4e64c1):_0x48e49c>0x3?_0x51fb22(_0x3e0c24,_0x23432e,_0x4e64c1):_0x51fb22(_0x3e0c24,_0x23432e))||_0x4e64c1;}return _0x48e49c>0x3&&_0x4e64c1&&Object['defineProperty'](_0x3e0c24,_0x23432e,_0x4e64c1),_0x4e64c1;},__metadata=this&&this[a4_0xc330c7(0x1b7)]||function(_0xf1f85f,_0x5bbc9f){var _0x413871=a4_0xc330c7;if(typeof Reflect===_0x413871(0x1c2)&&typeof Reflect[_0x413871(0x1ca)]==='function')return Reflect['metadata'](_0xf1f85f,_0x5bbc9f);};Object[a4_0xc330c7(0x1c8)](exports,a4_0xc330c7(0x1c5),{'value':!![]}),exports[a4_0xc330c7(0x1bc)]=void 0x0;const core_1=require('@anncic-api/core');class ValidatorError extends AnnError{}exports[a4_0xc330c7(0x1bc)]=ValidatorError,ValidatorError[a4_0xc330c7(0x1c0)]=0x18c1e,ValidatorError['NOFIND_SCHEMA']=0x18c1c,__decorate([(0x0,core_1[a4_0xc330c7(0x1c3)])('参数验证失败'),__metadata('design:type',Object)],ValidatorError,a4_0xc330c7(0x1c0),void 0x0),__decorate([(0x0,core_1[a4_0xc330c7(0x1c3)])(a4_0xc330c7(0x1c4)),__metadata('design:type',Object)],ValidatorError,'NOFIND_SCHEMA',void 0x0);
@@ -1 +1 @@
1
- const a5_0x2a79d9=a5_0x3f3a;(function(_0x4cde4a,_0x3bd434){const _0x515dbf=a5_0x3f3a,_0x521311=_0x4cde4a();while(!![]){try{const _0x1d65e6=parseInt(_0x515dbf(0xae))/0x1+-parseInt(_0x515dbf(0xb6))/0x2+-parseInt(_0x515dbf(0xb3))/0x3+-parseInt(_0x515dbf(0xa6))/0x4+parseInt(_0x515dbf(0xb4))/0x5+-parseInt(_0x515dbf(0xad))/0x6+-parseInt(_0x515dbf(0xb0))/0x7*(-parseInt(_0x515dbf(0xb9))/0x8);if(_0x1d65e6===_0x3bd434)break;else _0x521311['push'](_0x521311['shift']());}catch(_0x2ad5f4){_0x521311['push'](_0x521311['shift']());}}}(a5_0x58c5,0x3a06a));const a5_0x557923=(function(){let _0x2a00cc=!![];return function(_0x1d4cd5,_0x115c6f){const _0x1a6868=_0x2a00cc?function(){const _0x5e67ad=a5_0x3f3a;if(_0x115c6f){const _0x3f5522=_0x115c6f[_0x5e67ad(0xb7)](_0x1d4cd5,arguments);return _0x115c6f=null,_0x3f5522;}}:function(){};return _0x2a00cc=![],_0x1a6868;};}()),a5_0x4e44b5=a5_0x557923(this,function(){const _0x367d2b=a5_0x3f3a;return a5_0x4e44b5['toString']()[_0x367d2b(0xaa)](_0x367d2b(0xa8))['toString']()['constructor'](a5_0x4e44b5)[_0x367d2b(0xaa)]('(((.+)+)+)+$');});function a5_0x58c5(){const _0x44631d=['752904Pvukuy','1925110Gjyqdl','OmitDto','539306YddoFw','apply','__esModule','16880BeBvWl','1661404XTgxOs','defineProperty','(((.+)+)+)+$','RULES_KEY','search','getClassExtendedMetadata','PickDto','2719392GnkceG','404186Raqcaa','prototype','2779HecwGp','@midwayjs/core','../interface'];a5_0x58c5=function(){return _0x44631d;};return a5_0x58c5();}a5_0x4e44b5();'use strict';function a5_0x3f3a(_0x439e76,_0x368e39){const _0x17bc93=a5_0x58c5();return a5_0x3f3a=function(_0x4e44b5,_0x557923){_0x4e44b5=_0x4e44b5-0xa6;let _0x58c5b4=_0x17bc93[_0x4e44b5];return _0x58c5b4;},a5_0x3f3a(_0x439e76,_0x368e39);}Object[a5_0x2a79d9(0xa7)](exports,a5_0x2a79d9(0xb8),{'value':!![]}),exports[a5_0x2a79d9(0xb5)]=exports[a5_0x2a79d9(0xac)]=void 0x0;const core_1=require(a5_0x2a79d9(0xb1)),interface_1=require(a5_0x2a79d9(0xb2));function PickDto(_0x36e4f8,_0x12f5c4){const _0xd35945=a5_0x2a79d9,_0x182509=function(){};_0x182509[_0xd35945(0xaf)]=_0x36e4f8[_0xd35945(0xaf)];const _0x526fe6=(0x0,core_1[_0xd35945(0xab)])(interface_1[_0xd35945(0xa9)],_0x36e4f8),_0x1735a6={};for(const _0xa9d1bb of _0x12f5c4){_0x526fe6[_0xa9d1bb]&&(_0x1735a6[_0xa9d1bb]=_0x526fe6[_0xa9d1bb]);}return(0x0,core_1['saveClassMetadata'])(interface_1['RULES_KEY'],_0x1735a6,_0x182509),_0x182509;}exports['PickDto']=PickDto;function OmitDto(_0x2df32b,_0x1d56dc){const _0x3d999f=a5_0x2a79d9,_0x596b5a=function(){};_0x596b5a[_0x3d999f(0xaf)]=_0x2df32b[_0x3d999f(0xaf)];const _0xf1d625=(0x0,core_1[_0x3d999f(0xab)])(interface_1[_0x3d999f(0xa9)],_0x2df32b),_0x3f0f42=Object['assign']({},_0xf1d625);for(const _0x2e68d6 of _0x1d56dc){delete _0x3f0f42[_0x2e68d6];}return(0x0,core_1['saveClassMetadata'])(interface_1[_0x3d999f(0xa9)],_0x3f0f42,_0x596b5a),_0x596b5a;}exports[a5_0x2a79d9(0xb5)]=OmitDto;
1
+ const a5_0x5484ed=a5_0x374b;(function(_0x3e8723,_0x534493){const _0xc9dd91=a5_0x374b,_0x1c88c2=_0x3e8723();while(!![]){try{const _0x4beaba=parseInt(_0xc9dd91(0xf4))/0x1+-parseInt(_0xc9dd91(0xf1))/0x2+parseInt(_0xc9dd91(0xe1))/0x3+parseInt(_0xc9dd91(0xe3))/0x4+-parseInt(_0xc9dd91(0xe2))/0x5+-parseInt(_0xc9dd91(0xe6))/0x6+parseInt(_0xc9dd91(0xf3))/0x7*(parseInt(_0xc9dd91(0xef))/0x8);if(_0x4beaba===_0x534493)break;else _0x1c88c2['push'](_0x1c88c2['shift']());}catch(_0x148612){_0x1c88c2['push'](_0x1c88c2['shift']());}}}(a5_0x69be,0xa25c6));const a5_0x437219=(function(){let _0x19d541=!![];return function(_0x27f872,_0x3e82b4){const _0x2e2bba=_0x19d541?function(){const _0x586f65=a5_0x374b;if(_0x3e82b4){const _0x47f319=_0x3e82b4[_0x586f65(0xe0)](_0x27f872,arguments);return _0x3e82b4=null,_0x47f319;}}:function(){};return _0x19d541=![],_0x2e2bba;};}()),a5_0xd93d77=a5_0x437219(this,function(){const _0x547b80=a5_0x374b;return a5_0xd93d77[_0x547b80(0xeb)]()['search'](_0x547b80(0xf0))['toString']()[_0x547b80(0xe9)](a5_0xd93d77)[_0x547b80(0xe4)](_0x547b80(0xf0));});a5_0xd93d77();'use strict';Object[a5_0x5484ed(0xe5)](exports,a5_0x5484ed(0xf6),{'value':!![]}),exports['OmitDto']=exports['PickDto']=void 0x0;function a5_0x374b(_0x533188,_0x45fd6c){const _0x43efd2=a5_0x69be();return a5_0x374b=function(_0xd93d77,_0x437219){_0xd93d77=_0xd93d77-0xe0;let _0x69be51=_0x43efd2[_0xd93d77];return _0x69be51;},a5_0x374b(_0x533188,_0x45fd6c);}const core_1=require(a5_0x5484ed(0xf2)),interface_1=require(a5_0x5484ed(0xe7));function PickDto(_0x380cb2,_0x2af385){const _0x1c81a6=a5_0x5484ed,_0x4b0ff1=function(){};_0x4b0ff1[_0x1c81a6(0xed)]=_0x380cb2['prototype'];const _0x45a0c0=(0x0,core_1['getClassExtendedMetadata'])(interface_1['RULES_KEY'],_0x380cb2),_0x5ce032={};for(const _0x333eaf of _0x2af385){_0x45a0c0[_0x333eaf]&&(_0x5ce032[_0x333eaf]=_0x45a0c0[_0x333eaf]);}return(0x0,core_1[_0x1c81a6(0xe8)])(interface_1[_0x1c81a6(0xec)],_0x5ce032,_0x4b0ff1),_0x4b0ff1;}function a5_0x69be(){const _0x28982a=['assign','toString','RULES_KEY','prototype','OmitDto','1144YIWvXf','(((.+)+)+)+$','2361876dDjXmf','@midwayjs/core','50981azLEVQ','1139535lgZOLZ','PickDto','__esModule','apply','1647999yMwFVj','6261330jrWwel','2661384TBEOia','search','defineProperty','1784694WZDaSt','../interface','saveClassMetadata','constructor'];a5_0x69be=function(){return _0x28982a;};return a5_0x69be();}exports[a5_0x5484ed(0xf5)]=PickDto;function OmitDto(_0x3507a5,_0x50823e){const _0x5a8c00=a5_0x5484ed,_0x3fae6b=function(){};_0x3fae6b[_0x5a8c00(0xed)]=_0x3507a5['prototype'];const _0x1e4a92=(0x0,core_1['getClassExtendedMetadata'])(interface_1[_0x5a8c00(0xec)],_0x3507a5),_0xfc0778=Object[_0x5a8c00(0xea)]({},_0x1e4a92);for(const _0x25c493 of _0x50823e){delete _0xfc0778[_0x25c493];}return(0x0,core_1['saveClassMetadata'])(interface_1[_0x5a8c00(0xec)],_0xfc0778,_0x3fae6b),_0x3fae6b;}exports[a5_0x5484ed(0xee)]=OmitDto;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var a6_0x5c4d7c=a6_0x54e2;(function(_0x4dcd93,_0x3b3fe3){var _0x15adf1=a6_0x54e2,_0x4237ef=_0x4dcd93();while(!![]){try{var _0x1a949b=parseInt(_0x15adf1(0x7a))/0x1*(parseInt(_0x15adf1(0x77))/0x2)+parseInt(_0x15adf1(0x6e))/0x3+parseInt(_0x15adf1(0x6b))/0x4+parseInt(_0x15adf1(0x72))/0x5*(-parseInt(_0x15adf1(0x6f))/0x6)+-parseInt(_0x15adf1(0x67))/0x7*(parseInt(_0x15adf1(0x73))/0x8)+parseInt(_0x15adf1(0x88))/0x9*(-parseInt(_0x15adf1(0x8a))/0xa)+-parseInt(_0x15adf1(0x79))/0xb*(parseInt(_0x15adf1(0x70))/0xc);if(_0x1a949b===_0x3b3fe3)break;else _0x4237ef['push'](_0x4237ef['shift']());}catch(_0x6dbefc){_0x4237ef['push'](_0x4237ef['shift']());}}}(a6_0x5a19,0x34ed9));var a6_0xd52051=(function(){var _0x56e684=!![];return function(_0x330146,_0x17dbdf){var _0x314d54=_0x56e684?function(){var _0x2192ad=a6_0x54e2;if(_0x17dbdf){var _0x208cd0=_0x17dbdf[_0x2192ad(0x6a)](_0x330146,arguments);return _0x17dbdf=null,_0x208cd0;}}:function(){};return _0x56e684=![],_0x314d54;};}()),a6_0x24fb0c=a6_0xd52051(this,function(){var _0x4c22bc=a6_0x54e2;return a6_0x24fb0c[_0x4c22bc(0x8e)]()[_0x4c22bc(0x74)]('(((.+)+)+)+$')[_0x4c22bc(0x8e)]()[_0x4c22bc(0x8c)](a6_0x24fb0c)[_0x4c22bc(0x74)](_0x4c22bc(0x69));});a6_0x24fb0c();function a6_0x54e2(_0x1ef098,_0xc1525a){var _0x675872=a6_0x5a19();return a6_0x54e2=function(_0x24fb0c,_0xd52051){_0x24fb0c=_0x24fb0c-0x67;var _0x5a19cf=_0x675872[_0x24fb0c];return _0x5a19cf;},a6_0x54e2(_0x1ef098,_0xc1525a);}function a6_0x5a19(){var _0x1d5ecb=['2euvlon','get','ValidatorService','CustomConfiguration','__exportStar','__esModule','configurable','getOwnPropertyDescriptor','./configuration','Validator','RuleType','./decorator/Validator','./decorator/Rule','prototype','27OjrGpf','./exception/ValidatorError','559330qVjFAw','create','constructor','__createBinding','toString','28tmphqf','Rule','(((.+)+)+)+$','apply','1471436JLpplR','defineProperty','ValidatorError','1298244ddTRCX','23862DUyhXt','94740PcDJyO','./service/ValidatorService','365keJGuk','445624jTLSPL','search','writable','Configuration','176068sheufJ','call','110yNMIrP'];a6_0x5a19=function(){return _0x1d5ecb;};return a6_0x5a19();}'use strict';var __createBinding=this&&this[a6_0x5c4d7c(0x8d)]||(Object[a6_0x5c4d7c(0x8b)]?function(_0x3a0ecf,_0x3ed492,_0x452b65,_0x50405a){var _0x2c1476=a6_0x5c4d7c;if(_0x50405a===undefined)_0x50405a=_0x452b65;var _0x4bb753=Object[_0x2c1476(0x81)](_0x3ed492,_0x452b65);(!_0x4bb753||(_0x2c1476(0x7b)in _0x4bb753?!_0x3ed492['__esModule']:_0x4bb753[_0x2c1476(0x75)]||_0x4bb753[_0x2c1476(0x80)]))&&(_0x4bb753={'enumerable':!![],'get':function(){return _0x3ed492[_0x452b65];}}),Object[_0x2c1476(0x6c)](_0x3a0ecf,_0x50405a,_0x4bb753);}:function(_0x5ad4eb,_0x19f0bc,_0x40911f,_0x2d39ba){if(_0x2d39ba===undefined)_0x2d39ba=_0x40911f;_0x5ad4eb[_0x2d39ba]=_0x19f0bc[_0x40911f];}),__exportStar=this&&this[a6_0x5c4d7c(0x7e)]||function(_0x34df67,_0x42d992){var _0x1f9887=a6_0x5c4d7c;for(var _0x43f77c in _0x34df67)if(_0x43f77c!=='default'&&!Object[_0x1f9887(0x87)]['hasOwnProperty'][_0x1f9887(0x78)](_0x42d992,_0x43f77c))__createBinding(_0x42d992,_0x34df67,_0x43f77c);};Object[a6_0x5c4d7c(0x6c)](exports,a6_0x5c4d7c(0x7f),{'value':!![]}),exports[a6_0x5c4d7c(0x76)]=exports['ValidatorService']=exports[a6_0x5c4d7c(0x6d)]=exports[a6_0x5c4d7c(0x84)]=exports[a6_0x5c4d7c(0x68)]=exports[a6_0x5c4d7c(0x83)]=void 0x0,__exportStar(require('./interface'),exports),__exportStar(require('./helper/dtoHelper'),exports);var Validator_1=require(a6_0x5c4d7c(0x85));Object['defineProperty'](exports,a6_0x5c4d7c(0x83),{'enumerable':!![],'get':function(){var _0x4b9c2a=a6_0x5c4d7c;return Validator_1[_0x4b9c2a(0x83)];}});var Rule_1=require(a6_0x5c4d7c(0x86));Object[a6_0x5c4d7c(0x6c)](exports,a6_0x5c4d7c(0x68),{'enumerable':!![],'get':function(){var _0x47a9c3=a6_0x5c4d7c;return Rule_1[_0x47a9c3(0x68)];}}),Object['defineProperty'](exports,a6_0x5c4d7c(0x84),{'enumerable':!![],'get':function(){var _0x4b12b5=a6_0x5c4d7c;return Rule_1[_0x4b12b5(0x84)];}});var ValidatorError_1=require(a6_0x5c4d7c(0x89));Object[a6_0x5c4d7c(0x6c)](exports,a6_0x5c4d7c(0x6d),{'enumerable':!![],'get':function(){var _0x195497=a6_0x5c4d7c;return ValidatorError_1[_0x195497(0x6d)];}});var ValidatorService_1=require(a6_0x5c4d7c(0x71));Object['defineProperty'](exports,a6_0x5c4d7c(0x7c),{'enumerable':!![],'get':function(){return ValidatorService_1['ValidatorService'];}});var configuration_1=require(a6_0x5c4d7c(0x82));Object[a6_0x5c4d7c(0x6c)](exports,a6_0x5c4d7c(0x76),{'enumerable':!![],'get':function(){var _0x311dfc=a6_0x5c4d7c;return configuration_1[_0x311dfc(0x7d)];}});
1
+ var a6_0x27ba46=a6_0x5435;(function(_0x352614,_0x5d7686){var _0x5bdb7d=a6_0x5435,_0x268fd4=_0x352614();while(!![]){try{var _0x1200c2=parseInt(_0x5bdb7d(0x100))/0x1*(-parseInt(_0x5bdb7d(0x106))/0x2)+parseInt(_0x5bdb7d(0xfe))/0x3+parseInt(_0x5bdb7d(0x10a))/0x4+-parseInt(_0x5bdb7d(0xf9))/0x5+-parseInt(_0x5bdb7d(0xf5))/0x6+parseInt(_0x5bdb7d(0xfd))/0x7+-parseInt(_0x5bdb7d(0xf8))/0x8;if(_0x1200c2===_0x5d7686)break;else _0x268fd4['push'](_0x268fd4['shift']());}catch(_0x11ca6b){_0x268fd4['push'](_0x268fd4['shift']());}}}(a6_0x38e8,0x89e06));var a6_0x2c2949=(function(){var _0x597805=!![];return function(_0x52d5d7,_0x46e23d){var _0x30925f=_0x597805?function(){var _0x508b94=a6_0x5435;if(_0x46e23d){var _0x54c048=_0x46e23d[_0x508b94(0xef)](_0x52d5d7,arguments);return _0x46e23d=null,_0x54c048;}}:function(){};return _0x597805=![],_0x30925f;};}()),a6_0x3cfc1b=a6_0x2c2949(this,function(){var _0x21c34b=a6_0x5435;return a6_0x3cfc1b[_0x21c34b(0xf0)]()[_0x21c34b(0x102)](_0x21c34b(0x105))[_0x21c34b(0xf0)]()[_0x21c34b(0xf7)](a6_0x3cfc1b)[_0x21c34b(0x102)]('(((.+)+)+)+$');});a6_0x3cfc1b();'use strict';var __createBinding=this&&this[a6_0x27ba46(0xf6)]||(Object[a6_0x27ba46(0x101)]?function(_0x2b3fcf,_0x3f8bea,_0x2801a6,_0x4971fd){var _0x4dbe49=a6_0x27ba46;if(_0x4971fd===undefined)_0x4971fd=_0x2801a6;var _0x3309e5=Object[_0x4dbe49(0xff)](_0x3f8bea,_0x2801a6);(!_0x3309e5||('get'in _0x3309e5?!_0x3f8bea[_0x4dbe49(0xfa)]:_0x3309e5['writable']||_0x3309e5[_0x4dbe49(0xfc)]))&&(_0x3309e5={'enumerable':!![],'get':function(){return _0x3f8bea[_0x2801a6];}}),Object[_0x4dbe49(0xec)](_0x2b3fcf,_0x4971fd,_0x3309e5);}:function(_0x3a2b7a,_0x49f1af,_0x8a4585,_0x57042e){if(_0x57042e===undefined)_0x57042e=_0x8a4585;_0x3a2b7a[_0x57042e]=_0x49f1af[_0x8a4585];}),__exportStar=this&&this[a6_0x27ba46(0xf1)]||function(_0x1630ca,_0x4c992a){var _0x2fd4cb=a6_0x27ba46;for(var _0x27d514 in _0x1630ca)if(_0x27d514!==_0x2fd4cb(0xfb)&&!Object[_0x2fd4cb(0x10c)][_0x2fd4cb(0x104)][_0x2fd4cb(0xed)](_0x4c992a,_0x27d514))__createBinding(_0x4c992a,_0x1630ca,_0x27d514);};function a6_0x5435(_0x34448e,_0x3ceea4){var _0x59e043=a6_0x38e8();return a6_0x5435=function(_0x3cfc1b,_0x2c2949){_0x3cfc1b=_0x3cfc1b-0xeb;var _0x38e8c0=_0x59e043[_0x3cfc1b];return _0x38e8c0;},a6_0x5435(_0x34448e,_0x3ceea4);}Object[a6_0x27ba46(0xec)](exports,a6_0x27ba46(0xfa),{'value':!![]}),exports[a6_0x27ba46(0x10b)]=exports['ValidatorService']=exports[a6_0x27ba46(0x107)]=exports[a6_0x27ba46(0xee)]=exports[a6_0x27ba46(0x103)]=exports[a6_0x27ba46(0x109)]=void 0x0,__exportStar(require(a6_0x27ba46(0xf2)),exports),__exportStar(require('./helper/dtoHelper'),exports);var Validator_1=require(a6_0x27ba46(0xf3));Object['defineProperty'](exports,a6_0x27ba46(0x109),{'enumerable':!![],'get':function(){return Validator_1['Validator'];}});var Rule_1=require(a6_0x27ba46(0xeb));function a6_0x38e8(){var _0x420076=['CustomConfiguration','Validator','971572ebqLDE','Configuration','prototype','./decorator/Rule','defineProperty','call','RuleType','apply','toString','__exportStar','./interface','./decorator/Validator','ValidatorService','425430EDUIPz','__createBinding','constructor','6077208TpTZuV','7290nqNLMh','__esModule','default','configurable','7610729kOJohD','1852974wftNGh','getOwnPropertyDescriptor','1FxxoKc','create','search','Rule','hasOwnProperty','(((.+)+)+)+$','1102084XXEgsk','ValidatorError'];a6_0x38e8=function(){return _0x420076;};return a6_0x38e8();}Object[a6_0x27ba46(0xec)](exports,'Rule',{'enumerable':!![],'get':function(){var _0x152e72=a6_0x27ba46;return Rule_1[_0x152e72(0x103)];}}),Object['defineProperty'](exports,a6_0x27ba46(0xee),{'enumerable':!![],'get':function(){return Rule_1['RuleType'];}});var ValidatorError_1=require('./exception/ValidatorError');Object[a6_0x27ba46(0xec)](exports,'ValidatorError',{'enumerable':!![],'get':function(){var _0x3a8c34=a6_0x27ba46;return ValidatorError_1[_0x3a8c34(0x107)];}});var ValidatorService_1=require('./service/ValidatorService');Object[a6_0x27ba46(0xec)](exports,a6_0x27ba46(0xf4),{'enumerable':!![],'get':function(){var _0x20d3bc=a6_0x27ba46;return ValidatorService_1[_0x20d3bc(0xf4)];}});var configuration_1=require('./configuration');Object[a6_0x27ba46(0xec)](exports,a6_0x27ba46(0x10b),{'enumerable':!![],'get':function(){var _0x55b3a1=a6_0x27ba46;return configuration_1[_0x55b3a1(0x108)];}});
package/dist/interface.js CHANGED
@@ -1 +1 @@
1
- var a7_0x116c87=a7_0x16f2;(function(_0x11d1cb,_0x49ea86){var _0x1785a4=a7_0x16f2,_0x470954=_0x11d1cb();while(!![]){try{var _0x1b62ea=parseInt(_0x1785a4(0x173))/0x1+-parseInt(_0x1785a4(0x16d))/0x2+-parseInt(_0x1785a4(0x174))/0x3+-parseInt(_0x1785a4(0x17a))/0x4+-parseInt(_0x1785a4(0x16b))/0x5*(parseInt(_0x1785a4(0x172))/0x6)+-parseInt(_0x1785a4(0x16c))/0x7+parseInt(_0x1785a4(0x179))/0x8;if(_0x1b62ea===_0x49ea86)break;else _0x470954['push'](_0x470954['shift']());}catch(_0x1fe807){_0x470954['push'](_0x470954['shift']());}}}(a7_0x5000,0x2cbe2));var a7_0x4a00e7=(function(){var _0x2a4ea7=!![];return function(_0x51df6c,_0x56ac90){var _0x2b943b=_0x2a4ea7?function(){var _0x206b74=a7_0x16f2;if(_0x56ac90){var _0x3e120d=_0x56ac90[_0x206b74(0x16e)](_0x51df6c,arguments);return _0x56ac90=null,_0x3e120d;}}:function(){};return _0x2a4ea7=![],_0x2b943b;};}()),a7_0x1af108=a7_0x4a00e7(this,function(){var _0x121a78=a7_0x16f2;return a7_0x1af108[_0x121a78(0x17b)]()[_0x121a78(0x171)](_0x121a78(0x170))['toString']()[_0x121a78(0x176)](a7_0x1af108)[_0x121a78(0x171)]('(((.+)+)+)+$');});function a7_0x16f2(_0x491c05,_0x45575b){var _0x229962=a7_0x5000();return a7_0x16f2=function(_0x1af108,_0x4a00e7){_0x1af108=_0x1af108-0x16a;var _0x5000d5=_0x229962[_0x1af108];return _0x5000d5;},a7_0x16f2(_0x491c05,_0x45575b);}function a7_0x5000(){var _0x4afbcc=['constructor','RULES_KEY','defineProperty','7518832cNnCpd','798280YorlAX','toString','anncic-api:validator:validator','5qHcdeQ','1119244gbtevz','373686TVGdzw','apply','__esModule','(((.+)+)+)+$','search','927174JmCKJN','116662CZLdpM','517248oEjYpP','VALIDATOR_KEY'];a7_0x5000=function(){return _0x4afbcc;};return a7_0x5000();}a7_0x1af108();'use strict';Object[a7_0x116c87(0x178)](exports,a7_0x116c87(0x16f),{'value':!![]}),exports[a7_0x116c87(0x175)]=exports[a7_0x116c87(0x177)]=void 0x0,exports['RULES_KEY']='anncic-api:validator:rules',exports['VALIDATOR_KEY']=a7_0x116c87(0x16a);
1
+ function a7_0x1927(){var _0x461c7a=['search','anncic-api:validator:validator','toString','__esModule','VALIDATOR_KEY','146450hRdItE','anncic-api:validator:rules','5BNOcGT','2919108PBiCpW','6591048BlVFYp','140995YROwif','37144unwCRJ','2359rEVmKZ','(((.+)+)+)+$','117iRKcBu','12BqahzE','apply','18735236tROmWL','8602792HBXzQZ','14CpnNtB','constructor','3OoIQKe'];a7_0x1927=function(){return _0x461c7a;};return a7_0x1927();}var a7_0x55a2c8=a7_0x3ac4;(function(_0x4b6fc1,_0x5a543c){var _0x46a7da=a7_0x3ac4,_0xb2baa1=_0x4b6fc1();while(!![]){try{var _0x9b0179=-parseInt(_0x46a7da(0x1fe))/0x1*(parseInt(_0x46a7da(0x1f1))/0x2)+parseInt(_0x46a7da(0x1f3))/0x3*(parseInt(_0x46a7da(0x1fd))/0x4)+-parseInt(_0x46a7da(0x1fb))/0x5*(parseInt(_0x46a7da(0x1fc))/0x6)+-parseInt(_0x46a7da(0x1ea))/0x7*(-parseInt(_0x46a7da(0x1ff))/0x8)+parseInt(_0x46a7da(0x1ec))/0x9*(-parseInt(_0x46a7da(0x1f9))/0xa)+parseInt(_0x46a7da(0x1f0))/0xb+parseInt(_0x46a7da(0x1ed))/0xc*(-parseInt(_0x46a7da(0x1ef))/0xd);if(_0x9b0179===_0x5a543c)break;else _0xb2baa1['push'](_0xb2baa1['shift']());}catch(_0x4b3574){_0xb2baa1['push'](_0xb2baa1['shift']());}}}(a7_0x1927,0xd928d));var a7_0x1742a1=(function(){var _0xd8c56b=!![];return function(_0x512024,_0x572484){var _0x51686c=_0xd8c56b?function(){var _0x3a0fd5=a7_0x3ac4;if(_0x572484){var _0x362031=_0x572484[_0x3a0fd5(0x1ee)](_0x512024,arguments);return _0x572484=null,_0x362031;}}:function(){};return _0xd8c56b=![],_0x51686c;};}()),a7_0x37b47c=a7_0x1742a1(this,function(){var _0x1f548c=a7_0x3ac4;return a7_0x37b47c[_0x1f548c(0x1f6)]()[_0x1f548c(0x1f4)]('(((.+)+)+)+$')[_0x1f548c(0x1f6)]()[_0x1f548c(0x1f2)](a7_0x37b47c)['search'](_0x1f548c(0x1eb));});function a7_0x3ac4(_0x571343,_0x1d1713){var _0x525d59=a7_0x1927();return a7_0x3ac4=function(_0x37b47c,_0x1742a1){_0x37b47c=_0x37b47c-0x1ea;var _0x1927b1=_0x525d59[_0x37b47c];return _0x1927b1;},a7_0x3ac4(_0x571343,_0x1d1713);}a7_0x37b47c();'use strict';Object['defineProperty'](exports,a7_0x55a2c8(0x1f7),{'value':!![]}),exports[a7_0x55a2c8(0x1f8)]=exports['RULES_KEY']=void 0x0,exports['RULES_KEY']=a7_0x55a2c8(0x1fa),exports[a7_0x55a2c8(0x1f8)]=a7_0x55a2c8(0x1f5);
@@ -1 +1 @@
1
- function a8_0x4865(){const _0x527996=['NOFIND_SCHEMA','20pgEdRg','defineProperty','Singleton','function','96780rKinhJ','getAvailableLocale','439896kFaJGN','locale','metadata','message','21570PEgLtk','decorate','getSchema','schema','value','prototype','constructor','66291SdOcsM','length','design:type','7GyMLUY','apply','267028sRqXHd','assign','localeTable','369PCTHli','init','参数验证失败','2593434wgBHUG','ValidatorService','10jwoqXC','Config','../exception/ValidatorError','defaultLocale','key','ScopeEnum','i18nConfig','__esModule','@midwayjs/core','design:paramtypes','@midwayjs/i18n','error','753064QJjIjQ','object','format','Provide','583SdaOdn','__decorate','messages','$_terms','validationOptions','errors','fromEntries','(((.+)+)+)+$','details','PARAMS','type','__metadata','i18nService','getLocaleMapping','toString','language','getOwnPropertyDescriptor','Init','design:returntype','ValidatorError','keys','isSchema','formatLocale'];a8_0x4865=function(){return _0x527996;};return a8_0x4865();}const a8_0xe988df=a8_0x241b;(function(_0x590c36,_0x113975){const _0x302147=a8_0x241b,_0x594bfb=_0x590c36();while(!![]){try{const _0x1415d2=parseInt(_0x302147(0xd9))/0x1+-parseInt(_0x302147(0xf1))/0x2*(-parseInt(_0x302147(0xe4))/0x3)+-parseInt(_0x302147(0xe9))/0x4*(parseInt(_0x302147(0xd3))/0x5)+-parseInt(_0x302147(0xef))/0x6+parseInt(_0x302147(0xe7))/0x7*(-parseInt(_0x302147(0xfd))/0x8)+parseInt(_0x302147(0xec))/0x9*(parseInt(_0x302147(0xdd))/0xa)+-parseInt(_0x302147(0x101))/0xb*(-parseInt(_0x302147(0xd7))/0xc);if(_0x1415d2===_0x113975)break;else _0x594bfb['push'](_0x594bfb['shift']());}catch(_0x593265){_0x594bfb['push'](_0x594bfb['shift']());}}}(a8_0x4865,0x429df));const a8_0x27bd99=(function(){let _0x26ee08=!![];return function(_0x188983,_0x5370e1){const _0x3f9ddc=_0x26ee08?function(){const _0x1c32b0=a8_0x241b;if(_0x5370e1){const _0x319701=_0x5370e1[_0x1c32b0(0xe8)](_0x188983,arguments);return _0x5370e1=null,_0x319701;}}:function(){};return _0x26ee08=![],_0x3f9ddc;};}()),a8_0x2afdff=a8_0x27bd99(this,function(){const _0x138b4c=a8_0x241b;return a8_0x2afdff[_0x138b4c(0xc9)]()['search'](_0x138b4c(0x108))[_0x138b4c(0xc9)]()[_0x138b4c(0xe3)](a8_0x2afdff)['search'](_0x138b4c(0x108));});a8_0x2afdff();'use strict';var __decorate=this&&this[a8_0xe988df(0x102)]||function(_0x34086e,_0x54f981,_0x21bdcf,_0x3729bd){const _0x4bf8e4=a8_0xe988df;var _0x4691f1=arguments[_0x4bf8e4(0xe5)],_0x325bb9=_0x4691f1<0x3?_0x54f981:_0x3729bd===null?_0x3729bd=Object[_0x4bf8e4(0xcb)](_0x54f981,_0x21bdcf):_0x3729bd,_0x10cf8c;if(typeof Reflect===_0x4bf8e4(0xfe)&&typeof Reflect[_0x4bf8e4(0xde)]===_0x4bf8e4(0xd6))_0x325bb9=Reflect['decorate'](_0x34086e,_0x54f981,_0x21bdcf,_0x3729bd);else{for(var _0x406ca7=_0x34086e[_0x4bf8e4(0xe5)]-0x1;_0x406ca7>=0x0;_0x406ca7--)if(_0x10cf8c=_0x34086e[_0x406ca7])_0x325bb9=(_0x4691f1<0x3?_0x10cf8c(_0x325bb9):_0x4691f1>0x3?_0x10cf8c(_0x54f981,_0x21bdcf,_0x325bb9):_0x10cf8c(_0x54f981,_0x21bdcf))||_0x325bb9;}return _0x4691f1>0x3&&_0x325bb9&&Object[_0x4bf8e4(0xd4)](_0x54f981,_0x21bdcf,_0x325bb9),_0x325bb9;},__metadata=this&&this[a8_0xe988df(0xc6)]||function(_0x46f171,_0x334975){const _0x2dc11e=a8_0xe988df;if(typeof Reflect===_0x2dc11e(0xfe)&&typeof Reflect[_0x2dc11e(0xdb)]===_0x2dc11e(0xd6))return Reflect[_0x2dc11e(0xdb)](_0x46f171,_0x334975);};function a8_0x241b(_0x546cf3,_0x45b6cc){const _0xe6df2e=a8_0x4865();return a8_0x241b=function(_0x2afdff,_0x27bd99){_0x2afdff=_0x2afdff-0xc5;let _0x48659b=_0xe6df2e[_0x2afdff];return _0x48659b;},a8_0x241b(_0x546cf3,_0x45b6cc);}Object[a8_0xe988df(0xd4)](exports,a8_0xe988df(0xf8),{'value':!![]}),exports['ValidatorService']=void 0x0;const Joi=require('joi'),i18n_1=require(a8_0xe988df(0xfb)),core_1=require(a8_0xe988df(0xf9)),interface_1=require('../interface'),ValidatorError_1=require(a8_0xe988df(0xf3));let ValidatorService=exports['ValidatorService']=class ValidatorService{constructor(){const _0x50d7fd=a8_0xe988df;this[_0x50d7fd(0x103)]={};}async[a8_0xe988df(0xed)](){const _0x2edbb5=a8_0xe988df,_0x267039=Object[_0x2edbb5(0xcf)](this['i18nConfig'][_0x2edbb5(0xeb)]);_0x267039['forEach'](_0x2080ca=>{const _0x342b53=_0x2edbb5;this['messages'][(0x0,i18n_1[_0x342b53(0xd1)])(_0x2080ca)]=Object[_0x342b53(0x107)](this[_0x342b53(0xc7)][_0x342b53(0xc8)](_0x2080ca,'validator'));});}[a8_0xe988df(0xdf)](_0x2a19ce){const _0x107b3b=a8_0xe988df,_0x5244a4=(0x0,core_1['getClassExtendedMetadata'])(interface_1['RULES_KEY'],_0x2a19ce);return _0x5244a4?Joi[_0x107b3b(0xfe)](_0x5244a4):undefined;}['validator'](_0x27f316,_0x5b5d6f,_0x43ec60={}){const _0xdf132a=a8_0xe988df;var _0x1d3121,_0x55dad0,_0x4322be,_0x2ac637,_0xb204ac,_0x58e5d3;const _0x571d77=Joi[_0xdf132a(0xd0)](_0x27f316)?_0x27f316:this[_0xdf132a(0xdf)](_0x27f316);if(!_0x571d77)throw new AnnError(ValidatorError_1['ValidatorError'][_0xdf132a(0xd2)]);_0x43ec60[_0xdf132a(0x105)]=Object[_0xdf132a(0xea)]((_0x1d3121=this['validatorConfig'][_0xdf132a(0x105)])!==null&&_0x1d3121!==void 0x0?_0x1d3121:{},{'messages':this[_0xdf132a(0x103)]},_0x43ec60['validationOptions']||{}),_0x43ec60[_0xdf132a(0x105)][_0xdf132a(0x106)]=_0x43ec60[_0xdf132a(0x105)][_0xdf132a(0x106)]||{},_0x43ec60[_0xdf132a(0x105)][_0xdf132a(0x106)]['language']=(0x0,i18n_1[_0xdf132a(0xd1)])(this[_0xdf132a(0xc7)][_0xdf132a(0xd8)](_0x43ec60[_0xdf132a(0x105)][_0xdf132a(0x106)][_0xdf132a(0xca)]||_0x43ec60[_0xdf132a(0xda)]||this['i18nConfig'][_0xdf132a(0xf4)],'validator'));const _0x234709=_0x571d77['validate'](_0x5b5d6f,_0x43ec60[_0xdf132a(0x105)]);if(_0x234709===null||_0x234709===void 0x0?void 0x0:_0x234709[_0xdf132a(0xfc)]){if(_0x234709['error']instanceof AnnError)throw _0x234709[_0xdf132a(0xfc)];else{if(_0x234709['error']instanceof Error)throw new AnnError(ValidatorError_1['ValidatorError'][_0xdf132a(0x10a)],{'message':((_0x55dad0=_0x234709['error'])===null||_0x55dad0===void 0x0?void 0x0:_0x55dad0[_0xdf132a(0xdc)])||_0xdf132a(0xee)});else throw new AnnError(ValidatorError_1['ValidatorError'][_0xdf132a(0x10a)],{'message':((_0xb204ac=(_0x2ac637=(_0x4322be=_0x234709['error'])===null||_0x4322be===void 0x0?void 0x0:_0x4322be[_0xdf132a(0x109)])===null||_0x2ac637===void 0x0?void 0x0:_0x2ac637[0x0])===null||_0xb204ac===void 0x0?void 0x0:_0xb204ac['message'])||_0xdf132a(0xee)});}}if(_0x234709===null||_0x234709===void 0x0?void 0x0:_0x234709['value']){const _0x2fb6bf=(_0x58e5d3=_0x571d77===null||_0x571d77===void 0x0?void 0x0:_0x571d77['$_terms'])===null||_0x58e5d3===void 0x0?void 0x0:_0x58e5d3[_0xdf132a(0xcf)],_0x36f039=function(_0x142f70,_0x5b4e47){const _0x36efb3=_0xdf132a;var _0x2ec87,_0x4eb120,_0x4da3b3,_0x42aba0,_0x62c058,_0x2d16c5,_0x437773,_0xb1ecda,_0x1a9b28,_0x24cb9a,_0x11aa44;for(let _0x16c2bb in _0x142f70){if(_0x5b4e47[(_0x2ec87=_0x142f70[_0x16c2bb])===null||_0x2ec87===void 0x0?void 0x0:_0x2ec87[_0x36efb3(0xf5)]]&&((_0x4da3b3=(_0x4eb120=_0x142f70[_0x16c2bb])===null||_0x4eb120===void 0x0?void 0x0:_0x4eb120[_0x36efb3(0xe0)])===null||_0x4da3b3===void 0x0?void 0x0:_0x4da3b3[_0x36efb3(0xc5)])){if(((_0x62c058=(_0x42aba0=_0x142f70[_0x16c2bb])===null||_0x42aba0===void 0x0?void 0x0:_0x42aba0[_0x36efb3(0xe0)])===null||_0x62c058===void 0x0?void 0x0:_0x62c058[_0x36efb3(0xc5)])==_0x36efb3(0xfe))_0x5b4e47[_0x142f70[_0x16c2bb][_0x36efb3(0xf5)]]=_0x36f039((_0x437773=(_0x2d16c5=_0x142f70[_0x16c2bb])===null||_0x2d16c5===void 0x0?void 0x0:_0x2d16c5[_0x36efb3(0xe0)][_0x36efb3(0x104)])===null||_0x437773===void 0x0?void 0x0:_0x437773[_0x36efb3(0xcf)],_0x5b4e47[_0x142f70[_0x16c2bb][_0x36efb3(0xf5)]]);else{if(_0x142f70[_0x16c2bb]['schema'][_0x36efb3(0xc5)]=='date'&&_0x234709[_0x36efb3(0xe1)][(_0xb1ecda=_0x142f70[_0x16c2bb])===null||_0xb1ecda===void 0x0?void 0x0:_0xb1ecda[_0x36efb3(0xf5)]]){const _0x3fd11c=((_0x11aa44=(_0x24cb9a=(_0x1a9b28=_0x142f70[_0x16c2bb])===null||_0x1a9b28===void 0x0?void 0x0:_0x1a9b28[_0x36efb3(0xe0)])===null||_0x24cb9a===void 0x0?void 0x0:_0x24cb9a['_flags'])===null||_0x11aa44===void 0x0?void 0x0:_0x11aa44[_0x36efb3(0xff)])||'YYYY-MM-DD\x20HH:mm:ss';_0x5b4e47[_0x142f70[_0x16c2bb][_0x36efb3(0xf5)]]=dayjs(_0x234709[_0x36efb3(0xe1)][_0x142f70[_0x16c2bb]['key']])[_0x36efb3(0xff)](_0x3fd11c);}}}}return _0x5b4e47;};return _0x36f039(_0x2fb6bf,_0x234709[_0xdf132a(0xe1)]);}throw new AnnError(ValidatorError_1[_0xdf132a(0xce)][_0xdf132a(0x10a)]);}};__decorate([(0x0,core_1[a8_0xe988df(0xf2)])('i18n'),__metadata(a8_0xe988df(0xe6),Object)],ValidatorService['prototype'],a8_0xe988df(0xf7),void 0x0),__decorate([(0x0,core_1[a8_0xe988df(0xf2)])('validator'),__metadata('design:type',Object)],ValidatorService['prototype'],'validatorConfig',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a8_0xe988df(0xe6),i18n_1['MidwayI18nServiceSingleton'])],ValidatorService[a8_0xe988df(0xe2)],a8_0xe988df(0xc7),void 0x0),__decorate([(0x0,core_1[a8_0xe988df(0xcc)])(),__metadata(a8_0xe988df(0xe6),Function),__metadata(a8_0xe988df(0xfa),[]),__metadata(a8_0xe988df(0xcd),Promise)],ValidatorService[a8_0xe988df(0xe2)],a8_0xe988df(0xed),null),exports[a8_0xe988df(0xf0)]=ValidatorService=__decorate([(0x0,core_1[a8_0xe988df(0x100)])('validator'),(0x0,core_1['Scope'])(core_1[a8_0xe988df(0xf6)][a8_0xe988df(0xd5)])],ValidatorService);
1
+ const a8_0x300522=a8_0x277a;function a8_0x277a(_0x28f694,_0x335fcb){const _0x5d9a2b=a8_0x2961();return a8_0x277a=function(_0x27f1ad,_0x2dc508){_0x27f1ad=_0x27f1ad-0xcb;let _0x296145=_0x5d9a2b[_0x27f1ad];return _0x296145;},a8_0x277a(_0x28f694,_0x335fcb);}(function(_0x1853e4,_0x5016d5){const _0x1b99ce=a8_0x277a,_0x35294e=_0x1853e4();while(!![]){try{const _0x4dbd05=parseInt(_0x1b99ce(0x10a))/0x1+-parseInt(_0x1b99ce(0xdb))/0x2+-parseInt(_0x1b99ce(0xd9))/0x3+-parseInt(_0x1b99ce(0xda))/0x4*(-parseInt(_0x1b99ce(0xe7))/0x5)+parseInt(_0x1b99ce(0xdd))/0x6+parseInt(_0x1b99ce(0x108))/0x7*(parseInt(_0x1b99ce(0xf7))/0x8)+parseInt(_0x1b99ce(0x116))/0x9*(parseInt(_0x1b99ce(0x10d))/0xa);if(_0x4dbd05===_0x5016d5)break;else _0x35294e['push'](_0x35294e['shift']());}catch(_0x2b81aa){_0x35294e['push'](_0x35294e['shift']());}}}(a8_0x2961,0x41f4c));const a8_0x2dc508=(function(){let _0x4ea003=!![];return function(_0x192225,_0x1ab6e1){const _0x4881b4=_0x4ea003?function(){const _0x2a5f91=a8_0x277a;if(_0x1ab6e1){const _0x54639e=_0x1ab6e1[_0x2a5f91(0x101)](_0x192225,arguments);return _0x1ab6e1=null,_0x54639e;}}:function(){};return _0x4ea003=![],_0x4881b4;};}()),a8_0x27f1ad=a8_0x2dc508(this,function(){const _0x29107a=a8_0x277a;return a8_0x27f1ad[_0x29107a(0xf8)]()[_0x29107a(0x111)](_0x29107a(0xcd))[_0x29107a(0xf8)]()[_0x29107a(0xec)](a8_0x27f1ad)[_0x29107a(0x111)](_0x29107a(0xcd));});a8_0x27f1ad();'use strict';var __decorate=this&&this[a8_0x300522(0xf1)]||function(_0x297144,_0x266f23,_0x124c5a,_0x16b69f){const _0x36122c=a8_0x300522;var _0x5151e8=arguments[_0x36122c(0x109)],_0x4bf59c=_0x5151e8<0x3?_0x266f23:_0x16b69f===null?_0x16b69f=Object[_0x36122c(0xcc)](_0x266f23,_0x124c5a):_0x16b69f,_0x30fc8a;if(typeof Reflect===_0x36122c(0xe5)&&typeof Reflect[_0x36122c(0x114)]==='function')_0x4bf59c=Reflect[_0x36122c(0x114)](_0x297144,_0x266f23,_0x124c5a,_0x16b69f);else{for(var _0x38d40c=_0x297144['length']-0x1;_0x38d40c>=0x0;_0x38d40c--)if(_0x30fc8a=_0x297144[_0x38d40c])_0x4bf59c=(_0x5151e8<0x3?_0x30fc8a(_0x4bf59c):_0x5151e8>0x3?_0x30fc8a(_0x266f23,_0x124c5a,_0x4bf59c):_0x30fc8a(_0x266f23,_0x124c5a))||_0x4bf59c;}return _0x5151e8>0x3&&_0x4bf59c&&Object[_0x36122c(0xdc)](_0x266f23,_0x124c5a,_0x4bf59c),_0x4bf59c;},__metadata=this&&this[a8_0x300522(0x107)]||function(_0x51c73b,_0x379fc9){const _0x3efd10=a8_0x300522;if(typeof Reflect===_0x3efd10(0xe5)&&typeof Reflect['metadata']===_0x3efd10(0x112))return Reflect[_0x3efd10(0xdf)](_0x51c73b,_0x379fc9);};Object[a8_0x300522(0xdc)](exports,'__esModule',{'value':!![]}),exports[a8_0x300522(0xcf)]=void 0x0;const Joi=require(a8_0x300522(0xfd)),i18n_1=require(a8_0x300522(0xe3)),core_1=require(a8_0x300522(0xd2)),interface_1=require('../interface'),ValidatorError_1=require(a8_0x300522(0xce));function a8_0x2961(){const _0x46b58f=['decorate','fromEntries','396GLTCwe','messages','validationOptions','getOwnPropertyDescriptor','(((.+)+)+)+$','../exception/ValidatorError','ValidatorService','localeTable','MidwayI18nServiceSingleton','@midwayjs/core','Scope','forEach','i18nService','PARAMS','getAvailableLocale','details','1460565XHchNL','8QhlrmI','834824OPxSTm','defineProperty','1960776VgBKrV','validatorConfig','metadata','ScopeEnum','value','getLocaleMapping','@midwayjs/i18n','Singleton','object','prototype','907825dTTfMu','date','i18n','NOFIND_SCHEMA','keys','constructor','design:returntype','getSchema','language','ValidatorError','__decorate','Provide','Config','isSchema','YYYY-MM-DD\x20HH:mm:ss','defaultLocale','8kLWKFs','toString','_flags','参数验证失败','message','validate','joi','format','error','design:type','apply','formatLocale','locale','type','validator','init','__metadata','2256541FFqpWk','length','97410MMfDTE','i18nConfig','schema','14710VnVRbT','Init','Inject','errors','search','function','key'];a8_0x2961=function(){return _0x46b58f;};return a8_0x2961();}let ValidatorService=exports[a8_0x300522(0xcf)]=class ValidatorService{constructor(){const _0x1c3594=a8_0x300522;this[_0x1c3594(0x117)]={};}async['init'](){const _0x11a2bc=a8_0x300522,_0x2b4a98=Object[_0x11a2bc(0xeb)](this[_0x11a2bc(0x10b)][_0x11a2bc(0xd0)]);_0x2b4a98[_0x11a2bc(0xd4)](_0x6473a8=>{const _0x58c04a=_0x11a2bc;this[_0x58c04a(0x117)][(0x0,i18n_1[_0x58c04a(0x102)])(_0x6473a8)]=Object[_0x58c04a(0x115)](this[_0x58c04a(0xd5)][_0x58c04a(0xe2)](_0x6473a8,_0x58c04a(0x105)));});}['getSchema'](_0xe6894e){const _0x2cef3a=a8_0x300522,_0x3d4103=(0x0,core_1['getClassExtendedMetadata'])(interface_1['RULES_KEY'],_0xe6894e);return _0x3d4103?Joi[_0x2cef3a(0xe5)](_0x3d4103):undefined;}[a8_0x300522(0x105)](_0x4761e9,_0x148aed,_0x578e1d={}){const _0xebb312=a8_0x300522;var _0x4e4153,_0x346a51,_0x3e1a9a,_0x1332fe,_0x5f5d02,_0x608bbd;const _0x146d21=Joi[_0xebb312(0xf4)](_0x4761e9)?_0x4761e9:this[_0xebb312(0xee)](_0x4761e9);if(!_0x146d21)throw new AnnError(ValidatorError_1[_0xebb312(0xf0)][_0xebb312(0xea)]);_0x578e1d[_0xebb312(0xcb)]=Object['assign']((_0x4e4153=this[_0xebb312(0xde)][_0xebb312(0xcb)])!==null&&_0x4e4153!==void 0x0?_0x4e4153:{},{'messages':this[_0xebb312(0x117)]},_0x578e1d[_0xebb312(0xcb)]||{}),_0x578e1d['validationOptions'][_0xebb312(0x110)]=_0x578e1d[_0xebb312(0xcb)][_0xebb312(0x110)]||{},_0x578e1d[_0xebb312(0xcb)][_0xebb312(0x110)][_0xebb312(0xef)]=(0x0,i18n_1[_0xebb312(0x102)])(this['i18nService'][_0xebb312(0xd7)](_0x578e1d[_0xebb312(0xcb)][_0xebb312(0x110)]['language']||_0x578e1d[_0xebb312(0x103)]||this['i18nConfig'][_0xebb312(0xf6)],'validator'));const _0x25ca29=_0x146d21[_0xebb312(0xfc)](_0x148aed,_0x578e1d[_0xebb312(0xcb)]);if(_0x25ca29===null||_0x25ca29===void 0x0?void 0x0:_0x25ca29[_0xebb312(0xff)]){if(_0x25ca29[_0xebb312(0xff)]instanceof AnnError)throw _0x25ca29[_0xebb312(0xff)];else{if(_0x25ca29[_0xebb312(0xff)]instanceof Error)throw new AnnError(ValidatorError_1[_0xebb312(0xf0)][_0xebb312(0xd6)],{'message':((_0x346a51=_0x25ca29[_0xebb312(0xff)])===null||_0x346a51===void 0x0?void 0x0:_0x346a51[_0xebb312(0xfb)])||_0xebb312(0xfa)});else throw new AnnError(ValidatorError_1[_0xebb312(0xf0)][_0xebb312(0xd6)],{'message':((_0x5f5d02=(_0x1332fe=(_0x3e1a9a=_0x25ca29[_0xebb312(0xff)])===null||_0x3e1a9a===void 0x0?void 0x0:_0x3e1a9a[_0xebb312(0xd8)])===null||_0x1332fe===void 0x0?void 0x0:_0x1332fe[0x0])===null||_0x5f5d02===void 0x0?void 0x0:_0x5f5d02[_0xebb312(0xfb)])||'参数验证失败'});}}if(_0x25ca29===null||_0x25ca29===void 0x0?void 0x0:_0x25ca29['value']){const _0x4c7db7=(_0x608bbd=_0x146d21===null||_0x146d21===void 0x0?void 0x0:_0x146d21['$_terms'])===null||_0x608bbd===void 0x0?void 0x0:_0x608bbd['keys'],_0xd4496f=function(_0x3d7dc1,_0x1ca18f){const _0x3effd8=_0xebb312;var _0x20dd49,_0x460a87,_0x3bce5c,_0x56c221,_0x1cb503,_0xaf9062,_0x34ba3e,_0x1a8992,_0x1a87d5,_0x163d00,_0x3fbcaf;for(let _0x2a861f in _0x3d7dc1){if(_0x1ca18f[(_0x20dd49=_0x3d7dc1[_0x2a861f])===null||_0x20dd49===void 0x0?void 0x0:_0x20dd49[_0x3effd8(0x113)]]&&((_0x3bce5c=(_0x460a87=_0x3d7dc1[_0x2a861f])===null||_0x460a87===void 0x0?void 0x0:_0x460a87[_0x3effd8(0x10c)])===null||_0x3bce5c===void 0x0?void 0x0:_0x3bce5c['type'])){if(((_0x1cb503=(_0x56c221=_0x3d7dc1[_0x2a861f])===null||_0x56c221===void 0x0?void 0x0:_0x56c221['schema'])===null||_0x1cb503===void 0x0?void 0x0:_0x1cb503['type'])==_0x3effd8(0xe5))_0x1ca18f[_0x3d7dc1[_0x2a861f][_0x3effd8(0x113)]]=_0xd4496f((_0x34ba3e=(_0xaf9062=_0x3d7dc1[_0x2a861f])===null||_0xaf9062===void 0x0?void 0x0:_0xaf9062[_0x3effd8(0x10c)]['$_terms'])===null||_0x34ba3e===void 0x0?void 0x0:_0x34ba3e['keys'],_0x1ca18f[_0x3d7dc1[_0x2a861f][_0x3effd8(0x113)]]);else{if(_0x3d7dc1[_0x2a861f]['schema'][_0x3effd8(0x104)]==_0x3effd8(0xe8)&&_0x25ca29[_0x3effd8(0xe1)][(_0x1a8992=_0x3d7dc1[_0x2a861f])===null||_0x1a8992===void 0x0?void 0x0:_0x1a8992[_0x3effd8(0x113)]]){const _0x450161=((_0x3fbcaf=(_0x163d00=(_0x1a87d5=_0x3d7dc1[_0x2a861f])===null||_0x1a87d5===void 0x0?void 0x0:_0x1a87d5['schema'])===null||_0x163d00===void 0x0?void 0x0:_0x163d00[_0x3effd8(0xf9)])===null||_0x3fbcaf===void 0x0?void 0x0:_0x3fbcaf['format'])||_0x3effd8(0xf5);_0x1ca18f[_0x3d7dc1[_0x2a861f][_0x3effd8(0x113)]]=dayjs(_0x25ca29[_0x3effd8(0xe1)][_0x3d7dc1[_0x2a861f][_0x3effd8(0x113)]])[_0x3effd8(0xfe)](_0x450161);}}}}return _0x1ca18f;};return _0xd4496f(_0x4c7db7,_0x25ca29[_0xebb312(0xe1)]);}throw new AnnError(ValidatorError_1[_0xebb312(0xf0)][_0xebb312(0xd6)]);}};__decorate([(0x0,core_1[a8_0x300522(0xf3)])(a8_0x300522(0xe9)),__metadata(a8_0x300522(0x100),Object)],ValidatorService[a8_0x300522(0xe6)],'i18nConfig',void 0x0),__decorate([(0x0,core_1['Config'])(a8_0x300522(0x105)),__metadata(a8_0x300522(0x100),Object)],ValidatorService['prototype'],a8_0x300522(0xde),void 0x0),__decorate([(0x0,core_1[a8_0x300522(0x10f)])(),__metadata(a8_0x300522(0x100),i18n_1[a8_0x300522(0xd1)])],ValidatorService[a8_0x300522(0xe6)],'i18nService',void 0x0),__decorate([(0x0,core_1[a8_0x300522(0x10e)])(),__metadata(a8_0x300522(0x100),Function),__metadata('design:paramtypes',[]),__metadata(a8_0x300522(0xed),Promise)],ValidatorService[a8_0x300522(0xe6)],a8_0x300522(0x106),null),exports[a8_0x300522(0xcf)]=ValidatorService=__decorate([(0x0,core_1[a8_0x300522(0xf2)])(a8_0x300522(0x105)),(0x0,core_1[a8_0x300522(0xd3)])(core_1[a8_0x300522(0xe0)][a8_0x300522(0xe4)])],ValidatorService);
package/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
-
2
- export * from './dist/index';
3
-
4
- declare module 'joi' {
5
-
6
- interface DateSchema {
7
- format(format: string | string[]): this;
8
- utc(): this;
9
- }
1
+
2
+ export * from './dist/index';
3
+
4
+ declare module 'joi' {
5
+
6
+ interface DateSchema {
7
+ format(format: string | string[]): this;
8
+ utc(): this;
9
+ }
10
10
  }
@@ -1,116 +1,116 @@
1
- {
2
- "alternatives.all": "{{#label}} does not match all of the required types",
3
- "alternatives.any": "{{#label}} does not match any of the allowed types",
4
- "alternatives.match": "{{#label}} does not match any of the allowed types",
5
- "alternatives.one": "{{#label}} matches more than one allowed type",
6
- "alternatives.types": "{{#label}} must be one of {{#types}}",
7
- "any.custom": "{{#label}} failed custom validation because {{#error.message}}",
8
- "any.default": "{{#label}} threw an error when running default method",
9
- "any.failover": "{{#label}} threw an error when running failover method",
10
- "any.invalid": "{{#label}} contains an invalid value",
11
- "any.only": "{{#label}} must be {if(#valids.length == 1, \"\", \"one of \")}{{#valids}}",
12
- "any.ref": "{{#label}} {{#arg}} references {{:#ref}} which {{#reason}}",
13
- "any.required": "{{#label}} is required",
14
- "any.unknown": "{{#label}} is not allowed",
15
- "array.base": "{{#label}} must be an array",
16
- "array.excludes": "{{#label}} contains an excluded value",
17
- "array.hasKnown": "{{#label}} does not contain at least one required match for type {:#patternLabel}",
18
- "array.hasUnknown": "{{#label}} does not contain at least one required match",
19
- "array.includes": "{{#label}} does not match any of the allowed types",
20
- "array.includesRequiredBoth": "{{#label}} does not contain {{#knownMisses}} and {{#unknownMisses}} other required value(s)",
21
- "array.includesRequiredKnowns": "{{#label}} does not contain {{#knownMisses}}",
22
- "array.includesRequiredUnknowns": "{{#label}} does not contain {{#unknownMisses}} required value(s)",
23
- "array.length": "{{#label}} must contain {{#limit}} items",
24
- "array.max": "{{#label}} must contain less than or equal to {{#limit}} items",
25
- "array.min": "{{#label}} must contain at least {{#limit}} items",
26
- "array.orderedLength": "{{#label}} must contain at most {{#limit}} items",
27
- "array.sort": "{{#label}} must be sorted in {#order} order by {{#by}}",
28
- "array.sort.mismatching": "{{#label}} cannot be sorted due to mismatching types",
29
- "array.sort.unsupported": "{{#label}} cannot be sorted due to unsupported type {#type}",
30
- "array.sparse": "{{#label}} must not be a sparse array item",
31
- "array.unique": "{{#label}} contains a duplicate value",
32
- "binary.base": "{{#label}} must be a buffer or a string",
33
- "binary.length": "{{#label}} must be {{#limit}} bytes",
34
- "binary.max": "{{#label}} must be less than or equal to {{#limit}} bytes",
35
- "binary.min": "{{#label}} must be at least {{#limit}} bytes",
36
- "boolean.base": "{{#label}} must be a boolean",
37
- "date.base": "{{#label}} must be a valid date",
38
- "date.format": "{{#label}} must be in {msg(\"date.format.\" + #format) || #format} format",
39
- "date.greater": "{{#label}} must be greater than {{:#limit}}",
40
- "date.less": "{{#label}} must be less than {{:#limit}}",
41
- "date.max": "{{#label}} must be less than or equal to {{:#limit}}",
42
- "date.min": "{{#label}} must be greater than or equal to {{:#limit}}",
43
- "date.format.iso": "ISO 8601 date",
44
- "date.format.javascript": "timestamp or number of milliseconds",
45
- "date.format.unix": "timestamp or number of seconds",
46
- "function.arity": "{{#label}} must have an arity of {{#n}}",
47
- "function.class": "{{#label}} must be a class",
48
- "function.maxArity": "{{#label}} must have an arity lesser or equal to {{#n}}",
49
- "function.minArity": "{{#label}} must have an arity greater or equal to {{#n}}",
50
- "object.and": "{{#label}} contains {{#presentWithLabels}} without its required peers {{#missingWithLabels}}",
51
- "object.assert": "{{#label}} is invalid because {if(#subject.key, `\"` + #subject.key + `\" failed to ` + (#message || \"pass the assertion test\"), #message || \"the assertion failed\")}",
52
- "object.base": "{{#label}} must be of type {{#type}}",
53
- "object.instance": "{{#label}} must be an instance of {{:#type}}",
54
- "object.length": "{{#label}} must have {{#limit}} key{if(#limit == 1, \"\", \"s\")}",
55
- "object.max": "{{#label}} must have less than or equal to {{#limit}} key{if(#limit == 1, \"\", \"s\")}",
56
- "object.min": "{{#label}} must have at least {{#limit}} key{if(#limit == 1, \"\", \"s\")}",
57
- "object.missing": "{{#label}} must contain at least one of {{#peersWithLabels}}",
58
- "object.nand": "{{:#mainWithLabel}} must not exist simultaneously with {{#peersWithLabels}}",
59
- "object.oxor": "{{#label}} contains a conflict between optional exclusive peers {{#peersWithLabels}}",
60
- "object.pattern.match": "{{#label}} keys failed to match pattern requirements",
61
- "object.refType": "{{#label}} must be a Joi reference",
62
- "object.regex": "{{#label}} must be a RegExp object",
63
- "object.rename.multiple": "{{#label}} cannot rename {{:#from}} because multiple renames are disabled and another key was already renamed to {{:#to}}",
64
- "object.rename.override": "{{#label}} cannot rename {{:#from}} because override is disabled and target {{:#to}} exists",
65
- "object.schema": "{{#label}} must be a Joi schema of {{#type}} type",
66
- "object.unknown": "{{#label}} is not allowed",
67
- "object.with": "{{:#mainWithLabel}} missing required peer {{:#peerWithLabel}}",
68
- "object.without": "{{:#mainWithLabel}} conflict with forbidden peer {{:#peerWithLabel}}",
69
- "object.xor": "{{#label}} contains a conflict between exclusive peers {{#peersWithLabels}}",
70
- "number.base": "{{#label}} must be a number",
71
- "number.greater": "{{#label}} must be greater than {{#limit}}",
72
- "number.infinity": "{{#label}} cannot be infinity",
73
- "number.integer": "{{#label}} must be an integer",
74
- "number.less": "{{#label}} must be less than {{#limit}}",
75
- "number.max": "{{#label}} must be less than or equal to {{#limit}}",
76
- "number.min": "{{#label}} must be greater than or equal to {{#limit}}",
77
- "number.multiple": "{{#label}} must be a multiple of {{#multiple}}",
78
- "number.negative": "{{#label}} must be a negative number",
79
- "number.port": "{{#label}} must be a valid port",
80
- "number.positive": "{{#label}} must be a positive number",
81
- "number.precision": "{{#label}} must have no more than {{#limit}} decimal places",
82
- "number.unsafe": "{{#label}} must be a safe number",
83
- "string.alphanum": "{{#label}} must only contain alpha-numeric characters",
84
- "string.base": "{{#label}} must be a string",
85
- "string.base64": "{{#label}} must be a valid base64 string",
86
- "string.creditCard": "{{#label}} must be a credit card",
87
- "string.dataUri": "{{#label}} must be a valid dataUri string",
88
- "string.domain": "{{#label}} must contain a valid domain name",
89
- "string.email": "{{#label}} must be a valid email",
90
- "string.empty": "{{#label}} is not allowed to be empty",
91
- "string.guid": "{{#label}} must be a valid GUID",
92
- "string.hex": "{{#label}} must only contain hexadecimal characters",
93
- "string.hexAlign": "{{#label}} hex decoded representation must be byte aligned",
94
- "string.hostname": "{{#label}} must be a valid hostname",
95
- "string.ip": "{{#label}} must be a valid ip address with a {{#cidr}} CIDR",
96
- "string.ipVersion": "{{#label}} must be a valid ip address of one of the following versions {{#version}} with a {{#cidr}} CIDR",
97
- "string.isoDate": "{{#label}} must be in iso format",
98
- "string.isoDuration": "{{#label}} must be a valid ISO 8601 duration",
99
- "string.length": "{{#label}} length must be {{#limit}} characters long",
100
- "string.lowercase": "{{#label}} must only contain lowercase characters",
101
- "string.max": "{{#label}} length must be less than or equal to {{#limit}} characters long",
102
- "string.min": "{{#label}} length must be at least {{#limit}} characters long",
103
- "string.normalize": "{{#label}} must be unicode normalized in the {{#form}} form",
104
- "string.token": "{{#label}} must only contain alpha-numeric and underscore characters",
105
- "string.pattern.base": "{{#label}} with value {:[.]} fails to match the required pattern: {{#regex}}",
106
- "string.pattern.name": "{{#label}} with value {:[.]} fails to match the {{#name}} pattern",
107
- "string.pattern.invert.base": "{{#label}} with value {:[.]} matches the inverted pattern: {{#regex}}",
108
- "string.pattern.invert.name": "{{#label}} with value {:[.]} matches the inverted {{#name}} pattern",
109
- "string.trim": "{{#label}} must not have leading or trailing whitespace",
110
- "string.uri": "{{#label}} must be a valid uri",
111
- "string.uriCustomScheme": "{{#label}} must be a valid uri with a scheme matching the {{#scheme}} pattern",
112
- "string.uriRelativeOnly": "{{#label}} must be a valid relative uri",
113
- "string.uppercase": "{{#label}} must only contain uppercase characters",
114
- "symbol.base": "{{#label}} must be a symbol",
115
- "symbol.map": "{{#label}} must be one of {{#map}}"
116
- }
1
+ {
2
+ "alternatives.all": "{{#label}} does not match all of the required types",
3
+ "alternatives.any": "{{#label}} does not match any of the allowed types",
4
+ "alternatives.match": "{{#label}} does not match any of the allowed types",
5
+ "alternatives.one": "{{#label}} matches more than one allowed type",
6
+ "alternatives.types": "{{#label}} must be one of {{#types}}",
7
+ "any.custom": "{{#label}} failed custom validation because {{#error.message}}",
8
+ "any.default": "{{#label}} threw an error when running default method",
9
+ "any.failover": "{{#label}} threw an error when running failover method",
10
+ "any.invalid": "{{#label}} contains an invalid value",
11
+ "any.only": "{{#label}} must be {if(#valids.length == 1, \"\", \"one of \")}{{#valids}}",
12
+ "any.ref": "{{#label}} {{#arg}} references {{:#ref}} which {{#reason}}",
13
+ "any.required": "{{#label}} is required",
14
+ "any.unknown": "{{#label}} is not allowed",
15
+ "array.base": "{{#label}} must be an array",
16
+ "array.excludes": "{{#label}} contains an excluded value",
17
+ "array.hasKnown": "{{#label}} does not contain at least one required match for type {:#patternLabel}",
18
+ "array.hasUnknown": "{{#label}} does not contain at least one required match",
19
+ "array.includes": "{{#label}} does not match any of the allowed types",
20
+ "array.includesRequiredBoth": "{{#label}} does not contain {{#knownMisses}} and {{#unknownMisses}} other required value(s)",
21
+ "array.includesRequiredKnowns": "{{#label}} does not contain {{#knownMisses}}",
22
+ "array.includesRequiredUnknowns": "{{#label}} does not contain {{#unknownMisses}} required value(s)",
23
+ "array.length": "{{#label}} must contain {{#limit}} items",
24
+ "array.max": "{{#label}} must contain less than or equal to {{#limit}} items",
25
+ "array.min": "{{#label}} must contain at least {{#limit}} items",
26
+ "array.orderedLength": "{{#label}} must contain at most {{#limit}} items",
27
+ "array.sort": "{{#label}} must be sorted in {#order} order by {{#by}}",
28
+ "array.sort.mismatching": "{{#label}} cannot be sorted due to mismatching types",
29
+ "array.sort.unsupported": "{{#label}} cannot be sorted due to unsupported type {#type}",
30
+ "array.sparse": "{{#label}} must not be a sparse array item",
31
+ "array.unique": "{{#label}} contains a duplicate value",
32
+ "binary.base": "{{#label}} must be a buffer or a string",
33
+ "binary.length": "{{#label}} must be {{#limit}} bytes",
34
+ "binary.max": "{{#label}} must be less than or equal to {{#limit}} bytes",
35
+ "binary.min": "{{#label}} must be at least {{#limit}} bytes",
36
+ "boolean.base": "{{#label}} must be a boolean",
37
+ "date.base": "{{#label}} must be a valid date",
38
+ "date.format": "{{#label}} must be in {msg(\"date.format.\" + #format) || #format} format",
39
+ "date.greater": "{{#label}} must be greater than {{:#limit}}",
40
+ "date.less": "{{#label}} must be less than {{:#limit}}",
41
+ "date.max": "{{#label}} must be less than or equal to {{:#limit}}",
42
+ "date.min": "{{#label}} must be greater than or equal to {{:#limit}}",
43
+ "date.format.iso": "ISO 8601 date",
44
+ "date.format.javascript": "timestamp or number of milliseconds",
45
+ "date.format.unix": "timestamp or number of seconds",
46
+ "function.arity": "{{#label}} must have an arity of {{#n}}",
47
+ "function.class": "{{#label}} must be a class",
48
+ "function.maxArity": "{{#label}} must have an arity lesser or equal to {{#n}}",
49
+ "function.minArity": "{{#label}} must have an arity greater or equal to {{#n}}",
50
+ "object.and": "{{#label}} contains {{#presentWithLabels}} without its required peers {{#missingWithLabels}}",
51
+ "object.assert": "{{#label}} is invalid because {if(#subject.key, `\"` + #subject.key + `\" failed to ` + (#message || \"pass the assertion test\"), #message || \"the assertion failed\")}",
52
+ "object.base": "{{#label}} must be of type {{#type}}",
53
+ "object.instance": "{{#label}} must be an instance of {{:#type}}",
54
+ "object.length": "{{#label}} must have {{#limit}} key{if(#limit == 1, \"\", \"s\")}",
55
+ "object.max": "{{#label}} must have less than or equal to {{#limit}} key{if(#limit == 1, \"\", \"s\")}",
56
+ "object.min": "{{#label}} must have at least {{#limit}} key{if(#limit == 1, \"\", \"s\")}",
57
+ "object.missing": "{{#label}} must contain at least one of {{#peersWithLabels}}",
58
+ "object.nand": "{{:#mainWithLabel}} must not exist simultaneously with {{#peersWithLabels}}",
59
+ "object.oxor": "{{#label}} contains a conflict between optional exclusive peers {{#peersWithLabels}}",
60
+ "object.pattern.match": "{{#label}} keys failed to match pattern requirements",
61
+ "object.refType": "{{#label}} must be a Joi reference",
62
+ "object.regex": "{{#label}} must be a RegExp object",
63
+ "object.rename.multiple": "{{#label}} cannot rename {{:#from}} because multiple renames are disabled and another key was already renamed to {{:#to}}",
64
+ "object.rename.override": "{{#label}} cannot rename {{:#from}} because override is disabled and target {{:#to}} exists",
65
+ "object.schema": "{{#label}} must be a Joi schema of {{#type}} type",
66
+ "object.unknown": "{{#label}} is not allowed",
67
+ "object.with": "{{:#mainWithLabel}} missing required peer {{:#peerWithLabel}}",
68
+ "object.without": "{{:#mainWithLabel}} conflict with forbidden peer {{:#peerWithLabel}}",
69
+ "object.xor": "{{#label}} contains a conflict between exclusive peers {{#peersWithLabels}}",
70
+ "number.base": "{{#label}} must be a number",
71
+ "number.greater": "{{#label}} must be greater than {{#limit}}",
72
+ "number.infinity": "{{#label}} cannot be infinity",
73
+ "number.integer": "{{#label}} must be an integer",
74
+ "number.less": "{{#label}} must be less than {{#limit}}",
75
+ "number.max": "{{#label}} must be less than or equal to {{#limit}}",
76
+ "number.min": "{{#label}} must be greater than or equal to {{#limit}}",
77
+ "number.multiple": "{{#label}} must be a multiple of {{#multiple}}",
78
+ "number.negative": "{{#label}} must be a negative number",
79
+ "number.port": "{{#label}} must be a valid port",
80
+ "number.positive": "{{#label}} must be a positive number",
81
+ "number.precision": "{{#label}} must have no more than {{#limit}} decimal places",
82
+ "number.unsafe": "{{#label}} must be a safe number",
83
+ "string.alphanum": "{{#label}} must only contain alpha-numeric characters",
84
+ "string.base": "{{#label}} must be a string",
85
+ "string.base64": "{{#label}} must be a valid base64 string",
86
+ "string.creditCard": "{{#label}} must be a credit card",
87
+ "string.dataUri": "{{#label}} must be a valid dataUri string",
88
+ "string.domain": "{{#label}} must contain a valid domain name",
89
+ "string.email": "{{#label}} must be a valid email",
90
+ "string.empty": "{{#label}} is not allowed to be empty",
91
+ "string.guid": "{{#label}} must be a valid GUID",
92
+ "string.hex": "{{#label}} must only contain hexadecimal characters",
93
+ "string.hexAlign": "{{#label}} hex decoded representation must be byte aligned",
94
+ "string.hostname": "{{#label}} must be a valid hostname",
95
+ "string.ip": "{{#label}} must be a valid ip address with a {{#cidr}} CIDR",
96
+ "string.ipVersion": "{{#label}} must be a valid ip address of one of the following versions {{#version}} with a {{#cidr}} CIDR",
97
+ "string.isoDate": "{{#label}} must be in iso format",
98
+ "string.isoDuration": "{{#label}} must be a valid ISO 8601 duration",
99
+ "string.length": "{{#label}} length must be {{#limit}} characters long",
100
+ "string.lowercase": "{{#label}} must only contain lowercase characters",
101
+ "string.max": "{{#label}} length must be less than or equal to {{#limit}} characters long",
102
+ "string.min": "{{#label}} length must be at least {{#limit}} characters long",
103
+ "string.normalize": "{{#label}} must be unicode normalized in the {{#form}} form",
104
+ "string.token": "{{#label}} must only contain alpha-numeric and underscore characters",
105
+ "string.pattern.base": "{{#label}} with value {:[.]} fails to match the required pattern: {{#regex}}",
106
+ "string.pattern.name": "{{#label}} with value {:[.]} fails to match the {{#name}} pattern",
107
+ "string.pattern.invert.base": "{{#label}} with value {:[.]} matches the inverted pattern: {{#regex}}",
108
+ "string.pattern.invert.name": "{{#label}} with value {:[.]} matches the inverted {{#name}} pattern",
109
+ "string.trim": "{{#label}} must not have leading or trailing whitespace",
110
+ "string.uri": "{{#label}} must be a valid uri",
111
+ "string.uriCustomScheme": "{{#label}} must be a valid uri with a scheme matching the {{#scheme}} pattern",
112
+ "string.uriRelativeOnly": "{{#label}} must be a valid relative uri",
113
+ "string.uppercase": "{{#label}} must only contain uppercase characters",
114
+ "symbol.base": "{{#label}} must be a symbol",
115
+ "symbol.map": "{{#label}} must be one of {{#map}}"
116
+ }
@@ -1,116 +1,116 @@
1
- {
2
- "alternatives.all": "{{#label}} 不能匹配上所以可选项",
3
- "alternatives.any": "{{#label}} 不能匹配上任何可选项",
4
- "alternatives.match": "{{#label}} 不能匹配上任何可选项",
5
- "alternatives.one": "{{#label}} 匹配超过一个可选项",
6
- "alternatives.types": "{{#label}} 必须是 {{#types}}",
7
- "any.custom": "{{#label}} 自定义校验失败,原因为 {{#error.message}}",
8
- "any.default": "{{#label}} 运行默认函数时出错",
9
- "any.failover": "{{#label}} 运行 failover 函数时出错",
10
- "any.invalid": "{{#label}} 不是可选值",
11
- "any.only": "{{#label}} 必须是 {{#valids}} {if(#valids.length == 1, \"\", \"中的一个\")}",
12
- "any.ref": "{{#label}} {{#arg}} 引用 {{:#ref}} 其中 {{#reason}}",
13
- "any.required": "{{#label}} 不能为空",
14
- "any.unknown": "{{#label}} 参数错误",
15
- "array.base": "{{#label}} 必须是数组",
16
- "array.excludes": "{{#label}} 包含非法的值",
17
- "array.hasKnown": "{{#label}} 中至少一个类型为 {:#patternLabel} 的选项",
18
- "array.hasUnknown": "{{#label}} 中至少有一个选项",
19
- "array.includes": "{{#label}} 不能匹配任何可选项",
20
- "array.includesRequiredBoth": "{{#label}} 不包含 {{#knownMisses}} 及 {{#unknownMisses}} 个必选项",
21
- "array.includesRequiredKnowns": "{{#label}} 不包含 {{#knownMisses}} 等必选项",
22
- "array.includesRequiredUnknowns": "{{#label}} 不包含 {{#unknownMisses}} 个必选项",
23
- "array.length": "{{#label}} 必须正好包含 {{#limit}} 个成员",
24
- "array.max": "{{#label}} 最多包含 {{#limit}} 个成员",
25
- "array.min": "{{#label}} 至少包含 {{#limit}} 个成员",
26
- "array.orderedLength": "{{#label}} 必须至少包含 {{#limit}} 个成员",
27
- "array.sort": "{{#label}} 必须按 {#order} 顺序按 {{#by}} 排序",
28
- "array.sort.mismatching": "{{#label}} 由于类型不匹配而无法排序",
29
- "array.sort.unsupported": "{{#label}} 类型 {#type} 不支持排序",
30
- "array.sparse": "{{#label}} 不能包含未定义成员",
31
- "array.unique": "{{#label}} 是重复的成员",
32
- "binary.base": "{{#label}} 必须是一段内容",
33
- "binary.length": "{{#label}} 至少包含 {{#limit}} 个字节",
34
- "binary.max": "{{#label}} 最多包含 {{#limit}} 个字节",
35
- "binary.min": "{{#label}} 至少包含 {{#limit}} 个字节",
36
- "boolean.base": "{{#label}} 必须是 bool 值",
37
- "date.base": "{{#label}} 必须是毫秒数或者有效的时间字符串",
38
- "date.format": "{{#label}} 必须是以下格式的字符串 {msg(\"date.format.\" + #format) || #format}",
39
- "date.greater": "{{#label}} 必须晚于 {{:#limit}}",
40
- "date.less": "{{#label}} 必须早于 {{:#limit}}",
41
- "date.max": "{{#label}} 必须早于 {{:#limit}}",
42
- "date.min": "{{#label}} 必须晚于 {{:#limit}}",
43
- "date.format.iso": "必须是有效的\"ISO 8601\"格式的时间",
44
- "date.format.javascript": "必须是有效的时间戳或者毫秒数",
45
- "date.format.unix": "必须是有效的时间戳或者秒数",
46
- "function.arity": "{{#label}} 必须正好拥有 {{#n}} 个参数",
47
- "function.class": "{{#label}} 必须是对象类",
48
- "function.maxArity": "{{#label}} 必须最多拥有 {{#n}} 个参数",
49
- "function.minArity": "{{#label}} 必须至少拥有 {{#n}} 个参数",
50
- "object.and": "{{#label}} 当前 {{#presentWithLabels}} 需要有对应的 {{#missingWithLabels}}",
51
- "object.assert": "{{#label}} 无效,原因为 {if(#subject.key, `\"` + #subject.key + `\" failed to ` + (#message || \"pass the assertion test\"), #message || \"the assertion failed\")}",
52
- "object.base": "{{#label}} 必须是一个对象 {{#type}}",
53
- "object.instance": "{{#label}} 必须是一个 {{:#type}} 的实例",
54
- "object.length": "{{#label}} 必须正好包含 {{#limit}} 个子对象",
55
- "object.max": "{{#label}} 最多包含 {{#limit}} 个子对象",
56
- "object.min": "{{#label}} 至少包含 {{#limit}} 个子对象",
57
- "object.missing": "{{#label}} 没有对应的 {{#peersWithLabels}}",
58
- "object.nand": "{{:#mainWithLabel}} 不得与 {{#peersWithLabels}} 同时存在",
59
- "object.oxor": "{{#label}} 和 {{#peerWithLabels}} 有冲突",
60
- "object.pattern.match": "{{#label}} 键匹配失败",
61
- "object.refType": "{{#label}} 必须是 Joi 引用",
62
- "object.regex": "{{#label}} 必须是正则对象",
63
- "object.rename.multiple": "{{#label}} 无法重命名 {{:#from}} 因为多次重命名被禁用并且另一个键已经重命名为 {{:#to}}",
64
- "object.rename.override": "{{#label}} 无法重命名 {{:#from}} 因为覆盖被禁用并且目标 {{:#to}} 存在",
65
- "object.schema": "{{#label}} 必须是 {{#type}} 类型的 Joi Schema",
66
- "object.unknown": "{{#label}} 不被允许",
67
- "object.with": "{{:#mainWithLabel}} 缺少必需的对等方 {{:#peerWithLabel}}",
68
- "object.without": "{{:#mainWithLabel}} 与禁止的节点冲突 {{:#peerWithLabel}}",
69
- "object.xor": "{{#label}} 包含独占对等体之间的冲突 {{#peersWithLabels}}",
70
- "number.base": "{{#label}} 必须是数值",
71
- "number.greater": "{{#label}} 必须大于 {{#limit}}",
72
- "number.infinity": "{{#label}} 不能是无穷大",
73
- "number.integer": "{{#label}} 必须是整数",
74
- "number.less": "{{#label}} 必须小于 {{#limit}}",
75
- "number.max": "{{#label}} 必须小于或等于 {{#limit}}",
76
- "number.min": "{{#label}} 必须大于或等于 {{#limit}}",
77
- "number.multiple": "{{#label}} 必须是 {{#multiple}} 的倍数",
78
- "number.negative": "{{#label}} 必须是负数",
79
- "number.port": "{{#label}} 必须是有效的端口号",
80
- "number.positive": "{{#label}} 必须是正数",
81
- "number.precision": "{{#label}} 必须有 {{#limit}} 位小数",
82
- "number.unsafe": "{{#label}} 必须是安全号码",
83
- "string.alphanum": "{{#label}} must only contain alpha-numeric characters",
84
- "string.base": "{{#label}} 必须是字符串",
85
- "string.base64": "{{#label}} 必须是有效的 base64 字符串",
86
- "string.creditCard": "{{#label}} 必须是有效的信用卡号",
87
- "string.dataUri": "{{#label}} 必须是有效的 dataUri 字符串",
88
- "string.domain": "{{#label}} 必须包含有效的域名",
89
- "string.email": "{{#label}} 必须是有效的电子邮件",
90
- "string.empty": "{{#label}} 不能为空",
91
- "string.guid": "{{#label}} 必须是有效的 GUID",
92
- "string.hex": "{{#label}} 只能包含十六进制字符",
93
- "string.hexAlign": "{{#label}} 十六进制解码表示必须字节对齐",
94
- "string.hostname": "{{#label}} 必须是有效的主机名",
95
- "string.ip": "{{#label}} 必须是具有 {{#cidr}} CIDR 的有效 IP 地址",
96
- "string.ipVersion": "{{#label}} 必须是以下版本之一的有效 IP 地址 {{#version}} 和 {{#cidr}} CIDR",
97
- "string.isoDate": "{{#label}} 必须是 iso 格式",
98
- "string.isoDuration": "{{#label}} 必须是有效的 ISO 8601 持续时间",
99
- "string.length": "{{#label}} 长度必须为 {{#limit}} 个字符长",
100
- "string.lowercase": "{{#label}} 只能包含小写字符",
101
- "string.max": "{{#label}} 长度必须小于或等于 {{#limit}} 个字符长",
102
- "string.min": "{{#label}} 长度必须至少为 {{#limit}} 个字符长",
103
- "string.normalize": "{{#label}} 必须以 {{#form}} 形式进行 unicode 规范化",
104
- "string.token": "{{#label}} 只能包含字母数字和下划线字符",
105
- "string.pattern.base": "{{#label}} 的值为 {:[.]} 未能匹配所需的模式:{{#regex}}",
106
- "string.pattern.name": "{{#label}} 值为 {:[.]} 未能匹配 {{#name}} 模式",
107
- "string.pattern.invert.base": "{{#label}} 与值 {:[.]} 匹配反转模式:{{#regex}}",
108
- "string.pattern.invert.name": "{{#label}} 与值 {:[.]} 匹配倒置的 {{#name}} 模式",
109
- "string.trim": "{{#label}} 不得前后空格",
110
- "string.uri": "{{#label}} 必须是有效的 uri",
111
- "string.uriCustomScheme": "{{#label}} 必须是有效的 uri,其方案与 {{#scheme}} 模式匹配",
112
- "string.uriRelativeOnly": "{{#label}} 必须是有效的相对 uri",
113
- "string.uppercase": "{{#label}} 只能包含大写字符",
114
- "symbol.base": "{{#label}} 必须是符号",
115
- "symbol.map": "{{#label}} 必须是 {{#map}} 之一"
116
- }
1
+ {
2
+ "alternatives.all": "{{#label}} 不能匹配上所以可选项",
3
+ "alternatives.any": "{{#label}} 不能匹配上任何可选项",
4
+ "alternatives.match": "{{#label}} 不能匹配上任何可选项",
5
+ "alternatives.one": "{{#label}} 匹配超过一个可选项",
6
+ "alternatives.types": "{{#label}} 必须是 {{#types}}",
7
+ "any.custom": "{{#label}} 自定义校验失败,原因为 {{#error.message}}",
8
+ "any.default": "{{#label}} 运行默认函数时出错",
9
+ "any.failover": "{{#label}} 运行 failover 函数时出错",
10
+ "any.invalid": "{{#label}} 不是可选值",
11
+ "any.only": "{{#label}} 必须是 {{#valids}} {if(#valids.length == 1, \"\", \"中的一个\")}",
12
+ "any.ref": "{{#label}} {{#arg}} 引用 {{:#ref}} 其中 {{#reason}}",
13
+ "any.required": "{{#label}} 不能为空",
14
+ "any.unknown": "{{#label}} 参数错误",
15
+ "array.base": "{{#label}} 必须是数组",
16
+ "array.excludes": "{{#label}} 包含非法的值",
17
+ "array.hasKnown": "{{#label}} 中至少一个类型为 {:#patternLabel} 的选项",
18
+ "array.hasUnknown": "{{#label}} 中至少有一个选项",
19
+ "array.includes": "{{#label}} 不能匹配任何可选项",
20
+ "array.includesRequiredBoth": "{{#label}} 不包含 {{#knownMisses}} 及 {{#unknownMisses}} 个必选项",
21
+ "array.includesRequiredKnowns": "{{#label}} 不包含 {{#knownMisses}} 等必选项",
22
+ "array.includesRequiredUnknowns": "{{#label}} 不包含 {{#unknownMisses}} 个必选项",
23
+ "array.length": "{{#label}} 必须正好包含 {{#limit}} 个成员",
24
+ "array.max": "{{#label}} 最多包含 {{#limit}} 个成员",
25
+ "array.min": "{{#label}} 至少包含 {{#limit}} 个成员",
26
+ "array.orderedLength": "{{#label}} 必须至少包含 {{#limit}} 个成员",
27
+ "array.sort": "{{#label}} 必须按 {#order} 顺序按 {{#by}} 排序",
28
+ "array.sort.mismatching": "{{#label}} 由于类型不匹配而无法排序",
29
+ "array.sort.unsupported": "{{#label}} 类型 {#type} 不支持排序",
30
+ "array.sparse": "{{#label}} 不能包含未定义成员",
31
+ "array.unique": "{{#label}} 是重复的成员",
32
+ "binary.base": "{{#label}} 必须是一段内容",
33
+ "binary.length": "{{#label}} 至少包含 {{#limit}} 个字节",
34
+ "binary.max": "{{#label}} 最多包含 {{#limit}} 个字节",
35
+ "binary.min": "{{#label}} 至少包含 {{#limit}} 个字节",
36
+ "boolean.base": "{{#label}} 必须是 bool 值",
37
+ "date.base": "{{#label}} 必须是毫秒数或者有效的时间字符串",
38
+ "date.format": "{{#label}} 必须是以下格式的字符串 {msg(\"date.format.\" + #format) || #format}",
39
+ "date.greater": "{{#label}} 必须晚于 {{:#limit}}",
40
+ "date.less": "{{#label}} 必须早于 {{:#limit}}",
41
+ "date.max": "{{#label}} 必须早于 {{:#limit}}",
42
+ "date.min": "{{#label}} 必须晚于 {{:#limit}}",
43
+ "date.format.iso": "必须是有效的\"ISO 8601\"格式的时间",
44
+ "date.format.javascript": "必须是有效的时间戳或者毫秒数",
45
+ "date.format.unix": "必须是有效的时间戳或者秒数",
46
+ "function.arity": "{{#label}} 必须正好拥有 {{#n}} 个参数",
47
+ "function.class": "{{#label}} 必须是对象类",
48
+ "function.maxArity": "{{#label}} 必须最多拥有 {{#n}} 个参数",
49
+ "function.minArity": "{{#label}} 必须至少拥有 {{#n}} 个参数",
50
+ "object.and": "{{#label}} 当前 {{#presentWithLabels}} 需要有对应的 {{#missingWithLabels}}",
51
+ "object.assert": "{{#label}} 无效,原因为 {if(#subject.key, `\"` + #subject.key + `\" failed to ` + (#message || \"pass the assertion test\"), #message || \"the assertion failed\")}",
52
+ "object.base": "{{#label}} 必须是一个对象 {{#type}}",
53
+ "object.instance": "{{#label}} 必须是一个 {{:#type}} 的实例",
54
+ "object.length": "{{#label}} 必须正好包含 {{#limit}} 个子对象",
55
+ "object.max": "{{#label}} 最多包含 {{#limit}} 个子对象",
56
+ "object.min": "{{#label}} 至少包含 {{#limit}} 个子对象",
57
+ "object.missing": "{{#label}} 没有对应的 {{#peersWithLabels}}",
58
+ "object.nand": "{{:#mainWithLabel}} 不得与 {{#peersWithLabels}} 同时存在",
59
+ "object.oxor": "{{#label}} 和 {{#peerWithLabels}} 有冲突",
60
+ "object.pattern.match": "{{#label}} 键匹配失败",
61
+ "object.refType": "{{#label}} 必须是 Joi 引用",
62
+ "object.regex": "{{#label}} 必须是正则对象",
63
+ "object.rename.multiple": "{{#label}} 无法重命名 {{:#from}} 因为多次重命名被禁用并且另一个键已经重命名为 {{:#to}}",
64
+ "object.rename.override": "{{#label}} 无法重命名 {{:#from}} 因为覆盖被禁用并且目标 {{:#to}} 存在",
65
+ "object.schema": "{{#label}} 必须是 {{#type}} 类型的 Joi Schema",
66
+ "object.unknown": "{{#label}} 不被允许",
67
+ "object.with": "{{:#mainWithLabel}} 缺少必需的对等方 {{:#peerWithLabel}}",
68
+ "object.without": "{{:#mainWithLabel}} 与禁止的节点冲突 {{:#peerWithLabel}}",
69
+ "object.xor": "{{#label}} 包含独占对等体之间的冲突 {{#peersWithLabels}}",
70
+ "number.base": "{{#label}} 必须是数值",
71
+ "number.greater": "{{#label}} 必须大于 {{#limit}}",
72
+ "number.infinity": "{{#label}} 不能是无穷大",
73
+ "number.integer": "{{#label}} 必须是整数",
74
+ "number.less": "{{#label}} 必须小于 {{#limit}}",
75
+ "number.max": "{{#label}} 必须小于或等于 {{#limit}}",
76
+ "number.min": "{{#label}} 必须大于或等于 {{#limit}}",
77
+ "number.multiple": "{{#label}} 必须是 {{#multiple}} 的倍数",
78
+ "number.negative": "{{#label}} 必须是负数",
79
+ "number.port": "{{#label}} 必须是有效的端口号",
80
+ "number.positive": "{{#label}} 必须是正数",
81
+ "number.precision": "{{#label}} 必须有 {{#limit}} 位小数",
82
+ "number.unsafe": "{{#label}} 必须是安全号码",
83
+ "string.alphanum": "{{#label}} must only contain alpha-numeric characters",
84
+ "string.base": "{{#label}} 必须是字符串",
85
+ "string.base64": "{{#label}} 必须是有效的 base64 字符串",
86
+ "string.creditCard": "{{#label}} 必须是有效的信用卡号",
87
+ "string.dataUri": "{{#label}} 必须是有效的 dataUri 字符串",
88
+ "string.domain": "{{#label}} 必须包含有效的域名",
89
+ "string.email": "{{#label}} 必须是有效的电子邮件",
90
+ "string.empty": "{{#label}} 不能为空",
91
+ "string.guid": "{{#label}} 必须是有效的 GUID",
92
+ "string.hex": "{{#label}} 只能包含十六进制字符",
93
+ "string.hexAlign": "{{#label}} 十六进制解码表示必须字节对齐",
94
+ "string.hostname": "{{#label}} 必须是有效的主机名",
95
+ "string.ip": "{{#label}} 必须是具有 {{#cidr}} CIDR 的有效 IP 地址",
96
+ "string.ipVersion": "{{#label}} 必须是以下版本之一的有效 IP 地址 {{#version}} 和 {{#cidr}} CIDR",
97
+ "string.isoDate": "{{#label}} 必须是 iso 格式",
98
+ "string.isoDuration": "{{#label}} 必须是有效的 ISO 8601 持续时间",
99
+ "string.length": "{{#label}} 长度必须为 {{#limit}} 个字符长",
100
+ "string.lowercase": "{{#label}} 只能包含小写字符",
101
+ "string.max": "{{#label}} 长度必须小于或等于 {{#limit}} 个字符长",
102
+ "string.min": "{{#label}} 长度必须至少为 {{#limit}} 个字符长",
103
+ "string.normalize": "{{#label}} 必须以 {{#form}} 形式进行 unicode 规范化",
104
+ "string.token": "{{#label}} 只能包含字母数字和下划线字符",
105
+ "string.pattern.base": "{{#label}} 的值为 {:[.]} 未能匹配所需的模式:{{#regex}}",
106
+ "string.pattern.name": "{{#label}} 值为 {:[.]} 未能匹配 {{#name}} 模式",
107
+ "string.pattern.invert.base": "{{#label}} 与值 {:[.]} 匹配反转模式:{{#regex}}",
108
+ "string.pattern.invert.name": "{{#label}} 与值 {:[.]} 匹配倒置的 {{#name}} 模式",
109
+ "string.trim": "{{#label}} 不得前后空格",
110
+ "string.uri": "{{#label}} 必须是有效的 uri",
111
+ "string.uriCustomScheme": "{{#label}} 必须是有效的 uri,其方案与 {{#scheme}} 模式匹配",
112
+ "string.uriRelativeOnly": "{{#label}} 必须是有效的相对 uri",
113
+ "string.uppercase": "{{#label}} 只能包含大写字符",
114
+ "symbol.base": "{{#label}} 必须是符号",
115
+ "symbol.map": "{{#label}} 必须是 {{#map}} 之一"
116
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/validator",
3
- "version": "3.3.1",
3
+ "version": "3.3.2",
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.3.1",
20
+ "@anncic-api/core": "^3.3.2",
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": "3ef0a43b4dabdc8ec28b481ad7afa4058195881c"
29
+ "gitHead": "4edf6318f3550d8daededfa412581969f6ffa572"
30
30
  }