@anncic-api/validator 3.2.23 → 3.2.25
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
|
-
const
|
|
1
|
+
function a0_0x3eea(_0x3b52a8,_0x446c4d){const _0x6caf11=a0_0x1039();return a0_0x3eea=function(_0x3cbbd1,_0x10ba34){_0x3cbbd1=_0x3cbbd1-0x9b;let _0x10393a=_0x6caf11[_0x3cbbd1];return _0x10393a;},a0_0x3eea(_0x3b52a8,_0x446c4d);}const a0_0xaefc0f=a0_0x3eea;(function(_0x380912,_0x918913){const _0x1e5ef2=a0_0x3eea,_0x4ed38d=_0x380912();while(!![]){try{const _0x33827a=-parseInt(_0x1e5ef2(0xa2))/0x1*(-parseInt(_0x1e5ef2(0xa1))/0x2)+-parseInt(_0x1e5ef2(0xae))/0x3+-parseInt(_0x1e5ef2(0xad))/0x4+-parseInt(_0x1e5ef2(0xa9))/0x5+parseInt(_0x1e5ef2(0xaa))/0x6*(parseInt(_0x1e5ef2(0xab))/0x7)+-parseInt(_0x1e5ef2(0x9f))/0x8+parseInt(_0x1e5ef2(0xac))/0x9;if(_0x33827a===_0x918913)break;else _0x4ed38d['push'](_0x4ed38d['shift']());}catch(_0x520b59){_0x4ed38d['push'](_0x4ed38d['shift']());}}}(a0_0x1039,0x91b1d));const a0_0x10ba34=(function(){let _0x2fc27d=!![];return function(_0x2ceb4c,_0x240f0d){const _0x907b9a=_0x2fc27d?function(){const _0x5ef747=a0_0x3eea;if(_0x240f0d){const _0x2d610a=_0x240f0d[_0x5ef747(0xa3)](_0x2ceb4c,arguments);return _0x240f0d=null,_0x2d610a;}}:function(){};return _0x2fc27d=![],_0x907b9a;};}()),a0_0x3cbbd1=a0_0x10ba34(this,function(){const _0x456143=a0_0x3eea;return a0_0x3cbbd1[_0x456143(0xa0)]()[_0x456143(0xa7)](_0x456143(0xa8))[_0x456143(0xa0)]()[_0x456143(0xa6)](a0_0x3cbbd1)[_0x456143(0xa7)](_0x456143(0xa8));});a0_0x3cbbd1();'use strict';Object[a0_0xaefc0f(0x9b)](exports,'__esModule',{'value':!![]});const ValidatorError_1=require(a0_0xaefc0f(0x9e));exports['default']={'validator':{'errorStatus':ValidatorError_1[a0_0xaefc0f(0xa5)]['PARAMS'],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':a0_0xaefc0f(0xa4)}},'i18n':{'localeTable':{'en_US':{'validator':require(a0_0xaefc0f(0x9c))},'zh_CN':{'validator':require(a0_0xaefc0f(0x9d))}}}};function a0_0x1039(){const _0x16e766=['search','(((.+)+)+)+$','2857105exNmas','65778RXDDfS','455TvHtRy','16863534KiQODE','3050216IlcDBK','3517926accMxQ','defineProperty','../../locales/en_US.json','../../locales/zh_CN.json','../exception/ValidatorError','4179744hebdpQ','toString','1186RRHbMM','1753Ckytpc','apply','string','ValidatorError','constructor'];a0_0x1039=function(){return _0x16e766;};return a0_0x1039();}
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a1_0xcc2a(_0x193378,_0x550e3f){const _0x14a1ac=a1_0x3d19();return a1_0xcc2a=function(_0x1baebe,_0x58467){_0x1baebe=_0x1baebe-0x7b;let _0x3d19c7=_0x14a1ac[_0x1baebe];return _0x3d19c7;},a1_0xcc2a(_0x193378,_0x550e3f);}const a1_0xd3da62=a1_0xcc2a;(function(_0x351fb4,_0x368dbe){const _0x293f8a=a1_0xcc2a,_0x2104aa=_0x351fb4();while(!![]){try{const _0x596953=-parseInt(_0x293f8a(0xa2))/0x1*(parseInt(_0x293f8a(0xa3))/0x2)+-parseInt(_0x293f8a(0x96))/0x3*(parseInt(_0x293f8a(0xaa))/0x4)+-parseInt(_0x293f8a(0xb3))/0x5*(-parseInt(_0x293f8a(0x9f))/0x6)+-parseInt(_0x293f8a(0xab))/0x7+parseInt(_0x293f8a(0x87))/0x8+-parseInt(_0x293f8a(0x84))/0x9*(parseInt(_0x293f8a(0x94))/0xa)+parseInt(_0x293f8a(0x7e))/0xb;if(_0x596953===_0x368dbe)break;else _0x2104aa['push'](_0x2104aa['shift']());}catch(_0x13706b){_0x2104aa['push'](_0x2104aa['shift']());}}}(a1_0x3d19,0x201f2));const a1_0x58467=(function(){let _0x33ef27=!![];return function(_0x1fbb88,_0x45a7f4){const _0xc0f646=_0x33ef27?function(){const _0x31b199=a1_0xcc2a;if(_0x45a7f4){const _0x25d2a7=_0x45a7f4[_0x31b199(0x98)](_0x1fbb88,arguments);return _0x45a7f4=null,_0x25d2a7;}}:function(){};return _0x33ef27=![],_0xc0f646;};}()),a1_0x1baebe=a1_0x58467(this,function(){const _0x428a3e=a1_0xcc2a;return a1_0x1baebe['toString']()[_0x428a3e(0x88)](_0x428a3e(0x9b))[_0x428a3e(0xae)]()[_0x428a3e(0xb5)](a1_0x1baebe)[_0x428a3e(0x88)]('(((.+)+)+)+$');});function a1_0x3d19(){const _0x3d764c=['method','Configuration','getOwnPropertyDescriptor','target','648171PaaeEq','undefined','validator','238872fShPEv','search','REQUEST_OBJ_CTX_KEY','metadata','__metadata','MidwayDecoratorService','bound\x20dispatch','getSchema','design:type','I18N_ATTR_KEY','propertyName','Inject','req','10agsJFZ','decorator','3jyUlow','__decorate','apply','methodArgs','args','(((.+)+)+)+$','CustomConfiguration','query','__esModule','12ZQpKyV','getMethodParamTypes','res','16JRlfAu','31944JlMHmR','ValidatorService','prototype','registerMethodHandler','request','./service/ValidatorService','splice','384884EEVwpq','1223446VXuaaR','decorate','name','toString','function','getAttr','@midwayjs/i18n','./interface','184515OMRRYj','defineProperty','constructor','getClassMetadata','find','object','params','anncic-api:validator','assign','./config/config.default','6891225MRihKq','length'];a1_0x3d19=function(){return _0x3d764c;};return a1_0x3d19();}a1_0x1baebe();'use strict';var __decorate=this&&this[a1_0xd3da62(0x97)]||function(_0xd7ebf,_0x3e0ff3,_0xd33704,_0x151ff9){const _0x2af185=a1_0xd3da62;var _0x2b2b86=arguments['length'],_0x144046=_0x2b2b86<0x3?_0x3e0ff3:_0x151ff9===null?_0x151ff9=Object[_0x2af185(0x82)](_0x3e0ff3,_0xd33704):_0x151ff9,_0x35778c;if(typeof Reflect===_0x2af185(0xb8)&&typeof Reflect[_0x2af185(0xac)]===_0x2af185(0xaf))_0x144046=Reflect[_0x2af185(0xac)](_0xd7ebf,_0x3e0ff3,_0xd33704,_0x151ff9);else{for(var _0x4baecf=_0xd7ebf[_0x2af185(0x7f)]-0x1;_0x4baecf>=0x0;_0x4baecf--)if(_0x35778c=_0xd7ebf[_0x4baecf])_0x144046=(_0x2b2b86<0x3?_0x35778c(_0x144046):_0x2b2b86>0x3?_0x35778c(_0x3e0ff3,_0xd33704,_0x144046):_0x35778c(_0x3e0ff3,_0xd33704))||_0x144046;}return _0x2b2b86>0x3&&_0x144046&&Object[_0x2af185(0xb4)](_0x3e0ff3,_0xd33704,_0x144046),_0x144046;},__metadata=this&&this[a1_0xd3da62(0x8b)]||function(_0x47a730,_0x4e33a8){const _0x3cebf8=a1_0xd3da62;if(typeof Reflect===_0x3cebf8(0xb8)&&typeof Reflect[_0x3cebf8(0x8a)]===_0x3cebf8(0xaf))return Reflect[_0x3cebf8(0x8a)](_0x47a730,_0x4e33a8);};Object[a1_0xd3da62(0xb4)](exports,a1_0xd3da62(0x9e),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const i18n_1=require(a1_0xd3da62(0xb1)),core_1=require('@midwayjs/core'),core_2=require('@midwayjs/core'),interface_1=require(a1_0xd3da62(0xb2)),ValidatorService_1=require(a1_0xd3da62(0xa8)),i18n=require('@midwayjs/i18n'),anncic=require('@anncic-api/core'),ConfigDefault=require(a1_0xd3da62(0x7d));let CustomConfiguration=exports[a1_0xd3da62(0x9c)]=class CustomConfiguration{async['onReady'](){const _0x339ed6=a1_0xd3da62;this[_0x339ed6(0x95)][_0x339ed6(0xa6)](interface_1['VALIDATOR_KEY'],_0x42c564=>{const _0x24a1d1=_0x339ed6,_0x172d3f=_0x42c564['metadata'],_0x6c46d4=(0x0,core_2[_0x24a1d1(0xa0)])(_0x42c564[_0x24a1d1(0x83)],_0x42c564[_0x24a1d1(0x91)]);return{'before':_0xa112b6=>{const _0x18eb3b=_0x24a1d1;var _0x291395,_0x565523,_0x58d209,_0x31ac64,_0x1e9c9d,_0x3f532d,_0x163dd4,_0x3a1bb1,_0x1c697c,_0x338940,_0x59937c,_0x19e467,_0x52a525;const _0x1ac671=_0xa112b6[_0x18eb3b(0x83)][core_1[_0x18eb3b(0x89)]],_0x190170=Object[_0x18eb3b(0x7c)]({},((_0x291395=_0x1ac671===null||_0x1ac671===void 0x0?void 0x0:_0x1ac671['request'])===null||_0x291395===void 0x0?void 0x0:_0x291395[_0x18eb3b(0x9d)])||{},((_0x565523=_0x1ac671===null||_0x1ac671===void 0x0?void 0x0:_0x1ac671[_0x18eb3b(0xa7)])===null||_0x565523===void 0x0?void 0x0:_0x565523['body'])||{}),_0x582ea3=((0x0,core_2[_0x18eb3b(0xb6)])(interface_1['VALIDATOR_KEY'],_0xa112b6[_0x18eb3b(0x83)])||[])[_0x18eb3b(0xb7)](_0x2bf125=>_0x2bf125[_0x18eb3b(0x80)]==_0xa112b6['methodName']);!(_0x172d3f===null||_0x172d3f===void 0x0?void 0x0:_0x172d3f['locale'])&&_0x1ac671&&_0x1ac671[_0x18eb3b(0xb0)]&&(_0x172d3f['locale']=_0x1ac671[_0x18eb3b(0xb0)](i18n_1[_0x18eb3b(0x90)]));for(let _0x5ebe17=0x0;_0x5ebe17<_0x6c46d4[_0x18eb3b(0x7f)];_0x5ebe17++){const _0x169d64=_0x6c46d4[_0x5ebe17],_0x466933=this['ValidatorService'][_0x18eb3b(0x8e)](_0x169d64);if(_0x466933){if(typeof _0xa112b6[_0x18eb3b(0x9a)][_0x5ebe17]==_0x18eb3b(0x85)||((_0x58d209=_0xa112b6['args'][_0x5ebe17])===null||_0x58d209===void 0x0?void 0x0:_0x58d209[_0x18eb3b(0xa7)])&&((_0x31ac64=_0xa112b6[_0x18eb3b(0x9a)][_0x5ebe17])===null||_0x31ac64===void 0x0?void 0x0:_0x31ac64[_0x18eb3b(0xa1)])&&((_0x1e9c9d=_0xa112b6[_0x18eb3b(0x9a)][_0x5ebe17])===null||_0x1e9c9d===void 0x0?void 0x0:_0x1e9c9d[_0x18eb3b(0x93)]))_0xa112b6[_0x18eb3b(0x9a)][_0x5ebe17]=_0x190170;else((_0x3f532d=_0xa112b6[_0x18eb3b(0x9a)][_0x5ebe17])===null||_0x3f532d===void 0x0?void 0x0:_0x3f532d[_0x18eb3b(0xad)])==_0x18eb3b(0x8d)&&_0xa112b6[_0x18eb3b(0x9a)][_0x18eb3b(0xa9)](_0x5ebe17,0x0,_0x190170);const _0x34f66c=this[_0x18eb3b(0xa4)][_0x18eb3b(0x86)](_0x466933,_0xa112b6[_0x18eb3b(0x9a)][_0x5ebe17],_0x172d3f);_0x34f66c&&(_0xa112b6['args'][_0x5ebe17]=_0x34f66c);}else{if((_0x582ea3===null||_0x582ea3===void 0x0?void 0x0:_0x582ea3['methodArgs'][_0x5ebe17])&&((_0x163dd4=_0xa112b6[_0x18eb3b(0x9a)][_0x5ebe17])===null||_0x163dd4===void 0x0?void 0x0:_0x163dd4[_0x18eb3b(0xb9)])&&typeof _0xa112b6[_0x18eb3b(0x9a)][_0x5ebe17]['param']=='function'&&((_0x3a1bb1=_0x1ac671===null||_0x1ac671===void 0x0?void 0x0:_0x1ac671[_0x18eb3b(0xb9)])===null||_0x3a1bb1===void 0x0?void 0x0:_0x3a1bb1[_0x582ea3[_0x18eb3b(0x99)][_0x5ebe17]]))_0xa112b6['args'][_0x5ebe17]=_0x169d64((_0x1c697c=_0x1ac671===null||_0x1ac671===void 0x0?void 0x0:_0x1ac671['params'])===null||_0x1c697c===void 0x0?void 0x0:_0x1c697c[_0x582ea3['methodArgs'][_0x5ebe17]]);else(_0x582ea3===null||_0x582ea3===void 0x0?void 0x0:_0x582ea3[_0x18eb3b(0x99)][_0x5ebe17])&&((_0x59937c=(_0x338940=_0xa112b6[_0x18eb3b(0x9a)][_0x5ebe17])===null||_0x338940===void 0x0?void 0x0:_0x338940[_0x18eb3b(0xb9)])===null||_0x59937c===void 0x0?void 0x0:_0x59937c[_0x582ea3['methodArgs'][_0x5ebe17]])&&(_0xa112b6[_0x18eb3b(0x9a)][_0x5ebe17]=(_0x52a525=(_0x19e467=_0xa112b6['args'][_0x5ebe17])===null||_0x19e467===void 0x0?void 0x0:_0x19e467['params'])===null||_0x52a525===void 0x0?void 0x0:_0x52a525[_0x582ea3['methodArgs'][_0x5ebe17]]);}}},'afterThrow':(_0x2d2a0c,_0x1cf4a4)=>{throw _0x1cf4a4;}};});}};__decorate([(0x0,core_2[a1_0xd3da62(0x92)])(),__metadata('design:type',core_1[a1_0xd3da62(0x8c)])],CustomConfiguration[a1_0xd3da62(0xa5)],a1_0xd3da62(0x95),void 0x0),__decorate([(0x0,core_2[a1_0xd3da62(0x92)])(),__metadata(a1_0xd3da62(0x8f),ValidatorService_1[a1_0xd3da62(0xa4)])],CustomConfiguration[a1_0xd3da62(0xa5)],a1_0xd3da62(0xa4),void 0x0),exports['CustomConfiguration']=CustomConfiguration=__decorate([(0x0,core_2[a1_0xd3da62(0x81)])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':a1_0xd3da62(0x7b),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
|
package/dist/decorator/Rule.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0x50f732=a2_0x218d;(function(_0x2fa8c0,_0x485027){const _0x3c22fa=a2_0x218d,_0x13d572=_0x2fa8c0();while(!![]){try{const _0x1e1c34=-parseInt(_0x3c22fa(0xf0))/0x1+-parseInt(_0x3c22fa(0xe7))/0x2+parseInt(_0x3c22fa(0xe0))/0x3+parseInt(_0x3c22fa(0xf2))/0x4+-parseInt(_0x3c22fa(0xf9))/0x5*(parseInt(_0x3c22fa(0xf7))/0x6)+-parseInt(_0x3c22fa(0xe9))/0x7+parseInt(_0x3c22fa(0xe2))/0x8;if(_0x1e1c34===_0x485027)break;else _0x13d572['push'](_0x13d572['shift']());}catch(_0x400f59){_0x13d572['push'](_0x13d572['shift']());}}}(a2_0x26e1,0xecd6c));const a2_0x7d8925=(function(){let _0x1032ed=!![];return function(_0x10d36a,_0xa7f745){const _0x28fba3=_0x1032ed?function(){const _0x3a79cd=a2_0x218d;if(_0xa7f745){const _0x4d6e8e=_0xa7f745[_0x3a79cd(0xe5)](_0x10d36a,arguments);return _0xa7f745=null,_0x4d6e8e;}}:function(){};return _0x1032ed=![],_0x28fba3;};}()),a2_0x50542d=a2_0x7d8925(this,function(){const _0x2267c8=a2_0x218d;return a2_0x50542d[_0x2267c8(0xfa)]()['search'](_0x2267c8(0xe4))[_0x2267c8(0xfa)]()[_0x2267c8(0xf6)](a2_0x50542d)[_0x2267c8(0xf8)]('(((.+)+)+)+$');});function a2_0x26e1(){const _0x5ec7c1=['description','1305310bjEBPu','label','518294uuKjBr','isSchema','meta','getClassMetadata','name','../interface','RuleType','1738592vaSWoU','Rule','7675944UhqlHV','defineProperty','attachClassMetadata','getPropertyType','constructor','24936IVHbwf','search','275mJVEEr','toString','keys','@joi/date','Array','function','default','RULES_KEY','@midwayjs/core','extend','__esModule','349452kjmxSd','joi','13027928uGMnSU','map','(((.+)+)+)+$','apply'];a2_0x26e1=function(){return _0x5ec7c1;};return a2_0x26e1();}a2_0x50542d();'use strict';Object[a2_0x50f732(0xf3)](exports,a2_0x50f732(0xdf),{'value':!![]}),exports[a2_0x50f732(0xf1)]=exports[a2_0x50f732(0xef)]=void 0x0;const joi=require(a2_0x50f732(0xe1)),date_1=require(a2_0x50f732(0xfc)),core_1=require(a2_0x50f732(0x101)),interface_1=require(a2_0x50f732(0xee));exports['RuleType']=joi[a2_0x50f732(0xde)](date_1[a2_0x50f732(0xff)]);function Rule(_0x3cf96b,_0x1089a5,_0x5abf35=''){return(_0x3bb157,_0xcca82c)=>{const _0x575513=a2_0x218d;var _0x30bc0c;if(_0xcca82c)!joi['isSchema'](_0x1089a5)&&(_0x1089a5===null||_0x1089a5===void 0x0?void 0x0:_0x1089a5['name'])&&(_0x1089a5=joi['object']((0x0,core_1[_0x575513(0xec)])(interface_1[_0x575513(0x100)],_0x1089a5))[_0x575513(0xeb)]({'id':_0x1089a5[_0x575513(0xed)]}),(0x0,core_1[_0x575513(0xf5)])(_0x3bb157,_0xcca82c)[_0x575513(0xed)]===_0x575513(0xfd)&&(_0x1089a5=joi['array']()['items'](_0x1089a5))),joi[_0x575513(0xea)](_0x1089a5)&&(_0x3cf96b&&typeof(_0x1089a5===null||_0x1089a5===void 0x0?void 0x0:_0x1089a5['label'])==_0x575513(0xfe)&&(_0x1089a5=_0x1089a5[_0x575513(0xe8)](_0x3cf96b)),_0x5abf35&&typeof(_0x1089a5===null||_0x1089a5===void 0x0?void 0x0:_0x1089a5[_0x575513(0xe6)])==_0x575513(0xfe)&&(_0x1089a5=_0x1089a5['description'](_0x5abf35)),(0x0,core_1[_0x575513(0xf4)])(interface_1[_0x575513(0x100)],_0x1089a5,_0x3bb157,_0xcca82c));else{const _0x584f48=(0x0,core_1[_0x575513(0xec)])(interface_1[_0x575513(0x100)],_0x1089a5);if(_0x584f48){let _0x3598b7=(_0x30bc0c=(0x0,core_1['getClassMetadata'])(interface_1[_0x575513(0x100)],_0x3bb157))!==null&&_0x30bc0c!==void 0x0?_0x30bc0c:{};Object[_0x575513(0xfb)](_0x584f48)[_0x575513(0xe3)](_0x399a41=>{!_0x3598b7[_0x399a41]&&(_0x3598b7[_0x399a41]=_0x584f48[_0x399a41]);}),(0x0,core_1['saveClassMetadata'])(interface_1[_0x575513(0x100)],_0x3598b7,_0x3bb157);}}};}function a2_0x218d(_0x201704,_0x4849d9){const _0x23b22e=a2_0x26e1();return a2_0x218d=function(_0x50542d,_0x7d8925){_0x50542d=_0x50542d-0xde;let _0x26e1dd=_0x23b22e[_0x50542d];return _0x26e1dd;},a2_0x218d(_0x201704,_0x4849d9);}exports[a2_0x50f732(0xf1)]=Rule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x177e8d=a3_0x4f0d;(function(_0x26d7a9,_0x26ba04){const _0x1446af=a3_0x4f0d,_0xf308b9=_0x26d7a9();while(!![]){try{const _0x594b65=-parseInt(_0x1446af(0x174))/0x1+-parseInt(_0x1446af(0x16a))/0x2*(parseInt(_0x1446af(0x178))/0x3)+parseInt(_0x1446af(0x17e))/0x4+parseInt(_0x1446af(0x17c))/0x5+parseInt(_0x1446af(0x183))/0x6+-parseInt(_0x1446af(0x171))/0x7*(parseInt(_0x1446af(0x177))/0x8)+parseInt(_0x1446af(0x17f))/0x9*(parseInt(_0x1446af(0x182))/0xa);if(_0x594b65===_0x26ba04)break;else _0xf308b9['push'](_0xf308b9['shift']());}catch(_0x3a0071){_0xf308b9['push'](_0xf308b9['shift']());}}}(a3_0xb55e,0x98881));const a3_0x4ba0ce=(function(){let _0x17b52d=!![];return function(_0x485fa1,_0x485458){const _0x783382=_0x17b52d?function(){const _0x323fdd=a3_0x4f0d;if(_0x485458){const _0x404363=_0x485458[_0x323fdd(0x181)](_0x485fa1,arguments);return _0x485458=null,_0x404363;}}:function(){};return _0x17b52d=![],_0x783382;};}()),a3_0x241ef9=a3_0x4ba0ce(this,function(){const _0x372be7=a3_0x4f0d;return a3_0x241ef9[_0x372be7(0x179)]()['search'](_0x372be7(0x172))['toString']()[_0x372be7(0x184)](a3_0x241ef9)[_0x372be7(0x185)](_0x372be7(0x172));});a3_0x241ef9();'use strict';Object[a3_0x177e8d(0x17d)](exports,a3_0x177e8d(0x180),{'value':!![]}),exports[a3_0x177e8d(0x175)]=exports['Validator']=void 0x0;const core_1=require(a3_0x177e8d(0x16f)),interface_1=require(a3_0x177e8d(0x168));function a3_0xb55e(){const _0xc1443f=['slice','1994854idpuzk','attachClassMetadata','indexOf','Validator','match','@midwayjs/core','prototype','301TLYpTM','(((.+)+)+)+$','createCustomMethodDecorator','1011679QDnKaW','getFuncArgs','function','185480VIjJqv','3ssoIIp','toString','replace','VALIDATOR_KEY','2329110gRajoC','defineProperty','1095940cSTTuu','118629dzMmXK','__esModule','apply','1880oxlfpm','2477970IsJAkB','constructor','search','../interface'];a3_0xb55e=function(){return _0xc1443f;};return a3_0xb55e();}function Validator(_0x189c1c={}){return(_0x2f3a6f,_0xf55188,_0x4977b8)=>{const _0x5020fd=a3_0x4f0d,_0x387cbe=getFuncArgs(_0x2f3a6f[_0xf55188]);(0x0,core_1[_0x5020fd(0x16b)])(interface_1['VALIDATOR_KEY'],{'method':_0xf55188,'methodArgs':_0x387cbe},_0x2f3a6f),(0x0,core_1[_0x5020fd(0x173)])(interface_1[_0x5020fd(0x17b)],_0x189c1c)(_0x2f3a6f,_0xf55188,_0x4977b8);};}exports[a3_0x177e8d(0x16d)]=Validator;function getFuncArgs(_0x4a331a){const _0x29a08a=a3_0x177e8d;if(typeof _0x4a331a==_0x29a08a(0x176)){const _0x3ac568=/=>.*$/mg,_0x513707=/=[^,)]+/mg,_0x3e7c4f=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x55fc24=(_0x4a331a[_0x29a08a(0x170)]?_0x4a331a[_0x29a08a(0x170)][_0x29a08a(0x184)][_0x29a08a(0x179)]():_0x4a331a['toString']())[_0x29a08a(0x17a)](_0x3e7c4f,'')['replace'](_0x3ac568,'')[_0x29a08a(0x17a)](_0x513707,''),_0x17e792=_0x55fc24[_0x29a08a(0x169)](_0x55fc24[_0x29a08a(0x16c)]('(')+0x1,_0x55fc24[_0x29a08a(0x16c)](')'))[_0x29a08a(0x16e)](/([^\s,]+)/g)||[];return _0x17e792;}}function a3_0x4f0d(_0x56a645,_0x10d60b){const _0x8e7702=a3_0xb55e();return a3_0x4f0d=function(_0x241ef9,_0x4ba0ce){_0x241ef9=_0x241ef9-0x168;let _0xb55e19=_0x8e7702[_0x241ef9];return _0xb55e19;},a3_0x4f0d(_0x56a645,_0x10d60b);}exports['getFuncArgs']=getFuncArgs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a4_0x44fa(_0x255308,_0x5f3eec){var _0x1f6e80=a4_0x1f7d();return a4_0x44fa=function(_0x4366db,_0x3e46a4){_0x4366db=_0x4366db-0x121;var _0x1f7d77=_0x1f6e80[_0x4366db];return _0x1f7d77;},a4_0x44fa(_0x255308,_0x5f3eec);}var a4_0x222fa3=a4_0x44fa;(function(_0x1e935b,_0x5073f2){var _0x103fb2=a4_0x44fa,_0x212494=_0x1e935b();while(!![]){try{var _0x3705ad=-parseInt(_0x103fb2(0x13d))/0x1*(parseInt(_0x103fb2(0x124))/0x2)+parseInt(_0x103fb2(0x130))/0x3+-parseInt(_0x103fb2(0x12d))/0x4*(parseInt(_0x103fb2(0x13c))/0x5)+-parseInt(_0x103fb2(0x125))/0x6*(-parseInt(_0x103fb2(0x136))/0x7)+parseInt(_0x103fb2(0x135))/0x8+-parseInt(_0x103fb2(0x134))/0x9*(parseInt(_0x103fb2(0x12a))/0xa)+parseInt(_0x103fb2(0x129))/0xb;if(_0x3705ad===_0x5073f2)break;else _0x212494['push'](_0x212494['shift']());}catch(_0x407f46){_0x212494['push'](_0x212494['shift']());}}}(a4_0x1f7d,0x561fe));var a4_0x3e46a4=(function(){var _0x2b5f52=!![];return function(_0x291c6e,_0x563f57){var _0x2025f3=_0x2b5f52?function(){var _0x5b45ae=a4_0x44fa;if(_0x563f57){var _0x5dc7b0=_0x563f57[_0x5b45ae(0x133)](_0x291c6e,arguments);return _0x563f57=null,_0x5dc7b0;}}:function(){};return _0x2b5f52=![],_0x2025f3;};}()),a4_0x4366db=a4_0x3e46a4(this,function(){var _0x1391f9=a4_0x44fa;return a4_0x4366db['toString']()[_0x1391f9(0x13b)](_0x1391f9(0x13a))[_0x1391f9(0x132)]()[_0x1391f9(0x12e)](a4_0x4366db)[_0x1391f9(0x13b)](_0x1391f9(0x13a));});a4_0x4366db();'use strict';var __decorate=this&&this[a4_0x222fa3(0x123)]||function(_0x8ca92b,_0x4dac31,_0x1156c5,_0x2c9c28){var _0x4fe7e6=a4_0x222fa3,_0x29900c=arguments[_0x4fe7e6(0x131)],_0x24eed3=_0x29900c<0x3?_0x4dac31:_0x2c9c28===null?_0x2c9c28=Object[_0x4fe7e6(0x13e)](_0x4dac31,_0x1156c5):_0x2c9c28,_0x48b8a7;if(typeof Reflect===_0x4fe7e6(0x122)&&typeof Reflect[_0x4fe7e6(0x13f)]==='function')_0x24eed3=Reflect[_0x4fe7e6(0x13f)](_0x8ca92b,_0x4dac31,_0x1156c5,_0x2c9c28);else{for(var _0x5c7e81=_0x8ca92b['length']-0x1;_0x5c7e81>=0x0;_0x5c7e81--)if(_0x48b8a7=_0x8ca92b[_0x5c7e81])_0x24eed3=(_0x29900c<0x3?_0x48b8a7(_0x24eed3):_0x29900c>0x3?_0x48b8a7(_0x4dac31,_0x1156c5,_0x24eed3):_0x48b8a7(_0x4dac31,_0x1156c5))||_0x24eed3;}return _0x29900c>0x3&&_0x24eed3&&Object['defineProperty'](_0x4dac31,_0x1156c5,_0x24eed3),_0x24eed3;},__metadata=this&&this[a4_0x222fa3(0x12f)]||function(_0x46e5c5,_0x260263){var _0x10e7a9=a4_0x222fa3;if(typeof Reflect===_0x10e7a9(0x122)&&typeof Reflect[_0x10e7a9(0x12b)]===_0x10e7a9(0x137))return Reflect[_0x10e7a9(0x12b)](_0x46e5c5,_0x260263);};Object[a4_0x222fa3(0x138)](exports,'__esModule',{'value':!![]}),exports['ValidatorError']=void 0x0;const core_1=require(a4_0x222fa3(0x12c));class ValidatorError extends AnnError{}function a4_0x1f7d(){var _0x3675d2=['ValidatorError','design:type','PARAMS','2954490dRniSE','39540lWSPbb','metadata','@anncic-api/core','570236dTkWXa','constructor','__metadata','784527Bzchab','length','toString','apply','369VZJFhB','1855696SVwzFt','287AsWYsc','function','defineProperty','NOFIND_SCHEMA','(((.+)+)+)+$','search','5zeJiKr','453655kynRtF','getOwnPropertyDescriptor','decorate','参数验证失败','object','__decorate','2qKvUbG','51078SJQWkN'];a4_0x1f7d=function(){return _0x3675d2;};return a4_0x1f7d();}exports[a4_0x222fa3(0x126)]=ValidatorError,ValidatorError[a4_0x222fa3(0x128)]=0x18c1e,ValidatorError['NOFIND_SCHEMA']=0x18c1c,__decorate([(0x0,core_1['AnnErrorMsg'])('参数验证失败'),__metadata(a4_0x222fa3(0x127),Object)],ValidatorError,'PARAMS',void 0x0),__decorate([(0x0,core_1['AnnErrorMsg'])(a4_0x222fa3(0x121)),__metadata(a4_0x222fa3(0x127),Object)],ValidatorError,a4_0x222fa3(0x139),void 0x0);
|
package/dist/helper/dtoHelper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x571ac8=a5_0x5674;(function(_0x505256,_0x36e57c){const _0x432ad2=a5_0x5674,_0x32098f=_0x505256();while(!![]){try{const _0x6a53d3=-parseInt(_0x432ad2(0x96))/0x1*(parseInt(_0x432ad2(0x99))/0x2)+parseInt(_0x432ad2(0x98))/0x3*(-parseInt(_0x432ad2(0x8d))/0x4)+parseInt(_0x432ad2(0xa1))/0x5+parseInt(_0x432ad2(0x9e))/0x6*(parseInt(_0x432ad2(0x8f))/0x7)+parseInt(_0x432ad2(0x8e))/0x8*(parseInt(_0x432ad2(0x9d))/0x9)+parseInt(_0x432ad2(0x92))/0xa+parseInt(_0x432ad2(0x9b))/0xb*(-parseInt(_0x432ad2(0x9a))/0xc);if(_0x6a53d3===_0x36e57c)break;else _0x32098f['push'](_0x32098f['shift']());}catch(_0x1daedf){_0x32098f['push'](_0x32098f['shift']());}}}(a5_0x1f13,0x6b6c5));const a5_0x2968a5=(function(){let _0x26e4a8=!![];return function(_0x463a2f,_0xdde1df){const _0x1c2ad5=_0x26e4a8?function(){const _0x25a317=a5_0x5674;if(_0xdde1df){const _0xfbe2df=_0xdde1df[_0x25a317(0x94)](_0x463a2f,arguments);return _0xdde1df=null,_0xfbe2df;}}:function(){};return _0x26e4a8=![],_0x1c2ad5;};}()),a5_0x2fac38=a5_0x2968a5(this,function(){const _0x2cb7ff=a5_0x5674;return a5_0x2fac38[_0x2cb7ff(0x9c)]()[_0x2cb7ff(0xa3)](_0x2cb7ff(0x9f))[_0x2cb7ff(0x9c)]()['constructor'](a5_0x2fac38)[_0x2cb7ff(0xa3)]('(((.+)+)+)+$');});function a5_0x5674(_0xf265e0,_0x34eeda){const _0x34a190=a5_0x1f13();return a5_0x5674=function(_0x2fac38,_0x2968a5){_0x2fac38=_0x2fac38-0x8b;let _0x1f134b=_0x34a190[_0x2fac38];return _0x1f134b;},a5_0x5674(_0xf265e0,_0x34eeda);}a5_0x2fac38();'use strict';Object[a5_0x571ac8(0xa2)](exports,a5_0x571ac8(0x90),{'value':!![]}),exports[a5_0x571ac8(0x97)]=exports[a5_0x571ac8(0x8b)]=void 0x0;const core_1=require(a5_0x571ac8(0xa4)),interface_1=require(a5_0x571ac8(0x95));function PickDto(_0x4bf174,_0x451f71){const _0x11f52e=a5_0x571ac8,_0x5917cb=function(){};_0x5917cb[_0x11f52e(0x8c)]=_0x4bf174[_0x11f52e(0x8c)];const _0x23567a=(0x0,core_1[_0x11f52e(0xa5)])(interface_1['RULES_KEY'],_0x4bf174),_0x4b3c98={};for(const _0x4fe5dd of _0x451f71){_0x23567a[_0x4fe5dd]&&(_0x4b3c98[_0x4fe5dd]=_0x23567a[_0x4fe5dd]);}return(0x0,core_1[_0x11f52e(0xa0)])(interface_1[_0x11f52e(0x91)],_0x4b3c98,_0x5917cb),_0x5917cb;}function a5_0x1f13(){const _0x173e49=['(((.+)+)+)+$','saveClassMetadata','2558745xERxre','defineProperty','search','@midwayjs/core','getClassExtendedMetadata','PickDto','prototype','12JUKSCB','184JqtFhg','891737iTKCTQ','__esModule','RULES_KEY','7615070YJShhX','assign','apply','../interface','1vbagNv','OmitDto','222903SRbIpb','138992LuSVQk','108VzYIGv','2446004bTYXtP','toString','322227dBUFfC','30XDPAVh'];a5_0x1f13=function(){return _0x173e49;};return a5_0x1f13();}exports[a5_0x571ac8(0x8b)]=PickDto;function OmitDto(_0x4e8804,_0xf38e1){const _0x42a0e4=a5_0x571ac8,_0x317fec=function(){};_0x317fec[_0x42a0e4(0x8c)]=_0x4e8804['prototype'];const _0x10c00b=(0x0,core_1[_0x42a0e4(0xa5)])(interface_1[_0x42a0e4(0x91)],_0x4e8804),_0x39a0be=Object[_0x42a0e4(0x93)]({},_0x10c00b);for(const _0x3e42fd of _0xf38e1){delete _0x39a0be[_0x3e42fd];}return(0x0,core_1['saveClassMetadata'])(interface_1['RULES_KEY'],_0x39a0be,_0x317fec),_0x317fec;}exports['OmitDto']=OmitDto;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a6_0xf1530a=a6_0x1404;(function(_0x1ba704,_0x83d498){var _0x2b7ca7=a6_0x1404,_0x5b4b68=_0x1ba704();while(!![]){try{var _0x34f191=-parseInt(_0x2b7ca7(0xac))/0x1*(-parseInt(_0x2b7ca7(0xaa))/0x2)+parseInt(_0x2b7ca7(0xc5))/0x3*(parseInt(_0x2b7ca7(0xb2))/0x4)+-parseInt(_0x2b7ca7(0xb5))/0x5+parseInt(_0x2b7ca7(0xc4))/0x6*(-parseInt(_0x2b7ca7(0xc1))/0x7)+parseInt(_0x2b7ca7(0xcb))/0x8*(parseInt(_0x2b7ca7(0xba))/0x9)+-parseInt(_0x2b7ca7(0xbf))/0xa+-parseInt(_0x2b7ca7(0xbc))/0xb*(-parseInt(_0x2b7ca7(0xb4))/0xc);if(_0x34f191===_0x83d498)break;else _0x5b4b68['push'](_0x5b4b68['shift']());}catch(_0x42e88a){_0x5b4b68['push'](_0x5b4b68['shift']());}}}(a6_0xbbb2,0xbf350));var a6_0x39d5b0=(function(){var _0x5c96b4=!![];return function(_0x2c7fb4,_0x196c00){var _0x18a5f6=_0x5c96b4?function(){var _0x1b5898=a6_0x1404;if(_0x196c00){var _0xa08bda=_0x196c00[_0x1b5898(0xce)](_0x2c7fb4,arguments);return _0x196c00=null,_0xa08bda;}}:function(){};return _0x5c96b4=![],_0x18a5f6;};}()),a6_0x8fcd49=a6_0x39d5b0(this,function(){var _0x288788=a6_0x1404;return a6_0x8fcd49[_0x288788(0xab)]()['search'](_0x288788(0xc9))[_0x288788(0xab)]()[_0x288788(0xb1)](a6_0x8fcd49)[_0x288788(0xb8)](_0x288788(0xc9));});function a6_0x1404(_0x3211fd,_0x1e0c5f){var _0x3011eb=a6_0xbbb2();return a6_0x1404=function(_0x8fcd49,_0x39d5b0){_0x8fcd49=_0x8fcd49-0xa8;var _0xbbb2c2=_0x3011eb[_0x8fcd49];return _0xbbb2c2;},a6_0x1404(_0x3211fd,_0x1e0c5f);}a6_0x8fcd49();'use strict';var __createBinding=this&&this[a6_0xf1530a(0xb3)]||(Object['create']?function(_0xc99268,_0x21b62a,_0x5ccac0,_0x3e560e){var _0x4c397d=a6_0xf1530a;if(_0x3e560e===undefined)_0x3e560e=_0x5ccac0;var _0x191328=Object['getOwnPropertyDescriptor'](_0x21b62a,_0x5ccac0);(!_0x191328||(_0x4c397d(0xa9)in _0x191328?!_0x21b62a[_0x4c397d(0xc8)]:_0x191328['writable']||_0x191328[_0x4c397d(0xc7)]))&&(_0x191328={'enumerable':!![],'get':function(){return _0x21b62a[_0x5ccac0];}}),Object[_0x4c397d(0xc3)](_0xc99268,_0x3e560e,_0x191328);}:function(_0x5cdc40,_0x4fd3b1,_0x11c0fa,_0x1ca6c9){if(_0x1ca6c9===undefined)_0x1ca6c9=_0x11c0fa;_0x5cdc40[_0x1ca6c9]=_0x4fd3b1[_0x11c0fa];}),__exportStar=this&&this[a6_0xf1530a(0xbd)]||function(_0x47b128,_0x4e854e){var _0x53626d=a6_0xf1530a;for(var _0x19adb2 in _0x47b128)if(_0x19adb2!==_0x53626d(0xae)&&!Object[_0x53626d(0xaf)][_0x53626d(0xb7)]['call'](_0x4e854e,_0x19adb2))__createBinding(_0x4e854e,_0x47b128,_0x19adb2);};Object[a6_0xf1530a(0xc3)](exports,a6_0xf1530a(0xc8),{'value':!![]}),exports[a6_0xf1530a(0xb0)]=exports['ValidatorService']=exports[a6_0xf1530a(0xa8)]=exports['RuleType']=exports[a6_0xf1530a(0xbe)]=exports[a6_0xf1530a(0xcc)]=void 0x0,__exportStar(require(a6_0xf1530a(0xc2)),exports),__exportStar(require(a6_0xf1530a(0xad)),exports);var Validator_1=require(a6_0xf1530a(0xb9));Object[a6_0xf1530a(0xc3)](exports,'Validator',{'enumerable':!![],'get':function(){var _0x7c1eb9=a6_0xf1530a;return Validator_1[_0x7c1eb9(0xcc)];}});var Rule_1=require(a6_0xf1530a(0xca));Object[a6_0xf1530a(0xc3)](exports,'Rule',{'enumerable':!![],'get':function(){var _0x5ec7e0=a6_0xf1530a;return Rule_1[_0x5ec7e0(0xbe)];}}),Object[a6_0xf1530a(0xc3)](exports,'RuleType',{'enumerable':!![],'get':function(){var _0x3101ab=a6_0xf1530a;return Rule_1[_0x3101ab(0xc6)];}});var ValidatorError_1=require(a6_0xf1530a(0xbb));Object['defineProperty'](exports,a6_0xf1530a(0xa8),{'enumerable':!![],'get':function(){var _0x4fcfd5=a6_0xf1530a;return ValidatorError_1[_0x4fcfd5(0xa8)];}});var ValidatorService_1=require(a6_0xf1530a(0xcd));function a6_0xbbb2(){var _0x3b13e2=['12015vNkzMb','./exception/ValidatorError','143033fnZNTD','__exportStar','Rule','14949430cMmSLL','ValidatorService','4580485tcGdgT','./interface','defineProperty','12YgzNoe','9xfxyFG','RuleType','configurable','__esModule','(((.+)+)+)+$','./decorator/Rule','4376EYVWFl','Validator','./service/ValidatorService','apply','ValidatorError','get','452692ojGSxa','toString','4QaSubO','./helper/dtoHelper','default','prototype','Configuration','constructor','271732brZaVH','__createBinding','1752YDpLGR','755145gfHZVQ','CustomConfiguration','hasOwnProperty','search','./decorator/Validator'];a6_0xbbb2=function(){return _0x3b13e2;};return a6_0xbbb2();}Object[a6_0xf1530a(0xc3)](exports,a6_0xf1530a(0xc0),{'enumerable':!![],'get':function(){var _0x57bd11=a6_0xf1530a;return ValidatorService_1[_0x57bd11(0xc0)];}});var configuration_1=require('./configuration');Object[a6_0xf1530a(0xc3)](exports,a6_0xf1530a(0xb0),{'enumerable':!![],'get':function(){var _0x2e408f=a6_0xf1530a;return configuration_1[_0x2e408f(0xb6)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a7_0x42afd3=a7_0x5d85;function a7_0x5d85(_0x570b7c,_0x397975){var _0x4a6325=a7_0x5e93();return a7_0x5d85=function(_0x824ffc,_0x384130){_0x824ffc=_0x824ffc-0x1c9;var _0x5e937a=_0x4a6325[_0x824ffc];return _0x5e937a;},a7_0x5d85(_0x570b7c,_0x397975);}(function(_0x1bd11d,_0x24a1ff){var _0x49c236=a7_0x5d85,_0x538d25=_0x1bd11d();while(!![]){try{var _0x5c8552=parseInt(_0x49c236(0x1d8))/0x1*(-parseInt(_0x49c236(0x1db))/0x2)+parseInt(_0x49c236(0x1d7))/0x3+parseInt(_0x49c236(0x1d4))/0x4*(parseInt(_0x49c236(0x1c9))/0x5)+parseInt(_0x49c236(0x1dc))/0x6+parseInt(_0x49c236(0x1cd))/0x7*(-parseInt(_0x49c236(0x1ca))/0x8)+parseInt(_0x49c236(0x1d0))/0x9*(parseInt(_0x49c236(0x1d1))/0xa)+parseInt(_0x49c236(0x1ce))/0xb*(-parseInt(_0x49c236(0x1d9))/0xc);if(_0x5c8552===_0x24a1ff)break;else _0x538d25['push'](_0x538d25['shift']());}catch(_0x39d494){_0x538d25['push'](_0x538d25['shift']());}}}(a7_0x5e93,0xa5786));function a7_0x5e93(){var _0x44655d=['anncic-api:validator:validator','3757851ibZKsx','90359GgHuZB','5190468bdhURC','search','2rjdBmi','994908OngNlM','405005jkarxE','88hDMMMb','(((.+)+)+)+$','defineProperty','623483gfBwUf','11nyMisu','RULES_KEY','9RtTFVN','6809870EZglQo','__esModule','toString','4OzBTIK','VALIDATOR_KEY'];a7_0x5e93=function(){return _0x44655d;};return a7_0x5e93();}var a7_0x384130=(function(){var _0x2e5641=!![];return function(_0x14ef99,_0x321cc1){var _0x1548a2=_0x2e5641?function(){if(_0x321cc1){var _0x2a3a3c=_0x321cc1['apply'](_0x14ef99,arguments);return _0x321cc1=null,_0x2a3a3c;}}:function(){};return _0x2e5641=![],_0x1548a2;};}()),a7_0x824ffc=a7_0x384130(this,function(){var _0x18f7a=a7_0x5d85;return a7_0x824ffc['toString']()[_0x18f7a(0x1da)]('(((.+)+)+)+$')[_0x18f7a(0x1d3)]()['constructor'](a7_0x824ffc)[_0x18f7a(0x1da)](_0x18f7a(0x1cb));});a7_0x824ffc();'use strict';Object[a7_0x42afd3(0x1cc)](exports,a7_0x42afd3(0x1d2),{'value':!![]}),exports[a7_0x42afd3(0x1d5)]=exports['RULES_KEY']=void 0x0,exports[a7_0x42afd3(0x1cf)]='anncic-api:validator:rules',exports['VALIDATOR_KEY']=a7_0x42afd3(0x1d6);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a8_0xa10666=a8_0x411f;(function(_0x33fb13,_0x239528){const _0x881fea=a8_0x411f,_0x44a677=_0x33fb13();while(!![]){try{const _0x5d8273=parseInt(_0x881fea(0x148))/0x1*(parseInt(_0x881fea(0x17c))/0x2)+parseInt(_0x881fea(0x16e))/0x3*(parseInt(_0x881fea(0x16b))/0x4)+parseInt(_0x881fea(0x157))/0x5*(-parseInt(_0x881fea(0x17d))/0x6)+parseInt(_0x881fea(0x18b))/0x7+-parseInt(_0x881fea(0x16a))/0x8+parseInt(_0x881fea(0x14e))/0x9+parseInt(_0x881fea(0x14c))/0xa*(parseInt(_0x881fea(0x18f))/0xb);if(_0x5d8273===_0x239528)break;else _0x44a677['push'](_0x44a677['shift']());}catch(_0x429739){_0x44a677['push'](_0x44a677['shift']());}}}(a8_0x1a44,0x6d0f7));const a8_0x262465=(function(){let _0x3070c6=!![];return function(_0x462e0c,_0x4296de){const _0x10ab61=_0x3070c6?function(){if(_0x4296de){const _0x5a1eb2=_0x4296de['apply'](_0x462e0c,arguments);return _0x4296de=null,_0x5a1eb2;}}:function(){};return _0x3070c6=![],_0x10ab61;};}()),a8_0x3e909e=a8_0x262465(this,function(){const _0xff8da9=a8_0x411f;return a8_0x3e909e[_0xff8da9(0x178)]()[_0xff8da9(0x15c)](_0xff8da9(0x190))['toString']()[_0xff8da9(0x17a)](a8_0x3e909e)[_0xff8da9(0x15c)](_0xff8da9(0x190));});a8_0x3e909e();function a8_0x1a44(){const _0x5ecf0f=['constructor','formatLocale','40964bAByig','24KucWPo','metadata','schema','validator','errors','NOFIND_SCHEMA','_flags','format','PARAMS','ScopeEnum','YYYY-MM-DD\x20HH:mm:ss','validate','i18nService','@midwayjs/i18n','2642850qlnXup','fromEntries','__esModule','i18nConfig','594dMxcha','(((.+)+)+)+$','keys','__decorate','i18n','14Ogyboi','messages','Scope','error','3480agZcnG','$_terms','4893642LtKxfu','Inject','Init','isSchema','ValidatorService','Config','getClassExtendedMetadata','参数验证失败','details','522010mtipoD','init','language','localeTable','validationOptions','search','getOwnPropertyDescriptor','decorate','design:type','MidwayI18nServiceSingleton','type','RULES_KEY','Provide','../exception/ValidatorError','defaultLocale','locale','message','value','ValidatorError','3817768WLcvdO','458848avWZSr','validatorConfig','date','3eKqitx','forEach','design:returntype','getLocaleMapping','defineProperty','getSchema','assign','function','prototype','object','toString','key'];a8_0x1a44=function(){return _0x5ecf0f;};return a8_0x1a44();}function a8_0x411f(_0x2e2a7d,_0xd564df){const _0x2e2c27=a8_0x1a44();return a8_0x411f=function(_0x3e909e,_0x262465){_0x3e909e=_0x3e909e-0x147;let _0x1a4484=_0x2e2c27[_0x3e909e];return _0x1a4484;},a8_0x411f(_0x2e2a7d,_0xd564df);}'use strict';var __decorate=this&&this[a8_0xa10666(0x192)]||function(_0x2b093e,_0x57da41,_0x501ddb,_0x273d0f){const _0x449abf=a8_0xa10666;var _0x2ad44a=arguments['length'],_0x627a2f=_0x2ad44a<0x3?_0x57da41:_0x273d0f===null?_0x273d0f=Object[_0x449abf(0x15d)](_0x57da41,_0x501ddb):_0x273d0f,_0xd7cc82;if(typeof Reflect===_0x449abf(0x177)&&typeof Reflect[_0x449abf(0x15e)]===_0x449abf(0x175))_0x627a2f=Reflect[_0x449abf(0x15e)](_0x2b093e,_0x57da41,_0x501ddb,_0x273d0f);else{for(var _0x3596e3=_0x2b093e['length']-0x1;_0x3596e3>=0x0;_0x3596e3--)if(_0xd7cc82=_0x2b093e[_0x3596e3])_0x627a2f=(_0x2ad44a<0x3?_0xd7cc82(_0x627a2f):_0x2ad44a>0x3?_0xd7cc82(_0x57da41,_0x501ddb,_0x627a2f):_0xd7cc82(_0x57da41,_0x501ddb))||_0x627a2f;}return _0x2ad44a>0x3&&_0x627a2f&&Object[_0x449abf(0x172)](_0x57da41,_0x501ddb,_0x627a2f),_0x627a2f;},__metadata=this&&this['__metadata']||function(_0x5de6ce,_0x35ed26){const _0x25176b=a8_0xa10666;if(typeof Reflect==='object'&&typeof Reflect[_0x25176b(0x17e)]==='function')return Reflect[_0x25176b(0x17e)](_0x5de6ce,_0x35ed26);};Object[a8_0xa10666(0x172)](exports,a8_0xa10666(0x18d),{'value':!![]}),exports['ValidatorService']=void 0x0;const Joi=require('joi'),i18n_1=require(a8_0xa10666(0x18a)),core_1=require('@midwayjs/core'),interface_1=require('../interface'),ValidatorError_1=require(a8_0xa10666(0x164));let ValidatorService=exports[a8_0xa10666(0x152)]=class ValidatorService{constructor(){const _0x4d7770=a8_0xa10666;this[_0x4d7770(0x149)]={};}async[a8_0xa10666(0x158)](){const _0x4915f7=a8_0xa10666,_0x4d3269=Object[_0x4915f7(0x191)](this[_0x4915f7(0x18e)][_0x4915f7(0x15a)]);_0x4d3269[_0x4915f7(0x16f)](_0x2d0773=>{const _0xff3b43=_0x4915f7;this[_0xff3b43(0x149)][(0x0,i18n_1[_0xff3b43(0x17b)])(_0x2d0773)]=Object[_0xff3b43(0x18c)](this['i18nService'][_0xff3b43(0x171)](_0x2d0773,_0xff3b43(0x180)));});}[a8_0xa10666(0x173)](_0x344b8a){const _0x21d330=a8_0xa10666,_0x38e871=(0x0,core_1[_0x21d330(0x154)])(interface_1[_0x21d330(0x162)],_0x344b8a);return _0x38e871?Joi[_0x21d330(0x177)](_0x38e871):undefined;}[a8_0xa10666(0x180)](_0x4ed772,_0x4ed325,_0x11193f={}){const _0x30c47e=a8_0xa10666;var _0x5d6429,_0x32d1f3,_0x26ab3a,_0x49dc25,_0x5d8e5f,_0x3068b3;const _0x23d8ba=Joi[_0x30c47e(0x151)](_0x4ed772)?_0x4ed772:this['getSchema'](_0x4ed772);if(!_0x23d8ba)throw new AnnError(ValidatorError_1['ValidatorError'][_0x30c47e(0x182)]);_0x11193f[_0x30c47e(0x15b)]=Object[_0x30c47e(0x174)]((_0x5d6429=this[_0x30c47e(0x16c)][_0x30c47e(0x15b)])!==null&&_0x5d6429!==void 0x0?_0x5d6429:{},{'messages':this[_0x30c47e(0x149)]},_0x11193f[_0x30c47e(0x15b)]||{}),_0x11193f[_0x30c47e(0x15b)][_0x30c47e(0x181)]=_0x11193f[_0x30c47e(0x15b)]['errors']||{},_0x11193f['validationOptions']['errors'][_0x30c47e(0x159)]=(0x0,i18n_1[_0x30c47e(0x17b)])(this['i18nService']['getAvailableLocale'](_0x11193f[_0x30c47e(0x15b)][_0x30c47e(0x181)][_0x30c47e(0x159)]||_0x11193f[_0x30c47e(0x166)]||this[_0x30c47e(0x18e)][_0x30c47e(0x165)],'validator'));const _0x5ac883=_0x23d8ba[_0x30c47e(0x188)](_0x4ed325,_0x11193f[_0x30c47e(0x15b)]);if(_0x5ac883===null||_0x5ac883===void 0x0?void 0x0:_0x5ac883[_0x30c47e(0x14b)]){if(_0x5ac883['error']instanceof AnnError)throw _0x5ac883[_0x30c47e(0x14b)];else{if(_0x5ac883['error']instanceof Error)throw new AnnError(ValidatorError_1[_0x30c47e(0x169)]['PARAMS'],{'message':((_0x32d1f3=_0x5ac883[_0x30c47e(0x14b)])===null||_0x32d1f3===void 0x0?void 0x0:_0x32d1f3[_0x30c47e(0x167)])||_0x30c47e(0x155)});else throw new AnnError(ValidatorError_1[_0x30c47e(0x169)][_0x30c47e(0x185)],{'message':((_0x5d8e5f=(_0x49dc25=(_0x26ab3a=_0x5ac883[_0x30c47e(0x14b)])===null||_0x26ab3a===void 0x0?void 0x0:_0x26ab3a[_0x30c47e(0x156)])===null||_0x49dc25===void 0x0?void 0x0:_0x49dc25[0x0])===null||_0x5d8e5f===void 0x0?void 0x0:_0x5d8e5f[_0x30c47e(0x167)])||_0x30c47e(0x155)});}}if(_0x5ac883===null||_0x5ac883===void 0x0?void 0x0:_0x5ac883[_0x30c47e(0x168)]){const _0xbe418f=(_0x3068b3=_0x23d8ba===null||_0x23d8ba===void 0x0?void 0x0:_0x23d8ba[_0x30c47e(0x14d)])===null||_0x3068b3===void 0x0?void 0x0:_0x3068b3[_0x30c47e(0x191)],_0xf6294e=function(_0x5c98a6,_0x41b50d){const _0x177ff7=_0x30c47e;var _0x106d9d,_0x3ba09b,_0x2dae19,_0x500d01,_0x55fd59,_0x13fdf9,_0x1ac181,_0x2e8441,_0x2b192d,_0x680ade,_0x3c2520;for(let _0x2071b5 in _0x5c98a6){if(_0x41b50d[(_0x106d9d=_0x5c98a6[_0x2071b5])===null||_0x106d9d===void 0x0?void 0x0:_0x106d9d[_0x177ff7(0x179)]]&&((_0x2dae19=(_0x3ba09b=_0x5c98a6[_0x2071b5])===null||_0x3ba09b===void 0x0?void 0x0:_0x3ba09b[_0x177ff7(0x17f)])===null||_0x2dae19===void 0x0?void 0x0:_0x2dae19[_0x177ff7(0x161)])){if(((_0x55fd59=(_0x500d01=_0x5c98a6[_0x2071b5])===null||_0x500d01===void 0x0?void 0x0:_0x500d01[_0x177ff7(0x17f)])===null||_0x55fd59===void 0x0?void 0x0:_0x55fd59[_0x177ff7(0x161)])==_0x177ff7(0x177))_0x41b50d[_0x5c98a6[_0x2071b5]['key']]=_0xf6294e((_0x1ac181=(_0x13fdf9=_0x5c98a6[_0x2071b5])===null||_0x13fdf9===void 0x0?void 0x0:_0x13fdf9[_0x177ff7(0x17f)][_0x177ff7(0x14d)])===null||_0x1ac181===void 0x0?void 0x0:_0x1ac181[_0x177ff7(0x191)],_0x41b50d[_0x5c98a6[_0x2071b5][_0x177ff7(0x179)]]);else{if(_0x5c98a6[_0x2071b5][_0x177ff7(0x17f)][_0x177ff7(0x161)]==_0x177ff7(0x16d)&&_0x5ac883[_0x177ff7(0x168)][(_0x2e8441=_0x5c98a6[_0x2071b5])===null||_0x2e8441===void 0x0?void 0x0:_0x2e8441[_0x177ff7(0x179)]]){const _0x212090=((_0x3c2520=(_0x680ade=(_0x2b192d=_0x5c98a6[_0x2071b5])===null||_0x2b192d===void 0x0?void 0x0:_0x2b192d[_0x177ff7(0x17f)])===null||_0x680ade===void 0x0?void 0x0:_0x680ade[_0x177ff7(0x183)])===null||_0x3c2520===void 0x0?void 0x0:_0x3c2520['format'])||_0x177ff7(0x187);_0x41b50d[_0x5c98a6[_0x2071b5][_0x177ff7(0x179)]]=dayjs(_0x5ac883[_0x177ff7(0x168)][_0x5c98a6[_0x2071b5][_0x177ff7(0x179)]])[_0x177ff7(0x184)](_0x212090);}}}}return _0x41b50d;};return _0xf6294e(_0xbe418f,_0x5ac883[_0x30c47e(0x168)]);}throw new AnnError(ValidatorError_1[_0x30c47e(0x169)][_0x30c47e(0x185)]);}};__decorate([(0x0,core_1[a8_0xa10666(0x153)])(a8_0xa10666(0x147)),__metadata('design:type',Object)],ValidatorService[a8_0xa10666(0x176)],a8_0xa10666(0x18e),void 0x0),__decorate([(0x0,core_1['Config'])('validator'),__metadata(a8_0xa10666(0x15f),Object)],ValidatorService['prototype'],a8_0xa10666(0x16c),void 0x0),__decorate([(0x0,core_1[a8_0xa10666(0x14f)])(),__metadata('design:type',i18n_1[a8_0xa10666(0x160)])],ValidatorService['prototype'],a8_0xa10666(0x189),void 0x0),__decorate([(0x0,core_1[a8_0xa10666(0x150)])(),__metadata(a8_0xa10666(0x15f),Function),__metadata('design:paramtypes',[]),__metadata(a8_0xa10666(0x170),Promise)],ValidatorService[a8_0xa10666(0x176)],'init',null),exports[a8_0xa10666(0x152)]=ValidatorService=__decorate([(0x0,core_1[a8_0xa10666(0x163)])(a8_0xa10666(0x180)),(0x0,core_1[a8_0xa10666(0x14a)])(core_1[a8_0xa10666(0x186)]['Singleton'])],ValidatorService);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/validator",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.25",
|
|
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.2.
|
|
20
|
+
"@anncic-api/core": "^3.2.25",
|
|
21
21
|
"@joi/date": "^2.1.0",
|
|
22
22
|
"joi": "^17.9.2"
|
|
23
23
|
},
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"javascript-obfuscator": "^4.0.2",
|
|
27
27
|
"typescript": "^5.1.3"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "cef9d43054c4fcea4920b7c0ec52502446bd9a1f"
|
|
30
30
|
}
|