@anncic-api/validator 3.1.5 → 3.2.0

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_0x266f1a=a0_0x174f;(function(_0x3cce42,_0x371a28){const _0x30e19d=a0_0x174f,_0x136a22=_0x3cce42();while(!![]){try{const _0x2cde41=parseInt(_0x30e19d(0x1f0))/0x1*(parseInt(_0x30e19d(0x1ed))/0x2)+-parseInt(_0x30e19d(0x201))/0x3+parseInt(_0x30e19d(0x1ff))/0x4+-parseInt(_0x30e19d(0x1ec))/0x5*(-parseInt(_0x30e19d(0x1ee))/0x6)+-parseInt(_0x30e19d(0x1eb))/0x7*(-parseInt(_0x30e19d(0x1fa))/0x8)+-parseInt(_0x30e19d(0x1f6))/0x9+parseInt(_0x30e19d(0x1ef))/0xa*(-parseInt(_0x30e19d(0x1f2))/0xb);if(_0x2cde41===_0x371a28)break;else _0x136a22['push'](_0x136a22['shift']());}catch(_0x2bb8a4){_0x136a22['push'](_0x136a22['shift']());}}}(a0_0x3cf8,0xd486a));const a0_0x36a303=(function(){let _0x2981d5=!![];return function(_0x19e4a5,_0x4b47bd){const _0x43a02e=_0x2981d5?function(){const _0x23a1b2=a0_0x174f;if(_0x4b47bd){const _0x47d596=_0x4b47bd[_0x23a1b2(0x1f3)](_0x19e4a5,arguments);return _0x4b47bd=null,_0x47d596;}}:function(){};return _0x2981d5=![],_0x43a02e;};}()),a0_0x2aef26=a0_0x36a303(this,function(){const _0x1927d1=a0_0x174f;return a0_0x2aef26[_0x1927d1(0x1f7)]()[_0x1927d1(0x1fd)](_0x1927d1(0x1f5))[_0x1927d1(0x1f7)]()[_0x1927d1(0x1fb)](a0_0x2aef26)[_0x1927d1(0x1fd)](_0x1927d1(0x1f5));});function a0_0x174f(_0x1214c4,_0x3f8b31){const _0x4ba33e=a0_0x3cf8();return a0_0x174f=function(_0x2aef26,_0x36a303){_0x2aef26=_0x2aef26-0x1eb;let _0x3cf8d3=_0x4ba33e[_0x2aef26];return _0x3cf8d3;},a0_0x174f(_0x1214c4,_0x3f8b31);}a0_0x2aef26();'use strict';Object[a0_0x266f1a(0x1f4)](exports,'__esModule',{'value':!![]});function a0_0x3cf8(){const _0x972b76=['search','PARAMS','1178384zQdJhP','string','635790fYlwpP','7OIioit','5207805cVuxoT','659728KHTdFs','6MZHotZ','32950MvtXKr','2WelVEq','ValidatorError','4444ODiFNk','apply','defineProperty','(((.+)+)+)+$','5996079TIMyvX','toString','../../locales/en_US.json','../../locales/zh_CN.json','8671696aZBVDn','constructor','../exception/ValidatorError'];a0_0x3cf8=function(){return _0x972b76;};return a0_0x3cf8();}const ValidatorError_1=require(a0_0x266f1a(0x1fc));exports['default']={'validator':{'errorStatus':ValidatorError_1[a0_0x266f1a(0x1f1)][a0_0x266f1a(0x1fe)],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':a0_0x266f1a(0x200)}},'i18n':{'localeTable':{'en_US':{'validator':require(a0_0x266f1a(0x1f8))},'zh_CN':{'validator':require(a0_0x266f1a(0x1f9))}}}};
1
+ const a0_0x2b96d1=a0_0x2b94;(function(_0x2d4bbb,_0x3051d5){const _0xcf3256=a0_0x2b94,_0x17b647=_0x2d4bbb();while(!![]){try{const _0x44ad10=parseInt(_0xcf3256(0x15a))/0x1+-parseInt(_0xcf3256(0x16d))/0x2+parseInt(_0xcf3256(0x169))/0x3+parseInt(_0xcf3256(0x16c))/0x4*(-parseInt(_0xcf3256(0x168))/0x5)+parseInt(_0xcf3256(0x15e))/0x6*(parseInt(_0xcf3256(0x164))/0x7)+parseInt(_0xcf3256(0x15b))/0x8*(-parseInt(_0xcf3256(0x161))/0x9)+parseInt(_0xcf3256(0x16f))/0xa*(-parseInt(_0xcf3256(0x16e))/0xb);if(_0x44ad10===_0x3051d5)break;else _0x17b647['push'](_0x17b647['shift']());}catch(_0x222cbe){_0x17b647['push'](_0x17b647['shift']());}}}(a0_0x24d1,0xa76a4));const a0_0x1745ac=(function(){let _0x24565a=!![];return function(_0x40243d,_0x3c68d4){const _0x1e5b87=_0x24565a?function(){if(_0x3c68d4){const _0x26d8d7=_0x3c68d4['apply'](_0x40243d,arguments);return _0x3c68d4=null,_0x26d8d7;}}:function(){};return _0x24565a=![],_0x1e5b87;};}()),a0_0x4ac27b=a0_0x1745ac(this,function(){const _0x46ecea=a0_0x2b94;return a0_0x4ac27b[_0x46ecea(0x15f)]()[_0x46ecea(0x15d)](_0x46ecea(0x165))[_0x46ecea(0x15f)]()[_0x46ecea(0x162)](a0_0x4ac27b)[_0x46ecea(0x15d)](_0x46ecea(0x165));});a0_0x4ac27b();'use strict';Object['defineProperty'](exports,a0_0x2b96d1(0x166),{'value':!![]});function a0_0x24d1(){const _0x7d33e3=['15aYORnN','2631621AxTrbb','ValidatorError','default','362132RoxAhY','933406HsFtpI','83523kaAYhl','690QaHWiR','867540GVvxtl','24olihbv','PARAMS','search','6jdAHcJ','toString','../../locales/zh_CN.json','2854791jqQZpZ','constructor','../../locales/en_US.json','8083607myCVbz','(((.+)+)+)+$','__esModule','../exception/ValidatorError'];a0_0x24d1=function(){return _0x7d33e3;};return a0_0x24d1();}const ValidatorError_1=require(a0_0x2b96d1(0x167));function a0_0x2b94(_0x5abde2,_0x59bdbc){const _0x30e6a8=a0_0x24d1();return a0_0x2b94=function(_0x4ac27b,_0x1745ac){_0x4ac27b=_0x4ac27b-0x15a;let _0x24d119=_0x30e6a8[_0x4ac27b];return _0x24d119;},a0_0x2b94(_0x5abde2,_0x59bdbc);}exports[a0_0x2b96d1(0x16b)]={'validator':{'errorStatus':ValidatorError_1[a0_0x2b96d1(0x16a)][a0_0x2b96d1(0x15c)],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':'string'}},'i18n':{'localeTable':{'en_US':{'validator':require(a0_0x2b96d1(0x163))},'zh_CN':{'validator':require(a0_0x2b96d1(0x160))}}}};
@@ -1 +1 @@
1
- function a1_0x5c20(_0x33f0cf,_0x10b456){const _0x596635=a1_0x3589();return a1_0x5c20=function(_0x38c8ce,_0x1a5b3e){_0x38c8ce=_0x38c8ce-0x86;let _0x358929=_0x596635[_0x38c8ce];return _0x358929;},a1_0x5c20(_0x33f0cf,_0x10b456);}function a1_0x3589(){const _0xd17d9f=['request','name','args','2360584ZMMEmc','splice','18972hvWPxR','4ZLDTvf','(((.+)+)+)+$','anncic-api:validator','./config/config.default','target','search','@anncic-api/core','93afuaeK','function','__metadata','body','__decorate','getOwnPropertyDescriptor','CustomConfiguration','9169137CznNEY','req','Inject','getAttr','getSchema','methodArgs','3250212ldeacN','validator','length','methodName','4193060EANdcG','1314939akmnvk','__esModule','135425MxCdKz','registerMethodHandler','propertyName','VALIDATOR_KEY','design:type','params','28xgIByI','defineProperty','@midwayjs/i18n','prototype','ValidatorService','decorator','locale','method','res','getMethodParamTypes','./service/ValidatorService','Configuration','metadata','apply','object','assign','decorate','REQUEST_OBJ_CTX_KEY','find'];a1_0x3589=function(){return _0xd17d9f;};return a1_0x3589();}const a1_0x11eeec=a1_0x5c20;(function(_0x57fa82,_0x132581){const _0x51439a=a1_0x5c20,_0x58388a=_0x57fa82();while(!![]){try{const _0x20f5b4=parseInt(_0x51439a(0x9f))/0x1*(parseInt(_0x51439a(0x97))/0x2)+parseInt(_0x51439a(0xb1))/0x3*(-parseInt(_0x51439a(0x98))/0x4)+parseInt(_0x51439a(0xb3))/0x5+parseInt(_0x51439a(0xac))/0x6+-parseInt(_0x51439a(0xb9))/0x7*(-parseInt(_0x51439a(0x95))/0x8)+-parseInt(_0x51439a(0xa6))/0x9+-parseInt(_0x51439a(0xb0))/0xa;if(_0x20f5b4===_0x132581)break;else _0x58388a['push'](_0x58388a['shift']());}catch(_0x104e9d){_0x58388a['push'](_0x58388a['shift']());}}}(a1_0x3589,0xb84b1));const a1_0x1a5b3e=(function(){let _0x51432b=!![];return function(_0x10474b,_0x37414a){const _0xd50d8d=_0x51432b?function(){const _0x27f859=a1_0x5c20;if(_0x37414a){const _0x30d074=_0x37414a[_0x27f859(0x8c)](_0x10474b,arguments);return _0x37414a=null,_0x30d074;}}:function(){};return _0x51432b=![],_0xd50d8d;};}()),a1_0x38c8ce=a1_0x1a5b3e(this,function(){const _0x397bc6=a1_0x5c20;return a1_0x38c8ce['toString']()[_0x397bc6(0x9d)](_0x397bc6(0x99))['toString']()['constructor'](a1_0x38c8ce)['search'](_0x397bc6(0x99));});a1_0x38c8ce();'use strict';var __decorate=this&&this[a1_0x11eeec(0xa3)]||function(_0x693d83,_0x4da01a,_0x131f43,_0x12ed69){const _0x13bcd5=a1_0x11eeec;var _0x37885a=arguments[_0x13bcd5(0xae)],_0xd0d889=_0x37885a<0x3?_0x4da01a:_0x12ed69===null?_0x12ed69=Object[_0x13bcd5(0xa4)](_0x4da01a,_0x131f43):_0x12ed69,_0x4274ac;if(typeof Reflect===_0x13bcd5(0x8d)&&typeof Reflect[_0x13bcd5(0x8f)]===_0x13bcd5(0xa0))_0xd0d889=Reflect[_0x13bcd5(0x8f)](_0x693d83,_0x4da01a,_0x131f43,_0x12ed69);else{for(var _0x3566c0=_0x693d83[_0x13bcd5(0xae)]-0x1;_0x3566c0>=0x0;_0x3566c0--)if(_0x4274ac=_0x693d83[_0x3566c0])_0xd0d889=(_0x37885a<0x3?_0x4274ac(_0xd0d889):_0x37885a>0x3?_0x4274ac(_0x4da01a,_0x131f43,_0xd0d889):_0x4274ac(_0x4da01a,_0x131f43))||_0xd0d889;}return _0x37885a>0x3&&_0xd0d889&&Object[_0x13bcd5(0xba)](_0x4da01a,_0x131f43,_0xd0d889),_0xd0d889;},__metadata=this&&this[a1_0x11eeec(0xa1)]||function(_0x3e38fa,_0x11ecf8){const _0x2b6f3f=a1_0x11eeec;if(typeof Reflect===_0x2b6f3f(0x8d)&&typeof Reflect[_0x2b6f3f(0x8b)]===_0x2b6f3f(0xa0))return Reflect[_0x2b6f3f(0x8b)](_0x3e38fa,_0x11ecf8);};Object[a1_0x11eeec(0xba)](exports,a1_0x11eeec(0xb2),{'value':!![]}),exports[a1_0x11eeec(0xa5)]=void 0x0;const i18n_1=require(a1_0x11eeec(0xbb)),core_1=require('@midwayjs/core'),core_2=require('@midwayjs/core'),interface_1=require('./interface'),ValidatorService_1=require(a1_0x11eeec(0x89)),i18n=require(a1_0x11eeec(0xbb)),anncic=require(a1_0x11eeec(0x9e)),ConfigDefault=require(a1_0x11eeec(0x9b));let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x1b1301=a1_0x11eeec;this[_0x1b1301(0xbe)][_0x1b1301(0xb4)](interface_1[_0x1b1301(0xb6)],_0xd18e83=>{const _0x1f862c=_0x1b1301,_0xe9f637=_0xd18e83['metadata'],_0xdecd9e=(0x0,core_2[_0x1f862c(0x88)])(_0xd18e83[_0x1f862c(0x9c)],_0xd18e83[_0x1f862c(0xb5)]);return{'before':_0x4ea79c=>{const _0x39489c=_0x1f862c;var _0x3c637c,_0x44cfef,_0x3c0e8a,_0x2b4cf1,_0x323656,_0x4b15b1,_0x52965d,_0x3b4413,_0x884843,_0xe6499e,_0x4e16b7,_0x506e51,_0x349c5b;const _0x336ee3=_0x4ea79c['target'][core_1[_0x39489c(0x90)]],_0x11472c=Object[_0x39489c(0x8e)]({},((_0x3c637c=_0x336ee3===null||_0x336ee3===void 0x0?void 0x0:_0x336ee3[_0x39489c(0x92)])===null||_0x3c637c===void 0x0?void 0x0:_0x3c637c['query'])||{},((_0x44cfef=_0x336ee3===null||_0x336ee3===void 0x0?void 0x0:_0x336ee3['request'])===null||_0x44cfef===void 0x0?void 0x0:_0x44cfef[_0x39489c(0xa2)])||{}),_0x459de4=((0x0,core_2['getClassMetadata'])(interface_1['VALIDATOR_KEY'],_0x4ea79c[_0x39489c(0x9c)])||[])[_0x39489c(0x91)](_0x34af5a=>_0x34af5a[_0x39489c(0x86)]==_0x4ea79c[_0x39489c(0xaf)]);!(_0xe9f637===null||_0xe9f637===void 0x0?void 0x0:_0xe9f637[_0x39489c(0xbf)])&&_0x336ee3&&_0x336ee3[_0x39489c(0xa9)]&&(_0xe9f637[_0x39489c(0xbf)]=_0x336ee3[_0x39489c(0xa9)](i18n_1['I18N_ATTR_KEY']));for(let _0x60160f=0x0;_0x60160f<_0xdecd9e['length'];_0x60160f++){const _0x1f421d=_0xdecd9e[_0x60160f],_0x30ffb8=this[_0x39489c(0xbd)][_0x39489c(0xaa)](_0x1f421d);if(_0x30ffb8){if(typeof _0x4ea79c['args'][_0x60160f]=='undefined'||((_0x3c0e8a=_0x4ea79c[_0x39489c(0x94)][_0x60160f])===null||_0x3c0e8a===void 0x0?void 0x0:_0x3c0e8a[_0x39489c(0x92)])&&((_0x2b4cf1=_0x4ea79c[_0x39489c(0x94)][_0x60160f])===null||_0x2b4cf1===void 0x0?void 0x0:_0x2b4cf1[_0x39489c(0x87)])&&((_0x323656=_0x4ea79c[_0x39489c(0x94)][_0x60160f])===null||_0x323656===void 0x0?void 0x0:_0x323656[_0x39489c(0xa7)]))_0x4ea79c[_0x39489c(0x94)][_0x60160f]=_0x11472c;else((_0x4b15b1=_0x4ea79c[_0x39489c(0x94)][_0x60160f])===null||_0x4b15b1===void 0x0?void 0x0:_0x4b15b1[_0x39489c(0x93)])=='bound\x20dispatch'&&_0x4ea79c[_0x39489c(0x94)][_0x39489c(0x96)](_0x60160f,0x0,_0x11472c);const _0x21e48d=this[_0x39489c(0xbd)][_0x39489c(0xad)](_0x30ffb8,_0x4ea79c[_0x39489c(0x94)][_0x60160f],_0xe9f637);_0x21e48d&&(_0x4ea79c[_0x39489c(0x94)][_0x60160f]=_0x21e48d);}else{if((_0x459de4===null||_0x459de4===void 0x0?void 0x0:_0x459de4[_0x39489c(0xab)][_0x60160f])&&((_0x52965d=_0x4ea79c[_0x39489c(0x94)][_0x60160f])===null||_0x52965d===void 0x0?void 0x0:_0x52965d[_0x39489c(0xb8)])&&typeof _0x4ea79c[_0x39489c(0x94)][_0x60160f]['param']==_0x39489c(0xa0)&&((_0x3b4413=_0x336ee3===null||_0x336ee3===void 0x0?void 0x0:_0x336ee3[_0x39489c(0xb8)])===null||_0x3b4413===void 0x0?void 0x0:_0x3b4413[_0x459de4[_0x39489c(0xab)][_0x60160f]]))_0x4ea79c[_0x39489c(0x94)][_0x60160f]=_0x1f421d((_0x884843=_0x336ee3===null||_0x336ee3===void 0x0?void 0x0:_0x336ee3[_0x39489c(0xb8)])===null||_0x884843===void 0x0?void 0x0:_0x884843[_0x459de4[_0x39489c(0xab)][_0x60160f]]);else(_0x459de4===null||_0x459de4===void 0x0?void 0x0:_0x459de4[_0x39489c(0xab)][_0x60160f])&&((_0x4e16b7=(_0xe6499e=_0x4ea79c[_0x39489c(0x94)][_0x60160f])===null||_0xe6499e===void 0x0?void 0x0:_0xe6499e['params'])===null||_0x4e16b7===void 0x0?void 0x0:_0x4e16b7[_0x459de4['methodArgs'][_0x60160f]])&&(_0x4ea79c[_0x39489c(0x94)][_0x60160f]=(_0x349c5b=(_0x506e51=_0x4ea79c[_0x39489c(0x94)][_0x60160f])===null||_0x506e51===void 0x0?void 0x0:_0x506e51['params'])===null||_0x349c5b===void 0x0?void 0x0:_0x349c5b[_0x459de4[_0x39489c(0xab)][_0x60160f]]);}}},'afterThrow':(_0x4f1b3f,_0x27079d)=>{throw _0x27079d;}};});}};__decorate([(0x0,core_2[a1_0x11eeec(0xa8)])(),__metadata(a1_0x11eeec(0xb7),core_1['MidwayDecoratorService'])],CustomConfiguration['prototype'],a1_0x11eeec(0xbe),void 0x0),__decorate([(0x0,core_2['Inject'])(),__metadata(a1_0x11eeec(0xb7),ValidatorService_1[a1_0x11eeec(0xbd)])],CustomConfiguration[a1_0x11eeec(0xbc)],a1_0x11eeec(0xbd),void 0x0),CustomConfiguration=__decorate([(0x0,core_2[a1_0x11eeec(0x8a)])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':a1_0x11eeec(0x9a),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x11eeec(0xa5)]=CustomConfiguration;
1
+ const a1_0x44c907=a1_0x3189;(function(_0x44473b,_0x58471a){const _0x208fb7=a1_0x3189,_0x537187=_0x44473b();while(!![]){try{const _0x228081=-parseInt(_0x208fb7(0x13a))/0x1*(parseInt(_0x208fb7(0x145))/0x2)+-parseInt(_0x208fb7(0x123))/0x3+parseInt(_0x208fb7(0x131))/0x4+parseInt(_0x208fb7(0x129))/0x5+parseInt(_0x208fb7(0x146))/0x6*(parseInt(_0x208fb7(0x132))/0x7)+-parseInt(_0x208fb7(0x12c))/0x8*(-parseInt(_0x208fb7(0x13e))/0x9)+-parseInt(_0x208fb7(0x122))/0xa*(parseInt(_0x208fb7(0x127))/0xb);if(_0x228081===_0x58471a)break;else _0x537187['push'](_0x537187['shift']());}catch(_0x4ea83b){_0x537187['push'](_0x537187['shift']());}}}(a1_0x2852,0xa46f1));const a1_0x4ec789=(function(){let _0x49a1dd=!![];return function(_0x4aa78e,_0x3ef374){const _0x3edc2b=_0x49a1dd?function(){const _0x320871=a1_0x3189;if(_0x3ef374){const _0x5f101f=_0x3ef374[_0x320871(0x13b)](_0x4aa78e,arguments);return _0x3ef374=null,_0x5f101f;}}:function(){};return _0x49a1dd=![],_0x3edc2b;};}()),a1_0x54128a=a1_0x4ec789(this,function(){const _0x4c2941=a1_0x3189;return a1_0x54128a[_0x4c2941(0x15b)]()[_0x4c2941(0x14e)](_0x4c2941(0x12d))[_0x4c2941(0x15b)]()['constructor'](a1_0x54128a)[_0x4c2941(0x14e)](_0x4c2941(0x12d));});a1_0x54128a();'use strict';var __decorate=this&&this[a1_0x44c907(0x125)]||function(_0xdd123d,_0x51a435,_0x197eb0,_0x361fed){const _0x4279fd=a1_0x44c907;var _0x423c4b=arguments[_0x4279fd(0x13c)],_0x19163b=_0x423c4b<0x3?_0x51a435:_0x361fed===null?_0x361fed=Object[_0x4279fd(0x128)](_0x51a435,_0x197eb0):_0x361fed,_0x5149d2;if(typeof Reflect===_0x4279fd(0x14f)&&typeof Reflect[_0x4279fd(0x14d)]===_0x4279fd(0x155))_0x19163b=Reflect[_0x4279fd(0x14d)](_0xdd123d,_0x51a435,_0x197eb0,_0x361fed);else{for(var _0x363c53=_0xdd123d[_0x4279fd(0x13c)]-0x1;_0x363c53>=0x0;_0x363c53--)if(_0x5149d2=_0xdd123d[_0x363c53])_0x19163b=(_0x423c4b<0x3?_0x5149d2(_0x19163b):_0x423c4b>0x3?_0x5149d2(_0x51a435,_0x197eb0,_0x19163b):_0x5149d2(_0x51a435,_0x197eb0))||_0x19163b;}return _0x423c4b>0x3&&_0x19163b&&Object[_0x4279fd(0x141)](_0x51a435,_0x197eb0,_0x19163b),_0x19163b;},__metadata=this&&this[a1_0x44c907(0x135)]||function(_0x1289bd,_0x7b56ff){const _0x402aa9=a1_0x44c907;if(typeof Reflect===_0x402aa9(0x14f)&&typeof Reflect[_0x402aa9(0x121)]===_0x402aa9(0x155))return Reflect[_0x402aa9(0x121)](_0x1289bd,_0x7b56ff);};Object[a1_0x44c907(0x141)](exports,a1_0x44c907(0x151),{'value':!![]}),exports[a1_0x44c907(0x139)]=void 0x0;function a1_0x2852(){const _0x1402af=['@midwayjs/core','splice','onReady','202BvhRcq','786SqvYwB','I18N_ATTR_KEY','param','params','req','./interface','validator','decorate','search','object','target','__esModule','MidwayDecoratorService','getSchema','getMethodParamTypes','function','./config/config.default','getClassMetadata','methodArgs','design:type','assign','toString','undefined','metadata','5677670SPhtXW','229581DHZMpL','@anncic-api/core','__decorate','res','11MxWPBz','getOwnPropertyDescriptor','783355EcmQnL','args','ValidatorService','1144vipQbY','(((.+)+)+)+$','bound\x20dispatch','getAttr','method','1288200JIlPUu','71687mNNXjL','locale','registerMethodHandler','__metadata','request','REQUEST_OBJ_CTX_KEY','Inject','CustomConfiguration','10443yosxnj','apply','length','VALIDATOR_KEY','34758vakKGQ','@midwayjs/i18n','prototype','defineProperty'];a1_0x2852=function(){return _0x1402af;};return a1_0x2852();}function a1_0x3189(_0x12952b,_0x2bf013){const _0x26a6a1=a1_0x2852();return a1_0x3189=function(_0x54128a,_0x4ec789){_0x54128a=_0x54128a-0x121;let _0x285280=_0x26a6a1[_0x54128a];return _0x285280;},a1_0x3189(_0x12952b,_0x2bf013);}const i18n_1=require(a1_0x44c907(0x13f)),core_1=require(a1_0x44c907(0x142)),core_2=require(a1_0x44c907(0x142)),interface_1=require(a1_0x44c907(0x14b)),ValidatorService_1=require('./service/ValidatorService'),i18n=require(a1_0x44c907(0x13f)),anncic=require(a1_0x44c907(0x124)),ConfigDefault=require(a1_0x44c907(0x156));let CustomConfiguration=exports[a1_0x44c907(0x139)]=class CustomConfiguration{async[a1_0x44c907(0x144)](){const _0x333c56=a1_0x44c907;this['decorator'][_0x333c56(0x134)](interface_1[_0x333c56(0x13d)],_0x1fafab=>{const _0x13d5b8=_0x333c56,_0x1961b5=_0x1fafab[_0x13d5b8(0x121)],_0x2252f4=(0x0,core_2[_0x13d5b8(0x154)])(_0x1fafab['target'],_0x1fafab['propertyName']);return{'before':_0x38758b=>{const _0x389412=_0x13d5b8;var _0x1bca97,_0x2aeee6,_0x2d9553,_0x2c3bd5,_0x2de18e,_0x2259ad,_0x231ede,_0x5c4cc1,_0x3e4dd4,_0x33191d,_0x36ed5f,_0x13d2de,_0x559611;const _0x3a2f70=_0x38758b[_0x389412(0x150)][core_1[_0x389412(0x137)]],_0x25544e=Object[_0x389412(0x15a)]({},((_0x1bca97=_0x3a2f70===null||_0x3a2f70===void 0x0?void 0x0:_0x3a2f70[_0x389412(0x136)])===null||_0x1bca97===void 0x0?void 0x0:_0x1bca97['query'])||{},((_0x2aeee6=_0x3a2f70===null||_0x3a2f70===void 0x0?void 0x0:_0x3a2f70[_0x389412(0x136)])===null||_0x2aeee6===void 0x0?void 0x0:_0x2aeee6['body'])||{}),_0x3934e8=((0x0,core_2[_0x389412(0x157)])(interface_1['VALIDATOR_KEY'],_0x38758b[_0x389412(0x150)])||[])['find'](_0x4e91ee=>_0x4e91ee[_0x389412(0x130)]==_0x38758b['methodName']);!(_0x1961b5===null||_0x1961b5===void 0x0?void 0x0:_0x1961b5[_0x389412(0x133)])&&_0x3a2f70&&_0x3a2f70['getAttr']&&(_0x1961b5[_0x389412(0x133)]=_0x3a2f70[_0x389412(0x12f)](i18n_1[_0x389412(0x147)]));for(let _0x464a11=0x0;_0x464a11<_0x2252f4[_0x389412(0x13c)];_0x464a11++){const _0x1c85e9=_0x2252f4[_0x464a11],_0x2ab9cd=this[_0x389412(0x12b)][_0x389412(0x153)](_0x1c85e9);if(_0x2ab9cd){if(typeof _0x38758b[_0x389412(0x12a)][_0x464a11]==_0x389412(0x15c)||((_0x2d9553=_0x38758b[_0x389412(0x12a)][_0x464a11])===null||_0x2d9553===void 0x0?void 0x0:_0x2d9553[_0x389412(0x136)])&&((_0x2c3bd5=_0x38758b[_0x389412(0x12a)][_0x464a11])===null||_0x2c3bd5===void 0x0?void 0x0:_0x2c3bd5[_0x389412(0x126)])&&((_0x2de18e=_0x38758b['args'][_0x464a11])===null||_0x2de18e===void 0x0?void 0x0:_0x2de18e[_0x389412(0x14a)]))_0x38758b[_0x389412(0x12a)][_0x464a11]=_0x25544e;else((_0x2259ad=_0x38758b[_0x389412(0x12a)][_0x464a11])===null||_0x2259ad===void 0x0?void 0x0:_0x2259ad['name'])==_0x389412(0x12e)&&_0x38758b['args'][_0x389412(0x143)](_0x464a11,0x0,_0x25544e);const _0x476ff5=this[_0x389412(0x12b)][_0x389412(0x14c)](_0x2ab9cd,_0x38758b[_0x389412(0x12a)][_0x464a11],_0x1961b5);_0x476ff5&&(_0x38758b[_0x389412(0x12a)][_0x464a11]=_0x476ff5);}else{if((_0x3934e8===null||_0x3934e8===void 0x0?void 0x0:_0x3934e8[_0x389412(0x158)][_0x464a11])&&((_0x231ede=_0x38758b[_0x389412(0x12a)][_0x464a11])===null||_0x231ede===void 0x0?void 0x0:_0x231ede[_0x389412(0x149)])&&typeof _0x38758b[_0x389412(0x12a)][_0x464a11][_0x389412(0x148)]=='function'&&((_0x5c4cc1=_0x3a2f70===null||_0x3a2f70===void 0x0?void 0x0:_0x3a2f70['params'])===null||_0x5c4cc1===void 0x0?void 0x0:_0x5c4cc1[_0x3934e8[_0x389412(0x158)][_0x464a11]]))_0x38758b[_0x389412(0x12a)][_0x464a11]=_0x1c85e9((_0x3e4dd4=_0x3a2f70===null||_0x3a2f70===void 0x0?void 0x0:_0x3a2f70[_0x389412(0x149)])===null||_0x3e4dd4===void 0x0?void 0x0:_0x3e4dd4[_0x3934e8[_0x389412(0x158)][_0x464a11]]);else(_0x3934e8===null||_0x3934e8===void 0x0?void 0x0:_0x3934e8[_0x389412(0x158)][_0x464a11])&&((_0x36ed5f=(_0x33191d=_0x38758b[_0x389412(0x12a)][_0x464a11])===null||_0x33191d===void 0x0?void 0x0:_0x33191d[_0x389412(0x149)])===null||_0x36ed5f===void 0x0?void 0x0:_0x36ed5f[_0x3934e8['methodArgs'][_0x464a11]])&&(_0x38758b[_0x389412(0x12a)][_0x464a11]=(_0x559611=(_0x13d2de=_0x38758b[_0x389412(0x12a)][_0x464a11])===null||_0x13d2de===void 0x0?void 0x0:_0x13d2de[_0x389412(0x149)])===null||_0x559611===void 0x0?void 0x0:_0x559611[_0x3934e8[_0x389412(0x158)][_0x464a11]]);}}},'afterThrow':(_0x153f97,_0x38e473)=>{throw _0x38e473;}};});}};__decorate([(0x0,core_2[a1_0x44c907(0x138)])(),__metadata(a1_0x44c907(0x159),core_1[a1_0x44c907(0x152)])],CustomConfiguration[a1_0x44c907(0x140)],'decorator',void 0x0),__decorate([(0x0,core_2[a1_0x44c907(0x138)])(),__metadata(a1_0x44c907(0x159),ValidatorService_1[a1_0x44c907(0x12b)])],CustomConfiguration[a1_0x44c907(0x140)],a1_0x44c907(0x12b),void 0x0),exports[a1_0x44c907(0x139)]=CustomConfiguration=__decorate([(0x0,core_2['Configuration'])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':'anncic-api:validator','importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
@@ -1 +1 @@
1
- const a2_0x885081=a2_0x399b;(function(_0x30d071,_0xfab0de){const _0x7ddc32=a2_0x399b,_0x423864=_0x30d071();while(!![]){try{const _0x4c4292=-parseInt(_0x7ddc32(0xf9))/0x1*(-parseInt(_0x7ddc32(0x101))/0x2)+-parseInt(_0x7ddc32(0xfe))/0x3+parseInt(_0x7ddc32(0xe7))/0x4+parseInt(_0x7ddc32(0x103))/0x5+parseInt(_0x7ddc32(0xe9))/0x6+parseInt(_0x7ddc32(0xf2))/0x7*(-parseInt(_0x7ddc32(0xf5))/0x8)+parseInt(_0x7ddc32(0xfd))/0x9*(-parseInt(_0x7ddc32(0xea))/0xa);if(_0x4c4292===_0xfab0de)break;else _0x423864['push'](_0x423864['shift']());}catch(_0x50d7ff){_0x423864['push'](_0x423864['shift']());}}}(a2_0x1e56,0xbd56b));const a2_0x2f821f=(function(){let _0x4a305e=!![];return function(_0x54ba63,_0x42b9f5){const _0x57d0e9=_0x4a305e?function(){if(_0x42b9f5){const _0x2b084e=_0x42b9f5['apply'](_0x54ba63,arguments);return _0x42b9f5=null,_0x2b084e;}}:function(){};return _0x4a305e=![],_0x57d0e9;};}()),a2_0x4b8b71=a2_0x2f821f(this,function(){const _0x466f4f=a2_0x399b;return a2_0x4b8b71[_0x466f4f(0xfc)]()['search']('(((.+)+)+)+$')['toString']()['constructor'](a2_0x4b8b71)[_0x466f4f(0xff)](_0x466f4f(0xec));});a2_0x4b8b71();'use strict';Object[a2_0x885081(0xfb)](exports,'__esModule',{'value':!![]}),exports[a2_0x885081(0xef)]=exports[a2_0x885081(0x102)]=void 0x0;const joi=require(a2_0x885081(0xe8)),date_1=require(a2_0x885081(0xf6)),core_1=require(a2_0x885081(0xf8)),interface_1=require(a2_0x885081(0xf3));exports['RuleType']=joi[a2_0x885081(0xeb)](date_1[a2_0x885081(0xfa)]);function a2_0x1e56(){const _0x3986ab=['joi','8338332OyTozC','10TRzzaW','extend','(((.+)+)+)+$','getClassMetadata','description','Rule','label','RULES_KEY','492394FkirnZ','../interface','map','152qcxzrn','@joi/date','function','@midwayjs/core','227vfzvRR','default','defineProperty','toString','1894761lLazJE','2777529DCxJXc','search','meta','5424LapMJm','RuleType','4873375QsLnyQ','saveClassMetadata','getPropertyType','name','1073520YjrbJD'];a2_0x1e56=function(){return _0x3986ab;};return a2_0x1e56();}function Rule(_0x3eb767,_0x414020,_0x1a160d=''){return(_0x1fb489,_0x6cbd16)=>{const _0x27b7dd=a2_0x399b;var _0x9289f3;if(_0x6cbd16)!joi['isSchema'](_0x414020)&&(_0x414020===null||_0x414020===void 0x0?void 0x0:_0x414020[_0x27b7dd(0xe6)])&&(_0x414020=joi['object']((0x0,core_1[_0x27b7dd(0xed)])(interface_1[_0x27b7dd(0xf1)],_0x414020))[_0x27b7dd(0x100)]({'id':_0x414020[_0x27b7dd(0xe6)]}),(0x0,core_1[_0x27b7dd(0xe5)])(_0x1fb489,_0x6cbd16)[_0x27b7dd(0xe6)]==='Array'&&(_0x414020=joi['array']()['items'](_0x414020))),joi['isSchema'](_0x414020)&&(_0x3eb767&&typeof(_0x414020===null||_0x414020===void 0x0?void 0x0:_0x414020[_0x27b7dd(0xf0)])==_0x27b7dd(0xf7)&&(_0x414020=_0x414020[_0x27b7dd(0xf0)](_0x3eb767)),_0x1a160d&&typeof(_0x414020===null||_0x414020===void 0x0?void 0x0:_0x414020[_0x27b7dd(0xee)])==_0x27b7dd(0xf7)&&(_0x414020=_0x414020['description'](_0x1a160d)),(0x0,core_1['attachClassMetadata'])(interface_1[_0x27b7dd(0xf1)],_0x414020,_0x1fb489,_0x6cbd16));else{const _0xc9b5c=(0x0,core_1[_0x27b7dd(0xed)])(interface_1['RULES_KEY'],_0x414020);if(_0xc9b5c){let _0x28c759=(_0x9289f3=(0x0,core_1['getClassMetadata'])(interface_1[_0x27b7dd(0xf1)],_0x1fb489))!==null&&_0x9289f3!==void 0x0?_0x9289f3:{};Object['keys'](_0xc9b5c)[_0x27b7dd(0xf4)](_0x5867e1=>{!_0x28c759[_0x5867e1]&&(_0x28c759[_0x5867e1]=_0xc9b5c[_0x5867e1]);}),(0x0,core_1[_0x27b7dd(0x104)])(interface_1[_0x27b7dd(0xf1)],_0x28c759,_0x1fb489);}}};}function a2_0x399b(_0x1ad72c,_0x23cca5){const _0x40b25b=a2_0x1e56();return a2_0x399b=function(_0x4b8b71,_0x2f821f){_0x4b8b71=_0x4b8b71-0xe5;let _0x1e56ab=_0x40b25b[_0x4b8b71];return _0x1e56ab;},a2_0x399b(_0x1ad72c,_0x23cca5);}exports['Rule']=Rule;
1
+ const a2_0x346760=a2_0xe20e;function a2_0xdb26(){const _0x2002e5=['extend','@midwayjs/core','saveClassMetadata','isSchema','description','search','function','name','apply','meta','attachClassMetadata','object','getClassMetadata','954760yqqjWk','label','234vwtNLD','105512PvAgmI','joi','map','default','413EGNmKW','732058Pbezqm','30FPkllc','RULES_KEY','RuleType','../interface','array','toString','2414890KLaHCw','43824ipfMPw','201470dEoICm','items','__esModule','140848QpWDgt','getPropertyType','Rule','(((.+)+)+)+$'];a2_0xdb26=function(){return _0x2002e5;};return a2_0xdb26();}(function(_0x343fdc,_0x5eb4cd){const _0xa0b55=a2_0xe20e,_0x56bc0d=_0x343fdc();while(!![]){try{const _0x3b811d=-parseInt(_0xa0b55(0x90))/0x1+-parseInt(_0xa0b55(0xa9))/0x2+parseInt(_0xa0b55(0xaa))/0x3*(parseInt(_0xa0b55(0xa4))/0x4)+parseInt(_0xa0b55(0xb0))/0x5+parseInt(_0xa0b55(0xb1))/0x6*(parseInt(_0xa0b55(0xa8))/0x7)+parseInt(_0xa0b55(0xa1))/0x8+parseInt(_0xa0b55(0xa3))/0x9*(-parseInt(_0xa0b55(0x8d))/0xa);if(_0x3b811d===_0x5eb4cd)break;else _0x56bc0d['push'](_0x56bc0d['shift']());}catch(_0x358a35){_0x56bc0d['push'](_0x56bc0d['shift']());}}}(a2_0xdb26,0x41064));const a2_0x5d2fda=(function(){let _0x561df0=!![];return function(_0x110424,_0x2e1916){const _0x39c471=_0x561df0?function(){const _0x3b7337=a2_0xe20e;if(_0x2e1916){const _0x381d0b=_0x2e1916[_0x3b7337(0x9c)](_0x110424,arguments);return _0x2e1916=null,_0x381d0b;}}:function(){};return _0x561df0=![],_0x39c471;};}()),a2_0x4bb0a5=a2_0x5d2fda(this,function(){const _0xb97013=a2_0xe20e;return a2_0x4bb0a5[_0xb97013(0xaf)]()[_0xb97013(0x99)](_0xb97013(0x93))[_0xb97013(0xaf)]()['constructor'](a2_0x4bb0a5)[_0xb97013(0x99)](_0xb97013(0x93));});a2_0x4bb0a5();'use strict';function a2_0xe20e(_0x353f8c,_0x20b985){const _0x53d041=a2_0xdb26();return a2_0xe20e=function(_0x4bb0a5,_0x5d2fda){_0x4bb0a5=_0x4bb0a5-0x8d;let _0xdb26de=_0x53d041[_0x4bb0a5];return _0xdb26de;},a2_0xe20e(_0x353f8c,_0x20b985);}Object['defineProperty'](exports,a2_0x346760(0x8f),{'value':!![]}),exports['Rule']=exports[a2_0x346760(0xac)]=void 0x0;const joi=require(a2_0x346760(0xa5)),date_1=require('@joi/date'),core_1=require(a2_0x346760(0x95)),interface_1=require(a2_0x346760(0xad));exports['RuleType']=joi[a2_0x346760(0x94)](date_1[a2_0x346760(0xa7)]);function Rule(_0x488cf3,_0x55f0ed,_0x1e220a=''){return(_0x527e63,_0x3fa8ca)=>{const _0x2b9f07=a2_0xe20e;var _0x884fa4;if(_0x3fa8ca)!joi[_0x2b9f07(0x97)](_0x55f0ed)&&(_0x55f0ed===null||_0x55f0ed===void 0x0?void 0x0:_0x55f0ed[_0x2b9f07(0x9b)])&&(_0x55f0ed=joi[_0x2b9f07(0x9f)]((0x0,core_1[_0x2b9f07(0xa0)])(interface_1[_0x2b9f07(0xab)],_0x55f0ed))[_0x2b9f07(0x9d)]({'id':_0x55f0ed[_0x2b9f07(0x9b)]}),(0x0,core_1[_0x2b9f07(0x91)])(_0x527e63,_0x3fa8ca)['name']==='Array'&&(_0x55f0ed=joi[_0x2b9f07(0xae)]()[_0x2b9f07(0x8e)](_0x55f0ed))),joi['isSchema'](_0x55f0ed)&&(_0x488cf3&&typeof(_0x55f0ed===null||_0x55f0ed===void 0x0?void 0x0:_0x55f0ed['label'])==_0x2b9f07(0x9a)&&(_0x55f0ed=_0x55f0ed[_0x2b9f07(0xa2)](_0x488cf3)),_0x1e220a&&typeof(_0x55f0ed===null||_0x55f0ed===void 0x0?void 0x0:_0x55f0ed[_0x2b9f07(0x98)])==_0x2b9f07(0x9a)&&(_0x55f0ed=_0x55f0ed[_0x2b9f07(0x98)](_0x1e220a)),(0x0,core_1[_0x2b9f07(0x9e)])(interface_1[_0x2b9f07(0xab)],_0x55f0ed,_0x527e63,_0x3fa8ca));else{const _0x5a11cb=(0x0,core_1[_0x2b9f07(0xa0)])(interface_1[_0x2b9f07(0xab)],_0x55f0ed);if(_0x5a11cb){let _0x2b9c51=(_0x884fa4=(0x0,core_1['getClassMetadata'])(interface_1[_0x2b9f07(0xab)],_0x527e63))!==null&&_0x884fa4!==void 0x0?_0x884fa4:{};Object['keys'](_0x5a11cb)[_0x2b9f07(0xa6)](_0xb9fc99=>{!_0x2b9c51[_0xb9fc99]&&(_0x2b9c51[_0xb9fc99]=_0x5a11cb[_0xb9fc99]);}),(0x0,core_1[_0x2b9f07(0x96)])(interface_1[_0x2b9f07(0xab)],_0x2b9c51,_0x527e63);}}};}exports[a2_0x346760(0x92)]=Rule;
@@ -1 +1 @@
1
- const a3_0xf1c0da=a3_0x5e3a;(function(_0x52a210,_0x2d7d2e){const _0x49b254=a3_0x5e3a,_0x37f938=_0x52a210();while(!![]){try{const _0x2dc093=-parseInt(_0x49b254(0x16b))/0x1*(-parseInt(_0x49b254(0x17a))/0x2)+-parseInt(_0x49b254(0x164))/0x3+-parseInt(_0x49b254(0x16a))/0x4*(-parseInt(_0x49b254(0x178))/0x5)+parseInt(_0x49b254(0x166))/0x6*(-parseInt(_0x49b254(0x171))/0x7)+parseInt(_0x49b254(0x176))/0x8+-parseInt(_0x49b254(0x163))/0x9*(parseInt(_0x49b254(0x16e))/0xa)+-parseInt(_0x49b254(0x16c))/0xb*(parseInt(_0x49b254(0x162))/0xc);if(_0x2dc093===_0x2d7d2e)break;else _0x37f938['push'](_0x37f938['shift']());}catch(_0x4e8252){_0x37f938['push'](_0x37f938['shift']());}}}(a3_0x2d3d,0x3480b));const a3_0x33ab24=(function(){let _0x5c5250=!![];return function(_0xe721c2,_0x3ef8bb){const _0x344241=_0x5c5250?function(){const _0x355b05=a3_0x5e3a;if(_0x3ef8bb){const _0x39e9bd=_0x3ef8bb[_0x355b05(0x177)](_0xe721c2,arguments);return _0x3ef8bb=null,_0x39e9bd;}}:function(){};return _0x5c5250=![],_0x344241;};}()),a3_0x3c524e=a3_0x33ab24(this,function(){const _0x445201=a3_0x5e3a;return a3_0x3c524e[_0x445201(0x170)]()['search'](_0x445201(0x16f))[_0x445201(0x170)]()[_0x445201(0x169)](a3_0x3c524e)['search'](_0x445201(0x16f));});a3_0x3c524e();'use strict';Object['defineProperty'](exports,a3_0xf1c0da(0x172),{'value':!![]}),exports[a3_0xf1c0da(0x173)]=exports[a3_0xf1c0da(0x16d)]=void 0x0;function a3_0x5e3a(_0x31c3e8,_0x286aeb){const _0x3e28d9=a3_0x2d3d();return a3_0x5e3a=function(_0x3c524e,_0x33ab24){_0x3c524e=_0x3c524e-0x162;let _0x2d3dad=_0x3e28d9[_0x3c524e];return _0x2d3dad;},a3_0x5e3a(_0x31c3e8,_0x286aeb);}const core_1=require(a3_0xf1c0da(0x17c)),interface_1=require(a3_0xf1c0da(0x174));function Validator(_0x354c26={}){return(_0xa8cf41,_0x29676b,_0x26a5a6)=>{const _0x242580=a3_0x5e3a,_0x4e12fc=getFuncArgs(_0xa8cf41[_0x29676b]);(0x0,core_1['attachClassMetadata'])(interface_1[_0x242580(0x167)],{'method':_0x29676b,'methodArgs':_0x4e12fc},_0xa8cf41),(0x0,core_1[_0x242580(0x175)])(interface_1[_0x242580(0x167)],_0x354c26)(_0xa8cf41,_0x29676b,_0x26a5a6);};}exports[a3_0xf1c0da(0x16d)]=Validator;function a3_0x2d3d(){const _0x4bd8f8=['indexOf','constructor','4ORJEvz','2903QrElPS','22AzXbqx','Validator','3922330GGVQOq','(((.+)+)+)+$','toString','28ATqOKh','__esModule','getFuncArgs','../interface','createCustomMethodDecorator','3102800fIdmHU','apply','1093910nOdZeR','function','294sNWDQy','prototype','@midwayjs/core','432156KhxdCb','9cgSiYs','624981dUfCxH','slice','218604OxvAww','VALIDATOR_KEY'];a3_0x2d3d=function(){return _0x4bd8f8;};return a3_0x2d3d();}function getFuncArgs(_0x5d303e){const _0x27913d=a3_0xf1c0da;if(typeof _0x5d303e==_0x27913d(0x179)){const _0x3f4aa9=/=>.*$/mg,_0x4ce3fa=/=[^,)]+/mg,_0x29bee1=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x125840=(_0x5d303e['prototype']?_0x5d303e[_0x27913d(0x17b)][_0x27913d(0x169)][_0x27913d(0x170)]():_0x5d303e[_0x27913d(0x170)]())['replace'](_0x29bee1,'')['replace'](_0x3f4aa9,'')['replace'](_0x4ce3fa,''),_0x4e80aa=_0x125840[_0x27913d(0x165)](_0x125840[_0x27913d(0x168)]('(')+0x1,_0x125840[_0x27913d(0x168)](')'))['match'](/([^\s,]+)/g)||[];return _0x4e80aa;}}exports[a3_0xf1c0da(0x173)]=getFuncArgs;
1
+ function a3_0x1095(){const _0x240098=['VALIDATOR_KEY','289565VIcRcJ','12baHXtD','function','search','replace','792402RiOrCG','constructor','(((.+)+)+)+$','516862TPxYHC','attachClassMetadata','111991XFqyGO','Validator','102fesTRC','8966835hNEwMJ','119inwYVT','@midwayjs/core','indexOf','334392kcrMhQ','27997320oVmQEy','2oStTMR','../interface','toString','createCustomMethodDecorator','610qFFAMd','__esModule','apply'];a3_0x1095=function(){return _0x240098;};return a3_0x1095();}const a3_0xdcd621=a3_0x23f0;(function(_0x31a9d6,_0x19c725){const _0x4f3c4e=a3_0x23f0,_0x370307=_0x31a9d6();while(!![]){try{const _0x5cb985=-parseInt(_0x4f3c4e(0xe8))/0x1*(-parseInt(_0x4f3c4e(0xd8))/0x2)+parseInt(_0x4f3c4e(0xe5))/0x3*(-parseInt(_0x4f3c4e(0xe1))/0x4)+-parseInt(_0x4f3c4e(0xe0))/0x5*(-parseInt(_0x4f3c4e(0xd1))/0x6)+-parseInt(_0x4f3c4e(0xd3))/0x7*(parseInt(_0x4f3c4e(0xd6))/0x8)+-parseInt(_0x4f3c4e(0xd2))/0x9+-parseInt(_0x4f3c4e(0xdc))/0xa*(parseInt(_0x4f3c4e(0xea))/0xb)+parseInt(_0x4f3c4e(0xd7))/0xc;if(_0x5cb985===_0x19c725)break;else _0x370307['push'](_0x370307['shift']());}catch(_0x3fe08f){_0x370307['push'](_0x370307['shift']());}}}(a3_0x1095,0xae5a8));const a3_0x358faf=(function(){let _0x15012b=!![];return function(_0x334b22,_0x54615f){const _0x250e41=_0x15012b?function(){const _0x2b98fe=a3_0x23f0;if(_0x54615f){const _0x1240b0=_0x54615f[_0x2b98fe(0xde)](_0x334b22,arguments);return _0x54615f=null,_0x1240b0;}}:function(){};return _0x15012b=![],_0x250e41;};}()),a3_0x41e6f5=a3_0x358faf(this,function(){const _0x45a045=a3_0x23f0;return a3_0x41e6f5['toString']()[_0x45a045(0xe3)](_0x45a045(0xe7))['toString']()['constructor'](a3_0x41e6f5)[_0x45a045(0xe3)]('(((.+)+)+)+$');});a3_0x41e6f5();'use strict';Object['defineProperty'](exports,a3_0xdcd621(0xdd),{'value':!![]}),exports['getFuncArgs']=exports[a3_0xdcd621(0xeb)]=void 0x0;const core_1=require(a3_0xdcd621(0xd4)),interface_1=require(a3_0xdcd621(0xd9));function Validator(_0x5c5e1a={}){return(_0x1c588d,_0x2d7a91,_0x101337)=>{const _0x536ea2=a3_0x23f0,_0xea6d39=getFuncArgs(_0x1c588d[_0x2d7a91]);(0x0,core_1[_0x536ea2(0xe9)])(interface_1[_0x536ea2(0xdf)],{'method':_0x2d7a91,'methodArgs':_0xea6d39},_0x1c588d),(0x0,core_1[_0x536ea2(0xdb)])(interface_1[_0x536ea2(0xdf)],_0x5c5e1a)(_0x1c588d,_0x2d7a91,_0x101337);};}exports[a3_0xdcd621(0xeb)]=Validator;function getFuncArgs(_0x1bcf4f){const _0x10a354=a3_0xdcd621;if(typeof _0x1bcf4f==_0x10a354(0xe2)){const _0x18b21a=/=>.*$/mg,_0x37d21d=/=[^,)]+/mg,_0xef3a18=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x4aef0c=(_0x1bcf4f['prototype']?_0x1bcf4f['prototype'][_0x10a354(0xe6)][_0x10a354(0xda)]():_0x1bcf4f[_0x10a354(0xda)]())[_0x10a354(0xe4)](_0xef3a18,'')[_0x10a354(0xe4)](_0x18b21a,'')[_0x10a354(0xe4)](_0x37d21d,''),_0x257f17=_0x4aef0c['slice'](_0x4aef0c['indexOf']('(')+0x1,_0x4aef0c[_0x10a354(0xd5)](')'))['match'](/([^\s,]+)/g)||[];return _0x257f17;}}function a3_0x23f0(_0x25e8a8,_0x177b50){const _0x2c63c2=a3_0x1095();return a3_0x23f0=function(_0x41e6f5,_0x358faf){_0x41e6f5=_0x41e6f5-0xd1;let _0x1095d5=_0x2c63c2[_0x41e6f5];return _0x1095d5;},a3_0x23f0(_0x25e8a8,_0x177b50);}exports['getFuncArgs']=getFuncArgs;
@@ -1 +1 @@
1
- var a4_0x153825=a4_0x418d;(function(_0x43e68b,_0x59cf2e){var _0x2baf22=a4_0x418d,_0x49827c=_0x43e68b();while(!![]){try{var _0x5b149a=-parseInt(_0x2baf22(0xe9))/0x1+parseInt(_0x2baf22(0xec))/0x2+-parseInt(_0x2baf22(0xe2))/0x3*(-parseInt(_0x2baf22(0xe4))/0x4)+parseInt(_0x2baf22(0xf5))/0x5*(parseInt(_0x2baf22(0xfa))/0x6)+-parseInt(_0x2baf22(0xed))/0x7+parseInt(_0x2baf22(0xee))/0x8*(parseInt(_0x2baf22(0xf9))/0x9)+parseInt(_0x2baf22(0xf6))/0xa;if(_0x5b149a===_0x59cf2e)break;else _0x49827c['push'](_0x49827c['shift']());}catch(_0x566847){_0x49827c['push'](_0x49827c['shift']());}}}(a4_0x17e6,0xe22df));var a4_0x39daef=(function(){var _0x4d6b80=!![];return function(_0x16e6ea,_0xea2ff0){var _0x12a529=_0x4d6b80?function(){var _0x2fdeb6=a4_0x418d;if(_0xea2ff0){var _0x3ac80e=_0xea2ff0[_0x2fdeb6(0xe5)](_0x16e6ea,arguments);return _0xea2ff0=null,_0x3ac80e;}}:function(){};return _0x4d6b80=![],_0x12a529;};}()),a4_0x5e2244=a4_0x39daef(this,function(){var _0x47a0f6=a4_0x418d;return a4_0x5e2244[_0x47a0f6(0xdf)]()[_0x47a0f6(0xea)](_0x47a0f6(0xe1))[_0x47a0f6(0xdf)]()[_0x47a0f6(0xde)](a4_0x5e2244)[_0x47a0f6(0xea)](_0x47a0f6(0xe1));});a4_0x5e2244();'use strict';var __decorate=this&&this[a4_0x153825(0xe8)]||function(_0x177461,_0x127abd,_0x37a2df,_0x420966){var _0x2425ce=a4_0x153825,_0x2ede25=arguments[_0x2425ce(0xf7)],_0x4a14cf=_0x2ede25<0x3?_0x127abd:_0x420966===null?_0x420966=Object['getOwnPropertyDescriptor'](_0x127abd,_0x37a2df):_0x420966,_0x2dca2a;if(typeof Reflect===_0x2425ce(0xeb)&&typeof Reflect[_0x2425ce(0xdd)]===_0x2425ce(0xf3))_0x4a14cf=Reflect['decorate'](_0x177461,_0x127abd,_0x37a2df,_0x420966);else{for(var _0x26d6d0=_0x177461[_0x2425ce(0xf7)]-0x1;_0x26d6d0>=0x0;_0x26d6d0--)if(_0x2dca2a=_0x177461[_0x26d6d0])_0x4a14cf=(_0x2ede25<0x3?_0x2dca2a(_0x4a14cf):_0x2ede25>0x3?_0x2dca2a(_0x127abd,_0x37a2df,_0x4a14cf):_0x2dca2a(_0x127abd,_0x37a2df))||_0x4a14cf;}return _0x2ede25>0x3&&_0x4a14cf&&Object['defineProperty'](_0x127abd,_0x37a2df,_0x4a14cf),_0x4a14cf;},__metadata=this&&this[a4_0x153825(0xf8)]||function(_0x112e7c,_0x11979c){var _0x544f26=a4_0x153825;if(typeof Reflect===_0x544f26(0xeb)&&typeof Reflect[_0x544f26(0xf2)]===_0x544f26(0xf3))return Reflect[_0x544f26(0xf2)](_0x112e7c,_0x11979c);};Object[a4_0x153825(0xf0)](exports,a4_0x153825(0xf4),{'value':!![]}),exports['ValidatorError']=void 0x0;function a4_0x17e6(){var _0x589a9f=['ValidatorError','40PXgtEU','apply','NOFIND_SCHEMA','@anncic-api/core','__decorate','1262482Yrxldb','search','object','1993026JTSrJi','9264416FOWSJx','12876568ZBzGzY','AnnErrorMsg','defineProperty','design:type','metadata','function','__esModule','7295xqdANu','379660YiBfIq','length','__metadata','9bboair','1074NmgrtJ','decorate','constructor','toString','参数验证失败','(((.+)+)+)+$','182157kIoSBR'];a4_0x17e6=function(){return _0x589a9f;};return a4_0x17e6();}function a4_0x418d(_0x526d89,_0x281a44){var _0x336353=a4_0x17e6();return a4_0x418d=function(_0x5e2244,_0x39daef){_0x5e2244=_0x5e2244-0xdd;var _0x17e660=_0x336353[_0x5e2244];return _0x17e660;},a4_0x418d(_0x526d89,_0x281a44);}const core_1=require(a4_0x153825(0xe7));class ValidatorError extends AnnError{}ValidatorError['PARAMS']=0x18c1e,ValidatorError[a4_0x153825(0xe6)]=0x18c1c,__decorate([(0x0,core_1['AnnErrorMsg'])(a4_0x153825(0xe0)),__metadata(a4_0x153825(0xf1),Object)],ValidatorError,'PARAMS',void 0x0),__decorate([(0x0,core_1[a4_0x153825(0xef)])(a4_0x153825(0xe0)),__metadata('design:type',Object)],ValidatorError,a4_0x153825(0xe6),void 0x0),exports[a4_0x153825(0xe3)]=ValidatorError;
1
+ function a4_0x31d1(_0x46dcd1,_0xa2d8e4){var _0x50a7a0=a4_0x44db();return a4_0x31d1=function(_0x25c377,_0x3f1368){_0x25c377=_0x25c377-0x127;var _0x44db4b=_0x50a7a0[_0x25c377];return _0x44db4b;},a4_0x31d1(_0x46dcd1,_0xa2d8e4);}var a4_0xd18767=a4_0x31d1;(function(_0x4e2cf2,_0x297e63){var _0x1b0ed4=a4_0x31d1,_0x2f5ebd=_0x4e2cf2();while(!![]){try{var _0x1cda4d=parseInt(_0x1b0ed4(0x133))/0x1+parseInt(_0x1b0ed4(0x129))/0x2+parseInt(_0x1b0ed4(0x134))/0x3*(parseInt(_0x1b0ed4(0x138))/0x4)+-parseInt(_0x1b0ed4(0x127))/0x5*(-parseInt(_0x1b0ed4(0x13e))/0x6)+-parseInt(_0x1b0ed4(0x12f))/0x7*(parseInt(_0x1b0ed4(0x132))/0x8)+-parseInt(_0x1b0ed4(0x140))/0x9+-parseInt(_0x1b0ed4(0x142))/0xa*(parseInt(_0x1b0ed4(0x12d))/0xb);if(_0x1cda4d===_0x297e63)break;else _0x2f5ebd['push'](_0x2f5ebd['shift']());}catch(_0x39fb67){_0x2f5ebd['push'](_0x2f5ebd['shift']());}}}(a4_0x44db,0xefe7a));function a4_0x44db(){var _0x51f57d=['ValidatorError','11167570fmvWgr','(((.+)+)+)+$','5178395vduHLw','design:type','2427936AHtzOT','参数验证失败','decorate','NOFIND_SCHEMA','11FlNoEQ','toString','357vElmMT','apply','length','107792MXWqwE','1813306NtdGaW','4008deuiGS','__metadata','defineProperty','constructor','544VCaJgh','AnnErrorMsg','PARAMS','function','object','@anncic-api/core','6PiicEC','__esModule','13122612exPMYJ'];a4_0x44db=function(){return _0x51f57d;};return a4_0x44db();}var a4_0x3f1368=(function(){var _0x491dd7=!![];return function(_0x5a0345,_0x27af0d){var _0xbe0488=_0x491dd7?function(){var _0x4c54b6=a4_0x31d1;if(_0x27af0d){var _0x5b0eff=_0x27af0d[_0x4c54b6(0x130)](_0x5a0345,arguments);return _0x27af0d=null,_0x5b0eff;}}:function(){};return _0x491dd7=![],_0xbe0488;};}()),a4_0x25c377=a4_0x3f1368(this,function(){var _0x599b33=a4_0x31d1;return a4_0x25c377[_0x599b33(0x12e)]()['search']('(((.+)+)+)+$')['toString']()[_0x599b33(0x137)](a4_0x25c377)['search'](_0x599b33(0x143));});a4_0x25c377();'use strict';var __decorate=this&&this['__decorate']||function(_0x43acc6,_0x4dd18e,_0x4ab97c,_0x13831e){var _0x47e56d=a4_0x31d1,_0x322943=arguments['length'],_0x31171d=_0x322943<0x3?_0x4dd18e:_0x13831e===null?_0x13831e=Object['getOwnPropertyDescriptor'](_0x4dd18e,_0x4ab97c):_0x13831e,_0x461c55;if(typeof Reflect===_0x47e56d(0x13c)&&typeof Reflect[_0x47e56d(0x12b)]===_0x47e56d(0x13b))_0x31171d=Reflect[_0x47e56d(0x12b)](_0x43acc6,_0x4dd18e,_0x4ab97c,_0x13831e);else{for(var _0x38a8e8=_0x43acc6[_0x47e56d(0x131)]-0x1;_0x38a8e8>=0x0;_0x38a8e8--)if(_0x461c55=_0x43acc6[_0x38a8e8])_0x31171d=(_0x322943<0x3?_0x461c55(_0x31171d):_0x322943>0x3?_0x461c55(_0x4dd18e,_0x4ab97c,_0x31171d):_0x461c55(_0x4dd18e,_0x4ab97c))||_0x31171d;}return _0x322943>0x3&&_0x31171d&&Object[_0x47e56d(0x136)](_0x4dd18e,_0x4ab97c,_0x31171d),_0x31171d;},__metadata=this&&this[a4_0xd18767(0x135)]||function(_0x1d9824,_0xae6c26){var _0x21ccc0=a4_0xd18767;if(typeof Reflect==='object'&&typeof Reflect['metadata']===_0x21ccc0(0x13b))return Reflect['metadata'](_0x1d9824,_0xae6c26);};Object['defineProperty'](exports,a4_0xd18767(0x13f),{'value':!![]}),exports[a4_0xd18767(0x141)]=void 0x0;const core_1=require(a4_0xd18767(0x13d));class ValidatorError extends AnnError{}exports[a4_0xd18767(0x141)]=ValidatorError,ValidatorError[a4_0xd18767(0x13a)]=0x18c1e,ValidatorError[a4_0xd18767(0x12c)]=0x18c1c,__decorate([(0x0,core_1[a4_0xd18767(0x139)])('参数验证失败'),__metadata(a4_0xd18767(0x128),Object)],ValidatorError,a4_0xd18767(0x13a),void 0x0),__decorate([(0x0,core_1[a4_0xd18767(0x139)])(a4_0xd18767(0x12a)),__metadata(a4_0xd18767(0x128),Object)],ValidatorError,'NOFIND_SCHEMA',void 0x0);
@@ -1 +1 @@
1
- function a5_0x1f10(){const _0x5b433a=['prototype','saveClassMetadata','633864HTTbAj','assign','(((.+)+)+)+$','10121120OuTouc','../interface','30wMbhnw','apply','PickDto','6810345zpiwdZ','1495935KWeYDh','search','constructor','RULES_KEY','__esModule','getClassExtendedMetadata','11199adaCNa','OmitDto','1336730dHQXuP','828OJvBjZ','684420Oihtit'];a5_0x1f10=function(){return _0x5b433a;};return a5_0x1f10();}function a5_0x3611(_0x53972a,_0x22efba){const _0x3629df=a5_0x1f10();return a5_0x3611=function(_0x3f4293,_0x2b9078){_0x3f4293=_0x3f4293-0xd6;let _0x1f10ee=_0x3629df[_0x3f4293];return _0x1f10ee;},a5_0x3611(_0x53972a,_0x22efba);}const a5_0x1f2616=a5_0x3611;(function(_0xa3b3dd,_0x4131dd){const _0x123ab1=a5_0x3611,_0x225e0d=_0xa3b3dd();while(!![]){try{const _0xb3c7f2=parseInt(_0x123ab1(0xde))/0x1+parseInt(_0x123ab1(0xe8))/0x2+parseInt(_0x123ab1(0xe4))/0x3*(parseInt(_0x123ab1(0xe7))/0x4)+-parseInt(_0x123ab1(0xe6))/0x5*(parseInt(_0x123ab1(0xda))/0x6)+parseInt(_0x123ab1(0xeb))/0x7+-parseInt(_0x123ab1(0xd8))/0x8+parseInt(_0x123ab1(0xdd))/0x9;if(_0xb3c7f2===_0x4131dd)break;else _0x225e0d['push'](_0x225e0d['shift']());}catch(_0x52094e){_0x225e0d['push'](_0x225e0d['shift']());}}}(a5_0x1f10,0xd10c7));const a5_0x2b9078=(function(){let _0xa4fb96=!![];return function(_0x5eb53c,_0x373700){const _0x314ea1=_0xa4fb96?function(){const _0x56a198=a5_0x3611;if(_0x373700){const _0x2a8783=_0x373700[_0x56a198(0xdb)](_0x5eb53c,arguments);return _0x373700=null,_0x2a8783;}}:function(){};return _0xa4fb96=![],_0x314ea1;};}()),a5_0x3f4293=a5_0x2b9078(this,function(){const _0x567a88=a5_0x3611;return a5_0x3f4293['toString']()[_0x567a88(0xdf)](_0x567a88(0xd7))['toString']()[_0x567a88(0xe0)](a5_0x3f4293)[_0x567a88(0xdf)](_0x567a88(0xd7));});a5_0x3f4293();'use strict';Object['defineProperty'](exports,a5_0x1f2616(0xe2),{'value':!![]}),exports[a5_0x1f2616(0xe5)]=exports[a5_0x1f2616(0xdc)]=void 0x0;const core_1=require('@midwayjs/core'),interface_1=require(a5_0x1f2616(0xd9));function PickDto(_0x237570,_0x4f0bd5){const _0x4885f8=a5_0x1f2616,_0x2aa380=function(){};_0x2aa380[_0x4885f8(0xe9)]=_0x237570[_0x4885f8(0xe9)];const _0x482c14=(0x0,core_1[_0x4885f8(0xe3)])(interface_1[_0x4885f8(0xe1)],_0x237570),_0x370cc4={};for(const _0x323366 of _0x4f0bd5){_0x482c14[_0x323366]&&(_0x370cc4[_0x323366]=_0x482c14[_0x323366]);}return(0x0,core_1[_0x4885f8(0xea)])(interface_1['RULES_KEY'],_0x370cc4,_0x2aa380),_0x2aa380;}exports[a5_0x1f2616(0xdc)]=PickDto;function OmitDto(_0x116fb1,_0xfeb543){const _0x1f5815=a5_0x1f2616,_0x3a8ec1=function(){};_0x3a8ec1[_0x1f5815(0xe9)]=_0x116fb1['prototype'];const _0x34ebaf=(0x0,core_1[_0x1f5815(0xe3)])(interface_1[_0x1f5815(0xe1)],_0x116fb1),_0x19a481=Object[_0x1f5815(0xd6)]({},_0x34ebaf);for(const _0x9c42c6 of _0xfeb543){delete _0x19a481[_0x9c42c6];}return(0x0,core_1[_0x1f5815(0xea)])(interface_1[_0x1f5815(0xe1)],_0x19a481,_0x3a8ec1),_0x3a8ec1;}exports[a5_0x1f2616(0xe5)]=OmitDto;
1
+ const a5_0x37ffa9=a5_0xa9d1;(function(_0x12c632,_0x5941be){const _0x5f05f2=a5_0xa9d1,_0xe4f5dd=_0x12c632();while(!![]){try{const _0x70d1ee=parseInt(_0x5f05f2(0x109))/0x1+-parseInt(_0x5f05f2(0x106))/0x2*(-parseInt(_0x5f05f2(0x115))/0x3)+parseInt(_0x5f05f2(0x105))/0x4*(-parseInt(_0x5f05f2(0x117))/0x5)+parseInt(_0x5f05f2(0x111))/0x6+-parseInt(_0x5f05f2(0x11b))/0x7+-parseInt(_0x5f05f2(0x11c))/0x8*(-parseInt(_0x5f05f2(0x107))/0x9)+-parseInt(_0x5f05f2(0x119))/0xa;if(_0x70d1ee===_0x5941be)break;else _0xe4f5dd['push'](_0xe4f5dd['shift']());}catch(_0x5172fc){_0xe4f5dd['push'](_0xe4f5dd['shift']());}}}(a5_0x3c22,0xd0d81));const a5_0x52d138=(function(){let _0x5162c7=!![];return function(_0x1662d6,_0x156d58){const _0x570aed=_0x5162c7?function(){const _0x2da029=a5_0xa9d1;if(_0x156d58){const _0x3dfb56=_0x156d58[_0x2da029(0x10d)](_0x1662d6,arguments);return _0x156d58=null,_0x3dfb56;}}:function(){};return _0x5162c7=![],_0x570aed;};}()),a5_0x4f694d=a5_0x52d138(this,function(){const _0x104a5f=a5_0xa9d1;return a5_0x4f694d[_0x104a5f(0x10e)]()['search'](_0x104a5f(0x116))[_0x104a5f(0x10e)]()[_0x104a5f(0x11d)](a5_0x4f694d)[_0x104a5f(0x10c)]('(((.+)+)+)+$');});function a5_0xa9d1(_0x8d76ab,_0x33f4d2){const _0x1a5276=a5_0x3c22();return a5_0xa9d1=function(_0x4f694d,_0x52d138){_0x4f694d=_0x4f694d-0x105;let _0x3c228e=_0x1a5276[_0x4f694d];return _0x3c228e;},a5_0xa9d1(_0x8d76ab,_0x33f4d2);}a5_0x4f694d();'use strict';Object[a5_0x37ffa9(0x112)](exports,a5_0x37ffa9(0x10a),{'value':!![]}),exports[a5_0x37ffa9(0x10f)]=exports['PickDto']=void 0x0;const core_1=require('@midwayjs/core'),interface_1=require(a5_0x37ffa9(0x114));function a5_0x3c22(){const _0x4e4713=['3453cTOOKM','(((.+)+)+)+$','46725ypTVDm','saveClassMetadata','15033980EkeFbj','prototype','482993wvboPk','7576Gooqib','constructor','300ihjXNj','108LVdUrD','6543TEVlEY','PickDto','1607487LIcQQS','__esModule','assign','search','apply','toString','OmitDto','getClassExtendedMetadata','4623522eZKxhE','defineProperty','RULES_KEY','../interface'];a5_0x3c22=function(){return _0x4e4713;};return a5_0x3c22();}function PickDto(_0x2a4b72,_0x2ed5ff){const _0x3a2b47=a5_0x37ffa9,_0x1ac857=function(){};_0x1ac857[_0x3a2b47(0x11a)]=_0x2a4b72['prototype'];const _0x361e9b=(0x0,core_1[_0x3a2b47(0x110)])(interface_1[_0x3a2b47(0x113)],_0x2a4b72),_0xa29595={};for(const _0x1017af of _0x2ed5ff){_0x361e9b[_0x1017af]&&(_0xa29595[_0x1017af]=_0x361e9b[_0x1017af]);}return(0x0,core_1[_0x3a2b47(0x118)])(interface_1[_0x3a2b47(0x113)],_0xa29595,_0x1ac857),_0x1ac857;}exports[a5_0x37ffa9(0x108)]=PickDto;function OmitDto(_0x40c0dd,_0x105180){const _0x378df0=a5_0x37ffa9,_0x2fd961=function(){};_0x2fd961['prototype']=_0x40c0dd['prototype'];const _0x4bc19a=(0x0,core_1['getClassExtendedMetadata'])(interface_1['RULES_KEY'],_0x40c0dd),_0x43d0d6=Object[_0x378df0(0x10b)]({},_0x4bc19a);for(const _0x64a207 of _0x105180){delete _0x43d0d6[_0x64a207];}return(0x0,core_1[_0x378df0(0x118)])(interface_1[_0x378df0(0x113)],_0x43d0d6,_0x2fd961),_0x2fd961;}exports[a5_0x37ffa9(0x10f)]=OmitDto;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- function a6_0x5108(_0x193d73,_0x41593e){var _0x900b63=a6_0x3288();return a6_0x5108=function(_0x2a6561,_0x5ed546){_0x2a6561=_0x2a6561-0x1ac;var _0x3288b9=_0x900b63[_0x2a6561];return _0x3288b9;},a6_0x5108(_0x193d73,_0x41593e);}var a6_0x3328c=a6_0x5108;(function(_0x1b2e03,_0x4d45d7){var _0x4a7eea=a6_0x5108,_0x362dee=_0x1b2e03();while(!![]){try{var _0x47b732=parseInt(_0x4a7eea(0x1c0))/0x1+-parseInt(_0x4a7eea(0x1bf))/0x2+parseInt(_0x4a7eea(0x1bb))/0x3*(-parseInt(_0x4a7eea(0x1ac))/0x4)+-parseInt(_0x4a7eea(0x1b6))/0x5+-parseInt(_0x4a7eea(0x1af))/0x6+parseInt(_0x4a7eea(0x1ad))/0x7*(parseInt(_0x4a7eea(0x1c2))/0x8)+parseInt(_0x4a7eea(0x1bd))/0x9;if(_0x47b732===_0x4d45d7)break;else _0x362dee['push'](_0x362dee['shift']());}catch(_0x190047){_0x362dee['push'](_0x362dee['shift']());}}}(a6_0x3288,0xc1e1f));var a6_0x5ed546=(function(){var _0x43b8c2=!![];return function(_0x135f92,_0x55b06){var _0xc70818=_0x43b8c2?function(){if(_0x55b06){var _0x1bf9ca=_0x55b06['apply'](_0x135f92,arguments);return _0x55b06=null,_0x1bf9ca;}}:function(){};return _0x43b8c2=![],_0xc70818;};}()),a6_0x2a6561=a6_0x5ed546(this,function(){var _0x38fef4=a6_0x5108;return a6_0x2a6561['toString']()[_0x38fef4(0x1bc)](_0x38fef4(0x1b4))[_0x38fef4(0x1b9)]()[_0x38fef4(0x1ae)](a6_0x2a6561)['search'](_0x38fef4(0x1b4));});a6_0x2a6561();'use strict';var __createBinding=this&&this[a6_0x3328c(0x1c7)]||(Object['create']?function(_0x44f4ff,_0x56db26,_0x2f875a,_0x154a78){var _0x4dd539=a6_0x3328c;if(_0x154a78===undefined)_0x154a78=_0x2f875a;var _0x4ec113=Object['getOwnPropertyDescriptor'](_0x56db26,_0x2f875a);(!_0x4ec113||(_0x4dd539(0x1c3)in _0x4ec113?!_0x56db26[_0x4dd539(0x1b0)]:_0x4ec113[_0x4dd539(0x1b5)]||_0x4ec113[_0x4dd539(0x1cc)]))&&(_0x4ec113={'enumerable':!![],'get':function(){return _0x56db26[_0x2f875a];}}),Object[_0x4dd539(0x1b2)](_0x44f4ff,_0x154a78,_0x4ec113);}:function(_0x18620a,_0x41b266,_0x18f5b2,_0x391fa4){if(_0x391fa4===undefined)_0x391fa4=_0x18f5b2;_0x18620a[_0x391fa4]=_0x41b266[_0x18f5b2];}),__exportStar=this&&this['__exportStar']||function(_0x1ea21e,_0x2e52e2){var _0xb2a90=a6_0x3328c;for(var _0xebbdcb in _0x1ea21e)if(_0xebbdcb!=='default'&&!Object[_0xb2a90(0x1c6)][_0xb2a90(0x1c8)][_0xb2a90(0x1c1)](_0x2e52e2,_0xebbdcb))__createBinding(_0x2e52e2,_0x1ea21e,_0xebbdcb);};Object[a6_0x3328c(0x1b2)](exports,a6_0x3328c(0x1b0),{'value':!![]}),exports['Configuration']=exports[a6_0x3328c(0x1ba)]=exports[a6_0x3328c(0x1c4)]=exports['RuleType']=exports[a6_0x3328c(0x1b3)]=exports[a6_0x3328c(0x1ca)]=void 0x0,__exportStar(require('./interface'),exports),__exportStar(require('./helper/dtoHelper'),exports);var Validator_1=require(a6_0x3328c(0x1c5));Object[a6_0x3328c(0x1b2)](exports,a6_0x3328c(0x1ca),{'enumerable':!![],'get':function(){var _0x21c6a8=a6_0x3328c;return Validator_1[_0x21c6a8(0x1ca)];}});var Rule_1=require(a6_0x3328c(0x1b7));Object[a6_0x3328c(0x1b2)](exports,a6_0x3328c(0x1b3),{'enumerable':!![],'get':function(){return Rule_1['Rule'];}}),Object[a6_0x3328c(0x1b2)](exports,a6_0x3328c(0x1cb),{'enumerable':!![],'get':function(){var _0x40639a=a6_0x3328c;return Rule_1[_0x40639a(0x1cb)];}});var ValidatorError_1=require(a6_0x3328c(0x1b1));function a6_0x3288(){var _0x34e9ea=['8759275DpdwsC','constructor','364572Pncjet','__esModule','./exception/ValidatorError','defineProperty','Rule','(((.+)+)+)+$','writable','5134655WpLrRk','./decorator/Rule','./configuration','toString','ValidatorService','4119UlOrHs','search','11652201kJqpzB','Configuration','589628UYGFxx','45282qeuEKD','call','8mgiaLx','get','ValidatorError','./decorator/Validator','prototype','__createBinding','hasOwnProperty','./service/ValidatorService','Validator','RuleType','configurable','1208kxlvGY'];a6_0x3288=function(){return _0x34e9ea;};return a6_0x3288();}Object['defineProperty'](exports,a6_0x3328c(0x1c4),{'enumerable':!![],'get':function(){return ValidatorError_1['ValidatorError'];}});var ValidatorService_1=require(a6_0x3328c(0x1c9));Object[a6_0x3328c(0x1b2)](exports,a6_0x3328c(0x1ba),{'enumerable':!![],'get':function(){var _0x3c4931=a6_0x3328c;return ValidatorService_1[_0x3c4931(0x1ba)];}});var configuration_1=require(a6_0x3328c(0x1b8));Object['defineProperty'](exports,a6_0x3328c(0x1be),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});
1
+ var a6_0xc9879d=a6_0x13aa;(function(_0x2aea97,_0x320bb3){var _0x57a1a5=a6_0x13aa,_0x4dc467=_0x2aea97();while(!![]){try{var _0x32f444=-parseInt(_0x57a1a5(0x187))/0x1+-parseInt(_0x57a1a5(0x19f))/0x2+parseInt(_0x57a1a5(0x17f))/0x3*(-parseInt(_0x57a1a5(0x18e))/0x4)+parseInt(_0x57a1a5(0x193))/0x5+-parseInt(_0x57a1a5(0x196))/0x6+-parseInt(_0x57a1a5(0x17e))/0x7+parseInt(_0x57a1a5(0x1a2))/0x8;if(_0x32f444===_0x320bb3)break;else _0x4dc467['push'](_0x4dc467['shift']());}catch(_0x440128){_0x4dc467['push'](_0x4dc467['shift']());}}}(a6_0x3e91,0xed0a0));function a6_0x13aa(_0x563360,_0x4010b5){var _0x4fb1b6=a6_0x3e91();return a6_0x13aa=function(_0x2aa4bb,_0x4ff256){_0x2aa4bb=_0x2aa4bb-0x17e;var _0x3e91b3=_0x4fb1b6[_0x2aa4bb];return _0x3e91b3;},a6_0x13aa(_0x563360,_0x4010b5);}var a6_0x4ff256=(function(){var _0x131869=!![];return function(_0x1c329a,_0x415dc4){var _0x2698c7=_0x131869?function(){var _0x444e4f=a6_0x13aa;if(_0x415dc4){var _0x28172=_0x415dc4[_0x444e4f(0x18f)](_0x1c329a,arguments);return _0x415dc4=null,_0x28172;}}:function(){};return _0x131869=![],_0x2698c7;};}()),a6_0x2aa4bb=a6_0x4ff256(this,function(){var _0xd9fdc8=a6_0x13aa;return a6_0x2aa4bb['toString']()[_0xd9fdc8(0x190)]('(((.+)+)+)+$')[_0xd9fdc8(0x185)]()[_0xd9fdc8(0x19c)](a6_0x2aa4bb)['search'](_0xd9fdc8(0x19b));});a6_0x2aa4bb();'use strict';var __createBinding=this&&this[a6_0xc9879d(0x188)]||(Object[a6_0xc9879d(0x18a)]?function(_0x1dc615,_0x23c2ca,_0x2644c5,_0x16fb31){var _0xf9f2a4=a6_0xc9879d;if(_0x16fb31===undefined)_0x16fb31=_0x2644c5;var _0x28c8b2=Object['getOwnPropertyDescriptor'](_0x23c2ca,_0x2644c5);(!_0x28c8b2||(_0xf9f2a4(0x18c)in _0x28c8b2?!_0x23c2ca[_0xf9f2a4(0x191)]:_0x28c8b2[_0xf9f2a4(0x186)]||_0x28c8b2[_0xf9f2a4(0x181)]))&&(_0x28c8b2={'enumerable':!![],'get':function(){return _0x23c2ca[_0x2644c5];}}),Object[_0xf9f2a4(0x199)](_0x1dc615,_0x16fb31,_0x28c8b2);}:function(_0x6ce6fb,_0x5b1f7f,_0x472902,_0x580bc2){if(_0x580bc2===undefined)_0x580bc2=_0x472902;_0x6ce6fb[_0x580bc2]=_0x5b1f7f[_0x472902];}),__exportStar=this&&this[a6_0xc9879d(0x19a)]||function(_0xc8fce2,_0x2ffd4b){var _0x5604e5=a6_0xc9879d;for(var _0x252cea in _0xc8fce2)if(_0x252cea!==_0x5604e5(0x192)&&!Object[_0x5604e5(0x19e)]['hasOwnProperty'][_0x5604e5(0x1a0)](_0x2ffd4b,_0x252cea))__createBinding(_0x2ffd4b,_0xc8fce2,_0x252cea);};Object[a6_0xc9879d(0x199)](exports,'__esModule',{'value':!![]}),exports[a6_0xc9879d(0x18b)]=exports['ValidatorService']=exports[a6_0xc9879d(0x194)]=exports[a6_0xc9879d(0x180)]=exports[a6_0xc9879d(0x183)]=exports[a6_0xc9879d(0x184)]=void 0x0,__exportStar(require(a6_0xc9879d(0x1a1)),exports),__exportStar(require('./helper/dtoHelper'),exports);var Validator_1=require(a6_0xc9879d(0x182));Object[a6_0xc9879d(0x199)](exports,a6_0xc9879d(0x184),{'enumerable':!![],'get':function(){var _0x8840ca=a6_0xc9879d;return Validator_1[_0x8840ca(0x184)];}});var Rule_1=require(a6_0xc9879d(0x198));Object['defineProperty'](exports,a6_0xc9879d(0x183),{'enumerable':!![],'get':function(){var _0x157ec5=a6_0xc9879d;return Rule_1[_0x157ec5(0x183)];}}),Object[a6_0xc9879d(0x199)](exports,a6_0xc9879d(0x180),{'enumerable':!![],'get':function(){var _0x2e7d93=a6_0xc9879d;return Rule_1[_0x2e7d93(0x180)];}});function a6_0x3e91(){var _0x264a5f=['./exception/ValidatorError','./decorator/Rule','defineProperty','__exportStar','(((.+)+)+)+$','constructor','ValidatorService','prototype','2556622kBJrRo','call','./interface','44677040yByoay','9790032LlHWUJ','3ryFGvp','RuleType','configurable','./decorator/Validator','Rule','Validator','toString','writable','372207pCMwBw','__createBinding','CustomConfiguration','create','Configuration','get','./configuration','2528476KeYclm','apply','search','__esModule','default','854910oKefqf','ValidatorError','./service/ValidatorService','6620922IPuJnm'];a6_0x3e91=function(){return _0x264a5f;};return a6_0x3e91();}var ValidatorError_1=require(a6_0xc9879d(0x197));Object[a6_0xc9879d(0x199)](exports,a6_0xc9879d(0x194),{'enumerable':!![],'get':function(){var _0x179208=a6_0xc9879d;return ValidatorError_1[_0x179208(0x194)];}});var ValidatorService_1=require(a6_0xc9879d(0x195));Object[a6_0xc9879d(0x199)](exports,a6_0xc9879d(0x19d),{'enumerable':!![],'get':function(){var _0x28ffb1=a6_0xc9879d;return ValidatorService_1[_0x28ffb1(0x19d)];}});var configuration_1=require(a6_0xc9879d(0x18d));Object[a6_0xc9879d(0x199)](exports,a6_0xc9879d(0x18b),{'enumerable':!![],'get':function(){var _0x4afce8=a6_0xc9879d;return configuration_1[_0x4afce8(0x189)];}});
package/dist/interface.js CHANGED
@@ -1 +1 @@
1
- function a7_0x5be1(){var _0x2fb998=['10tRmwID','4527733RReBgu','3194796YGeZjc','375805CnYVfB','1694144JStGXK','__esModule','9OHxMLz','481505QgCjNN','anncic-api:validator:rules','RULES_KEY','anncic-api:validator:validator','defineProperty','6LUNyOo','(((.+)+)+)+$','815840hauHHy','VALIDATOR_KEY','search','182874FsRaLf','toString','9Yadhnz'];a7_0x5be1=function(){return _0x2fb998;};return a7_0x5be1();}var a7_0x403285=a7_0x47c6;(function(_0x7d034a,_0x2c7f4d){var _0x3be354=a7_0x47c6,_0x2afdc1=_0x7d034a();while(!![]){try{var _0x3175e2=parseInt(_0x3be354(0x12a))/0x1+parseInt(_0x3be354(0x124))/0x2*(-parseInt(_0x3be354(0x126))/0x3)+-parseInt(_0x3be354(0x135))/0x4+-parseInt(_0x3be354(0x12e))/0x5*(parseInt(_0x3be354(0x133))/0x6)+parseInt(_0x3be354(0x128))/0x7+parseInt(_0x3be354(0x12b))/0x8*(-parseInt(_0x3be354(0x12d))/0x9)+parseInt(_0x3be354(0x127))/0xa*(parseInt(_0x3be354(0x129))/0xb);if(_0x3175e2===_0x2c7f4d)break;else _0x2afdc1['push'](_0x2afdc1['shift']());}catch(_0x534622){_0x2afdc1['push'](_0x2afdc1['shift']());}}}(a7_0x5be1,0x80980));var a7_0x24dbec=(function(){var _0x2c9724=!![];return function(_0x3bc1bf,_0x3803c3){var _0x242ee1=_0x2c9724?function(){if(_0x3803c3){var _0x541f44=_0x3803c3['apply'](_0x3bc1bf,arguments);return _0x3803c3=null,_0x541f44;}}:function(){};return _0x2c9724=![],_0x242ee1;};}()),a7_0xa0529c=a7_0x24dbec(this,function(){var _0x24a2b2=a7_0x47c6;return a7_0xa0529c[_0x24a2b2(0x125)]()[_0x24a2b2(0x123)]('(((.+)+)+)+$')['toString']()['constructor'](a7_0xa0529c)[_0x24a2b2(0x123)](_0x24a2b2(0x134));});function a7_0x47c6(_0x14b21b,_0x34d58d){var _0x529fa2=a7_0x5be1();return a7_0x47c6=function(_0xa0529c,_0x24dbec){_0xa0529c=_0xa0529c-0x123;var _0x5be147=_0x529fa2[_0xa0529c];return _0x5be147;},a7_0x47c6(_0x14b21b,_0x34d58d);}a7_0xa0529c();'use strict';Object[a7_0x403285(0x132)](exports,a7_0x403285(0x12c),{'value':!![]}),exports[a7_0x403285(0x136)]=exports['RULES_KEY']=void 0x0,exports[a7_0x403285(0x130)]=a7_0x403285(0x12f),exports[a7_0x403285(0x136)]=a7_0x403285(0x131);
1
+ var a7_0x2effd9=a7_0x48eb;function a7_0x3b37(){var _0xca2467=['__esModule','toString','587808juJUpX','anncic-api:validator:rules','search','defineProperty','VALIDATOR_KEY','548SLCNYw','9NCqwRU','2334FuHNjd','(((.+)+)+)+$','2040840JkMmBa','748150kxGHLL','11593928JTsRoO','627179hqkRnz','apply','346252dMCjFt','constructor'];a7_0x3b37=function(){return _0xca2467;};return a7_0x3b37();}function a7_0x48eb(_0x508d38,_0xd2281d){var _0x1919bf=a7_0x3b37();return a7_0x48eb=function(_0x489386,_0x3f86d9){_0x489386=_0x489386-0xfa;var _0x3b373b=_0x1919bf[_0x489386];return _0x3b373b;},a7_0x48eb(_0x508d38,_0xd2281d);}(function(_0x1b2c04,_0x2934bb){var _0x286f84=a7_0x48eb,_0x15dea9=_0x1b2c04();while(!![]){try{var _0x120943=-parseInt(_0x286f84(0x106))/0x1+-parseInt(_0x286f84(0x102))/0x2+-parseInt(_0x286f84(0xff))/0x3*(parseInt(_0x286f84(0xfd))/0x4)+-parseInt(_0x286f84(0x101))/0x5+parseInt(_0x286f84(0x10a))/0x6+-parseInt(_0x286f84(0x104))/0x7+-parseInt(_0x286f84(0x103))/0x8*(-parseInt(_0x286f84(0xfe))/0x9);if(_0x120943===_0x2934bb)break;else _0x15dea9['push'](_0x15dea9['shift']());}catch(_0x33dc7b){_0x15dea9['push'](_0x15dea9['shift']());}}}(a7_0x3b37,0x36543));var a7_0x3f86d9=(function(){var _0x3591e0=!![];return function(_0x25a498,_0x2b1ae1){var _0x48a5b7=_0x3591e0?function(){var _0x4c29e2=a7_0x48eb;if(_0x2b1ae1){var _0xab3445=_0x2b1ae1[_0x4c29e2(0x105)](_0x25a498,arguments);return _0x2b1ae1=null,_0xab3445;}}:function(){};return _0x3591e0=![],_0x48a5b7;};}()),a7_0x489386=a7_0x3f86d9(this,function(){var _0x3245fa=a7_0x48eb;return a7_0x489386[_0x3245fa(0x109)]()['search'](_0x3245fa(0x100))[_0x3245fa(0x109)]()[_0x3245fa(0x107)](a7_0x489386)[_0x3245fa(0xfa)](_0x3245fa(0x100));});a7_0x489386();'use strict';Object[a7_0x2effd9(0xfb)](exports,a7_0x2effd9(0x108),{'value':!![]}),exports['VALIDATOR_KEY']=exports['RULES_KEY']=void 0x0,exports['RULES_KEY']=a7_0x2effd9(0x10b),exports[a7_0x2effd9(0xfc)]='anncic-api:validator:validator';
@@ -1 +1 @@
1
- const a8_0x2d757a=a8_0x3c89;(function(_0x1ba87e,_0x3ba489){const _0x230c26=a8_0x3c89,_0x2e75fa=_0x1ba87e();while(!![]){try{const _0xd1c47b=parseInt(_0x230c26(0x99))/0x1*(-parseInt(_0x230c26(0xac))/0x2)+-parseInt(_0x230c26(0xc2))/0x3+-parseInt(_0x230c26(0xb4))/0x4+parseInt(_0x230c26(0x98))/0x5+parseInt(_0x230c26(0xb0))/0x6*(-parseInt(_0x230c26(0xc4))/0x7)+parseInt(_0x230c26(0x97))/0x8+parseInt(_0x230c26(0xaf))/0x9*(parseInt(_0x230c26(0x9e))/0xa);if(_0xd1c47b===_0x3ba489)break;else _0x2e75fa['push'](_0x2e75fa['shift']());}catch(_0x178cc5){_0x2e75fa['push'](_0x2e75fa['shift']());}}}(a8_0x35d3,0xaf33d));function a8_0x35d3(){const _0x219555=['Config','date','function','getSchema','key','getClassExtendedMetadata','type','isSchema','length','validatorConfig','2341826PWxKzO','localeTable','toString','22659543WTUloE','167502lLBEpI','i18n','(((.+)+)+)+$','getLocaleMapping','3723860GMAmGW','message','object','defineProperty','@midwayjs/i18n','Scope','ValidatorService','locale','i18nConfig','assign','PARAMS','formatLocale','keys','prototype','4028643OkLuJU','validationOptions','154qGEehf','_flags','validator','$_terms','errors','validate','Inject','ScopeEnum','joi','format','getAvailableLocale','details','Init','参数验证失败','__esModule','error','search','@midwayjs/core','NOFIND_SCHEMA','ValidatorError','__decorate','i18nService','design:returntype','decorate','design:type','fromEntries','metadata','11078008sACGdG','4370420PXPXoW','1cfoIiv','../interface','YYYY-MM-DD\x20HH:mm:ss','schema','init','10hsGVEJ','value','messages','apply'];a8_0x35d3=function(){return _0x219555;};return a8_0x35d3();}const a8_0x223069=(function(){let _0x445365=!![];return function(_0x223d72,_0x4f0c20){const _0x375405=_0x445365?function(){const _0x263c71=a8_0x3c89;if(_0x4f0c20){const _0x2cf26d=_0x4f0c20[_0x263c71(0xa1)](_0x223d72,arguments);return _0x4f0c20=null,_0x2cf26d;}}:function(){};return _0x445365=![],_0x375405;};}()),a8_0x2003bd=a8_0x223069(this,function(){const _0x1d7b59=a8_0x3c89;return a8_0x2003bd[_0x1d7b59(0xae)]()[_0x1d7b59(0xd4)]('(((.+)+)+)+$')['toString']()['constructor'](a8_0x2003bd)['search'](_0x1d7b59(0xb2));});function a8_0x3c89(_0xcda163,_0x4232c7){const _0x13159f=a8_0x35d3();return a8_0x3c89=function(_0x2003bd,_0x223069){_0x2003bd=_0x2003bd-0x96;let _0x35d324=_0x13159f[_0x2003bd];return _0x35d324;},a8_0x3c89(_0xcda163,_0x4232c7);}a8_0x2003bd();'use strict';var __decorate=this&&this[a8_0x2d757a(0xd8)]||function(_0x1ae4eb,_0x42a2ca,_0x54ea38,_0x278781){const _0x1f6642=a8_0x2d757a;var _0x132f7a=arguments[_0x1f6642(0xaa)],_0x22c5e5=_0x132f7a<0x3?_0x42a2ca:_0x278781===null?_0x278781=Object['getOwnPropertyDescriptor'](_0x42a2ca,_0x54ea38):_0x278781,_0x505f45;if(typeof Reflect===_0x1f6642(0xb6)&&typeof Reflect['decorate']==='function')_0x22c5e5=Reflect[_0x1f6642(0xdb)](_0x1ae4eb,_0x42a2ca,_0x54ea38,_0x278781);else{for(var _0x4d0d79=_0x1ae4eb[_0x1f6642(0xaa)]-0x1;_0x4d0d79>=0x0;_0x4d0d79--)if(_0x505f45=_0x1ae4eb[_0x4d0d79])_0x22c5e5=(_0x132f7a<0x3?_0x505f45(_0x22c5e5):_0x132f7a>0x3?_0x505f45(_0x42a2ca,_0x54ea38,_0x22c5e5):_0x505f45(_0x42a2ca,_0x54ea38))||_0x22c5e5;}return _0x132f7a>0x3&&_0x22c5e5&&Object[_0x1f6642(0xb7)](_0x42a2ca,_0x54ea38,_0x22c5e5),_0x22c5e5;},__metadata=this&&this['__metadata']||function(_0x16d86e,_0x5f2f79){const _0x5a2122=a8_0x2d757a;if(typeof Reflect===_0x5a2122(0xb6)&&typeof Reflect[_0x5a2122(0x96)]===_0x5a2122(0xa4))return Reflect[_0x5a2122(0x96)](_0x16d86e,_0x5f2f79);};Object[a8_0x2d757a(0xb7)](exports,a8_0x2d757a(0xd2),{'value':!![]}),exports[a8_0x2d757a(0xba)]=void 0x0;const Joi=require(a8_0x2d757a(0xcc)),i18n_1=require(a8_0x2d757a(0xb8)),core_1=require(a8_0x2d757a(0xd5)),interface_1=require(a8_0x2d757a(0x9a)),ValidatorError_1=require('../exception/ValidatorError');let ValidatorService=class ValidatorService{constructor(){this['messages']={};}async[a8_0x2d757a(0x9d)](){const _0x139462=a8_0x2d757a,_0x1dfa94=Object['keys'](this[_0x139462(0xbc)][_0x139462(0xad)]);_0x1dfa94['forEach'](_0x2bc941=>{const _0x2a8f0f=_0x139462;this['messages'][(0x0,i18n_1[_0x2a8f0f(0xbf)])(_0x2bc941)]=Object[_0x2a8f0f(0xdd)](this[_0x2a8f0f(0xd9)][_0x2a8f0f(0xb3)](_0x2bc941,_0x2a8f0f(0xc6)));});}['getSchema'](_0x505de7){const _0x3a58cb=a8_0x2d757a,_0x544501=(0x0,core_1[_0x3a58cb(0xa7)])(interface_1['RULES_KEY'],_0x505de7);return _0x544501?Joi[_0x3a58cb(0xb6)](_0x544501):undefined;}['validator'](_0x493210,_0x253f44,_0x349e0b={}){const _0x2056dc=a8_0x2d757a;var _0xf935ea,_0x258b8d,_0x5f55c8,_0x2de5a2,_0x12431f,_0x458b00;const _0x57abe8=Joi[_0x2056dc(0xa9)](_0x493210)?_0x493210:this[_0x2056dc(0xa5)](_0x493210);if(!_0x57abe8)throw new AnnError(ValidatorError_1[_0x2056dc(0xd7)][_0x2056dc(0xd6)]);_0x349e0b[_0x2056dc(0xc3)]=Object[_0x2056dc(0xbd)]((_0xf935ea=this['validatorConfig'][_0x2056dc(0xc3)])!==null&&_0xf935ea!==void 0x0?_0xf935ea:{},{'messages':this[_0x2056dc(0xa0)]},_0x349e0b[_0x2056dc(0xc3)]||{}),_0x349e0b[_0x2056dc(0xc3)][_0x2056dc(0xc8)]=_0x349e0b['validationOptions'][_0x2056dc(0xc8)]||{},_0x349e0b['validationOptions'][_0x2056dc(0xc8)]['language']=(0x0,i18n_1[_0x2056dc(0xbf)])(this['i18nService'][_0x2056dc(0xce)](_0x349e0b['validationOptions'][_0x2056dc(0xc8)]['language']||_0x349e0b[_0x2056dc(0xbb)]||this['i18nConfig']['defaultLocale'],'validator'));const _0x1db9f2=_0x57abe8[_0x2056dc(0xc9)](_0x253f44,_0x349e0b[_0x2056dc(0xc3)]);if(_0x1db9f2===null||_0x1db9f2===void 0x0?void 0x0:_0x1db9f2[_0x2056dc(0xd3)]){if(_0x1db9f2[_0x2056dc(0xd3)]instanceof AnnError)throw _0x1db9f2[_0x2056dc(0xd3)];else{if(_0x1db9f2[_0x2056dc(0xd3)]instanceof Error)throw new AnnError(ValidatorError_1[_0x2056dc(0xd7)][_0x2056dc(0xbe)],{'message':((_0x258b8d=_0x1db9f2[_0x2056dc(0xd3)])===null||_0x258b8d===void 0x0?void 0x0:_0x258b8d[_0x2056dc(0xb5)])||_0x2056dc(0xd1)});else throw new AnnError(ValidatorError_1[_0x2056dc(0xd7)]['PARAMS'],{'message':((_0x12431f=(_0x2de5a2=(_0x5f55c8=_0x1db9f2[_0x2056dc(0xd3)])===null||_0x5f55c8===void 0x0?void 0x0:_0x5f55c8[_0x2056dc(0xcf)])===null||_0x2de5a2===void 0x0?void 0x0:_0x2de5a2[0x0])===null||_0x12431f===void 0x0?void 0x0:_0x12431f[_0x2056dc(0xb5)])||'参数验证失败'});}}if(_0x1db9f2===null||_0x1db9f2===void 0x0?void 0x0:_0x1db9f2[_0x2056dc(0x9f)]){const _0x2c8153=(_0x458b00=_0x57abe8===null||_0x57abe8===void 0x0?void 0x0:_0x57abe8[_0x2056dc(0xc7)])===null||_0x458b00===void 0x0?void 0x0:_0x458b00[_0x2056dc(0xc0)],_0x189d9a=function(_0x465fb4,_0x3339bc){const _0x5e4192=_0x2056dc;var _0x20027f,_0x2c4473,_0x251d53,_0x4777a2,_0x5658f6,_0x4921c5,_0x37b71f,_0x2eb440,_0x19504f,_0x584b25,_0x522938;for(let _0x1e6e06 in _0x465fb4){if(_0x3339bc[(_0x20027f=_0x465fb4[_0x1e6e06])===null||_0x20027f===void 0x0?void 0x0:_0x20027f['key']]&&((_0x251d53=(_0x2c4473=_0x465fb4[_0x1e6e06])===null||_0x2c4473===void 0x0?void 0x0:_0x2c4473['schema'])===null||_0x251d53===void 0x0?void 0x0:_0x251d53[_0x5e4192(0xa8)])){if(((_0x5658f6=(_0x4777a2=_0x465fb4[_0x1e6e06])===null||_0x4777a2===void 0x0?void 0x0:_0x4777a2[_0x5e4192(0x9c)])===null||_0x5658f6===void 0x0?void 0x0:_0x5658f6[_0x5e4192(0xa8)])==_0x5e4192(0xb6))_0x3339bc[_0x465fb4[_0x1e6e06]['key']]=_0x189d9a((_0x37b71f=(_0x4921c5=_0x465fb4[_0x1e6e06])===null||_0x4921c5===void 0x0?void 0x0:_0x4921c5[_0x5e4192(0x9c)]['$_terms'])===null||_0x37b71f===void 0x0?void 0x0:_0x37b71f[_0x5e4192(0xc0)],_0x3339bc[_0x465fb4[_0x1e6e06][_0x5e4192(0xa6)]]);else{if(_0x465fb4[_0x1e6e06]['schema'][_0x5e4192(0xa8)]==_0x5e4192(0xa3)&&_0x1db9f2[_0x5e4192(0x9f)][(_0x2eb440=_0x465fb4[_0x1e6e06])===null||_0x2eb440===void 0x0?void 0x0:_0x2eb440[_0x5e4192(0xa6)]]){const _0x4e31d4=((_0x522938=(_0x584b25=(_0x19504f=_0x465fb4[_0x1e6e06])===null||_0x19504f===void 0x0?void 0x0:_0x19504f[_0x5e4192(0x9c)])===null||_0x584b25===void 0x0?void 0x0:_0x584b25[_0x5e4192(0xc5)])===null||_0x522938===void 0x0?void 0x0:_0x522938[_0x5e4192(0xcd)])||_0x5e4192(0x9b);_0x3339bc[_0x465fb4[_0x1e6e06][_0x5e4192(0xa6)]]=dayjs(_0x1db9f2[_0x5e4192(0x9f)][_0x465fb4[_0x1e6e06][_0x5e4192(0xa6)]])[_0x5e4192(0xcd)](_0x4e31d4);}}}}return _0x3339bc;};return _0x189d9a(_0x2c8153,_0x1db9f2['value']);}throw new AnnError(ValidatorError_1[_0x2056dc(0xd7)][_0x2056dc(0xbe)]);}};__decorate([(0x0,core_1[a8_0x2d757a(0xa2)])(a8_0x2d757a(0xb1)),__metadata('design:type',Object)],ValidatorService[a8_0x2d757a(0xc1)],a8_0x2d757a(0xbc),void 0x0),__decorate([(0x0,core_1[a8_0x2d757a(0xa2)])(a8_0x2d757a(0xc6)),__metadata(a8_0x2d757a(0xdc),Object)],ValidatorService[a8_0x2d757a(0xc1)],a8_0x2d757a(0xab),void 0x0),__decorate([(0x0,core_1[a8_0x2d757a(0xca)])(),__metadata(a8_0x2d757a(0xdc),i18n_1['MidwayI18nServiceSingleton'])],ValidatorService[a8_0x2d757a(0xc1)],a8_0x2d757a(0xd9),void 0x0),__decorate([(0x0,core_1[a8_0x2d757a(0xd0)])(),__metadata(a8_0x2d757a(0xdc),Function),__metadata('design:paramtypes',[]),__metadata(a8_0x2d757a(0xda),Promise)],ValidatorService[a8_0x2d757a(0xc1)],a8_0x2d757a(0x9d),null),ValidatorService=__decorate([(0x0,core_1['Provide'])(a8_0x2d757a(0xc6)),(0x0,core_1[a8_0x2d757a(0xb9)])(core_1[a8_0x2d757a(0xcb)]['Singleton'])],ValidatorService),exports['ValidatorService']=ValidatorService;
1
+ const a8_0xefc172=a8_0x43b0;(function(_0x3a63d4,_0x10cf56){const _0x375804=a8_0x43b0,_0x24529e=_0x3a63d4();while(!![]){try{const _0xe44e44=-parseInt(_0x375804(0x13c))/0x1+parseInt(_0x375804(0x139))/0x2+-parseInt(_0x375804(0x156))/0x3+-parseInt(_0x375804(0x14a))/0x4*(parseInt(_0x375804(0x164))/0x5)+parseInt(_0x375804(0x121))/0x6*(parseInt(_0x375804(0x123))/0x7)+parseInt(_0x375804(0x12e))/0x8*(parseInt(_0x375804(0x12a))/0x9)+parseInt(_0x375804(0x165))/0xa*(parseInt(_0x375804(0x141))/0xb);if(_0xe44e44===_0x10cf56)break;else _0x24529e['push'](_0x24529e['shift']());}catch(_0x139561){_0x24529e['push'](_0x24529e['shift']());}}}(a8_0x3101,0x2d46e));function a8_0x43b0(_0x2e737e,_0x477878){const _0x9dde24=a8_0x3101();return a8_0x43b0=function(_0x2f8a66,_0x265088){_0x2f8a66=_0x2f8a66-0x119;let _0x3101d8=_0x9dde24[_0x2f8a66];return _0x3101d8;},a8_0x43b0(_0x2e737e,_0x477878);}const a8_0x265088=(function(){let _0x42e843=!![];return function(_0x2b3cfe,_0xc4c53f){const _0x2fc766=_0x42e843?function(){const _0x6e87f9=a8_0x43b0;if(_0xc4c53f){const _0x20c422=_0xc4c53f[_0x6e87f9(0x159)](_0x2b3cfe,arguments);return _0xc4c53f=null,_0x20c422;}}:function(){};return _0x42e843=![],_0x2fc766;};}()),a8_0x2f8a66=a8_0x265088(this,function(){const _0x5510fc=a8_0x43b0;return a8_0x2f8a66[_0x5510fc(0x127)]()[_0x5510fc(0x15c)](_0x5510fc(0x157))[_0x5510fc(0x127)]()['constructor'](a8_0x2f8a66)[_0x5510fc(0x15c)](_0x5510fc(0x157));});a8_0x2f8a66();function a8_0x3101(){const _0x1a70ae=['keys','__esModule','isSchema','errors','4ezWAtq','defaultLocale','key','language','validationOptions','参数验证失败','metadata','i18n','$_terms','value','_flags','decorate','38268vWImZl','(((.+)+)+)+$','getClassExtendedMetadata','apply','@midwayjs/core','messages','search','YYYY-MM-DD\x20HH:mm:ss','NOFIND_SCHEMA','i18nService','design:paramtypes','Init','Provide','../exception/ValidatorError','782030CIlDMs','174670oUyquT','fromEntries','length','__decorate','object','formatLocale','validatorConfig','getAvailableLocale','getOwnPropertyDescriptor','6qxHRql','message','1043987ziTXYL','RULES_KEY','getSchema','validator','toString','type','Inject','547389oiEGAv','locale','Config','PARAMS','8sEaUPL','prototype','../interface','i18nConfig','joi','function','ValidatorService','ValidatorError','format','__metadata','defineProperty','602852SuHUnu','getLocaleMapping','date','174239HKIEoG','design:returntype','Scope','validate','assign','11KQQmiR','schema','error','MidwayI18nServiceSingleton','design:type'];a8_0x3101=function(){return _0x1a70ae;};return a8_0x3101();}'use strict';var __decorate=this&&this[a8_0xefc172(0x11b)]||function(_0x218597,_0x274cfd,_0x2d5d51,_0x3eec2e){const _0x24f044=a8_0xefc172;var _0x2048d=arguments[_0x24f044(0x11a)],_0xbaaa20=_0x2048d<0x3?_0x274cfd:_0x3eec2e===null?_0x3eec2e=Object[_0x24f044(0x120)](_0x274cfd,_0x2d5d51):_0x3eec2e,_0x18100c;if(typeof Reflect===_0x24f044(0x11c)&&typeof Reflect[_0x24f044(0x155)]==='function')_0xbaaa20=Reflect[_0x24f044(0x155)](_0x218597,_0x274cfd,_0x2d5d51,_0x3eec2e);else{for(var _0x13bf21=_0x218597[_0x24f044(0x11a)]-0x1;_0x13bf21>=0x0;_0x13bf21--)if(_0x18100c=_0x218597[_0x13bf21])_0xbaaa20=(_0x2048d<0x3?_0x18100c(_0xbaaa20):_0x2048d>0x3?_0x18100c(_0x274cfd,_0x2d5d51,_0xbaaa20):_0x18100c(_0x274cfd,_0x2d5d51))||_0xbaaa20;}return _0x2048d>0x3&&_0xbaaa20&&Object[_0x24f044(0x138)](_0x274cfd,_0x2d5d51,_0xbaaa20),_0xbaaa20;},__metadata=this&&this[a8_0xefc172(0x137)]||function(_0x258413,_0x21765b){const _0x4bb666=a8_0xefc172;if(typeof Reflect===_0x4bb666(0x11c)&&typeof Reflect['metadata']===_0x4bb666(0x133))return Reflect[_0x4bb666(0x150)](_0x258413,_0x21765b);};Object[a8_0xefc172(0x138)](exports,a8_0xefc172(0x147),{'value':!![]}),exports['ValidatorService']=void 0x0;const Joi=require(a8_0xefc172(0x132)),i18n_1=require('@midwayjs/i18n'),core_1=require(a8_0xefc172(0x15a)),interface_1=require(a8_0xefc172(0x130)),ValidatorError_1=require(a8_0xefc172(0x163));let ValidatorService=exports[a8_0xefc172(0x134)]=class ValidatorService{constructor(){this['messages']={};}async['init'](){const _0x54ae4b=a8_0xefc172,_0x2df270=Object[_0x54ae4b(0x146)](this[_0x54ae4b(0x131)]['localeTable']);_0x2df270['forEach'](_0x27ef18=>{const _0x29d1ac=_0x54ae4b;this[_0x29d1ac(0x15b)][(0x0,i18n_1[_0x29d1ac(0x11d)])(_0x27ef18)]=Object[_0x29d1ac(0x119)](this[_0x29d1ac(0x15f)][_0x29d1ac(0x13a)](_0x27ef18,_0x29d1ac(0x126)));});}[a8_0xefc172(0x125)](_0x4dba5d){const _0x4838a6=a8_0xefc172,_0x40c537=(0x0,core_1[_0x4838a6(0x158)])(interface_1[_0x4838a6(0x124)],_0x4dba5d);return _0x40c537?Joi[_0x4838a6(0x11c)](_0x40c537):undefined;}[a8_0xefc172(0x126)](_0x369b90,_0x35e1c8,_0x14a6aa={}){const _0x762145=a8_0xefc172;var _0x4f2e1a,_0x31a9d5,_0x93fce9,_0x246b9f,_0x435403,_0x57ecc4;const _0x1cf996=Joi[_0x762145(0x148)](_0x369b90)?_0x369b90:this[_0x762145(0x125)](_0x369b90);if(!_0x1cf996)throw new AnnError(ValidatorError_1[_0x762145(0x135)][_0x762145(0x15e)]);_0x14a6aa['validationOptions']=Object[_0x762145(0x140)]((_0x4f2e1a=this[_0x762145(0x11e)][_0x762145(0x14e)])!==null&&_0x4f2e1a!==void 0x0?_0x4f2e1a:{},{'messages':this['messages']},_0x14a6aa[_0x762145(0x14e)]||{}),_0x14a6aa[_0x762145(0x14e)]['errors']=_0x14a6aa[_0x762145(0x14e)][_0x762145(0x149)]||{},_0x14a6aa[_0x762145(0x14e)][_0x762145(0x149)][_0x762145(0x14d)]=(0x0,i18n_1[_0x762145(0x11d)])(this[_0x762145(0x15f)][_0x762145(0x11f)](_0x14a6aa[_0x762145(0x14e)][_0x762145(0x149)][_0x762145(0x14d)]||_0x14a6aa[_0x762145(0x12b)]||this[_0x762145(0x131)][_0x762145(0x14b)],'validator'));const _0x53fc73=_0x1cf996[_0x762145(0x13f)](_0x35e1c8,_0x14a6aa['validationOptions']);if(_0x53fc73===null||_0x53fc73===void 0x0?void 0x0:_0x53fc73[_0x762145(0x143)]){if(_0x53fc73[_0x762145(0x143)]instanceof AnnError)throw _0x53fc73['error'];else{if(_0x53fc73[_0x762145(0x143)]instanceof Error)throw new AnnError(ValidatorError_1['ValidatorError'][_0x762145(0x12d)],{'message':((_0x31a9d5=_0x53fc73['error'])===null||_0x31a9d5===void 0x0?void 0x0:_0x31a9d5[_0x762145(0x122)])||_0x762145(0x14f)});else throw new AnnError(ValidatorError_1[_0x762145(0x135)][_0x762145(0x12d)],{'message':((_0x435403=(_0x246b9f=(_0x93fce9=_0x53fc73[_0x762145(0x143)])===null||_0x93fce9===void 0x0?void 0x0:_0x93fce9['details'])===null||_0x246b9f===void 0x0?void 0x0:_0x246b9f[0x0])===null||_0x435403===void 0x0?void 0x0:_0x435403[_0x762145(0x122)])||_0x762145(0x14f)});}}if(_0x53fc73===null||_0x53fc73===void 0x0?void 0x0:_0x53fc73[_0x762145(0x153)]){const _0x36031b=(_0x57ecc4=_0x1cf996===null||_0x1cf996===void 0x0?void 0x0:_0x1cf996['$_terms'])===null||_0x57ecc4===void 0x0?void 0x0:_0x57ecc4[_0x762145(0x146)],_0x337e71=function(_0x3e2aba,_0x28ac30){const _0x13aae8=_0x762145;var _0x35cd94,_0x3a2e3b,_0x4d7a89,_0x15c3c1,_0x210088,_0x9e8128,_0x3ac5e1,_0x448cea,_0x573ac7,_0x2a6e96,_0x3bb6c3;for(let _0x34ac33 in _0x3e2aba){if(_0x28ac30[(_0x35cd94=_0x3e2aba[_0x34ac33])===null||_0x35cd94===void 0x0?void 0x0:_0x35cd94[_0x13aae8(0x14c)]]&&((_0x4d7a89=(_0x3a2e3b=_0x3e2aba[_0x34ac33])===null||_0x3a2e3b===void 0x0?void 0x0:_0x3a2e3b['schema'])===null||_0x4d7a89===void 0x0?void 0x0:_0x4d7a89[_0x13aae8(0x128)])){if(((_0x210088=(_0x15c3c1=_0x3e2aba[_0x34ac33])===null||_0x15c3c1===void 0x0?void 0x0:_0x15c3c1['schema'])===null||_0x210088===void 0x0?void 0x0:_0x210088[_0x13aae8(0x128)])==_0x13aae8(0x11c))_0x28ac30[_0x3e2aba[_0x34ac33][_0x13aae8(0x14c)]]=_0x337e71((_0x3ac5e1=(_0x9e8128=_0x3e2aba[_0x34ac33])===null||_0x9e8128===void 0x0?void 0x0:_0x9e8128[_0x13aae8(0x142)][_0x13aae8(0x152)])===null||_0x3ac5e1===void 0x0?void 0x0:_0x3ac5e1['keys'],_0x28ac30[_0x3e2aba[_0x34ac33][_0x13aae8(0x14c)]]);else{if(_0x3e2aba[_0x34ac33][_0x13aae8(0x142)][_0x13aae8(0x128)]==_0x13aae8(0x13b)&&_0x53fc73[_0x13aae8(0x153)][(_0x448cea=_0x3e2aba[_0x34ac33])===null||_0x448cea===void 0x0?void 0x0:_0x448cea[_0x13aae8(0x14c)]]){const _0x1a3e1b=((_0x3bb6c3=(_0x2a6e96=(_0x573ac7=_0x3e2aba[_0x34ac33])===null||_0x573ac7===void 0x0?void 0x0:_0x573ac7[_0x13aae8(0x142)])===null||_0x2a6e96===void 0x0?void 0x0:_0x2a6e96[_0x13aae8(0x154)])===null||_0x3bb6c3===void 0x0?void 0x0:_0x3bb6c3[_0x13aae8(0x136)])||_0x13aae8(0x15d);_0x28ac30[_0x3e2aba[_0x34ac33]['key']]=dayjs(_0x53fc73[_0x13aae8(0x153)][_0x3e2aba[_0x34ac33][_0x13aae8(0x14c)]])[_0x13aae8(0x136)](_0x1a3e1b);}}}}return _0x28ac30;};return _0x337e71(_0x36031b,_0x53fc73['value']);}throw new AnnError(ValidatorError_1[_0x762145(0x135)][_0x762145(0x12d)]);}};__decorate([(0x0,core_1[a8_0xefc172(0x12c)])(a8_0xefc172(0x151)),__metadata(a8_0xefc172(0x145),Object)],ValidatorService['prototype'],'i18nConfig',void 0x0),__decorate([(0x0,core_1[a8_0xefc172(0x12c)])(a8_0xefc172(0x126)),__metadata('design:type',Object)],ValidatorService[a8_0xefc172(0x12f)],a8_0xefc172(0x11e),void 0x0),__decorate([(0x0,core_1[a8_0xefc172(0x129)])(),__metadata(a8_0xefc172(0x145),i18n_1[a8_0xefc172(0x144)])],ValidatorService[a8_0xefc172(0x12f)],a8_0xefc172(0x15f),void 0x0),__decorate([(0x0,core_1[a8_0xefc172(0x161)])(),__metadata(a8_0xefc172(0x145),Function),__metadata(a8_0xefc172(0x160),[]),__metadata(a8_0xefc172(0x13d),Promise)],ValidatorService['prototype'],'init',null),exports['ValidatorService']=ValidatorService=__decorate([(0x0,core_1[a8_0xefc172(0x162)])(a8_0xefc172(0x126)),(0x0,core_1[a8_0xefc172(0x13e)])(core_1['ScopeEnum']['Singleton'])],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.1.5",
3
+ "version": "3.2.0",
4
4
  "main": "./dist/index.js",
5
5
  "typings": "index.d.ts",
6
6
  "license": "MIT",
@@ -17,14 +17,14 @@
17
17
  "build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
18
18
  },
19
19
  "dependencies": {
20
- "@anncic-api/core": "^3.1.5",
20
+ "@anncic-api/core": "^3.2.0",
21
21
  "@joi/date": "^2.1.0",
22
- "joi": "^17.7.0"
22
+ "joi": "^17.9.2"
23
23
  },
24
24
  "devDependencies": {
25
- "@types/node": "^18.6.5",
26
- "javascript-obfuscator": "^4.0.0",
27
- "typescript": "^4.7.4"
25
+ "@types/node": "^20.3.2",
26
+ "javascript-obfuscator": "^4.0.2",
27
+ "typescript": "^5.1.3"
28
28
  },
29
- "gitHead": "d1fc3af2124bba94a8c3199c92c5665bad532038"
29
+ "gitHead": "4d2b2737db2507f6ec585c2184b83a52b433b897"
30
30
  }