@anncic-api/validator 3.1.4 → 3.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Rule.js +1 -1
- package/dist/decorator/Validator.js +1 -1
- package/dist/exception/ValidatorError.js +1 -1
- package/dist/helper/dtoHelper.js +1 -1
- package/dist/index.js +1 -1
- package/dist/interface.js +1 -1
- package/dist/service/ValidatorService.js +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
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))}}}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
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;
|
package/dist/decorator/Rule.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
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 +1 @@
|
|
|
1
|
-
const
|
|
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 +1 @@
|
|
|
1
|
-
var
|
|
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;
|
package/dist/helper/dtoHelper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
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;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
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'];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
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 +1 @@
|
|
|
1
|
-
const
|
|
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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/validator",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.5",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/core": "^3.1.
|
|
20
|
+
"@anncic-api/core": "^3.1.5",
|
|
21
21
|
"@joi/date": "^2.1.0",
|
|
22
22
|
"joi": "^17.7.0"
|
|
23
23
|
},
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"javascript-obfuscator": "^4.0.0",
|
|
27
27
|
"typescript": "^4.7.4"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "d1fc3af2124bba94a8c3199c92c5665bad532038"
|
|
30
30
|
}
|