@anncic-api/validator 3.1.5 → 3.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- const a0_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_0x51e6d1=a0_0x4f9e;function a0_0x4f9e(_0x3c00be,_0x4ea036){const _0x4c6a6e=a0_0x34fc();return a0_0x4f9e=function(_0xa08897,_0x53ef88){_0xa08897=_0xa08897-0x113;let _0x34fce7=_0x4c6a6e[_0xa08897];return _0x34fce7;},a0_0x4f9e(_0x3c00be,_0x4ea036);}(function(_0x26fedf,_0x112b7e){const _0x147c69=a0_0x4f9e,_0x332cda=_0x26fedf();while(!![]){try{const _0x5a43a8=parseInt(_0x147c69(0x127))/0x1*(-parseInt(_0x147c69(0x12a))/0x2)+parseInt(_0x147c69(0x124))/0x3*(-parseInt(_0x147c69(0x129))/0x4)+parseInt(_0x147c69(0x116))/0x5*(-parseInt(_0x147c69(0x11f))/0x6)+parseInt(_0x147c69(0x11d))/0x7*(-parseInt(_0x147c69(0x119))/0x8)+-parseInt(_0x147c69(0x117))/0x9+parseInt(_0x147c69(0x120))/0xa*(-parseInt(_0x147c69(0x11a))/0xb)+parseInt(_0x147c69(0x125))/0xc;if(_0x5a43a8===_0x112b7e)break;else _0x332cda['push'](_0x332cda['shift']());}catch(_0x5b0a4f){_0x332cda['push'](_0x332cda['shift']());}}}(a0_0x34fc,0x1ace7));const a0_0x53ef88=(function(){let _0xac85fe=!![];return function(_0x928f1d,_0x181757){const _0x256619=_0xac85fe?function(){const _0x495981=a0_0x4f9e;if(_0x181757){const _0x5b3655=_0x181757[_0x495981(0x128)](_0x928f1d,arguments);return _0x181757=null,_0x5b3655;}}:function(){};return _0xac85fe=![],_0x256619;};}()),a0_0xa08897=a0_0x53ef88(this,function(){const _0x47db2a=a0_0x4f9e;return a0_0xa08897[_0x47db2a(0x113)]()[_0x47db2a(0x11b)](_0x47db2a(0x118))[_0x47db2a(0x113)]()[_0x47db2a(0x123)](a0_0xa08897)[_0x47db2a(0x11b)](_0x47db2a(0x118));});a0_0xa08897();'use strict';function a0_0x34fc(){const _0x2922f4=['../../locales/zh_CN.json','../../locales/en_US.json','5095MJPCkZ','1020726DQzkOn','(((.+)+)+)+$','8BNskRt','121lfhpej','search','__esModule','1195411gLqewa','default','1194iRRGvz','181640EzzQws','PARAMS','string','constructor','24TgbdRA','10359648qzkKBe','defineProperty','2683vLADKH','apply','23976ygjCxu','14FREAKG','toString'];a0_0x34fc=function(){return _0x2922f4;};return a0_0x34fc();}Object[a0_0x51e6d1(0x126)](exports,a0_0x51e6d1(0x11c),{'value':!![]});const ValidatorError_1=require('../exception/ValidatorError');exports[a0_0x51e6d1(0x11e)]={'validator':{'errorStatus':ValidatorError_1['ValidatorError'][a0_0x51e6d1(0x121)],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':a0_0x51e6d1(0x122)}},'i18n':{'localeTable':{'en_US':{'validator':require(a0_0x51e6d1(0x115))},'zh_CN':{'validator':require(a0_0x51e6d1(0x114))}}}};
@@ -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_0x3f6658=a1_0x11fa;function a1_0x9b1f(){const _0x3fd630=['6zoLWJf','apply','getMethodParamTypes','prototype','371xYtQPy','324MPyypw','method','__decorate','6184XTjFCH','707030otdZsJ','21athotM','43395GvRyMi','function','60viqtVs','Inject','metadata','onReady','defineProperty','Configuration','query','methodName','object','req','getAttr','decorate','__metadata','args','CustomConfiguration','getClassMetadata','toString','length','assign','MidwayDecoratorService','param','search','locale','getSchema','validator','__esModule','methodArgs','constructor','41172SqfFQY','params','find','@midwayjs/i18n','4684yveTCa','@anncic-api/core','./interface','@midwayjs/core','VALIDATOR_KEY','(((.+)+)+)+$','./config/config.default','registerMethodHandler','getOwnPropertyDescriptor','26118TPXNoz','decorator','target','res','21553fGoCos','ValidatorService','design:type','request','anncic-api:validator','./service/ValidatorService','bound\x20dispatch'];a1_0x9b1f=function(){return _0x3fd630;};return a1_0x9b1f();}(function(_0x36ad17,_0x35d3e2){const _0x5a6603=a1_0x11fa,_0x73e2f7=_0x36ad17();while(!![]){try{const _0x1ebcf2=parseInt(_0x5a6603(0xfd))/0x1+-parseInt(_0x5a6603(0xec))/0x2+-parseInt(_0x5a6603(0x10e))/0x3*(-parseInt(_0x5a6603(0xf0))/0x4)+-parseInt(_0x5a6603(0x10d))/0x5*(-parseInt(_0x5a6603(0x104))/0x6)+-parseInt(_0x5a6603(0x108))/0x7*(-parseInt(_0x5a6603(0x10c))/0x8)+-parseInt(_0x5a6603(0xf9))/0x9*(-parseInt(_0x5a6603(0x111))/0xa)+parseInt(_0x5a6603(0x10f))/0xb*(-parseInt(_0x5a6603(0x109))/0xc);if(_0x1ebcf2===_0x35d3e2)break;else _0x73e2f7['push'](_0x73e2f7['shift']());}catch(_0x59ea0e){_0x73e2f7['push'](_0x73e2f7['shift']());}}}(a1_0x9b1f,0x19024));const a1_0x5e5d8f=(function(){let _0x3af43b=!![];return function(_0x28e441,_0x30c1b1){const _0x42705d=_0x3af43b?function(){const _0x20f601=a1_0x11fa;if(_0x30c1b1){const _0x4d4091=_0x30c1b1[_0x20f601(0x105)](_0x28e441,arguments);return _0x30c1b1=null,_0x4d4091;}}:function(){};return _0x3af43b=![],_0x42705d;};}()),a1_0x1b8f64=a1_0x5e5d8f(this,function(){const _0x550df1=a1_0x11fa;return a1_0x1b8f64[_0x550df1(0xe0)]()[_0x550df1(0xe5)](_0x550df1(0xf5))[_0x550df1(0xe0)]()[_0x550df1(0xeb)](a1_0x1b8f64)['search']('(((.+)+)+)+$');});a1_0x1b8f64();'use strict';var __decorate=this&&this[a1_0x3f6658(0x10b)]||function(_0x32ae77,_0x5d8161,_0x35b89d,_0x443cbe){const _0x411ad4=a1_0x3f6658;var _0x784dd3=arguments['length'],_0x527745=_0x784dd3<0x3?_0x5d8161:_0x443cbe===null?_0x443cbe=Object[_0x411ad4(0xf8)](_0x5d8161,_0x35b89d):_0x443cbe,_0x30e2b0;if(typeof Reflect===_0x411ad4(0x119)&&typeof Reflect[_0x411ad4(0xdb)]===_0x411ad4(0x110))_0x527745=Reflect[_0x411ad4(0xdb)](_0x32ae77,_0x5d8161,_0x35b89d,_0x443cbe);else{for(var _0x7e6e1e=_0x32ae77[_0x411ad4(0xe1)]-0x1;_0x7e6e1e>=0x0;_0x7e6e1e--)if(_0x30e2b0=_0x32ae77[_0x7e6e1e])_0x527745=(_0x784dd3<0x3?_0x30e2b0(_0x527745):_0x784dd3>0x3?_0x30e2b0(_0x5d8161,_0x35b89d,_0x527745):_0x30e2b0(_0x5d8161,_0x35b89d))||_0x527745;}return _0x784dd3>0x3&&_0x527745&&Object['defineProperty'](_0x5d8161,_0x35b89d,_0x527745),_0x527745;},__metadata=this&&this[a1_0x3f6658(0xdc)]||function(_0x25b9fb,_0x5b7d2b){const _0x46f258=a1_0x3f6658;if(typeof Reflect==='object'&&typeof Reflect[_0x46f258(0x113)]===_0x46f258(0x110))return Reflect[_0x46f258(0x113)](_0x25b9fb,_0x5b7d2b);};Object[a1_0x3f6658(0x115)](exports,a1_0x3f6658(0xe9),{'value':!![]}),exports[a1_0x3f6658(0xde)]=void 0x0;const i18n_1=require(a1_0x3f6658(0xef)),core_1=require('@midwayjs/core'),core_2=require(a1_0x3f6658(0xf3)),interface_1=require(a1_0x3f6658(0xf2)),ValidatorService_1=require(a1_0x3f6658(0x102)),i18n=require(a1_0x3f6658(0xef)),anncic=require(a1_0x3f6658(0xf1)),ConfigDefault=require(a1_0x3f6658(0xf6));function a1_0x11fa(_0x47bf08,_0x38928e){const _0x33d5b9=a1_0x9b1f();return a1_0x11fa=function(_0x1b8f64,_0x5e5d8f){_0x1b8f64=_0x1b8f64-0xdb;let _0x9b1f59=_0x33d5b9[_0x1b8f64];return _0x9b1f59;},a1_0x11fa(_0x47bf08,_0x38928e);}let CustomConfiguration=exports['CustomConfiguration']=class CustomConfiguration{async[a1_0x3f6658(0x114)](){const _0x23ea37=a1_0x3f6658;this[_0x23ea37(0xfa)][_0x23ea37(0xf7)](interface_1[_0x23ea37(0xf4)],_0x5c358b=>{const _0x513071=_0x23ea37,_0x35ac06=_0x5c358b['metadata'],_0x5c0ca1=(0x0,core_2[_0x513071(0x106)])(_0x5c358b[_0x513071(0xfb)],_0x5c358b['propertyName']);return{'before':_0x3b2b6d=>{const _0x3e00b1=_0x513071;var _0x390a94,_0x542cea,_0x156242,_0x2da818,_0xf9d6e5,_0x2fdaa3,_0x1c0e9f,_0x2fdccd,_0x35d4bb,_0x397dc0,_0x4b3f,_0x430054,_0x135c94;const _0x4acd5b=_0x3b2b6d[_0x3e00b1(0xfb)][core_1['REQUEST_OBJ_CTX_KEY']],_0x156f7f=Object[_0x3e00b1(0xe2)]({},((_0x390a94=_0x4acd5b===null||_0x4acd5b===void 0x0?void 0x0:_0x4acd5b[_0x3e00b1(0x100)])===null||_0x390a94===void 0x0?void 0x0:_0x390a94[_0x3e00b1(0x117)])||{},((_0x542cea=_0x4acd5b===null||_0x4acd5b===void 0x0?void 0x0:_0x4acd5b['request'])===null||_0x542cea===void 0x0?void 0x0:_0x542cea['body'])||{}),_0x5e2cbb=((0x0,core_2[_0x3e00b1(0xdf)])(interface_1[_0x3e00b1(0xf4)],_0x3b2b6d['target'])||[])[_0x3e00b1(0xee)](_0x2eccc8=>_0x2eccc8[_0x3e00b1(0x10a)]==_0x3b2b6d[_0x3e00b1(0x118)]);!(_0x35ac06===null||_0x35ac06===void 0x0?void 0x0:_0x35ac06['locale'])&&_0x4acd5b&&_0x4acd5b[_0x3e00b1(0x11b)]&&(_0x35ac06[_0x3e00b1(0xe6)]=_0x4acd5b[_0x3e00b1(0x11b)](i18n_1['I18N_ATTR_KEY']));for(let _0x3fbaf7=0x0;_0x3fbaf7<_0x5c0ca1[_0x3e00b1(0xe1)];_0x3fbaf7++){const _0x1281ac=_0x5c0ca1[_0x3fbaf7],_0x1ad779=this[_0x3e00b1(0xfe)][_0x3e00b1(0xe7)](_0x1281ac);if(_0x1ad779){if(typeof _0x3b2b6d[_0x3e00b1(0xdd)][_0x3fbaf7]=='undefined'||((_0x156242=_0x3b2b6d[_0x3e00b1(0xdd)][_0x3fbaf7])===null||_0x156242===void 0x0?void 0x0:_0x156242[_0x3e00b1(0x100)])&&((_0x2da818=_0x3b2b6d[_0x3e00b1(0xdd)][_0x3fbaf7])===null||_0x2da818===void 0x0?void 0x0:_0x2da818[_0x3e00b1(0xfc)])&&((_0xf9d6e5=_0x3b2b6d[_0x3e00b1(0xdd)][_0x3fbaf7])===null||_0xf9d6e5===void 0x0?void 0x0:_0xf9d6e5[_0x3e00b1(0x11a)]))_0x3b2b6d[_0x3e00b1(0xdd)][_0x3fbaf7]=_0x156f7f;else((_0x2fdaa3=_0x3b2b6d[_0x3e00b1(0xdd)][_0x3fbaf7])===null||_0x2fdaa3===void 0x0?void 0x0:_0x2fdaa3['name'])==_0x3e00b1(0x103)&&_0x3b2b6d[_0x3e00b1(0xdd)]['splice'](_0x3fbaf7,0x0,_0x156f7f);const _0x255da3=this['ValidatorService'][_0x3e00b1(0xe8)](_0x1ad779,_0x3b2b6d[_0x3e00b1(0xdd)][_0x3fbaf7],_0x35ac06);_0x255da3&&(_0x3b2b6d[_0x3e00b1(0xdd)][_0x3fbaf7]=_0x255da3);}else{if((_0x5e2cbb===null||_0x5e2cbb===void 0x0?void 0x0:_0x5e2cbb['methodArgs'][_0x3fbaf7])&&((_0x1c0e9f=_0x3b2b6d[_0x3e00b1(0xdd)][_0x3fbaf7])===null||_0x1c0e9f===void 0x0?void 0x0:_0x1c0e9f[_0x3e00b1(0xed)])&&typeof _0x3b2b6d['args'][_0x3fbaf7][_0x3e00b1(0xe4)]=='function'&&((_0x2fdccd=_0x4acd5b===null||_0x4acd5b===void 0x0?void 0x0:_0x4acd5b[_0x3e00b1(0xed)])===null||_0x2fdccd===void 0x0?void 0x0:_0x2fdccd[_0x5e2cbb[_0x3e00b1(0xea)][_0x3fbaf7]]))_0x3b2b6d[_0x3e00b1(0xdd)][_0x3fbaf7]=_0x1281ac((_0x35d4bb=_0x4acd5b===null||_0x4acd5b===void 0x0?void 0x0:_0x4acd5b[_0x3e00b1(0xed)])===null||_0x35d4bb===void 0x0?void 0x0:_0x35d4bb[_0x5e2cbb[_0x3e00b1(0xea)][_0x3fbaf7]]);else(_0x5e2cbb===null||_0x5e2cbb===void 0x0?void 0x0:_0x5e2cbb[_0x3e00b1(0xea)][_0x3fbaf7])&&((_0x4b3f=(_0x397dc0=_0x3b2b6d[_0x3e00b1(0xdd)][_0x3fbaf7])===null||_0x397dc0===void 0x0?void 0x0:_0x397dc0[_0x3e00b1(0xed)])===null||_0x4b3f===void 0x0?void 0x0:_0x4b3f[_0x5e2cbb[_0x3e00b1(0xea)][_0x3fbaf7]])&&(_0x3b2b6d[_0x3e00b1(0xdd)][_0x3fbaf7]=(_0x135c94=(_0x430054=_0x3b2b6d[_0x3e00b1(0xdd)][_0x3fbaf7])===null||_0x430054===void 0x0?void 0x0:_0x430054[_0x3e00b1(0xed)])===null||_0x135c94===void 0x0?void 0x0:_0x135c94[_0x5e2cbb[_0x3e00b1(0xea)][_0x3fbaf7]]);}}},'afterThrow':(_0x27edb7,_0x23c48f)=>{throw _0x23c48f;}};});}};__decorate([(0x0,core_2[a1_0x3f6658(0x112)])(),__metadata(a1_0x3f6658(0xff),core_1[a1_0x3f6658(0xe3)])],CustomConfiguration[a1_0x3f6658(0x107)],a1_0x3f6658(0xfa),void 0x0),__decorate([(0x0,core_2[a1_0x3f6658(0x112)])(),__metadata(a1_0x3f6658(0xff),ValidatorService_1[a1_0x3f6658(0xfe)])],CustomConfiguration[a1_0x3f6658(0x107)],a1_0x3f6658(0xfe),void 0x0),exports['CustomConfiguration']=CustomConfiguration=__decorate([(0x0,core_2[a1_0x3f6658(0x116)])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':a1_0x3f6658(0x101),'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
+ function a2_0x50db(){const _0x4e7a05=['getPropertyType','keys','saveClassMetadata','1658146RLeOgo','6599180KXyqqj','meta','Rule','@midwayjs/core','attachClassMetadata','default','defineProperty','function','(((.+)+)+)+$','Array','1095173ubAHuD','constructor','map','apply','name','label','4068370TEocTq','@joi/date','joi','211347gTtxIJ','array','object','296YBawfP','extend','__esModule','2594169byYzhi','6OFPENw','isSchema','search','RULES_KEY','toString','RuleType','88aObgPh','56290dyPQEi','getClassMetadata'];a2_0x50db=function(){return _0x4e7a05;};return a2_0x50db();}const a2_0x577dd8=a2_0x2db6;(function(_0x5b41cd,_0x18a11f){const _0x34b19e=a2_0x2db6,_0x2aff7e=_0x5b41cd();while(!![]){try{const _0x109fa0=-parseInt(_0x34b19e(0xed))/0x1+-parseInt(_0x34b19e(0xe2))/0x2+parseInt(_0x34b19e(0xfc))/0x3+parseInt(_0x34b19e(0xdc))/0x4*(parseInt(_0x34b19e(0xdd))/0x5)+parseInt(_0x34b19e(0xd6))/0x6*(parseInt(_0x34b19e(0xe3))/0x7)+-parseInt(_0x34b19e(0xf9))/0x8*(-parseInt(_0x34b19e(0xf6))/0x9)+-parseInt(_0x34b19e(0xf3))/0xa;if(_0x109fa0===_0x18a11f)break;else _0x2aff7e['push'](_0x2aff7e['shift']());}catch(_0x3f1936){_0x2aff7e['push'](_0x2aff7e['shift']());}}}(a2_0x50db,0x90c1f));const a2_0x26ab93=(function(){let _0x59b6c9=!![];return function(_0x3ea159,_0xc9ed74){const _0x2fbfe5=_0x59b6c9?function(){const _0x122ef7=a2_0x2db6;if(_0xc9ed74){const _0x12d895=_0xc9ed74[_0x122ef7(0xf0)](_0x3ea159,arguments);return _0xc9ed74=null,_0x12d895;}}:function(){};return _0x59b6c9=![],_0x2fbfe5;};}()),a2_0x32f5c2=a2_0x26ab93(this,function(){const _0x2c62d2=a2_0x2db6;return a2_0x32f5c2[_0x2c62d2(0xda)]()['search'](_0x2c62d2(0xeb))[_0x2c62d2(0xda)]()[_0x2c62d2(0xee)](a2_0x32f5c2)[_0x2c62d2(0xd8)]('(((.+)+)+)+$');});a2_0x32f5c2();function a2_0x2db6(_0x5bad95,_0x3327ba){const _0x4fc598=a2_0x50db();return a2_0x2db6=function(_0x32f5c2,_0x26ab93){_0x32f5c2=_0x32f5c2-0xd6;let _0x50db3d=_0x4fc598[_0x32f5c2];return _0x50db3d;},a2_0x2db6(_0x5bad95,_0x3327ba);}'use strict';Object[a2_0x577dd8(0xe9)](exports,a2_0x577dd8(0xfb),{'value':!![]}),exports[a2_0x577dd8(0xe5)]=exports[a2_0x577dd8(0xdb)]=void 0x0;const joi=require(a2_0x577dd8(0xf5)),date_1=require(a2_0x577dd8(0xf4)),core_1=require(a2_0x577dd8(0xe6)),interface_1=require('../interface');exports[a2_0x577dd8(0xdb)]=joi[a2_0x577dd8(0xfa)](date_1[a2_0x577dd8(0xe8)]);function Rule(_0x5c9517,_0x4ec6b0,_0x4d24a8=''){return(_0x1888a3,_0x366e4a)=>{const _0x549291=a2_0x2db6;var _0x1feb3a;if(_0x366e4a)!joi['isSchema'](_0x4ec6b0)&&(_0x4ec6b0===null||_0x4ec6b0===void 0x0?void 0x0:_0x4ec6b0[_0x549291(0xf1)])&&(_0x4ec6b0=joi[_0x549291(0xf8)]((0x0,core_1[_0x549291(0xde)])(interface_1['RULES_KEY'],_0x4ec6b0))[_0x549291(0xe4)]({'id':_0x4ec6b0[_0x549291(0xf1)]}),(0x0,core_1[_0x549291(0xdf)])(_0x1888a3,_0x366e4a)[_0x549291(0xf1)]===_0x549291(0xec)&&(_0x4ec6b0=joi[_0x549291(0xf7)]()['items'](_0x4ec6b0))),joi[_0x549291(0xd7)](_0x4ec6b0)&&(_0x5c9517&&typeof(_0x4ec6b0===null||_0x4ec6b0===void 0x0?void 0x0:_0x4ec6b0[_0x549291(0xf2)])==_0x549291(0xea)&&(_0x4ec6b0=_0x4ec6b0['label'](_0x5c9517)),_0x4d24a8&&typeof(_0x4ec6b0===null||_0x4ec6b0===void 0x0?void 0x0:_0x4ec6b0['description'])==_0x549291(0xea)&&(_0x4ec6b0=_0x4ec6b0['description'](_0x4d24a8)),(0x0,core_1[_0x549291(0xe7)])(interface_1[_0x549291(0xd9)],_0x4ec6b0,_0x1888a3,_0x366e4a));else{const _0x94f728=(0x0,core_1[_0x549291(0xde)])(interface_1[_0x549291(0xd9)],_0x4ec6b0);if(_0x94f728){let _0x4b9c62=(_0x1feb3a=(0x0,core_1['getClassMetadata'])(interface_1[_0x549291(0xd9)],_0x1888a3))!==null&&_0x1feb3a!==void 0x0?_0x1feb3a:{};Object[_0x549291(0xe0)](_0x94f728)[_0x549291(0xef)](_0x46c6dc=>{!_0x4b9c62[_0x46c6dc]&&(_0x4b9c62[_0x46c6dc]=_0x94f728[_0x46c6dc]);}),(0x0,core_1[_0x549291(0xe1)])(interface_1[_0x549291(0xd9)],_0x4b9c62,_0x1888a3);}}};}exports[a2_0x577dd8(0xe5)]=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
+ const a3_0x141092=a3_0x4e59;(function(_0x568698,_0x4ee10b){const _0x3857c9=a3_0x4e59,_0x3d32c4=_0x568698();while(!![]){try{const _0x22f243=parseInt(_0x3857c9(0x157))/0x1+-parseInt(_0x3857c9(0x14a))/0x2+-parseInt(_0x3857c9(0x144))/0x3*(parseInt(_0x3857c9(0x156))/0x4)+parseInt(_0x3857c9(0x146))/0x5+-parseInt(_0x3857c9(0x154))/0x6+-parseInt(_0x3857c9(0x14d))/0x7*(parseInt(_0x3857c9(0x14f))/0x8)+-parseInt(_0x3857c9(0x149))/0x9*(-parseInt(_0x3857c9(0x143))/0xa);if(_0x22f243===_0x4ee10b)break;else _0x3d32c4['push'](_0x3d32c4['shift']());}catch(_0x107df2){_0x3d32c4['push'](_0x3d32c4['shift']());}}}(a3_0x2fb1,0x542ef));const a3_0x223ea8=(function(){let _0x3e5ac4=!![];return function(_0x224079,_0x206a62){const _0x110544=_0x3e5ac4?function(){if(_0x206a62){const _0x3054d6=_0x206a62['apply'](_0x224079,arguments);return _0x206a62=null,_0x3054d6;}}:function(){};return _0x3e5ac4=![],_0x110544;};}()),a3_0xddda03=a3_0x223ea8(this,function(){const _0x9ce4da=a3_0x4e59;return a3_0xddda03[_0x9ce4da(0x148)]()[_0x9ce4da(0x14c)]('(((.+)+)+)+$')[_0x9ce4da(0x148)]()[_0x9ce4da(0x147)](a3_0xddda03)[_0x9ce4da(0x14c)](_0x9ce4da(0x152));});a3_0xddda03();'use strict';Object[a3_0x141092(0x142)](exports,'__esModule',{'value':!![]}),exports['getFuncArgs']=exports[a3_0x141092(0x158)]=void 0x0;const core_1=require(a3_0x141092(0x159)),interface_1=require(a3_0x141092(0x141));function a3_0x2fb1(){const _0x3f3f99=['14385BNgXxY','indexOf','432pDcOae','attachClassMetadata','prototype','(((.+)+)+)+$','function','3214842bPncQd','createCustomMethodDecorator','723448atFLOy','314261yBECPH','Validator','@midwayjs/core','replace','../interface','defineProperty','10kSTByI','9dytJhW','slice','3348215McJgPd','constructor','toString','8281503XmQJzg','739786RGxRIV','VALIDATOR_KEY','search'];a3_0x2fb1=function(){return _0x3f3f99;};return a3_0x2fb1();}function Validator(_0x5eec00={}){return(_0x5ae274,_0x3df020,_0x301eee)=>{const _0x534986=a3_0x4e59,_0x4d1a20=getFuncArgs(_0x5ae274[_0x3df020]);(0x0,core_1[_0x534986(0x150)])(interface_1[_0x534986(0x14b)],{'method':_0x3df020,'methodArgs':_0x4d1a20},_0x5ae274),(0x0,core_1[_0x534986(0x155)])(interface_1[_0x534986(0x14b)],_0x5eec00)(_0x5ae274,_0x3df020,_0x301eee);};}function a3_0x4e59(_0x1d7b18,_0x45eeca){const _0x435180=a3_0x2fb1();return a3_0x4e59=function(_0xddda03,_0x223ea8){_0xddda03=_0xddda03-0x140;let _0x2fb105=_0x435180[_0xddda03];return _0x2fb105;},a3_0x4e59(_0x1d7b18,_0x45eeca);}exports[a3_0x141092(0x158)]=Validator;function getFuncArgs(_0x3f966a){const _0x305fc7=a3_0x141092;if(typeof _0x3f966a==_0x305fc7(0x153)){const _0x377e55=/=>.*$/mg,_0x33f5b4=/=[^,)]+/mg,_0xff7844=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x3af273=(_0x3f966a[_0x305fc7(0x151)]?_0x3f966a[_0x305fc7(0x151)][_0x305fc7(0x147)]['toString']():_0x3f966a[_0x305fc7(0x148)]())[_0x305fc7(0x140)](_0xff7844,'')[_0x305fc7(0x140)](_0x377e55,'')[_0x305fc7(0x140)](_0x33f5b4,''),_0x1a7d20=_0x3af273[_0x305fc7(0x145)](_0x3af273[_0x305fc7(0x14e)]('(')+0x1,_0x3af273[_0x305fc7(0x14e)](')'))['match'](/([^\s,]+)/g)||[];return _0x1a7d20;}}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_0x4e99(){var _0x215244=['__esModule','参数验证失败','metadata','ValidatorError','AnnErrorMsg','4lbqQxn','apply','58506gwHtie','length','object','toString','1365687WWmmow','(((.+)+)+)+$','function','11387043qtyaVq','8lUthRu','PARAMS','20KBlgHD','NOFIND_SCHEMA','212165hYgbtE','decorate','100673lfIkSy','13790CCJUUY','8305008cxYANZ','4422VkJpAV','203CsjYgt','__decorate','defineProperty','__metadata'];a4_0x4e99=function(){return _0x215244;};return a4_0x4e99();}var a4_0x891b95=a4_0x27a0;(function(_0x56b1d8,_0x35785b){var _0x20cc5d=a4_0x27a0,_0x18116f=_0x56b1d8();while(!![]){try{var _0x346409=-parseInt(_0x20cc5d(0xa0))/0x1*(-parseInt(_0x20cc5d(0x9c))/0x2)+-parseInt(_0x20cc5d(0x96))/0x3+-parseInt(_0x20cc5d(0xad))/0x4*(parseInt(_0x20cc5d(0x9e))/0x5)+-parseInt(_0x20cc5d(0x92))/0x6*(-parseInt(_0x20cc5d(0xa4))/0x7)+parseInt(_0x20cc5d(0x9a))/0x8*(parseInt(_0x20cc5d(0x99))/0x9)+parseInt(_0x20cc5d(0xa1))/0xa*(-parseInt(_0x20cc5d(0xa3))/0xb)+-parseInt(_0x20cc5d(0xa2))/0xc;if(_0x346409===_0x35785b)break;else _0x18116f['push'](_0x18116f['shift']());}catch(_0x395fcc){_0x18116f['push'](_0x18116f['shift']());}}}(a4_0x4e99,0xc5e88));var a4_0x184cf9=(function(){var _0x5b000e=!![];return function(_0xebdf11,_0x3365b1){var _0x121aed=_0x5b000e?function(){var _0x3c7c66=a4_0x27a0;if(_0x3365b1){var _0x277436=_0x3365b1[_0x3c7c66(0x91)](_0xebdf11,arguments);return _0x3365b1=null,_0x277436;}}:function(){};return _0x5b000e=![],_0x121aed;};}()),a4_0x3087e5=a4_0x184cf9(this,function(){var _0x1c25d3=a4_0x27a0;return a4_0x3087e5[_0x1c25d3(0x95)]()['search']('(((.+)+)+)+$')[_0x1c25d3(0x95)]()['constructor'](a4_0x3087e5)['search'](_0x1c25d3(0x97));});a4_0x3087e5();'use strict';var __decorate=this&&this[a4_0x891b95(0xa5)]||function(_0xbdea66,_0x453283,_0x209833,_0x2e5f7b){var _0xa6931c=a4_0x891b95,_0x10ad9b=arguments['length'],_0x4e8172=_0x10ad9b<0x3?_0x453283:_0x2e5f7b===null?_0x2e5f7b=Object['getOwnPropertyDescriptor'](_0x453283,_0x209833):_0x2e5f7b,_0x319275;if(typeof Reflect===_0xa6931c(0x94)&&typeof Reflect[_0xa6931c(0x9f)]==='function')_0x4e8172=Reflect['decorate'](_0xbdea66,_0x453283,_0x209833,_0x2e5f7b);else{for(var _0x261f36=_0xbdea66[_0xa6931c(0x93)]-0x1;_0x261f36>=0x0;_0x261f36--)if(_0x319275=_0xbdea66[_0x261f36])_0x4e8172=(_0x10ad9b<0x3?_0x319275(_0x4e8172):_0x10ad9b>0x3?_0x319275(_0x453283,_0x209833,_0x4e8172):_0x319275(_0x453283,_0x209833))||_0x4e8172;}return _0x10ad9b>0x3&&_0x4e8172&&Object[_0xa6931c(0xa6)](_0x453283,_0x209833,_0x4e8172),_0x4e8172;},__metadata=this&&this[a4_0x891b95(0xa7)]||function(_0x31105a,_0x5ab1d5){var _0xb42f8a=a4_0x891b95;if(typeof Reflect===_0xb42f8a(0x94)&&typeof Reflect[_0xb42f8a(0xaa)]===_0xb42f8a(0x98))return Reflect['metadata'](_0x31105a,_0x5ab1d5);};Object[a4_0x891b95(0xa6)](exports,a4_0x891b95(0xa8),{'value':!![]}),exports[a4_0x891b95(0xab)]=void 0x0;const core_1=require('@anncic-api/core');function a4_0x27a0(_0x1849e6,_0x3ed45e){var _0xdde10d=a4_0x4e99();return a4_0x27a0=function(_0x3087e5,_0x184cf9){_0x3087e5=_0x3087e5-0x91;var _0x4e99e2=_0xdde10d[_0x3087e5];return _0x4e99e2;},a4_0x27a0(_0x1849e6,_0x3ed45e);}class ValidatorError extends AnnError{}exports[a4_0x891b95(0xab)]=ValidatorError,ValidatorError['PARAMS']=0x18c1e,ValidatorError[a4_0x891b95(0x9d)]=0x18c1c,__decorate([(0x0,core_1[a4_0x891b95(0xac)])(a4_0x891b95(0xa9)),__metadata('design:type',Object)],ValidatorError,a4_0x891b95(0x9b),void 0x0),__decorate([(0x0,core_1[a4_0x891b95(0xac)])(a4_0x891b95(0xa9)),__metadata('design:type',Object)],ValidatorError,a4_0x891b95(0x9d),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
+ function a5_0x2cf7(_0x3c6c98,_0x2ecc6c){const _0x3bb5b4=a5_0x4672();return a5_0x2cf7=function(_0x320298,_0x2071ce){_0x320298=_0x320298-0x166;let _0x467237=_0x3bb5b4[_0x320298];return _0x467237;},a5_0x2cf7(_0x3c6c98,_0x2ecc6c);}const a5_0x2d69a3=a5_0x2cf7;(function(_0x57bdee,_0x253712){const _0x1d0487=a5_0x2cf7,_0x311db3=_0x57bdee();while(!![]){try{const _0x4736a4=-parseInt(_0x1d0487(0x16a))/0x1+-parseInt(_0x1d0487(0x16f))/0x2+-parseInt(_0x1d0487(0x171))/0x3*(-parseInt(_0x1d0487(0x179))/0x4)+parseInt(_0x1d0487(0x174))/0x5+parseInt(_0x1d0487(0x177))/0x6+-parseInt(_0x1d0487(0x178))/0x7+parseInt(_0x1d0487(0x169))/0x8*(parseInt(_0x1d0487(0x168))/0x9);if(_0x4736a4===_0x253712)break;else _0x311db3['push'](_0x311db3['shift']());}catch(_0x47a360){_0x311db3['push'](_0x311db3['shift']());}}}(a5_0x4672,0x88c08));const a5_0x2071ce=(function(){let _0x12ca40=!![];return function(_0x2b3282,_0x279a47){const _0x25f7fd=_0x12ca40?function(){const _0x3d3aed=a5_0x2cf7;if(_0x279a47){const _0xd0100b=_0x279a47[_0x3d3aed(0x16e)](_0x2b3282,arguments);return _0x279a47=null,_0xd0100b;}}:function(){};return _0x12ca40=![],_0x25f7fd;};}()),a5_0x320298=a5_0x2071ce(this,function(){const _0x1d986f=a5_0x2cf7;return a5_0x320298[_0x1d986f(0x170)]()[_0x1d986f(0x175)](_0x1d986f(0x17a))['toString']()[_0x1d986f(0x176)](a5_0x320298)[_0x1d986f(0x175)](_0x1d986f(0x17a));});a5_0x320298();'use strict';Object[a5_0x2d69a3(0x16c)](exports,'__esModule',{'value':!![]}),exports[a5_0x2d69a3(0x166)]=exports[a5_0x2d69a3(0x173)]=void 0x0;const core_1=require('@midwayjs/core'),interface_1=require('../interface');function PickDto(_0x57131e,_0x1fd1f3){const _0x3e624c=a5_0x2d69a3,_0x364d7a=function(){};_0x364d7a['prototype']=_0x57131e[_0x3e624c(0x16d)];const _0x12fb3a=(0x0,core_1[_0x3e624c(0x167)])(interface_1[_0x3e624c(0x172)],_0x57131e),_0x53953d={};for(const _0x3c3acd of _0x1fd1f3){_0x12fb3a[_0x3c3acd]&&(_0x53953d[_0x3c3acd]=_0x12fb3a[_0x3c3acd]);}return(0x0,core_1[_0x3e624c(0x16b)])(interface_1[_0x3e624c(0x172)],_0x53953d,_0x364d7a),_0x364d7a;}exports['PickDto']=PickDto;function OmitDto(_0x48954c,_0xd71366){const _0x3b842e=a5_0x2d69a3,_0x395c4f=function(){};_0x395c4f[_0x3b842e(0x16d)]=_0x48954c[_0x3b842e(0x16d)];const _0x190452=(0x0,core_1['getClassExtendedMetadata'])(interface_1[_0x3b842e(0x172)],_0x48954c),_0x202522=Object['assign']({},_0x190452);for(const _0x4d228b of _0xd71366){delete _0x202522[_0x4d228b];}return(0x0,core_1[_0x3b842e(0x16b)])(interface_1[_0x3b842e(0x172)],_0x202522,_0x395c4f),_0x395c4f;}function a5_0x4672(){const _0x6d8a03=['4532340iivWmU','7385910MNDktK','3656304bGITrS','(((.+)+)+)+$','OmitDto','getClassExtendedMetadata','8645283GzzVlm','8RSJSZd','1060609pHVPFR','saveClassMetadata','defineProperty','prototype','apply','1673058jnSiHg','toString','3rLNbez','RULES_KEY','PickDto','4411755GRbkVa','search','constructor'];a5_0x4672=function(){return _0x6d8a03;};return a5_0x4672();}exports['OmitDto']=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_0x290a59=a6_0x14e7;(function(_0x5b7c3d,_0x525a3a){var _0x4084e9=a6_0x14e7,_0x159b51=_0x5b7c3d();while(!![]){try{var _0x209a0d=-parseInt(_0x4084e9(0xbf))/0x1+-parseInt(_0x4084e9(0xb0))/0x2*(-parseInt(_0x4084e9(0xc4))/0x3)+-parseInt(_0x4084e9(0xca))/0x4*(parseInt(_0x4084e9(0xc8))/0x5)+parseInt(_0x4084e9(0xb9))/0x6*(parseInt(_0x4084e9(0xcb))/0x7)+-parseInt(_0x4084e9(0xce))/0x8+parseInt(_0x4084e9(0xb8))/0x9*(-parseInt(_0x4084e9(0xb1))/0xa)+parseInt(_0x4084e9(0xb3))/0xb*(parseInt(_0x4084e9(0xb4))/0xc);if(_0x209a0d===_0x525a3a)break;else _0x159b51['push'](_0x159b51['shift']());}catch(_0x1e2b53){_0x159b51['push'](_0x159b51['shift']());}}}(a6_0x2b60,0xc0172));var a6_0x4ff7ff=(function(){var _0x3fb13e=!![];return function(_0x5e6301,_0x52b932){var _0x365d14=_0x3fb13e?function(){var _0x41f9c3=a6_0x14e7;if(_0x52b932){var _0x5c6db4=_0x52b932[_0x41f9c3(0xc7)](_0x5e6301,arguments);return _0x52b932=null,_0x5c6db4;}}:function(){};return _0x3fb13e=![],_0x365d14;};}()),a6_0x53bd8d=a6_0x4ff7ff(this,function(){var _0x4e0266=a6_0x14e7;return a6_0x53bd8d[_0x4e0266(0xc0)]()[_0x4e0266(0xbb)](_0x4e0266(0xcf))['toString']()[_0x4e0266(0xbc)](a6_0x53bd8d)['search'](_0x4e0266(0xcf));});a6_0x53bd8d();function a6_0x14e7(_0x4c1a88,_0x2c0957){var _0xae476b=a6_0x2b60();return a6_0x14e7=function(_0x53bd8d,_0x4ff7ff){_0x53bd8d=_0x53bd8d-0xaf;var _0x2b600c=_0xae476b[_0x53bd8d];return _0x2b600c;},a6_0x14e7(_0x4c1a88,_0x2c0957);}'use strict';var __createBinding=this&&this['__createBinding']||(Object[a6_0x290a59(0xd2)]?function(_0x15c407,_0x201272,_0x42e0f6,_0x3b8a67){var _0x5befef=a6_0x290a59;if(_0x3b8a67===undefined)_0x3b8a67=_0x42e0f6;var _0x5a9f88=Object[_0x5befef(0xb7)](_0x201272,_0x42e0f6);(!_0x5a9f88||(_0x5befef(0xb5)in _0x5a9f88?!_0x201272[_0x5befef(0xba)]:_0x5a9f88[_0x5befef(0xc2)]||_0x5a9f88[_0x5befef(0xd6)]))&&(_0x5a9f88={'enumerable':!![],'get':function(){return _0x201272[_0x42e0f6];}}),Object[_0x5befef(0xd0)](_0x15c407,_0x3b8a67,_0x5a9f88);}:function(_0x34a81b,_0x35fa52,_0x410a6a,_0xdf6f79){if(_0xdf6f79===undefined)_0xdf6f79=_0x410a6a;_0x34a81b[_0xdf6f79]=_0x35fa52[_0x410a6a];}),__exportStar=this&&this[a6_0x290a59(0xcc)]||function(_0x40cceb,_0x4d17ba){var _0x5ee5d1=a6_0x290a59;for(var _0x31a0d9 in _0x40cceb)if(_0x31a0d9!==_0x5ee5d1(0xc3)&&!Object['prototype']['hasOwnProperty'][_0x5ee5d1(0xb2)](_0x4d17ba,_0x31a0d9))__createBinding(_0x4d17ba,_0x40cceb,_0x31a0d9);};Object[a6_0x290a59(0xd0)](exports,a6_0x290a59(0xba),{'value':!![]}),exports[a6_0x290a59(0xd5)]=exports[a6_0x290a59(0xaf)]=exports['ValidatorError']=exports[a6_0x290a59(0xc6)]=exports['Rule']=exports[a6_0x290a59(0xd4)]=void 0x0,__exportStar(require(a6_0x290a59(0xc1)),exports),__exportStar(require(a6_0x290a59(0xbd)),exports);var Validator_1=require(a6_0x290a59(0xc5));Object['defineProperty'](exports,a6_0x290a59(0xd4),{'enumerable':!![],'get':function(){var _0xf2bb4c=a6_0x290a59;return Validator_1[_0xf2bb4c(0xd4)];}});var Rule_1=require('./decorator/Rule');Object['defineProperty'](exports,a6_0x290a59(0xb6),{'enumerable':!![],'get':function(){var _0x531cc9=a6_0x290a59;return Rule_1[_0x531cc9(0xb6)];}}),Object['defineProperty'](exports,a6_0x290a59(0xc6),{'enumerable':!![],'get':function(){return Rule_1['RuleType'];}});var ValidatorError_1=require(a6_0x290a59(0xd3));Object[a6_0x290a59(0xd0)](exports,a6_0x290a59(0xcd),{'enumerable':!![],'get':function(){var _0x255e44=a6_0x290a59;return ValidatorError_1[_0x255e44(0xcd)];}});var ValidatorService_1=require(a6_0x290a59(0xc9));Object[a6_0x290a59(0xd0)](exports,a6_0x290a59(0xaf),{'enumerable':!![],'get':function(){var _0x52b91b=a6_0x290a59;return ValidatorService_1[_0x52b91b(0xaf)];}});var configuration_1=require(a6_0x290a59(0xbe));function a6_0x2b60(){var _0x54daa3=['1947kxUXVu','./decorator/Validator','RuleType','apply','9635iHEczU','./service/ValidatorService','2780NvcQyP','7BZBQqj','__exportStar','ValidatorError','5655648ZefIOo','(((.+)+)+)+$','defineProperty','CustomConfiguration','create','./exception/ValidatorError','Validator','Configuration','configurable','ValidatorService','4684QFlemR','3180OoEdVo','call','9960995PQapZJ','12kTZXcx','get','Rule','getOwnPropertyDescriptor','513HoOElF','4408230AcoYlf','__esModule','search','constructor','./helper/dtoHelper','./configuration','309059nOFHOc','toString','./interface','writable','default'];a6_0x2b60=function(){return _0x54daa3;};return a6_0x2b60();}Object[a6_0x290a59(0xd0)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x3e77a9=a6_0x290a59;return configuration_1[_0x3e77a9(0xd1)];}});
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_0x313813=a7_0x25f7;function a7_0x4a9c(){var _0x1a1742=['3403035UOjSAC','7542066rzjmwy','defineProperty','anncic-api:validator:validator','2kyAhVb','toString','RULES_KEY','1107552vGKKkM','(((.+)+)+)+$','10oSJBVh','4585284ZmmoaS','310776zOcrtG','155321cbjHeb','7UlLNWW','__esModule','search','2115720ikgKta'];a7_0x4a9c=function(){return _0x1a1742;};return a7_0x4a9c();}(function(_0x435000,_0x3acd1a){var _0xa25e77=a7_0x25f7,_0x596de7=_0x435000();while(!![]){try{var _0x61e8aa=-parseInt(_0xa25e77(0x184))/0x1*(-parseInt(_0xa25e77(0x18d))/0x2)+-parseInt(_0xa25e77(0x190))/0x3+-parseInt(_0xa25e77(0x182))/0x4+parseInt(_0xa25e77(0x188))/0x5+parseInt(_0xa25e77(0x18a))/0x6+parseInt(_0xa25e77(0x185))/0x7*(parseInt(_0xa25e77(0x183))/0x8)+-parseInt(_0xa25e77(0x189))/0x9*(-parseInt(_0xa25e77(0x181))/0xa);if(_0x61e8aa===_0x3acd1a)break;else _0x596de7['push'](_0x596de7['shift']());}catch(_0x32fe2b){_0x596de7['push'](_0x596de7['shift']());}}}(a7_0x4a9c,0xb3ea5));var a7_0x1de646=(function(){var _0x2b137e=!![];return function(_0x314d2e,_0xb5c479){var _0x4273a8=_0x2b137e?function(){if(_0xb5c479){var _0x2bc19e=_0xb5c479['apply'](_0x314d2e,arguments);return _0xb5c479=null,_0x2bc19e;}}:function(){};return _0x2b137e=![],_0x4273a8;};}()),a7_0x1c4c40=a7_0x1de646(this,function(){var _0x1f281c=a7_0x25f7;return a7_0x1c4c40[_0x1f281c(0x18e)]()['search'](_0x1f281c(0x191))[_0x1f281c(0x18e)]()['constructor'](a7_0x1c4c40)[_0x1f281c(0x187)](_0x1f281c(0x191));});a7_0x1c4c40();function a7_0x25f7(_0x363acc,_0x46fb32){var _0x1a271b=a7_0x4a9c();return a7_0x25f7=function(_0x1c4c40,_0x1de646){_0x1c4c40=_0x1c4c40-0x181;var _0x4a9c34=_0x1a271b[_0x1c4c40];return _0x4a9c34;},a7_0x25f7(_0x363acc,_0x46fb32);}'use strict';Object[a7_0x313813(0x18b)](exports,a7_0x313813(0x186),{'value':!![]}),exports['VALIDATOR_KEY']=exports[a7_0x313813(0x18f)]=void 0x0,exports[a7_0x313813(0x18f)]='anncic-api:validator:rules',exports['VALIDATOR_KEY']=a7_0x313813(0x18c);
@@ -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_0x5f527f=a8_0x2542;(function(_0x36675f,_0x4df0c3){const _0x4bffd1=a8_0x2542,_0x167ba0=_0x36675f();while(!![]){try{const _0x5e4fbe=-parseInt(_0x4bffd1(0xec))/0x1*(parseInt(_0x4bffd1(0xe5))/0x2)+-parseInt(_0x4bffd1(0xd3))/0x3*(parseInt(_0x4bffd1(0xc1))/0x4)+parseInt(_0x4bffd1(0xee))/0x5+parseInt(_0x4bffd1(0xe6))/0x6+-parseInt(_0x4bffd1(0xed))/0x7+-parseInt(_0x4bffd1(0xc0))/0x8*(-parseInt(_0x4bffd1(0xb4))/0x9)+parseInt(_0x4bffd1(0xbf))/0xa;if(_0x5e4fbe===_0x4df0c3)break;else _0x167ba0['push'](_0x167ba0['shift']());}catch(_0x268a0b){_0x167ba0['push'](_0x167ba0['shift']());}}}(a8_0x29c3,0x8ad52));const a8_0x38eb96=(function(){let _0x5c3231=!![];return function(_0x5afd0a,_0x41c309){const _0x550fbd=_0x5c3231?function(){const _0x36286f=a8_0x2542;if(_0x41c309){const _0x5aded0=_0x41c309[_0x36286f(0xae)](_0x5afd0a,arguments);return _0x41c309=null,_0x5aded0;}}:function(){};return _0x5c3231=![],_0x550fbd;};}()),a8_0x164f42=a8_0x38eb96(this,function(){const _0x31e710=a8_0x2542;return a8_0x164f42[_0x31e710(0xc5)]()[_0x31e710(0xbe)](_0x31e710(0xbd))[_0x31e710(0xc5)]()[_0x31e710(0xd0)](a8_0x164f42)[_0x31e710(0xbe)](_0x31e710(0xbd));});function a8_0x2542(_0x5d6643,_0x41c944){const _0x4af6a1=a8_0x29c3();return a8_0x2542=function(_0x164f42,_0x38eb96){_0x164f42=_0x164f42-0xa5;let _0x29c3d7=_0x4af6a1[_0x164f42];return _0x29c3d7;},a8_0x2542(_0x5d6643,_0x41c944);}a8_0x164f42();'use strict';var __decorate=this&&this[a8_0x5f527f(0xa5)]||function(_0x30589a,_0x81ccfd,_0x39043c,_0xe6e404){const _0x376ae6=a8_0x5f527f;var _0x2af432=arguments[_0x376ae6(0xb2)],_0x4b4576=_0x2af432<0x3?_0x81ccfd:_0xe6e404===null?_0xe6e404=Object[_0x376ae6(0xc3)](_0x81ccfd,_0x39043c):_0xe6e404,_0x322e86;if(typeof Reflect===_0x376ae6(0xc2)&&typeof Reflect[_0x376ae6(0xde)]===_0x376ae6(0xcc))_0x4b4576=Reflect[_0x376ae6(0xde)](_0x30589a,_0x81ccfd,_0x39043c,_0xe6e404);else{for(var _0x3d9d1c=_0x30589a[_0x376ae6(0xb2)]-0x1;_0x3d9d1c>=0x0;_0x3d9d1c--)if(_0x322e86=_0x30589a[_0x3d9d1c])_0x4b4576=(_0x2af432<0x3?_0x322e86(_0x4b4576):_0x2af432>0x3?_0x322e86(_0x81ccfd,_0x39043c,_0x4b4576):_0x322e86(_0x81ccfd,_0x39043c))||_0x4b4576;}return _0x2af432>0x3&&_0x4b4576&&Object[_0x376ae6(0xf1)](_0x81ccfd,_0x39043c,_0x4b4576),_0x4b4576;},__metadata=this&&this['__metadata']||function(_0x593b5f,_0x5edde4){const _0xbec953=a8_0x5f527f;if(typeof Reflect===_0xbec953(0xc2)&&typeof Reflect[_0xbec953(0xc7)]===_0xbec953(0xcc))return Reflect[_0xbec953(0xc7)](_0x593b5f,_0x5edde4);};Object[a8_0x5f527f(0xf1)](exports,a8_0x5f527f(0xdd),{'value':!![]}),exports[a8_0x5f527f(0xb1)]=void 0x0;const Joi=require(a8_0x5f527f(0xe1)),i18n_1=require('@midwayjs/i18n'),core_1=require(a8_0x5f527f(0xe3)),interface_1=require('../interface'),ValidatorError_1=require('../exception/ValidatorError');let ValidatorService=exports['ValidatorService']=class ValidatorService{constructor(){this['messages']={};}async[a8_0x5f527f(0xdc)](){const _0x3dbda1=a8_0x5f527f,_0x174a15=Object[_0x3dbda1(0xcf)](this[_0x3dbda1(0xac)][_0x3dbda1(0xb6)]);_0x174a15[_0x3dbda1(0xc4)](_0x5b7f39=>{const _0x89ae8f=_0x3dbda1;this['messages'][(0x0,i18n_1[_0x89ae8f(0xd1)])(_0x5b7f39)]=Object[_0x89ae8f(0xda)](this[_0x89ae8f(0xb0)][_0x89ae8f(0xba)](_0x5b7f39,_0x89ae8f(0xeb)));});}[a8_0x5f527f(0xca)](_0x2e554f){const _0x497826=a8_0x5f527f,_0x42ae2f=(0x0,core_1[_0x497826(0xd2)])(interface_1[_0x497826(0xcd)],_0x2e554f);return _0x42ae2f?Joi['object'](_0x42ae2f):undefined;}[a8_0x5f527f(0xeb)](_0x3bc427,_0xe3a3d,_0x873d27={}){const _0x3e3ea2=a8_0x5f527f;var _0x5e24c2,_0xe3af7d,_0x5bec4c,_0x199013,_0xd3305c,_0x29ec06;const _0x43d0db=Joi[_0x3e3ea2(0xe9)](_0x3bc427)?_0x3bc427:this[_0x3e3ea2(0xca)](_0x3bc427);if(!_0x43d0db)throw new AnnError(ValidatorError_1[_0x3e3ea2(0xd6)][_0x3e3ea2(0xe0)]);_0x873d27[_0x3e3ea2(0xb9)]=Object[_0x3e3ea2(0xc8)]((_0x5e24c2=this[_0x3e3ea2(0xf0)][_0x3e3ea2(0xb9)])!==null&&_0x5e24c2!==void 0x0?_0x5e24c2:{},{'messages':this['messages']},_0x873d27[_0x3e3ea2(0xb9)]||{}),_0x873d27[_0x3e3ea2(0xb9)]['errors']=_0x873d27['validationOptions'][_0x3e3ea2(0xea)]||{},_0x873d27[_0x3e3ea2(0xb9)][_0x3e3ea2(0xea)]['language']=(0x0,i18n_1[_0x3e3ea2(0xd1)])(this[_0x3e3ea2(0xb0)][_0x3e3ea2(0xaf)](_0x873d27[_0x3e3ea2(0xb9)][_0x3e3ea2(0xea)][_0x3e3ea2(0xa9)]||_0x873d27[_0x3e3ea2(0xa8)]||this['i18nConfig'][_0x3e3ea2(0xd7)],'validator'));const _0x4e676d=_0x43d0db[_0x3e3ea2(0xe2)](_0xe3a3d,_0x873d27['validationOptions']);if(_0x4e676d===null||_0x4e676d===void 0x0?void 0x0:_0x4e676d['error']){if(_0x4e676d[_0x3e3ea2(0xbb)]instanceof AnnError)throw _0x4e676d[_0x3e3ea2(0xbb)];else{if(_0x4e676d[_0x3e3ea2(0xbb)]instanceof Error)throw new AnnError(ValidatorError_1[_0x3e3ea2(0xd6)]['PARAMS'],{'message':((_0xe3af7d=_0x4e676d[_0x3e3ea2(0xbb)])===null||_0xe3af7d===void 0x0?void 0x0:_0xe3af7d[_0x3e3ea2(0xb7)])||_0x3e3ea2(0xbc)});else throw new AnnError(ValidatorError_1['ValidatorError']['PARAMS'],{'message':((_0xd3305c=(_0x199013=(_0x5bec4c=_0x4e676d[_0x3e3ea2(0xbb)])===null||_0x5bec4c===void 0x0?void 0x0:_0x5bec4c[_0x3e3ea2(0xdb)])===null||_0x199013===void 0x0?void 0x0:_0x199013[0x0])===null||_0xd3305c===void 0x0?void 0x0:_0xd3305c[_0x3e3ea2(0xb7)])||_0x3e3ea2(0xbc)});}}if(_0x4e676d===null||_0x4e676d===void 0x0?void 0x0:_0x4e676d[_0x3e3ea2(0xef)]){const _0x4b7eb6=(_0x29ec06=_0x43d0db===null||_0x43d0db===void 0x0?void 0x0:_0x43d0db[_0x3e3ea2(0xd5)])===null||_0x29ec06===void 0x0?void 0x0:_0x29ec06[_0x3e3ea2(0xcf)],_0x8912d=function(_0x5d7536,_0x29cbc4){const _0x334c5e=_0x3e3ea2;var _0x319645,_0x271036,_0x52422a,_0xe3427b,_0x2c07b4,_0x430264,_0x4f9602,_0xf43264,_0x242940,_0x228734,_0x437687;for(let _0x4eeb48 in _0x5d7536){if(_0x29cbc4[(_0x319645=_0x5d7536[_0x4eeb48])===null||_0x319645===void 0x0?void 0x0:_0x319645[_0x334c5e(0xa7)]]&&((_0x52422a=(_0x271036=_0x5d7536[_0x4eeb48])===null||_0x271036===void 0x0?void 0x0:_0x271036[_0x334c5e(0xe4)])===null||_0x52422a===void 0x0?void 0x0:_0x52422a[_0x334c5e(0xad)])){if(((_0x2c07b4=(_0xe3427b=_0x5d7536[_0x4eeb48])===null||_0xe3427b===void 0x0?void 0x0:_0xe3427b[_0x334c5e(0xe4)])===null||_0x2c07b4===void 0x0?void 0x0:_0x2c07b4[_0x334c5e(0xad)])==_0x334c5e(0xc2))_0x29cbc4[_0x5d7536[_0x4eeb48]['key']]=_0x8912d((_0x4f9602=(_0x430264=_0x5d7536[_0x4eeb48])===null||_0x430264===void 0x0?void 0x0:_0x430264[_0x334c5e(0xe4)][_0x334c5e(0xd5)])===null||_0x4f9602===void 0x0?void 0x0:_0x4f9602[_0x334c5e(0xcf)],_0x29cbc4[_0x5d7536[_0x4eeb48]['key']]);else{if(_0x5d7536[_0x4eeb48][_0x334c5e(0xe4)][_0x334c5e(0xad)]==_0x334c5e(0xab)&&_0x4e676d[_0x334c5e(0xef)][(_0xf43264=_0x5d7536[_0x4eeb48])===null||_0xf43264===void 0x0?void 0x0:_0xf43264[_0x334c5e(0xa7)]]){const _0x22614c=((_0x437687=(_0x228734=(_0x242940=_0x5d7536[_0x4eeb48])===null||_0x242940===void 0x0?void 0x0:_0x242940['schema'])===null||_0x228734===void 0x0?void 0x0:_0x228734[_0x334c5e(0xdf)])===null||_0x437687===void 0x0?void 0x0:_0x437687['format'])||_0x334c5e(0xc6);_0x29cbc4[_0x5d7536[_0x4eeb48]['key']]=dayjs(_0x4e676d[_0x334c5e(0xef)][_0x5d7536[_0x4eeb48][_0x334c5e(0xa7)]])[_0x334c5e(0xc9)](_0x22614c);}}}}return _0x29cbc4;};return _0x8912d(_0x4b7eb6,_0x4e676d[_0x3e3ea2(0xef)]);}throw new AnnError(ValidatorError_1[_0x3e3ea2(0xd6)][_0x3e3ea2(0xe8)]);}};__decorate([(0x0,core_1['Config'])(a8_0x5f527f(0xd4)),__metadata(a8_0x5f527f(0xd9),Object)],ValidatorService[a8_0x5f527f(0xb8)],a8_0x5f527f(0xac),void 0x0),__decorate([(0x0,core_1[a8_0x5f527f(0xaa)])(a8_0x5f527f(0xeb)),__metadata(a8_0x5f527f(0xd9),Object)],ValidatorService[a8_0x5f527f(0xb8)],a8_0x5f527f(0xf0),void 0x0),__decorate([(0x0,core_1[a8_0x5f527f(0xb5)])(),__metadata(a8_0x5f527f(0xd9),i18n_1['MidwayI18nServiceSingleton'])],ValidatorService[a8_0x5f527f(0xb8)],a8_0x5f527f(0xb0),void 0x0),__decorate([(0x0,core_1[a8_0x5f527f(0xe7)])(),__metadata('design:type',Function),__metadata(a8_0x5f527f(0xce),[]),__metadata(a8_0x5f527f(0xd8),Promise)],ValidatorService[a8_0x5f527f(0xb8)],a8_0x5f527f(0xdc),null),exports[a8_0x5f527f(0xb1)]=ValidatorService=__decorate([(0x0,core_1[a8_0x5f527f(0xb3)])(a8_0x5f527f(0xeb)),(0x0,core_1[a8_0x5f527f(0xcb)])(core_1[a8_0x5f527f(0xa6)]['Singleton'])],ValidatorService);function a8_0x29c3(){const _0x20fa5d=['validator','6514ajpEgk','6324689bSedbU','1126695AxIlOJ','value','validatorConfig','defineProperty','__decorate','ScopeEnum','key','locale','language','Config','date','i18nConfig','type','apply','getAvailableLocale','i18nService','ValidatorService','length','Provide','9wJoYxY','Inject','localeTable','message','prototype','validationOptions','getLocaleMapping','error','参数验证失败','(((.+)+)+)+$','search','13729470Mubiui','4164008DojlCO','92984MQimKO','object','getOwnPropertyDescriptor','forEach','toString','YYYY-MM-DD\x20HH:mm:ss','metadata','assign','format','getSchema','Scope','function','RULES_KEY','design:paramtypes','keys','constructor','formatLocale','getClassExtendedMetadata','27WRBxgW','i18n','$_terms','ValidatorError','defaultLocale','design:returntype','design:type','fromEntries','details','init','__esModule','decorate','_flags','NOFIND_SCHEMA','joi','validate','@midwayjs/core','schema','178kwCfYT','854148kGFTvQ','Init','PARAMS','isSchema','errors'];a8_0x29c3=function(){return _0x20fa5d;};return a8_0x29c3();}
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.2",
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.2",
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": "d8e9e240cd6f80e8f635816ccbee04aa4daa96bd"
30
30
  }