@anncic-api/validator 3.3.0 → 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_0x441629=a0_0x4906;(function(_0x4e2ef5,_0x4e978c){const _0x47fcda=a0_0x4906,_0x49862f=_0x4e2ef5();while(!![]){try{const _0x547ba1=parseInt(_0x47fcda(0x138))/0x1*(-parseInt(_0x47fcda(0x131))/0x2)+-parseInt(_0x47fcda(0x132))/0x3*(-parseInt(_0x47fcda(0x133))/0x4)+-parseInt(_0x47fcda(0x140))/0x5+-parseInt(_0x47fcda(0x130))/0x6+-parseInt(_0x47fcda(0x139))/0x7*(parseInt(_0x47fcda(0x136))/0x8)+-parseInt(_0x47fcda(0x13d))/0x9+parseInt(_0x47fcda(0x13a))/0xa;if(_0x547ba1===_0x4e978c)break;else _0x49862f['push'](_0x49862f['shift']());}catch(_0x2c65fc){_0x49862f['push'](_0x49862f['shift']());}}}(a0_0x1027,0x43462));const a0_0x3e7abc=(function(){let _0x15dc6c=!![];return function(_0x2e02fd,_0xd7e424){const _0x5f214c=_0x15dc6c?function(){const _0x2501ac=a0_0x4906;if(_0xd7e424){const _0x59f08b=_0xd7e424[_0x2501ac(0x12f)](_0x2e02fd,arguments);return _0xd7e424=null,_0x59f08b;}}:function(){};return _0x15dc6c=![],_0x5f214c;};}()),a0_0x8c1359=a0_0x3e7abc(this,function(){const _0x56ca59=a0_0x4906;return a0_0x8c1359['toString']()[_0x56ca59(0x141)](_0x56ca59(0x13c))[_0x56ca59(0x13b)]()[_0x56ca59(0x144)](a0_0x8c1359)[_0x56ca59(0x141)](_0x56ca59(0x13c));});a0_0x8c1359();'use strict';Object[a0_0x441629(0x143)](exports,a0_0x441629(0x135),{'value':!![]});const ValidatorError_1=require('../exception/ValidatorError');function a0_0x1027(){const _0x677c73=['__esModule','16Tesutp','string','3149GjiwwU','497hURnyj','5624240MoczOw','toString','(((.+)+)+)+$','4770675IOVmnk','default','PARAMS','87435CYYEAQ','search','../../locales/en_US.json','defineProperty','constructor','apply','1148028XuDWTa','46rJKwZa','3JuQvnw','2098396rHaKTd','../../locales/zh_CN.json'];a0_0x1027=function(){return _0x677c73;};return a0_0x1027();}function a0_0x4906(_0x40509c,_0x24f6e1){const _0x58e525=a0_0x1027();return a0_0x4906=function(_0x8c1359,_0x3e7abc){_0x8c1359=_0x8c1359-0x12f;let _0x1027fd=_0x58e525[_0x8c1359];return _0x1027fd;},a0_0x4906(_0x40509c,_0x24f6e1);}exports[a0_0x441629(0x13e)]={'validator':{'errorStatus':ValidatorError_1['ValidatorError'][a0_0x441629(0x13f)],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':a0_0x441629(0x137)}},'i18n':{'localeTable':{'en_US':{'validator':require(a0_0x441629(0x142))},'zh_CN':{'validator':require(a0_0x441629(0x134))}}}};
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
- function a1_0x3769(_0x1b5a37,_0x3436e0){const _0x213b4f=a1_0xef1a();return a1_0x3769=function(_0x268541,_0x2c1796){_0x268541=_0x268541-0xa5;let _0xef1a28=_0x213b4f[_0x268541];return _0xef1a28;},a1_0x3769(_0x1b5a37,_0x3436e0);}const a1_0x70bb7e=a1_0x3769;(function(_0x10976d,_0x32eb64){const _0x5c3c88=a1_0x3769,_0x461f1b=_0x10976d();while(!![]){try{const _0x13d71a=parseInt(_0x5c3c88(0xaa))/0x1*(parseInt(_0x5c3c88(0xa5))/0x2)+-parseInt(_0x5c3c88(0xc1))/0x3+parseInt(_0x5c3c88(0xd6))/0x4+parseInt(_0x5c3c88(0xc5))/0x5+-parseInt(_0x5c3c88(0xd9))/0x6+parseInt(_0x5c3c88(0xd0))/0x7*(-parseInt(_0x5c3c88(0xa9))/0x8)+-parseInt(_0x5c3c88(0xd7))/0x9*(-parseInt(_0x5c3c88(0xc9))/0xa);if(_0x13d71a===_0x32eb64)break;else _0x461f1b['push'](_0x461f1b['shift']());}catch(_0x197a81){_0x461f1b['push'](_0x461f1b['shift']());}}}(a1_0xef1a,0x8a70f));function a1_0xef1a(){const _0x2c246c=['locale','target','Inject','param','479422NPnzBs','VALIDATOR_KEY','assign','req','8ZiUrAT','1FQkyDv','validator','args','design:type','apply','./interface','./config/config.default','defineProperty','function','toString','anncic-api:validator','search','metadata','decorate','res','getSchema','body','splice','@midwayjs/i18n','__esModule','@anncic-api/core','object','Configuration','73914LuXCdX','registerMethodHandler','method','CustomConfiguration','1856695VfyNSP','bound\x20dispatch','params','getAttr','19270hYSwZu','methodName','getClassMetadata','REQUEST_OBJ_CTX_KEY','prototype','length','@midwayjs/core','513107xtoBjr','getOwnPropertyDescriptor','request','decorator','onReady','ValidatorService','425040dqqwqX','3420kfpkXK','(((.+)+)+)+$','4707456ZclrcI','methodArgs'];a1_0xef1a=function(){return _0x2c246c;};return a1_0xef1a();}const a1_0x2c1796=(function(){let _0x35dd60=!![];return function(_0x28a28b,_0x3736fc){const _0x87ffdb=_0x35dd60?function(){const _0x2be617=a1_0x3769;if(_0x3736fc){const _0x4f4fec=_0x3736fc[_0x2be617(0xae)](_0x28a28b,arguments);return _0x3736fc=null,_0x4f4fec;}}:function(){};return _0x35dd60=![],_0x87ffdb;};}()),a1_0x268541=a1_0x2c1796(this,function(){const _0xea80f=a1_0x3769;return a1_0x268541[_0xea80f(0xb3)]()['search'](_0xea80f(0xd8))[_0xea80f(0xb3)]()['constructor'](a1_0x268541)[_0xea80f(0xb5)](_0xea80f(0xd8));});a1_0x268541();'use strict';var __decorate=this&&this['__decorate']||function(_0x50b2d4,_0x44dbf8,_0x5dd37b,_0x2f6938){const _0x386ac1=a1_0x3769;var _0x205f5b=arguments[_0x386ac1(0xce)],_0x1ebfa8=_0x205f5b<0x3?_0x44dbf8:_0x2f6938===null?_0x2f6938=Object[_0x386ac1(0xd1)](_0x44dbf8,_0x5dd37b):_0x2f6938,_0x43634c;if(typeof Reflect===_0x386ac1(0xbf)&&typeof Reflect[_0x386ac1(0xb7)]===_0x386ac1(0xb2))_0x1ebfa8=Reflect[_0x386ac1(0xb7)](_0x50b2d4,_0x44dbf8,_0x5dd37b,_0x2f6938);else{for(var _0x31abe0=_0x50b2d4[_0x386ac1(0xce)]-0x1;_0x31abe0>=0x0;_0x31abe0--)if(_0x43634c=_0x50b2d4[_0x31abe0])_0x1ebfa8=(_0x205f5b<0x3?_0x43634c(_0x1ebfa8):_0x205f5b>0x3?_0x43634c(_0x44dbf8,_0x5dd37b,_0x1ebfa8):_0x43634c(_0x44dbf8,_0x5dd37b))||_0x1ebfa8;}return _0x205f5b>0x3&&_0x1ebfa8&&Object[_0x386ac1(0xb1)](_0x44dbf8,_0x5dd37b,_0x1ebfa8),_0x1ebfa8;},__metadata=this&&this['__metadata']||function(_0xd1c288,_0x7e742c){const _0x33cda4=a1_0x3769;if(typeof Reflect===_0x33cda4(0xbf)&&typeof Reflect['metadata']===_0x33cda4(0xb2))return Reflect[_0x33cda4(0xb6)](_0xd1c288,_0x7e742c);};Object[a1_0x70bb7e(0xb1)](exports,a1_0x70bb7e(0xbd),{'value':!![]}),exports[a1_0x70bb7e(0xc4)]=void 0x0;const i18n_1=require(a1_0x70bb7e(0xbc)),core_1=require(a1_0x70bb7e(0xcf)),core_2=require(a1_0x70bb7e(0xcf)),interface_1=require(a1_0x70bb7e(0xaf)),ValidatorService_1=require('./service/ValidatorService'),i18n=require(a1_0x70bb7e(0xbc)),anncic=require(a1_0x70bb7e(0xbe)),ConfigDefault=require(a1_0x70bb7e(0xb0));let CustomConfiguration=exports['CustomConfiguration']=class CustomConfiguration{async[a1_0x70bb7e(0xd4)](){const _0x49adeb=a1_0x70bb7e;this['decorator'][_0x49adeb(0xc2)](interface_1[_0x49adeb(0xa6)],_0x465242=>{const _0x178087=_0x49adeb,_0x20b2af=_0x465242[_0x178087(0xb6)],_0x4af1b7=(0x0,core_2['getMethodParamTypes'])(_0x465242[_0x178087(0xdc)],_0x465242['propertyName']);return{'before':_0xea3cd2=>{const _0x11374e=_0x178087;var _0x159acc,_0x417df0,_0x4fce73,_0x3dc937,_0xec5904,_0x1d7134,_0x17ea20,_0x31b719,_0xa51ee7,_0x5ba315,_0x9e386f,_0x252282,_0xad817f;const _0x1834ac=_0xea3cd2[_0x11374e(0xdc)][core_1[_0x11374e(0xcc)]],_0x4f0fde=Object[_0x11374e(0xa7)]({},((_0x159acc=_0x1834ac===null||_0x1834ac===void 0x0?void 0x0:_0x1834ac['request'])===null||_0x159acc===void 0x0?void 0x0:_0x159acc['query'])||{},((_0x417df0=_0x1834ac===null||_0x1834ac===void 0x0?void 0x0:_0x1834ac[_0x11374e(0xd2)])===null||_0x417df0===void 0x0?void 0x0:_0x417df0[_0x11374e(0xba)])||{}),_0x449d6b=((0x0,core_2[_0x11374e(0xcb)])(interface_1[_0x11374e(0xa6)],_0xea3cd2[_0x11374e(0xdc)])||[])['find'](_0x553486=>_0x553486[_0x11374e(0xc3)]==_0xea3cd2[_0x11374e(0xca)]);!(_0x20b2af===null||_0x20b2af===void 0x0?void 0x0:_0x20b2af[_0x11374e(0xdb)])&&_0x1834ac&&_0x1834ac[_0x11374e(0xc8)]&&(_0x20b2af[_0x11374e(0xdb)]=_0x1834ac['getAttr'](i18n_1['I18N_ATTR_KEY']));for(let _0x2a637e=0x0;_0x2a637e<_0x4af1b7[_0x11374e(0xce)];_0x2a637e++){const _0x2cd8e9=_0x4af1b7[_0x2a637e],_0x24ecd8=this[_0x11374e(0xd5)][_0x11374e(0xb9)](_0x2cd8e9);if(_0x24ecd8){if(typeof _0xea3cd2[_0x11374e(0xac)][_0x2a637e]=='undefined'||((_0x4fce73=_0xea3cd2[_0x11374e(0xac)][_0x2a637e])===null||_0x4fce73===void 0x0?void 0x0:_0x4fce73[_0x11374e(0xd2)])&&((_0x3dc937=_0xea3cd2[_0x11374e(0xac)][_0x2a637e])===null||_0x3dc937===void 0x0?void 0x0:_0x3dc937[_0x11374e(0xb8)])&&((_0xec5904=_0xea3cd2[_0x11374e(0xac)][_0x2a637e])===null||_0xec5904===void 0x0?void 0x0:_0xec5904[_0x11374e(0xa8)]))_0xea3cd2[_0x11374e(0xac)][_0x2a637e]=_0x4f0fde;else((_0x1d7134=_0xea3cd2[_0x11374e(0xac)][_0x2a637e])===null||_0x1d7134===void 0x0?void 0x0:_0x1d7134['name'])==_0x11374e(0xc6)&&_0xea3cd2['args'][_0x11374e(0xbb)](_0x2a637e,0x0,_0x4f0fde);const _0x27d934=this[_0x11374e(0xd5)][_0x11374e(0xab)](_0x24ecd8,_0xea3cd2[_0x11374e(0xac)][_0x2a637e],_0x20b2af);_0x27d934&&(_0xea3cd2['args'][_0x2a637e]=_0x27d934);}else{if((_0x449d6b===null||_0x449d6b===void 0x0?void 0x0:_0x449d6b[_0x11374e(0xda)][_0x2a637e])&&((_0x17ea20=_0xea3cd2[_0x11374e(0xac)][_0x2a637e])===null||_0x17ea20===void 0x0?void 0x0:_0x17ea20['params'])&&typeof _0xea3cd2['args'][_0x2a637e][_0x11374e(0xde)]==_0x11374e(0xb2)&&((_0x31b719=_0x1834ac===null||_0x1834ac===void 0x0?void 0x0:_0x1834ac['params'])===null||_0x31b719===void 0x0?void 0x0:_0x31b719[_0x449d6b['methodArgs'][_0x2a637e]]))_0xea3cd2[_0x11374e(0xac)][_0x2a637e]=_0x2cd8e9((_0xa51ee7=_0x1834ac===null||_0x1834ac===void 0x0?void 0x0:_0x1834ac[_0x11374e(0xc7)])===null||_0xa51ee7===void 0x0?void 0x0:_0xa51ee7[_0x449d6b[_0x11374e(0xda)][_0x2a637e]]);else(_0x449d6b===null||_0x449d6b===void 0x0?void 0x0:_0x449d6b[_0x11374e(0xda)][_0x2a637e])&&((_0x9e386f=(_0x5ba315=_0xea3cd2[_0x11374e(0xac)][_0x2a637e])===null||_0x5ba315===void 0x0?void 0x0:_0x5ba315[_0x11374e(0xc7)])===null||_0x9e386f===void 0x0?void 0x0:_0x9e386f[_0x449d6b['methodArgs'][_0x2a637e]])&&(_0xea3cd2[_0x11374e(0xac)][_0x2a637e]=(_0xad817f=(_0x252282=_0xea3cd2[_0x11374e(0xac)][_0x2a637e])===null||_0x252282===void 0x0?void 0x0:_0x252282[_0x11374e(0xc7)])===null||_0xad817f===void 0x0?void 0x0:_0xad817f[_0x449d6b[_0x11374e(0xda)][_0x2a637e]]);}}},'afterThrow':(_0x209451,_0x5683b1)=>{throw _0x5683b1;}};});}};__decorate([(0x0,core_2[a1_0x70bb7e(0xdd)])(),__metadata(a1_0x70bb7e(0xad),core_1['MidwayDecoratorService'])],CustomConfiguration[a1_0x70bb7e(0xcd)],a1_0x70bb7e(0xd3),void 0x0),__decorate([(0x0,core_2[a1_0x70bb7e(0xdd)])(),__metadata(a1_0x70bb7e(0xad),ValidatorService_1[a1_0x70bb7e(0xd5)])],CustomConfiguration[a1_0x70bb7e(0xcd)],a1_0x70bb7e(0xd5),void 0x0),exports[a1_0x70bb7e(0xc4)]=CustomConfiguration=__decorate([(0x0,core_2[a1_0x70bb7e(0xc0)])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':a1_0x70bb7e(0xb4),'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
- function a2_0x16e6(_0x2aa2aa,_0x15a310){const _0x49988f=a2_0x1535();return a2_0x16e6=function(_0x527d63,_0x3d5754){_0x527d63=_0x527d63-0x8c;let _0x153590=_0x49988f[_0x527d63];return _0x153590;},a2_0x16e6(_0x2aa2aa,_0x15a310);}function a2_0x1535(){const _0x192901=['extend','description','defineProperty','718944RNsnOp','Array','meta','1vVOvXF','4773790WShYJo','constructor','getPropertyType','map','6024280dswYqt','name','__esModule','toString','array','18HwsysG','RuleType','getClassMetadata','(((.+)+)+)+$','label','isSchema','884962kFzcSx','2968974dLOyEH','items','apply','2145240mCihTV','416428hiEuwi','keys','25IcqrzV','Rule','search','RULES_KEY','@midwayjs/core','default','function'];a2_0x1535=function(){return _0x192901;};return a2_0x1535();}const a2_0x26c6b4=a2_0x16e6;(function(_0x1c3c9f,_0x305c28){const _0x3ef9d5=a2_0x16e6,_0x4daf07=_0x1c3c9f();while(!![]){try{const _0x60695a=parseInt(_0x3ef9d5(0x96))/0x1*(-parseInt(_0x3ef9d5(0xa6))/0x2)+parseInt(_0x3ef9d5(0x93))/0x3+-parseInt(_0x3ef9d5(0xab))/0x4*(-parseInt(_0x3ef9d5(0xad))/0x5)+parseInt(_0x3ef9d5(0xa7))/0x6+-parseInt(_0x3ef9d5(0x97))/0x7+parseInt(_0x3ef9d5(0x9b))/0x8+-parseInt(_0x3ef9d5(0xa0))/0x9*(parseInt(_0x3ef9d5(0xaa))/0xa);if(_0x60695a===_0x305c28)break;else _0x4daf07['push'](_0x4daf07['shift']());}catch(_0xd9bfff){_0x4daf07['push'](_0x4daf07['shift']());}}}(a2_0x1535,0x6ef94));const a2_0x3d5754=(function(){let _0x5e546b=!![];return function(_0x2f3ad8,_0x523182){const _0x3c1480=_0x5e546b?function(){const _0x2d359c=a2_0x16e6;if(_0x523182){const _0x5698ee=_0x523182[_0x2d359c(0xa9)](_0x2f3ad8,arguments);return _0x523182=null,_0x5698ee;}}:function(){};return _0x5e546b=![],_0x3c1480;};}()),a2_0x527d63=a2_0x3d5754(this,function(){const _0x3a71e3=a2_0x16e6;return a2_0x527d63[_0x3a71e3(0x9e)]()[_0x3a71e3(0xaf)](_0x3a71e3(0xa3))['toString']()[_0x3a71e3(0x98)](a2_0x527d63)[_0x3a71e3(0xaf)](_0x3a71e3(0xa3));});a2_0x527d63();'use strict';Object[a2_0x26c6b4(0x92)](exports,a2_0x26c6b4(0x9d),{'value':!![]}),exports['Rule']=exports[a2_0x26c6b4(0xa1)]=void 0x0;const joi=require('joi'),date_1=require('@joi/date'),core_1=require(a2_0x26c6b4(0x8d)),interface_1=require('../interface');exports[a2_0x26c6b4(0xa1)]=joi[a2_0x26c6b4(0x90)](date_1[a2_0x26c6b4(0x8e)]);function Rule(_0x5b3d27,_0x1cd733,_0x13ec64=''){return(_0x59052a,_0x50b0d0)=>{const _0x2ebd93=a2_0x16e6;var _0x5237a0;if(_0x50b0d0)!joi[_0x2ebd93(0xa5)](_0x1cd733)&&(_0x1cd733===null||_0x1cd733===void 0x0?void 0x0:_0x1cd733[_0x2ebd93(0x9c)])&&(_0x1cd733=joi['object']((0x0,core_1['getClassMetadata'])(interface_1[_0x2ebd93(0x8c)],_0x1cd733))[_0x2ebd93(0x95)]({'id':_0x1cd733['name']}),(0x0,core_1[_0x2ebd93(0x99)])(_0x59052a,_0x50b0d0)[_0x2ebd93(0x9c)]===_0x2ebd93(0x94)&&(_0x1cd733=joi[_0x2ebd93(0x9f)]()[_0x2ebd93(0xa8)](_0x1cd733))),joi[_0x2ebd93(0xa5)](_0x1cd733)&&(_0x5b3d27&&typeof(_0x1cd733===null||_0x1cd733===void 0x0?void 0x0:_0x1cd733['label'])==_0x2ebd93(0x8f)&&(_0x1cd733=_0x1cd733[_0x2ebd93(0xa4)](_0x5b3d27)),_0x13ec64&&typeof(_0x1cd733===null||_0x1cd733===void 0x0?void 0x0:_0x1cd733[_0x2ebd93(0x91)])==_0x2ebd93(0x8f)&&(_0x1cd733=_0x1cd733[_0x2ebd93(0x91)](_0x13ec64)),(0x0,core_1['attachClassMetadata'])(interface_1[_0x2ebd93(0x8c)],_0x1cd733,_0x59052a,_0x50b0d0));else{const _0x3e7983=(0x0,core_1[_0x2ebd93(0xa2)])(interface_1[_0x2ebd93(0x8c)],_0x1cd733);if(_0x3e7983){let _0x49fb43=(_0x5237a0=(0x0,core_1[_0x2ebd93(0xa2)])(interface_1['RULES_KEY'],_0x59052a))!==null&&_0x5237a0!==void 0x0?_0x5237a0:{};Object[_0x2ebd93(0xac)](_0x3e7983)[_0x2ebd93(0x9a)](_0x200243=>{!_0x49fb43[_0x200243]&&(_0x49fb43[_0x200243]=_0x3e7983[_0x200243]);}),(0x0,core_1['saveClassMetadata'])(interface_1[_0x2ebd93(0x8c)],_0x49fb43,_0x59052a);}}};}exports[a2_0x26c6b4(0xae)]=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_0xb4ccee=a3_0x1385;(function(_0x1004ff,_0xf9530d){const _0x316148=a3_0x1385,_0x3c2f46=_0x1004ff();while(!![]){try{const _0x5ef231=parseInt(_0x316148(0x16c))/0x1+-parseInt(_0x316148(0x16a))/0x2+-parseInt(_0x316148(0x167))/0x3*(-parseInt(_0x316148(0x156))/0x4)+-parseInt(_0x316148(0x16b))/0x5*(parseInt(_0x316148(0x15e))/0x6)+-parseInt(_0x316148(0x158))/0x7*(-parseInt(_0x316148(0x166))/0x8)+-parseInt(_0x316148(0x161))/0x9*(-parseInt(_0x316148(0x153))/0xa)+-parseInt(_0x316148(0x168))/0xb*(parseInt(_0x316148(0x164))/0xc);if(_0x5ef231===_0xf9530d)break;else _0x3c2f46['push'](_0x3c2f46['shift']());}catch(_0x367a4e){_0x3c2f46['push'](_0x3c2f46['shift']());}}}(a3_0x565a,0xdc944));function a3_0x1385(_0x5d50fe,_0x3b37b3){const _0x407b48=a3_0x565a();return a3_0x1385=function(_0x176f0e,_0x2dc6c7){_0x176f0e=_0x176f0e-0x153;let _0x565a97=_0x407b48[_0x176f0e];return _0x565a97;},a3_0x1385(_0x5d50fe,_0x3b37b3);}const a3_0x2dc6c7=(function(){let _0x1d73c0=!![];return function(_0x2cae4a,_0x4440ad){const _0x21a104=_0x1d73c0?function(){const _0x50e308=a3_0x1385;if(_0x4440ad){const _0x4dcc94=_0x4440ad[_0x50e308(0x15a)](_0x2cae4a,arguments);return _0x4440ad=null,_0x4dcc94;}}:function(){};return _0x1d73c0=![],_0x21a104;};}()),a3_0x176f0e=a3_0x2dc6c7(this,function(){const _0x42d7b3=a3_0x1385;return a3_0x176f0e[_0x42d7b3(0x16e)]()[_0x42d7b3(0x15d)]('(((.+)+)+)+$')['toString']()[_0x42d7b3(0x162)](a3_0x176f0e)['search']('(((.+)+)+)+$');});a3_0x176f0e();'use strict';Object['defineProperty'](exports,a3_0xb4ccee(0x160),{'value':!![]}),exports[a3_0xb4ccee(0x15f)]=exports[a3_0xb4ccee(0x15b)]=void 0x0;const core_1=require(a3_0xb4ccee(0x155)),interface_1=require(a3_0xb4ccee(0x157));function Validator(_0x29965a={}){return(_0x27e277,_0x48ebeb,_0x2e3107)=>{const _0x3add41=a3_0x1385,_0x4f6eb7=getFuncArgs(_0x27e277[_0x48ebeb]);(0x0,core_1['attachClassMetadata'])(interface_1[_0x3add41(0x15c)],{'method':_0x48ebeb,'methodArgs':_0x4f6eb7},_0x27e277),(0x0,core_1[_0x3add41(0x159)])(interface_1['VALIDATOR_KEY'],_0x29965a)(_0x27e277,_0x48ebeb,_0x2e3107);};}function a3_0x565a(){const _0x900ab8=['toString','290HQpxwi','indexOf','@midwayjs/core','4gldVdO','../interface','14777ewCQeY','createCustomMethodDecorator','apply','Validator','VALIDATOR_KEY','search','696UeBvHt','getFuncArgs','__esModule','412551UkBdMz','constructor','prototype','5381076xsbOit','match','4856KRCnvt','5065650HKCpZV','99BkHRsZ','slice','990832HQvVTg','3795RcsMlu','1223501uwxTJo','replace'];a3_0x565a=function(){return _0x900ab8;};return a3_0x565a();}exports[a3_0xb4ccee(0x15b)]=Validator;function getFuncArgs(_0x2e266b){const _0x5ae063=a3_0xb4ccee;if(typeof _0x2e266b=='function'){const _0x48e7c5=/=>.*$/mg,_0x44226c=/=[^,)]+/mg,_0x119f8b=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x56491f=(_0x2e266b['prototype']?_0x2e266b[_0x5ae063(0x163)][_0x5ae063(0x162)]['toString']():_0x2e266b[_0x5ae063(0x16e)]())['replace'](_0x119f8b,'')[_0x5ae063(0x16d)](_0x48e7c5,'')[_0x5ae063(0x16d)](_0x44226c,''),_0x2aec02=_0x56491f[_0x5ae063(0x169)](_0x56491f[_0x5ae063(0x154)]('(')+0x1,_0x56491f[_0x5ae063(0x154)](')'))[_0x5ae063(0x165)](/([^\s,]+)/g)||[];return _0x2aec02;}}exports[a3_0xb4ccee(0x15f)]=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_0x110389=a4_0x84e8;(function(_0x59f613,_0x1b0ae1){var _0x2206a6=a4_0x84e8,_0x4f1bb9=_0x59f613();while(!![]){try{var _0x442014=-parseInt(_0x2206a6(0x135))/0x1*(parseInt(_0x2206a6(0x142))/0x2)+-parseInt(_0x2206a6(0x13d))/0x3+-parseInt(_0x2206a6(0x139))/0x4*(-parseInt(_0x2206a6(0x12f))/0x5)+parseInt(_0x2206a6(0x12d))/0x6*(parseInt(_0x2206a6(0x137))/0x7)+-parseInt(_0x2206a6(0x130))/0x8*(-parseInt(_0x2206a6(0x138))/0x9)+parseInt(_0x2206a6(0x140))/0xa*(-parseInt(_0x2206a6(0x141))/0xb)+parseInt(_0x2206a6(0x12b))/0xc*(parseInt(_0x2206a6(0x134))/0xd);if(_0x442014===_0x1b0ae1)break;else _0x4f1bb9['push'](_0x4f1bb9['shift']());}catch(_0x59cac4){_0x4f1bb9['push'](_0x4f1bb9['shift']());}}}(a4_0x20b2,0x4be90));function a4_0x20b2(){var _0x40cb0f=['@anncic-api/core','AnnErrorMsg','(((.+)+)+)+$','13lchfFp','1xkNfPl','metadata','115738AMPOTS','9YlhtDq','72nmLiQI','defineProperty','length','decorate','140448CQMwct','参数验证失败','toString','87500OoiVTk','770nbYepl','366918EeDWjh','NOFIND_SCHEMA','object','function','search','__esModule','ValidatorError','358752lHTmVC','getOwnPropertyDescriptor','24mMxDwb','design:type','148615EmOyAm','4181256sDEvWr'];a4_0x20b2=function(){return _0x40cb0f;};return a4_0x20b2();}var a4_0x2f465e=(function(){var _0x5153c2=!![];return function(_0x21d062,_0x130131){var _0x4c9d3b=_0x5153c2?function(){if(_0x130131){var _0x48ccdf=_0x130131['apply'](_0x21d062,arguments);return _0x130131=null,_0x48ccdf;}}:function(){};return _0x5153c2=![],_0x4c9d3b;};}()),a4_0x26ca19=a4_0x2f465e(this,function(){var _0x421947=a4_0x84e8;return a4_0x26ca19[_0x421947(0x13f)]()[_0x421947(0x128)](_0x421947(0x133))['toString']()['constructor'](a4_0x26ca19)['search'](_0x421947(0x133));});a4_0x26ca19();function a4_0x84e8(_0x43d3b9,_0x36b0d5){var _0x4bdb81=a4_0x20b2();return a4_0x84e8=function(_0x26ca19,_0x2f465e){_0x26ca19=_0x26ca19-0x127;var _0x20b2f1=_0x4bdb81[_0x26ca19];return _0x20b2f1;},a4_0x84e8(_0x43d3b9,_0x36b0d5);}'use strict';var __decorate=this&&this['__decorate']||function(_0x21ad0d,_0x581f2f,_0x5eeedf,_0x36ea52){var _0x205a33=a4_0x84e8,_0x4bad2d=arguments[_0x205a33(0x13b)],_0x31aa4f=_0x4bad2d<0x3?_0x581f2f:_0x36ea52===null?_0x36ea52=Object[_0x205a33(0x12c)](_0x581f2f,_0x5eeedf):_0x36ea52,_0x2c5b9a;if(typeof Reflect===_0x205a33(0x144)&&typeof Reflect[_0x205a33(0x13c)]===_0x205a33(0x127))_0x31aa4f=Reflect['decorate'](_0x21ad0d,_0x581f2f,_0x5eeedf,_0x36ea52);else{for(var _0x3368d4=_0x21ad0d[_0x205a33(0x13b)]-0x1;_0x3368d4>=0x0;_0x3368d4--)if(_0x2c5b9a=_0x21ad0d[_0x3368d4])_0x31aa4f=(_0x4bad2d<0x3?_0x2c5b9a(_0x31aa4f):_0x4bad2d>0x3?_0x2c5b9a(_0x581f2f,_0x5eeedf,_0x31aa4f):_0x2c5b9a(_0x581f2f,_0x5eeedf))||_0x31aa4f;}return _0x4bad2d>0x3&&_0x31aa4f&&Object[_0x205a33(0x13a)](_0x581f2f,_0x5eeedf,_0x31aa4f),_0x31aa4f;},__metadata=this&&this['__metadata']||function(_0x1c058b,_0x4ab84c){var _0x22f9f1=a4_0x84e8;if(typeof Reflect==='object'&&typeof Reflect[_0x22f9f1(0x136)]===_0x22f9f1(0x127))return Reflect[_0x22f9f1(0x136)](_0x1c058b,_0x4ab84c);};Object[a4_0x110389(0x13a)](exports,a4_0x110389(0x129),{'value':!![]}),exports['ValidatorError']=void 0x0;const core_1=require(a4_0x110389(0x131));class ValidatorError extends AnnError{}exports[a4_0x110389(0x12a)]=ValidatorError,ValidatorError['PARAMS']=0x18c1e,ValidatorError['NOFIND_SCHEMA']=0x18c1c,__decorate([(0x0,core_1[a4_0x110389(0x132)])(a4_0x110389(0x13e)),__metadata(a4_0x110389(0x12e),Object)],ValidatorError,'PARAMS',void 0x0),__decorate([(0x0,core_1[a4_0x110389(0x132)])(a4_0x110389(0x13e)),__metadata('design:type',Object)],ValidatorError,a4_0x110389(0x143),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_0x5e5850=a5_0x384e;(function(_0xa86f47,_0x3040d7){const _0x2af45b=a5_0x384e,_0x11808a=_0xa86f47();while(!![]){try{const _0x398fc2=parseInt(_0x2af45b(0x162))/0x1+-parseInt(_0x2af45b(0x15d))/0x2*(-parseInt(_0x2af45b(0x165))/0x3)+-parseInt(_0x2af45b(0x164))/0x4*(parseInt(_0x2af45b(0x15e))/0x5)+parseInt(_0x2af45b(0x151))/0x6+-parseInt(_0x2af45b(0x15c))/0x7*(parseInt(_0x2af45b(0x163))/0x8)+parseInt(_0x2af45b(0x160))/0x9*(-parseInt(_0x2af45b(0x155))/0xa)+parseInt(_0x2af45b(0x154))/0xb;if(_0x398fc2===_0x3040d7)break;else _0x11808a['push'](_0x11808a['shift']());}catch(_0x15a68d){_0x11808a['push'](_0x11808a['shift']());}}}(a5_0x2564,0x2b72b));const a5_0x56e823=(function(){let _0x4feb03=!![];return function(_0x56a847,_0x3c4a40){const _0xea41b9=_0x4feb03?function(){const _0x4b9908=a5_0x384e;if(_0x3c4a40){const _0x7bac01=_0x3c4a40[_0x4b9908(0x150)](_0x56a847,arguments);return _0x3c4a40=null,_0x7bac01;}}:function(){};return _0x4feb03=![],_0xea41b9;};}()),a5_0x567507=a5_0x56e823(this,function(){const _0x29174b=a5_0x384e;return a5_0x567507[_0x29174b(0x14f)]()['search'](_0x29174b(0x166))[_0x29174b(0x14f)]()[_0x29174b(0x159)](a5_0x567507)[_0x29174b(0x167)](_0x29174b(0x166));});a5_0x567507();'use strict';function a5_0x2564(){const _0x20794c=['(((.+)+)+)+$','search','toString','apply','497244jCQBMD','OmitDto','prototype','5869699wuloVX','10CrICRw','@midwayjs/core','defineProperty','saveClassMetadata','constructor','RULES_KEY','../interface','106841WWAOCN','2654LxdJTF','80DQYnKq','PickDto','2050857QdPdQL','assign','184227hZJHKF','104oFycrv','88592SXrcrT','357IUaMKU'];a5_0x2564=function(){return _0x20794c;};return a5_0x2564();}function a5_0x384e(_0x3c6d23,_0xbca76f){const _0xac1817=a5_0x2564();return a5_0x384e=function(_0x567507,_0x56e823){_0x567507=_0x567507-0x14f;let _0x25647f=_0xac1817[_0x567507];return _0x25647f;},a5_0x384e(_0x3c6d23,_0xbca76f);}Object[a5_0x5e5850(0x157)](exports,'__esModule',{'value':!![]}),exports[a5_0x5e5850(0x152)]=exports[a5_0x5e5850(0x15f)]=void 0x0;const core_1=require(a5_0x5e5850(0x156)),interface_1=require(a5_0x5e5850(0x15b));function PickDto(_0xb6386,_0x2955ef){const _0x602de4=a5_0x5e5850,_0x37b58a=function(){};_0x37b58a[_0x602de4(0x153)]=_0xb6386[_0x602de4(0x153)];const _0x5c7623=(0x0,core_1['getClassExtendedMetadata'])(interface_1[_0x602de4(0x15a)],_0xb6386),_0x348afa={};for(const _0x22d57a of _0x2955ef){_0x5c7623[_0x22d57a]&&(_0x348afa[_0x22d57a]=_0x5c7623[_0x22d57a]);}return(0x0,core_1[_0x602de4(0x158)])(interface_1[_0x602de4(0x15a)],_0x348afa,_0x37b58a),_0x37b58a;}exports[a5_0x5e5850(0x15f)]=PickDto;function OmitDto(_0x20871a,_0x53e9bf){const _0x14cbb8=a5_0x5e5850,_0x4deb06=function(){};_0x4deb06[_0x14cbb8(0x153)]=_0x20871a['prototype'];const _0x9ce613=(0x0,core_1['getClassExtendedMetadata'])(interface_1[_0x14cbb8(0x15a)],_0x20871a),_0x8232c8=Object[_0x14cbb8(0x161)]({},_0x9ce613);for(const _0x5e4a96 of _0x53e9bf){delete _0x8232c8[_0x5e4a96];}return(0x0,core_1[_0x14cbb8(0x158)])(interface_1[_0x14cbb8(0x15a)],_0x8232c8,_0x4deb06),_0x4deb06;}exports['OmitDto']=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_0x31bf2f=a6_0x4391;(function(_0x1e50e5,_0x496231){var _0xb9ddb=a6_0x4391,_0x3bec4c=_0x1e50e5();while(!![]){try{var _0x34a863=parseInt(_0xb9ddb(0x187))/0x1+-parseInt(_0xb9ddb(0x18e))/0x2+-parseInt(_0xb9ddb(0x183))/0x3*(parseInt(_0xb9ddb(0x190))/0x4)+parseInt(_0xb9ddb(0x18f))/0x5*(parseInt(_0xb9ddb(0x17b))/0x6)+parseInt(_0xb9ddb(0x193))/0x7+-parseInt(_0xb9ddb(0x17e))/0x8*(parseInt(_0xb9ddb(0x17c))/0x9)+parseInt(_0xb9ddb(0x192))/0xa;if(_0x34a863===_0x496231)break;else _0x3bec4c['push'](_0x3bec4c['shift']());}catch(_0x22a80c){_0x3bec4c['push'](_0x3bec4c['shift']());}}}(a6_0x4951,0x9a75c));var a6_0x55cba3=(function(){var _0x21fd42=!![];return function(_0x5a589f,_0x101bfb){var _0x13d717=_0x21fd42?function(){if(_0x101bfb){var _0xcf209e=_0x101bfb['apply'](_0x5a589f,arguments);return _0x101bfb=null,_0xcf209e;}}:function(){};return _0x21fd42=![],_0x13d717;};}()),a6_0x1a1ec0=a6_0x55cba3(this,function(){var _0x466fa1=a6_0x4391;return a6_0x1a1ec0[_0x466fa1(0x18d)]()[_0x466fa1(0x195)](_0x466fa1(0x17a))[_0x466fa1(0x18d)]()[_0x466fa1(0x180)](a6_0x1a1ec0)[_0x466fa1(0x195)]('(((.+)+)+)+$');});a6_0x1a1ec0();'use strict';var __createBinding=this&&this[a6_0x31bf2f(0x184)]||(Object[a6_0x31bf2f(0x17f)]?function(_0x3fe7fb,_0x152e80,_0x96a34a,_0xace968){var _0x284257=a6_0x31bf2f;if(_0xace968===undefined)_0xace968=_0x96a34a;var _0x4a6c00=Object['getOwnPropertyDescriptor'](_0x152e80,_0x96a34a);(!_0x4a6c00||('get'in _0x4a6c00?!_0x152e80[_0x284257(0x199)]:_0x4a6c00[_0x284257(0x181)]||_0x4a6c00['configurable']))&&(_0x4a6c00={'enumerable':!![],'get':function(){return _0x152e80[_0x96a34a];}}),Object[_0x284257(0x197)](_0x3fe7fb,_0xace968,_0x4a6c00);}:function(_0x3a00ec,_0x383366,_0x48537e,_0x23fbec){if(_0x23fbec===undefined)_0x23fbec=_0x48537e;_0x3a00ec[_0x23fbec]=_0x383366[_0x48537e];}),__exportStar=this&&this[a6_0x31bf2f(0x18c)]||function(_0x5a073d,_0x43347d){var _0x44fdce=a6_0x31bf2f;for(var _0x329133 in _0x5a073d)if(_0x329133!==_0x44fdce(0x194)&&!Object[_0x44fdce(0x189)][_0x44fdce(0x191)]['call'](_0x43347d,_0x329133))__createBinding(_0x43347d,_0x5a073d,_0x329133);};Object['defineProperty'](exports,a6_0x31bf2f(0x199),{'value':!![]}),exports[a6_0x31bf2f(0x17d)]=exports['ValidatorService']=exports[a6_0x31bf2f(0x182)]=exports[a6_0x31bf2f(0x19a)]=exports[a6_0x31bf2f(0x188)]=exports[a6_0x31bf2f(0x19b)]=void 0x0,__exportStar(require(a6_0x31bf2f(0x179)),exports),__exportStar(require(a6_0x31bf2f(0x18a)),exports);var Validator_1=require('./decorator/Validator');Object[a6_0x31bf2f(0x197)](exports,a6_0x31bf2f(0x19b),{'enumerable':!![],'get':function(){var _0x1bcb15=a6_0x31bf2f;return Validator_1[_0x1bcb15(0x19b)];}});var Rule_1=require(a6_0x31bf2f(0x185));Object['defineProperty'](exports,a6_0x31bf2f(0x188),{'enumerable':!![],'get':function(){var _0x13bd64=a6_0x31bf2f;return Rule_1[_0x13bd64(0x188)];}}),Object[a6_0x31bf2f(0x197)](exports,a6_0x31bf2f(0x19a),{'enumerable':!![],'get':function(){var _0x5861ec=a6_0x31bf2f;return Rule_1[_0x5861ec(0x19a)];}});var ValidatorError_1=require(a6_0x31bf2f(0x196));function a6_0x4391(_0x1580cd,_0x4f980c){var _0x52e479=a6_0x4951();return a6_0x4391=function(_0x1a1ec0,_0x55cba3){_0x1a1ec0=_0x1a1ec0-0x179;var _0x495143=_0x52e479[_0x1a1ec0];return _0x495143;},a6_0x4391(_0x1580cd,_0x4f980c);}Object['defineProperty'](exports,a6_0x31bf2f(0x182),{'enumerable':!![],'get':function(){var _0x2824ec=a6_0x31bf2f;return ValidatorError_1[_0x2824ec(0x182)];}});function a6_0x4951(){var _0x153e5a=['8332443ypbjlZ','default','search','./exception/ValidatorError','defineProperty','./service/ValidatorService','__esModule','RuleType','Validator','./interface','(((.+)+)+)+$','938262olLujC','188631TgxrcY','Configuration','296wtgoEw','create','constructor','writable','ValidatorError','13902czNSbe','__createBinding','./decorator/Rule','ValidatorService','132300XevTGH','Rule','prototype','./helper/dtoHelper','CustomConfiguration','__exportStar','toString','1504424nUoCZP','15htvCXL','836jEKfFT','hasOwnProperty','13370890XvPtPy'];a6_0x4951=function(){return _0x153e5a;};return a6_0x4951();}var ValidatorService_1=require(a6_0x31bf2f(0x198));Object[a6_0x31bf2f(0x197)](exports,a6_0x31bf2f(0x186),{'enumerable':!![],'get':function(){var _0x4c7242=a6_0x31bf2f;return ValidatorService_1[_0x4c7242(0x186)];}});var configuration_1=require('./configuration');Object[a6_0x31bf2f(0x197)](exports,a6_0x31bf2f(0x17d),{'enumerable':!![],'get':function(){var _0x105898=a6_0x31bf2f;return configuration_1[_0x105898(0x18b)];}});
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_0x27e57c=a7_0x2c4d;(function(_0x40b355,_0x344824){var _0xfebb0=a7_0x2c4d,_0x220800=_0x40b355();while(!![]){try{var _0x31905e=-parseInt(_0xfebb0(0xf6))/0x1+parseInt(_0xfebb0(0xf9))/0x2*(parseInt(_0xfebb0(0xf8))/0x3)+-parseInt(_0xfebb0(0xf0))/0x4*(parseInt(_0xfebb0(0xef))/0x5)+-parseInt(_0xfebb0(0xf1))/0x6+parseInt(_0xfebb0(0xe9))/0x7*(parseInt(_0xfebb0(0xf3))/0x8)+parseInt(_0xfebb0(0xe7))/0x9*(-parseInt(_0xfebb0(0xe8))/0xa)+parseInt(_0xfebb0(0xf4))/0xb;if(_0x31905e===_0x344824)break;else _0x220800['push'](_0x220800['shift']());}catch(_0x3bfe13){_0x220800['push'](_0x220800['shift']());}}}(a7_0x2411,0x3618e));function a7_0x2c4d(_0x4d225,_0x3c026e){var _0xefad83=a7_0x2411();return a7_0x2c4d=function(_0x33b13f,_0x1131c6){_0x33b13f=_0x33b13f-0xe7;var _0x241196=_0xefad83[_0x33b13f];return _0x241196;},a7_0x2c4d(_0x4d225,_0x3c026e);}var a7_0x1131c6=(function(){var _0x52da93=!![];return function(_0x278eca,_0x47e082){var _0x4ea84f=_0x52da93?function(){var _0x28ba34=a7_0x2c4d;if(_0x47e082){var _0x45d6c8=_0x47e082[_0x28ba34(0xfa)](_0x278eca,arguments);return _0x47e082=null,_0x45d6c8;}}:function(){};return _0x52da93=![],_0x4ea84f;};}()),a7_0x33b13f=a7_0x1131c6(this,function(){var _0x483e72=a7_0x2c4d;return a7_0x33b13f['toString']()[_0x483e72(0xf7)]('(((.+)+)+)+$')[_0x483e72(0xeb)]()[_0x483e72(0xed)](a7_0x33b13f)['search'](_0x483e72(0xea));});a7_0x33b13f();'use strict';Object[a7_0x27e57c(0xee)](exports,a7_0x27e57c(0xec),{'value':!![]}),exports['VALIDATOR_KEY']=exports[a7_0x27e57c(0xf5)]=void 0x0,exports[a7_0x27e57c(0xf5)]=a7_0x27e57c(0xf2),exports['VALIDATOR_KEY']='anncic-api:validator:validator';function a7_0x2411(){var _0x408f61=['RULES_KEY','297377nLrIDj','search','3uuOOOU','611044XVMwRH','apply','18ZzPpMS','291680wtoptQ','658343gIcMvC','(((.+)+)+)+$','toString','__esModule','constructor','defineProperty','3070cWLfII','2444NaxfFE','284772sOnhxF','anncic-api:validator:rules','16LGNKiY','5569201SznFYu'];a7_0x2411=function(){return _0x408f61;};return a7_0x2411();}
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_0x377f(){const _0x5a24c4=['toString','3946030fitQkT','Init','validator','__metadata','getSchema','length','PARAMS','2434044mjzmNZ','validate','@midwayjs/core','_flags','message','27pTTIEM','errors','function','validationOptions','ValidatorService','$_terms','search','format','error','471100GSLoHb','messages','7dEUncm','i18nConfig','19664UzIiQV','init','getAvailableLocale','type','i18n','Config','NOFIND_SCHEMA','2332620KYKRTP','validatorConfig','design:paramtypes','design:type','1719AVSiLk','6056592bQemVW','schema','prototype','constructor','Inject','localeTable','key','(((.+)+)+)+$','joi','decorate','date','defaultLocale','Singleton','91318WzMTpD','keys','__esModule','defineProperty','参数验证失败','assign','../interface','metadata','getOwnPropertyDescriptor','Scope','isSchema','details','ValidatorError','YYYY-MM-DD\x20HH:mm:ss','forEach','value','getClassExtendedMetadata','getLocaleMapping','i18nService','locale','MidwayI18nServiceSingleton','object','formatLocale','language'];a8_0x377f=function(){return _0x5a24c4;};return a8_0x377f();}const a8_0x2a4ae2=a8_0x388d;(function(_0x545361,_0x2b3c83){const _0x109e8f=a8_0x388d,_0x48b809=_0x545361();while(!![]){try{const _0x4378bc=-parseInt(_0x109e8f(0x20e))/0x1*(-parseInt(_0x109e8f(0x234))/0x2)+parseInt(_0x109e8f(0x209))/0x3+-parseInt(_0x109e8f(0x222))/0x4+parseInt(_0x109e8f(0x202))/0x5+-parseInt(_0x109e8f(0x227))/0x6*(parseInt(_0x109e8f(0x219))/0x7)+-parseInt(_0x109e8f(0x21b))/0x8*(parseInt(_0x109e8f(0x226))/0x9)+parseInt(_0x109e8f(0x217))/0xa;if(_0x4378bc===_0x2b3c83)break;else _0x48b809['push'](_0x48b809['shift']());}catch(_0x119137){_0x48b809['push'](_0x48b809['shift']());}}}(a8_0x377f,0xc7cd8));const a8_0x2461dd=(function(){let _0x5e485c=!![];return function(_0x1f3b01,_0x43a7f0){const _0x114659=_0x5e485c?function(){if(_0x43a7f0){const _0x3bb801=_0x43a7f0['apply'](_0x1f3b01,arguments);return _0x43a7f0=null,_0x3bb801;}}:function(){};return _0x5e485c=![],_0x114659;};}()),a8_0xcc07b7=a8_0x2461dd(this,function(){const _0x351ba0=a8_0x388d;return a8_0xcc07b7[_0x351ba0(0x201)]()[_0x351ba0(0x214)](_0x351ba0(0x22e))['toString']()[_0x351ba0(0x22a)](a8_0xcc07b7)['search'](_0x351ba0(0x22e));});a8_0xcc07b7();'use strict';var __decorate=this&&this['__decorate']||function(_0x401102,_0x33265d,_0x178f84,_0x148d50){const _0x5aa372=a8_0x388d;var _0x1e3402=arguments[_0x5aa372(0x207)],_0x1065b6=_0x1e3402<0x3?_0x33265d:_0x148d50===null?_0x148d50=Object[_0x5aa372(0x1f1)](_0x33265d,_0x178f84):_0x148d50,_0x4fa258;if(typeof Reflect===_0x5aa372(0x1fe)&&typeof Reflect[_0x5aa372(0x230)]===_0x5aa372(0x210))_0x1065b6=Reflect[_0x5aa372(0x230)](_0x401102,_0x33265d,_0x178f84,_0x148d50);else{for(var _0x4613dd=_0x401102[_0x5aa372(0x207)]-0x1;_0x4613dd>=0x0;_0x4613dd--)if(_0x4fa258=_0x401102[_0x4613dd])_0x1065b6=(_0x1e3402<0x3?_0x4fa258(_0x1065b6):_0x1e3402>0x3?_0x4fa258(_0x33265d,_0x178f84,_0x1065b6):_0x4fa258(_0x33265d,_0x178f84))||_0x1065b6;}return _0x1e3402>0x3&&_0x1065b6&&Object[_0x5aa372(0x237)](_0x33265d,_0x178f84,_0x1065b6),_0x1065b6;},__metadata=this&&this[a8_0x2a4ae2(0x205)]||function(_0xedfdb7,_0x223f54){const _0x3090ef=a8_0x2a4ae2;if(typeof Reflect===_0x3090ef(0x1fe)&&typeof Reflect[_0x3090ef(0x1f0)]===_0x3090ef(0x210))return Reflect[_0x3090ef(0x1f0)](_0xedfdb7,_0x223f54);};Object[a8_0x2a4ae2(0x237)](exports,a8_0x2a4ae2(0x236),{'value':!![]}),exports[a8_0x2a4ae2(0x212)]=void 0x0;const Joi=require(a8_0x2a4ae2(0x22f)),i18n_1=require('@midwayjs/i18n'),core_1=require(a8_0x2a4ae2(0x20b)),interface_1=require(a8_0x2a4ae2(0x1ef)),ValidatorError_1=require('../exception/ValidatorError');function a8_0x388d(_0x33b63f,_0x1192f2){const _0x2e6523=a8_0x377f();return a8_0x388d=function(_0xcc07b7,_0x2461dd){_0xcc07b7=_0xcc07b7-0x1ee;let _0x377fcd=_0x2e6523[_0xcc07b7];return _0x377fcd;},a8_0x388d(_0x33b63f,_0x1192f2);}let ValidatorService=exports[a8_0x2a4ae2(0x212)]=class ValidatorService{constructor(){const _0x27dd74=a8_0x2a4ae2;this[_0x27dd74(0x218)]={};}async[a8_0x2a4ae2(0x21c)](){const _0x20671e=a8_0x2a4ae2,_0x5bd5ce=Object[_0x20671e(0x235)](this[_0x20671e(0x21a)][_0x20671e(0x22c)]);_0x5bd5ce[_0x20671e(0x1f7)](_0x1298a6=>{const _0x51f5c7=_0x20671e;this[_0x51f5c7(0x218)][(0x0,i18n_1['formatLocale'])(_0x1298a6)]=Object['fromEntries'](this[_0x51f5c7(0x1fb)][_0x51f5c7(0x1fa)](_0x1298a6,_0x51f5c7(0x204)));});}['getSchema'](_0x5b92fc){const _0x10834a=a8_0x2a4ae2,_0x4102f0=(0x0,core_1[_0x10834a(0x1f9)])(interface_1['RULES_KEY'],_0x5b92fc);return _0x4102f0?Joi[_0x10834a(0x1fe)](_0x4102f0):undefined;}[a8_0x2a4ae2(0x204)](_0x59100d,_0x1cb845,_0x1685f6={}){const _0x13ead5=a8_0x2a4ae2;var _0x355933,_0x3a43a7,_0x1ed54f,_0x119470,_0x14c5a4,_0x1d09fc;const _0x119db0=Joi[_0x13ead5(0x1f3)](_0x59100d)?_0x59100d:this[_0x13ead5(0x206)](_0x59100d);if(!_0x119db0)throw new AnnError(ValidatorError_1[_0x13ead5(0x1f5)][_0x13ead5(0x221)]);_0x1685f6[_0x13ead5(0x211)]=Object[_0x13ead5(0x1ee)]((_0x355933=this[_0x13ead5(0x223)][_0x13ead5(0x211)])!==null&&_0x355933!==void 0x0?_0x355933:{},{'messages':this[_0x13ead5(0x218)]},_0x1685f6[_0x13ead5(0x211)]||{}),_0x1685f6['validationOptions'][_0x13ead5(0x20f)]=_0x1685f6['validationOptions'][_0x13ead5(0x20f)]||{},_0x1685f6[_0x13ead5(0x211)][_0x13ead5(0x20f)]['language']=(0x0,i18n_1[_0x13ead5(0x1ff)])(this[_0x13ead5(0x1fb)][_0x13ead5(0x21d)](_0x1685f6[_0x13ead5(0x211)][_0x13ead5(0x20f)][_0x13ead5(0x200)]||_0x1685f6[_0x13ead5(0x1fc)]||this[_0x13ead5(0x21a)][_0x13ead5(0x232)],'validator'));const _0xe3a083=_0x119db0[_0x13ead5(0x20a)](_0x1cb845,_0x1685f6['validationOptions']);if(_0xe3a083===null||_0xe3a083===void 0x0?void 0x0:_0xe3a083['error']){if(_0xe3a083[_0x13ead5(0x216)]instanceof AnnError)throw _0xe3a083[_0x13ead5(0x216)];else{if(_0xe3a083[_0x13ead5(0x216)]instanceof Error)throw new AnnError(ValidatorError_1['ValidatorError'][_0x13ead5(0x208)],{'message':((_0x3a43a7=_0xe3a083[_0x13ead5(0x216)])===null||_0x3a43a7===void 0x0?void 0x0:_0x3a43a7[_0x13ead5(0x20d)])||_0x13ead5(0x238)});else throw new AnnError(ValidatorError_1[_0x13ead5(0x1f5)][_0x13ead5(0x208)],{'message':((_0x14c5a4=(_0x119470=(_0x1ed54f=_0xe3a083[_0x13ead5(0x216)])===null||_0x1ed54f===void 0x0?void 0x0:_0x1ed54f[_0x13ead5(0x1f4)])===null||_0x119470===void 0x0?void 0x0:_0x119470[0x0])===null||_0x14c5a4===void 0x0?void 0x0:_0x14c5a4['message'])||_0x13ead5(0x238)});}}if(_0xe3a083===null||_0xe3a083===void 0x0?void 0x0:_0xe3a083[_0x13ead5(0x1f8)]){const _0x37ec18=(_0x1d09fc=_0x119db0===null||_0x119db0===void 0x0?void 0x0:_0x119db0[_0x13ead5(0x213)])===null||_0x1d09fc===void 0x0?void 0x0:_0x1d09fc[_0x13ead5(0x235)],_0x4715b4=function(_0x2e6698,_0x22ed3d){const _0x3e7817=_0x13ead5;var _0xe993f,_0x3c2952,_0xe3dbcb,_0x364904,_0x3eacef,_0x50f911,_0x15607d,_0x260ad0,_0x1d3607,_0x380a40,_0x1e04b0;for(let _0x5787c2 in _0x2e6698){if(_0x22ed3d[(_0xe993f=_0x2e6698[_0x5787c2])===null||_0xe993f===void 0x0?void 0x0:_0xe993f[_0x3e7817(0x22d)]]&&((_0xe3dbcb=(_0x3c2952=_0x2e6698[_0x5787c2])===null||_0x3c2952===void 0x0?void 0x0:_0x3c2952[_0x3e7817(0x228)])===null||_0xe3dbcb===void 0x0?void 0x0:_0xe3dbcb[_0x3e7817(0x21e)])){if(((_0x3eacef=(_0x364904=_0x2e6698[_0x5787c2])===null||_0x364904===void 0x0?void 0x0:_0x364904['schema'])===null||_0x3eacef===void 0x0?void 0x0:_0x3eacef[_0x3e7817(0x21e)])=='object')_0x22ed3d[_0x2e6698[_0x5787c2]['key']]=_0x4715b4((_0x15607d=(_0x50f911=_0x2e6698[_0x5787c2])===null||_0x50f911===void 0x0?void 0x0:_0x50f911['schema'][_0x3e7817(0x213)])===null||_0x15607d===void 0x0?void 0x0:_0x15607d[_0x3e7817(0x235)],_0x22ed3d[_0x2e6698[_0x5787c2]['key']]);else{if(_0x2e6698[_0x5787c2]['schema'][_0x3e7817(0x21e)]==_0x3e7817(0x231)&&_0xe3a083['value'][(_0x260ad0=_0x2e6698[_0x5787c2])===null||_0x260ad0===void 0x0?void 0x0:_0x260ad0['key']]){const _0x2f9bf7=((_0x1e04b0=(_0x380a40=(_0x1d3607=_0x2e6698[_0x5787c2])===null||_0x1d3607===void 0x0?void 0x0:_0x1d3607['schema'])===null||_0x380a40===void 0x0?void 0x0:_0x380a40[_0x3e7817(0x20c)])===null||_0x1e04b0===void 0x0?void 0x0:_0x1e04b0[_0x3e7817(0x215)])||_0x3e7817(0x1f6);_0x22ed3d[_0x2e6698[_0x5787c2]['key']]=dayjs(_0xe3a083[_0x3e7817(0x1f8)][_0x2e6698[_0x5787c2]['key']])[_0x3e7817(0x215)](_0x2f9bf7);}}}}return _0x22ed3d;};return _0x4715b4(_0x37ec18,_0xe3a083[_0x13ead5(0x1f8)]);}throw new AnnError(ValidatorError_1['ValidatorError'][_0x13ead5(0x208)]);}};__decorate([(0x0,core_1[a8_0x2a4ae2(0x220)])(a8_0x2a4ae2(0x21f)),__metadata(a8_0x2a4ae2(0x225),Object)],ValidatorService[a8_0x2a4ae2(0x229)],a8_0x2a4ae2(0x21a),void 0x0),__decorate([(0x0,core_1[a8_0x2a4ae2(0x220)])('validator'),__metadata(a8_0x2a4ae2(0x225),Object)],ValidatorService[a8_0x2a4ae2(0x229)],a8_0x2a4ae2(0x223),void 0x0),__decorate([(0x0,core_1[a8_0x2a4ae2(0x22b)])(),__metadata('design:type',i18n_1[a8_0x2a4ae2(0x1fd)])],ValidatorService['prototype'],a8_0x2a4ae2(0x1fb),void 0x0),__decorate([(0x0,core_1[a8_0x2a4ae2(0x203)])(),__metadata(a8_0x2a4ae2(0x225),Function),__metadata(a8_0x2a4ae2(0x224),[]),__metadata('design:returntype',Promise)],ValidatorService[a8_0x2a4ae2(0x229)],a8_0x2a4ae2(0x21c),null),exports[a8_0x2a4ae2(0x212)]=ValidatorService=__decorate([(0x0,core_1['Provide'])(a8_0x2a4ae2(0x204)),(0x0,core_1[a8_0x2a4ae2(0x1f2)])(core_1['ScopeEnum'][a8_0x2a4ae2(0x233)])],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.0",
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.0",
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": "a8ecf85526777862e2e50fcfadaa36e6edde0d3c"
29
+ "gitHead": "4edf6318f3550d8daededfa412581969f6ffa572"
30
30
  }