@anncic-api/validator 3.4.20 → 3.4.22
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/helper/getSchema.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_0x39fd(){const _0x3d7362=['3121644TIubMf','constructor','default','2216BWtqaR','6832380fdzjfr','toString','2967484WJhGPE','2842bjpPXP','2091945iNKPOd','../../locales/en_US.json','search','apply','PARAMS','1568051TBafLV','24455097nsSpvT','2TGxfgR','defineProperty'];a0_0x39fd=function(){return _0x3d7362;};return a0_0x39fd();}const a0_0x552a64=a0_0x1df7;(function(_0xc84b1c,_0x191e32){const _0x393104=a0_0x1df7,_0x35eab5=_0xc84b1c();while(!![]){try{const _0x4d2457=-parseInt(_0x393104(0x16c))/0x1*(parseInt(_0x393104(0x16e))/0x2)+parseInt(_0x393104(0x178))/0x3+parseInt(_0x393104(0x176))/0x4+-parseInt(_0x393104(0x174))/0x5+-parseInt(_0x393104(0x170))/0x6+-parseInt(_0x393104(0x177))/0x7*(-parseInt(_0x393104(0x173))/0x8)+parseInt(_0x393104(0x16d))/0x9;if(_0x4d2457===_0x191e32)break;else _0x35eab5['push'](_0x35eab5['shift']());}catch(_0x36f45f){_0x35eab5['push'](_0x35eab5['shift']());}}}(a0_0x39fd,0xc6c00));function a0_0x1df7(_0x1c1296,_0x8a1ed2){const _0x314a00=a0_0x39fd();return a0_0x1df7=function(_0x557a0f,_0x48cd40){_0x557a0f=_0x557a0f-0x16b;let _0x39fd6d=_0x314a00[_0x557a0f];return _0x39fd6d;},a0_0x1df7(_0x1c1296,_0x8a1ed2);}const a0_0x48cd40=(function(){let _0x306e06=!![];return function(_0x3c93d1,_0x2e327d){const _0x42f0f9=_0x306e06?function(){const _0x4beb3f=a0_0x1df7;if(_0x2e327d){const _0x55a5a3=_0x2e327d[_0x4beb3f(0x17b)](_0x3c93d1,arguments);return _0x2e327d=null,_0x55a5a3;}}:function(){};return _0x306e06=![],_0x42f0f9;};}()),a0_0x557a0f=a0_0x48cd40(this,function(){const _0x5d723a=a0_0x1df7;return a0_0x557a0f[_0x5d723a(0x175)]()[_0x5d723a(0x17a)]('(((.+)+)+)+$')[_0x5d723a(0x175)]()[_0x5d723a(0x171)](a0_0x557a0f)[_0x5d723a(0x17a)]('(((.+)+)+)+$');});a0_0x557a0f();'use strict';Object[a0_0x552a64(0x16f)](exports,'__esModule',{'value':!![]});const ValidatorError_1=require('../exception/ValidatorError');exports[a0_0x552a64(0x172)]={'validator':{'errorStatus':ValidatorError_1['ValidatorError'][a0_0x552a64(0x16b)],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':'string'}},'i18n':{'localeTable':{'en_US':{'validator':require(a0_0x552a64(0x179))},'zh_CN':{'validator':require('../../locales/zh_CN.json')}}}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a1_0x556862=a1_0xe7a9;(function(_0x1ab478,_0x40c52c){const _0x48f82d=a1_0xe7a9,_0x2c4e70=_0x1ab478();while(!![]){try{const _0x2e3e4f=-parseInt(_0x48f82d(0x1e3))/0x1+-parseInt(_0x48f82d(0x1c3))/0x2+-parseInt(_0x48f82d(0x1d1))/0x3+-parseInt(_0x48f82d(0x1ee))/0x4+parseInt(_0x48f82d(0x1c1))/0x5*(parseInt(_0x48f82d(0x1f9))/0x6)+-parseInt(_0x48f82d(0x1ce))/0x7+parseInt(_0x48f82d(0x1c4))/0x8;if(_0x2e3e4f===_0x40c52c)break;else _0x2c4e70['push'](_0x2c4e70['shift']());}catch(_0x3261e2){_0x2c4e70['push'](_0x2c4e70['shift']());}}}(a1_0x2934,0x74595));const a1_0x4bde79=(function(){let _0x541421=!![];return function(_0x588ff0,_0x4b0192){const _0xdb7538=_0x541421?function(){const _0x39ff70=a1_0xe7a9;if(_0x4b0192){const _0x648273=_0x4b0192[_0x39ff70(0x1c2)](_0x588ff0,arguments);return _0x4b0192=null,_0x648273;}}:function(){};return _0x541421=![],_0xdb7538;};}()),a1_0x1741f0=a1_0x4bde79(this,function(){const _0x30c314=a1_0xe7a9;return a1_0x1741f0[_0x30c314(0x1fa)]()[_0x30c314(0x1f2)](_0x30c314(0x1c9))['toString']()['constructor'](a1_0x1741f0)['search']('(((.+)+)+)+$');});a1_0x1741f0();function a1_0x2934(){const _0x335889=['defineProperty','locale','./interface','decorate','1797608ZLtMlo','splice','object','name','search','decorator','VALIDATOR_KEY','request','propertyName','param','getSchema','48wrNyTs','toString','metadata','./config/config.default','238525vrgHFn','apply','945212sIxaWA','14737096btBEkH','design:type','onReady','__decorate','@anncic-api/core','(((.+)+)+)+$','res','getMethodParamTypes','undefined','bound\x20dispatch','2812593iFZdKb','registerMethodHandler','__metadata','691005DNFODi','getAttr','method','params','getOwnPropertyDescriptor','@midwayjs/i18n','args','methodName','ValidatorService','find','validator','@midwayjs/core','anncic-api:validator','CustomConfiguration','./service/ValidatorService','methodArgs','req','assign','193070HNIqkw','MidwayDecoratorService','Inject','target','function','length','prototype'];a1_0x2934=function(){return _0x335889;};return a1_0x2934();}'use strict';var __decorate=this&&this[a1_0x556862(0x1c7)]||function(_0x243d5c,_0x370161,_0xc00665,_0x4cbd90){const _0x15e7e6=a1_0x556862;var _0xf48910=arguments['length'],_0x31871=_0xf48910<0x3?_0x370161:_0x4cbd90===null?_0x4cbd90=Object[_0x15e7e6(0x1d5)](_0x370161,_0xc00665):_0x4cbd90,_0x58d068;if(typeof Reflect==='object'&&typeof Reflect[_0x15e7e6(0x1ed)]===_0x15e7e6(0x1e7))_0x31871=Reflect[_0x15e7e6(0x1ed)](_0x243d5c,_0x370161,_0xc00665,_0x4cbd90);else{for(var _0x331451=_0x243d5c['length']-0x1;_0x331451>=0x0;_0x331451--)if(_0x58d068=_0x243d5c[_0x331451])_0x31871=(_0xf48910<0x3?_0x58d068(_0x31871):_0xf48910>0x3?_0x58d068(_0x370161,_0xc00665,_0x31871):_0x58d068(_0x370161,_0xc00665))||_0x31871;}return _0xf48910>0x3&&_0x31871&&Object[_0x15e7e6(0x1ea)](_0x370161,_0xc00665,_0x31871),_0x31871;},__metadata=this&&this[a1_0x556862(0x1d0)]||function(_0x471643,_0x5d7102){const _0x27435b=a1_0x556862;if(typeof Reflect===_0x27435b(0x1f0)&&typeof Reflect[_0x27435b(0x1fb)]===_0x27435b(0x1e7))return Reflect[_0x27435b(0x1fb)](_0x471643,_0x5d7102);};Object[a1_0x556862(0x1ea)](exports,'__esModule',{'value':!![]}),exports[a1_0x556862(0x1de)]=void 0x0;function a1_0xe7a9(_0x122efa,_0x536298){const _0x4de077=a1_0x2934();return a1_0xe7a9=function(_0x1741f0,_0x4bde79){_0x1741f0=_0x1741f0-0x1c1;let _0x293493=_0x4de077[_0x1741f0];return _0x293493;},a1_0xe7a9(_0x122efa,_0x536298);}const i18n_1=require(a1_0x556862(0x1d6)),core_1=require('@midwayjs/core'),core_2=require(a1_0x556862(0x1dc)),interface_1=require(a1_0x556862(0x1ec)),ValidatorService_1=require(a1_0x556862(0x1df)),i18n=require(a1_0x556862(0x1d6)),anncic=require(a1_0x556862(0x1c8)),ConfigDefault=require(a1_0x556862(0x1fc));let CustomConfiguration=class CustomConfiguration{async[a1_0x556862(0x1c6)](){const _0x27de3f=a1_0x556862;this[_0x27de3f(0x1f3)][_0x27de3f(0x1cf)](interface_1[_0x27de3f(0x1f4)],_0x10b47b=>{const _0x528d48=_0x27de3f,_0x366b8e=_0x10b47b[_0x528d48(0x1fb)],_0xa51d2e=(0x0,core_2[_0x528d48(0x1cb)])(_0x10b47b[_0x528d48(0x1e6)],_0x10b47b[_0x528d48(0x1f6)]);return{'before':_0x3d33cf=>{const _0x45aa77=_0x528d48;var _0x2e260e,_0x185fd3,_0x1ca5f1,_0x4cc3c0,_0x2450c7,_0x368791,_0x205dcb,_0x5091bb,_0x2c397e,_0x367d2c,_0x277121,_0x1ef07b,_0x332c3a;const _0x4ab767=_0x3d33cf[_0x45aa77(0x1e6)][core_1['REQUEST_OBJ_CTX_KEY']],_0x2b4e9b=Object[_0x45aa77(0x1e2)]({},((_0x2e260e=_0x4ab767===null||_0x4ab767===void 0x0?void 0x0:_0x4ab767[_0x45aa77(0x1f5)])===null||_0x2e260e===void 0x0?void 0x0:_0x2e260e['query'])||{},((_0x185fd3=_0x4ab767===null||_0x4ab767===void 0x0?void 0x0:_0x4ab767[_0x45aa77(0x1f5)])===null||_0x185fd3===void 0x0?void 0x0:_0x185fd3['body'])||{}),_0x450ff2=((0x0,core_2['getClassMetadata'])(interface_1[_0x45aa77(0x1f4)],_0x3d33cf[_0x45aa77(0x1e6)])||[])[_0x45aa77(0x1da)](_0x55179c=>_0x55179c[_0x45aa77(0x1d3)]==_0x3d33cf[_0x45aa77(0x1d8)]);!(_0x366b8e===null||_0x366b8e===void 0x0?void 0x0:_0x366b8e['locale'])&&_0x4ab767&&_0x4ab767[_0x45aa77(0x1d2)]&&(_0x366b8e[_0x45aa77(0x1eb)]=_0x4ab767[_0x45aa77(0x1d2)](i18n_1['I18N_ATTR_KEY']));for(let _0x875300=0x0;_0x875300<_0xa51d2e[_0x45aa77(0x1e8)];_0x875300++){const _0xcbd574=_0xa51d2e[_0x875300],_0x3e5be4=this[_0x45aa77(0x1d9)][_0x45aa77(0x1f8)](_0xcbd574);if(_0x3e5be4){if(typeof _0x3d33cf['args'][_0x875300]==_0x45aa77(0x1cc)||((_0x1ca5f1=_0x3d33cf[_0x45aa77(0x1d7)][_0x875300])===null||_0x1ca5f1===void 0x0?void 0x0:_0x1ca5f1['request'])&&((_0x4cc3c0=_0x3d33cf[_0x45aa77(0x1d7)][_0x875300])===null||_0x4cc3c0===void 0x0?void 0x0:_0x4cc3c0[_0x45aa77(0x1ca)])&&((_0x2450c7=_0x3d33cf[_0x45aa77(0x1d7)][_0x875300])===null||_0x2450c7===void 0x0?void 0x0:_0x2450c7[_0x45aa77(0x1e1)]))_0x3d33cf[_0x45aa77(0x1d7)][_0x875300]=_0x2b4e9b;else((_0x368791=_0x3d33cf['args'][_0x875300])===null||_0x368791===void 0x0?void 0x0:_0x368791[_0x45aa77(0x1f1)])==_0x45aa77(0x1cd)&&_0x3d33cf[_0x45aa77(0x1d7)][_0x45aa77(0x1ef)](_0x875300,0x0,_0x2b4e9b);const _0x16d5bd=this[_0x45aa77(0x1d9)][_0x45aa77(0x1db)](_0x3e5be4,_0x3d33cf['args'][_0x875300],_0x366b8e);_0x16d5bd&&(_0x3d33cf['args'][_0x875300]=_0x16d5bd);}else{if((_0x450ff2===null||_0x450ff2===void 0x0?void 0x0:_0x450ff2[_0x45aa77(0x1e0)][_0x875300])&&((_0x205dcb=_0x3d33cf[_0x45aa77(0x1d7)][_0x875300])===null||_0x205dcb===void 0x0?void 0x0:_0x205dcb[_0x45aa77(0x1d4)])&&typeof _0x3d33cf[_0x45aa77(0x1d7)][_0x875300][_0x45aa77(0x1f7)]==_0x45aa77(0x1e7)&&((_0x5091bb=_0x4ab767===null||_0x4ab767===void 0x0?void 0x0:_0x4ab767[_0x45aa77(0x1d4)])===null||_0x5091bb===void 0x0?void 0x0:_0x5091bb[_0x450ff2[_0x45aa77(0x1e0)][_0x875300]]))_0x3d33cf['args'][_0x875300]=_0xcbd574((_0x2c397e=_0x4ab767===null||_0x4ab767===void 0x0?void 0x0:_0x4ab767['params'])===null||_0x2c397e===void 0x0?void 0x0:_0x2c397e[_0x450ff2[_0x45aa77(0x1e0)][_0x875300]]);else(_0x450ff2===null||_0x450ff2===void 0x0?void 0x0:_0x450ff2[_0x45aa77(0x1e0)][_0x875300])&&((_0x277121=(_0x367d2c=_0x3d33cf['args'][_0x875300])===null||_0x367d2c===void 0x0?void 0x0:_0x367d2c[_0x45aa77(0x1d4)])===null||_0x277121===void 0x0?void 0x0:_0x277121[_0x450ff2[_0x45aa77(0x1e0)][_0x875300]])&&(_0x3d33cf[_0x45aa77(0x1d7)][_0x875300]=(_0x332c3a=(_0x1ef07b=_0x3d33cf[_0x45aa77(0x1d7)][_0x875300])===null||_0x1ef07b===void 0x0?void 0x0:_0x1ef07b[_0x45aa77(0x1d4)])===null||_0x332c3a===void 0x0?void 0x0:_0x332c3a[_0x450ff2[_0x45aa77(0x1e0)][_0x875300]]);}}},'afterThrow':(_0x34362c,_0x1f623a)=>{throw _0x1f623a;}};});}};exports[a1_0x556862(0x1de)]=CustomConfiguration,__decorate([(0x0,core_2[a1_0x556862(0x1e5)])(),__metadata('design:type',core_1[a1_0x556862(0x1e4)])],CustomConfiguration['prototype'],'decorator',void 0x0),__decorate([(0x0,core_2[a1_0x556862(0x1e5)])(),__metadata(a1_0x556862(0x1c5),ValidatorService_1['ValidatorService'])],CustomConfiguration[a1_0x556862(0x1e9)],'ValidatorService',void 0x0),exports[a1_0x556862(0x1de)]=CustomConfiguration=__decorate([(0x0,core_2['Configuration'])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':a1_0x556862(0x1dd),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
|
package/dist/decorator/Rule.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0x11e712=a2_0x26bd;(function(_0x4c9a21,_0x3ceba3){const _0x1c71d6=a2_0x26bd,_0x19a7fa=_0x4c9a21();while(!![]){try{const _0x1c26e4=parseInt(_0x1c71d6(0x20d))/0x1*(parseInt(_0x1c71d6(0x206))/0x2)+-parseInt(_0x1c71d6(0x205))/0x3*(-parseInt(_0x1c71d6(0x207))/0x4)+-parseInt(_0x1c71d6(0x215))/0x5*(-parseInt(_0x1c71d6(0x204))/0x6)+-parseInt(_0x1c71d6(0x219))/0x7+parseInt(_0x1c71d6(0x203))/0x8*(-parseInt(_0x1c71d6(0x211))/0x9)+parseInt(_0x1c71d6(0x20c))/0xa+-parseInt(_0x1c71d6(0x1fa))/0xb*(parseInt(_0x1c71d6(0x1fc))/0xc);if(_0x1c26e4===_0x3ceba3)break;else _0x19a7fa['push'](_0x19a7fa['shift']());}catch(_0x17850d){_0x19a7fa['push'](_0x19a7fa['shift']());}}}(a2_0x3445,0x507ac));const a2_0x4cfe80=(function(){let _0x50ee7c=!![];return function(_0x1e2150,_0x3a57dd){const _0x19aebe=_0x50ee7c?function(){const _0x158b55=a2_0x26bd;if(_0x3a57dd){const _0x5cbd41=_0x3a57dd[_0x158b55(0x1f7)](_0x1e2150,arguments);return _0x3a57dd=null,_0x5cbd41;}}:function(){};return _0x50ee7c=![],_0x19aebe;};}()),a2_0x291501=a2_0x4cfe80(this,function(){const _0x477baa=a2_0x26bd;return a2_0x291501['toString']()[_0x477baa(0x1f6)](_0x477baa(0x1fd))[_0x477baa(0x20b)]()['constructor'](a2_0x291501)['search'](_0x477baa(0x1fd));});a2_0x291501();function a2_0x26bd(_0x50e0d7,_0x458ce8){const _0x5528de=a2_0x3445();return a2_0x26bd=function(_0x291501,_0x4cfe80){_0x291501=_0x291501-0x1f4;let _0x3445c5=_0x5528de[_0x291501];return _0x3445c5;},a2_0x26bd(_0x50e0d7,_0x458ce8);}'use strict';Object['defineProperty'](exports,a2_0x11e712(0x1f8),{'value':!![]}),exports[a2_0x11e712(0x1f9)]=exports['RuleType']=void 0x0;const joi=require(a2_0x11e712(0x214)),date_1=require(a2_0x11e712(0x1fe)),core_1=require(a2_0x11e712(0x210)),interface_1=require(a2_0x11e712(0x1f5));exports[a2_0x11e712(0x1f4)]=joi['extend'](date_1[a2_0x11e712(0x213)]);function a2_0x3445(){const _0x2549ff=['1889GznAYi','RULES_KEY','saveClassMetadata','@midwayjs/core','991989mbBLxC','getClassMetadata','default','joi','25sJLkGT','function','Array','description','3366804SusGaF','RuleType','../interface','search','apply','__esModule','Rule','11EqGxBV','name','6096648HWNiZf','(((.+)+)+)+$','@joi/date','isSchema','meta','label','getPropertyType','16zRkKlD','788910sFabvd','10395GzTIYl','382KiXvpp','308xytTjB','items','array','keys','toString','2540830eTUgkf'];a2_0x3445=function(){return _0x2549ff;};return a2_0x3445();}function Rule(_0x38ad63,_0x2992dc,_0xf1aae7=''){return(_0x2b80d9,_0x574995)=>{const _0x271493=a2_0x26bd;var _0x47a316;if(_0x574995)!joi['isSchema'](_0x2992dc)&&(_0x2992dc===null||_0x2992dc===void 0x0?void 0x0:_0x2992dc[_0x271493(0x1fb)])&&(_0x2992dc=joi['object']((0x0,core_1[_0x271493(0x212)])(interface_1[_0x271493(0x20e)],_0x2992dc))[_0x271493(0x200)]({'id':_0x2992dc[_0x271493(0x1fb)]}),(0x0,core_1[_0x271493(0x202)])(_0x2b80d9,_0x574995)[_0x271493(0x1fb)]===_0x271493(0x217)&&(_0x2992dc=joi[_0x271493(0x209)]()[_0x271493(0x208)](_0x2992dc))),joi[_0x271493(0x1ff)](_0x2992dc)&&(_0x38ad63&&typeof(_0x2992dc===null||_0x2992dc===void 0x0?void 0x0:_0x2992dc[_0x271493(0x201)])=='function'&&(_0x2992dc=_0x2992dc[_0x271493(0x201)](_0x38ad63)),_0xf1aae7&&typeof(_0x2992dc===null||_0x2992dc===void 0x0?void 0x0:_0x2992dc['description'])==_0x271493(0x216)&&(_0x2992dc=_0x2992dc[_0x271493(0x218)](_0xf1aae7)),(0x0,core_1['attachClassMetadata'])(interface_1['RULES_KEY'],_0x2992dc,_0x2b80d9,_0x574995));else{const _0xc61cd2=(0x0,core_1[_0x271493(0x212)])(interface_1[_0x271493(0x20e)],_0x2992dc);if(_0xc61cd2){let _0x589b62=(_0x47a316=(0x0,core_1['getClassMetadata'])(interface_1[_0x271493(0x20e)],_0x2b80d9))!==null&&_0x47a316!==void 0x0?_0x47a316:{};Object[_0x271493(0x20a)](_0xc61cd2)['map'](_0x57b55=>{!_0x589b62[_0x57b55]&&(_0x589b62[_0x57b55]=_0xc61cd2[_0x57b55]);}),(0x0,core_1[_0x271493(0x20f)])(interface_1[_0x271493(0x20e)],_0x589b62,_0x2b80d9);}}};}exports[a2_0x11e712(0x1f9)]=Rule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x4e6169=a3_0x5382;(function(_0x5e7fe4,_0xcf9bae){const _0x551df2=a3_0x5382,_0x28b448=_0x5e7fe4();while(!![]){try{const _0x5065d8=parseInt(_0x551df2(0x1b8))/0x1*(parseInt(_0x551df2(0x1aa))/0x2)+-parseInt(_0x551df2(0x1a8))/0x3*(parseInt(_0x551df2(0x1ac))/0x4)+-parseInt(_0x551df2(0x1a6))/0x5+parseInt(_0x551df2(0x1b1))/0x6*(parseInt(_0x551df2(0x1ad))/0x7)+parseInt(_0x551df2(0x1c2))/0x8+-parseInt(_0x551df2(0x1c0))/0x9+-parseInt(_0x551df2(0x1ba))/0xa*(-parseInt(_0x551df2(0x1b3))/0xb);if(_0x5065d8===_0xcf9bae)break;else _0x28b448['push'](_0x28b448['shift']());}catch(_0x3705fa){_0x28b448['push'](_0x28b448['shift']());}}}(a3_0x1a24,0xaf7a4));const a3_0x27b430=(function(){let _0x20ba77=!![];return function(_0x42286a,_0x2fb69b){const _0x49e98c=_0x20ba77?function(){const _0x46d1e9=a3_0x5382;if(_0x2fb69b){const _0x46ff74=_0x2fb69b[_0x46d1e9(0x1ab)](_0x42286a,arguments);return _0x2fb69b=null,_0x46ff74;}}:function(){};return _0x20ba77=![],_0x49e98c;};}()),a3_0x2a0da0=a3_0x27b430(this,function(){const _0x36558f=a3_0x5382;return a3_0x2a0da0[_0x36558f(0x1bb)]()[_0x36558f(0x1af)](_0x36558f(0x1bd))['toString']()[_0x36558f(0x1bc)](a3_0x2a0da0)[_0x36558f(0x1af)](_0x36558f(0x1bd));});a3_0x2a0da0();function a3_0x1a24(){const _0xfa3869=['4899370PrpeJU','replace','1293zdielk','getFuncArgs','16334yEHdfl','apply','4340PPRemM','935942ytRCnl','__esModule','search','match','18qGbWHg','indexOf','10571VOeQnr','VALIDATOR_KEY','@midwayjs/core','slice','function','173cZXPtW','Validator','12190LuuZsm','toString','constructor','(((.+)+)+)+$','defineProperty','attachClassMetadata','7969446sQTQjF','createCustomMethodDecorator','530328wWTpgr','prototype','../interface'];a3_0x1a24=function(){return _0xfa3869;};return a3_0x1a24();}'use strict';Object[a3_0x4e6169(0x1be)](exports,a3_0x4e6169(0x1ae),{'value':!![]}),exports[a3_0x4e6169(0x1a9)]=exports[a3_0x4e6169(0x1b9)]=void 0x0;function a3_0x5382(_0x4983d9,_0x48c0cf){const _0x52eb30=a3_0x1a24();return a3_0x5382=function(_0x2a0da0,_0x27b430){_0x2a0da0=_0x2a0da0-0x1a5;let _0x1a24cc=_0x52eb30[_0x2a0da0];return _0x1a24cc;},a3_0x5382(_0x4983d9,_0x48c0cf);}const core_1=require(a3_0x4e6169(0x1b5)),interface_1=require(a3_0x4e6169(0x1a5));function Validator(_0x47eea1={}){return(_0x4b6020,_0x199d25,_0x3eeda1)=>{const _0xb1b460=a3_0x5382,_0x271bfd=getFuncArgs(_0x4b6020[_0x199d25]);(0x0,core_1[_0xb1b460(0x1bf)])(interface_1['VALIDATOR_KEY'],{'method':_0x199d25,'methodArgs':_0x271bfd},_0x4b6020),(0x0,core_1[_0xb1b460(0x1c1)])(interface_1[_0xb1b460(0x1b4)],_0x47eea1)(_0x4b6020,_0x199d25,_0x3eeda1);};}exports[a3_0x4e6169(0x1b9)]=Validator;function getFuncArgs(_0x3bcdcd){const _0x4d4aa2=a3_0x4e6169;if(typeof _0x3bcdcd==_0x4d4aa2(0x1b7)){const _0x326933=/=>.*$/mg,_0x14a3d6=/=[^,)]+/mg,_0x547c4a=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0xf2fb42=(_0x3bcdcd[_0x4d4aa2(0x1c3)]?_0x3bcdcd['prototype'][_0x4d4aa2(0x1bc)][_0x4d4aa2(0x1bb)]():_0x3bcdcd['toString']())[_0x4d4aa2(0x1a7)](_0x547c4a,'')['replace'](_0x326933,'')[_0x4d4aa2(0x1a7)](_0x14a3d6,''),_0x5552f0=_0xf2fb42[_0x4d4aa2(0x1b6)](_0xf2fb42[_0x4d4aa2(0x1b2)]('(')+0x1,_0xf2fb42[_0x4d4aa2(0x1b2)](')'))[_0x4d4aa2(0x1b0)](/([^\s,]+)/g)||[];return _0x5552f0;}}exports['getFuncArgs']=getFuncArgs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a4_0x2b2840=a4_0x2846;(function(_0x1028ad,_0x115e8a){var _0x405980=a4_0x2846,_0x18bad1=_0x1028ad();while(!![]){try{var _0x26776e=parseInt(_0x405980(0x178))/0x1*(parseInt(_0x405980(0x176))/0x2)+-parseInt(_0x405980(0x169))/0x3+parseInt(_0x405980(0x171))/0x4+-parseInt(_0x405980(0x179))/0x5+-parseInt(_0x405980(0x170))/0x6+parseInt(_0x405980(0x163))/0x7*(-parseInt(_0x405980(0x168))/0x8)+parseInt(_0x405980(0x16f))/0x9;if(_0x26776e===_0x115e8a)break;else _0x18bad1['push'](_0x18bad1['shift']());}catch(_0x45dc53){_0x18bad1['push'](_0x18bad1['shift']());}}}(a4_0x30de,0x79d7a));function a4_0x30de(){var _0x4d2e42=['decorate','2ApozRb','constructor','202255opORIl','1905065DYncOO','toString','design:type','__esModule','56FMNRTh','object','ValidatorError','PARAMS','defineProperty','519896AVXTKH','1867062KZQDXb','NOFIND_SCHEMA','metadata','(((.+)+)+)+$','AnnErrorMsg','getOwnPropertyDescriptor','15309675CztsHU','656856GOGcdv','913900kVuHfk','参数验证失败','search','apply'];a4_0x30de=function(){return _0x4d2e42;};return a4_0x30de();}var a4_0x188639=(function(){var _0xfb4c3e=!![];return function(_0x548e0a,_0x189292){var _0x5a90f1=_0xfb4c3e?function(){var _0x5f218b=a4_0x2846;if(_0x189292){var _0x18b030=_0x189292[_0x5f218b(0x174)](_0x548e0a,arguments);return _0x189292=null,_0x18b030;}}:function(){};return _0xfb4c3e=![],_0x5a90f1;};}()),a4_0x4870e8=a4_0x188639(this,function(){var _0xf2f46b=a4_0x2846;return a4_0x4870e8[_0xf2f46b(0x17a)]()[_0xf2f46b(0x173)](_0xf2f46b(0x16c))[_0xf2f46b(0x17a)]()[_0xf2f46b(0x177)](a4_0x4870e8)[_0xf2f46b(0x173)](_0xf2f46b(0x16c));});a4_0x4870e8();'use strict';var __decorate=this&&this['__decorate']||function(_0xc5101e,_0x7eed74,_0x5eac7f,_0x9e6ccc){var _0x7e0e26=a4_0x2846,_0x1b5e7a=arguments['length'],_0xefc9fe=_0x1b5e7a<0x3?_0x7eed74:_0x9e6ccc===null?_0x9e6ccc=Object[_0x7e0e26(0x16e)](_0x7eed74,_0x5eac7f):_0x9e6ccc,_0x253756;if(typeof Reflect==='object'&&typeof Reflect[_0x7e0e26(0x175)]==='function')_0xefc9fe=Reflect[_0x7e0e26(0x175)](_0xc5101e,_0x7eed74,_0x5eac7f,_0x9e6ccc);else{for(var _0x520b91=_0xc5101e['length']-0x1;_0x520b91>=0x0;_0x520b91--)if(_0x253756=_0xc5101e[_0x520b91])_0xefc9fe=(_0x1b5e7a<0x3?_0x253756(_0xefc9fe):_0x1b5e7a>0x3?_0x253756(_0x7eed74,_0x5eac7f,_0xefc9fe):_0x253756(_0x7eed74,_0x5eac7f))||_0xefc9fe;}return _0x1b5e7a>0x3&&_0xefc9fe&&Object[_0x7e0e26(0x167)](_0x7eed74,_0x5eac7f,_0xefc9fe),_0xefc9fe;},__metadata=this&&this['__metadata']||function(_0x532e98,_0x100d47){var _0x54be7d=a4_0x2846;if(typeof Reflect===_0x54be7d(0x164)&&typeof Reflect[_0x54be7d(0x16b)]==='function')return Reflect[_0x54be7d(0x16b)](_0x532e98,_0x100d47);};Object[a4_0x2b2840(0x167)](exports,a4_0x2b2840(0x162),{'value':!![]}),exports[a4_0x2b2840(0x165)]=void 0x0;const core_1=require('@anncic-api/core');class ValidatorError extends AnnError{}function a4_0x2846(_0x1424bd,_0x32f3f8){var _0x217f1a=a4_0x30de();return a4_0x2846=function(_0x4870e8,_0x188639){_0x4870e8=_0x4870e8-0x162;var _0x30deca=_0x217f1a[_0x4870e8];return _0x30deca;},a4_0x2846(_0x1424bd,_0x32f3f8);}exports[a4_0x2b2840(0x165)]=ValidatorError,ValidatorError[a4_0x2b2840(0x166)]=0x18c1e,ValidatorError['NOFIND_SCHEMA']=0x18c1c,__decorate([(0x0,core_1[a4_0x2b2840(0x16d)])(a4_0x2b2840(0x172)),__metadata(a4_0x2b2840(0x17b),Object)],ValidatorError,a4_0x2b2840(0x166),void 0x0),__decorate([(0x0,core_1[a4_0x2b2840(0x16d)])(a4_0x2b2840(0x172)),__metadata(a4_0x2b2840(0x17b),Object)],ValidatorError,a4_0x2b2840(0x16a),void 0x0);
|
package/dist/helper/dtoHelper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x4f4d45=a5_0xd711;function a5_0x1137(){const _0x882e8c=['2492888KnvcGy','prototype','153OUlycO','12647480ZsrPvs','constructor','2878095DQkSZD','PickDto','search','(((.+)+)+)+$','OmitDto','58169PEiWlO','__esModule','2YbUpNI','toString','205107AUojtI','saveClassMetadata','269768JwFjBL','3581529EcjtNo','6ahushD','defineProperty','RULES_KEY'];a5_0x1137=function(){return _0x882e8c;};return a5_0x1137();}(function(_0x424a6c,_0x427ebf){const _0x12fa23=a5_0xd711,_0x1a34f4=_0x424a6c();while(!![]){try{const _0x1db1e5=-parseInt(_0x12fa23(0x138))/0x1*(-parseInt(_0x12fa23(0x13a))/0x2)+parseInt(_0x12fa23(0x13c))/0x3+parseInt(_0x12fa23(0x143))/0x4+parseInt(_0x12fa23(0x148))/0x5*(-parseInt(_0x12fa23(0x140))/0x6)+-parseInt(_0x12fa23(0x13f))/0x7+parseInt(_0x12fa23(0x13e))/0x8*(-parseInt(_0x12fa23(0x145))/0x9)+parseInt(_0x12fa23(0x146))/0xa;if(_0x1db1e5===_0x427ebf)break;else _0x1a34f4['push'](_0x1a34f4['shift']());}catch(_0x390c01){_0x1a34f4['push'](_0x1a34f4['shift']());}}}(a5_0x1137,0x566c1));const a5_0x53fb2c=(function(){let _0x3dfc00=!![];return function(_0x2e60eb,_0x550370){const _0x508b9e=_0x3dfc00?function(){if(_0x550370){const _0x4b30b3=_0x550370['apply'](_0x2e60eb,arguments);return _0x550370=null,_0x4b30b3;}}:function(){};return _0x3dfc00=![],_0x508b9e;};}()),a5_0x5c6725=a5_0x53fb2c(this,function(){const _0x4852b4=a5_0xd711;return a5_0x5c6725[_0x4852b4(0x13b)]()[_0x4852b4(0x14a)](_0x4852b4(0x14b))[_0x4852b4(0x13b)]()[_0x4852b4(0x147)](a5_0x5c6725)[_0x4852b4(0x14a)](_0x4852b4(0x14b));});a5_0x5c6725();'use strict';Object[a5_0x4f4d45(0x141)](exports,a5_0x4f4d45(0x139),{'value':!![]}),exports['OmitDto']=exports[a5_0x4f4d45(0x149)]=void 0x0;const core_1=require('@midwayjs/core'),interface_1=require('../interface');function PickDto(_0x466b15,_0x2cd7ab){const _0x29c18a=a5_0x4f4d45,_0x210677=function(){};_0x210677['prototype']=_0x466b15['prototype'];const _0x3cf7be=(0x0,core_1['getClassExtendedMetadata'])(interface_1['RULES_KEY'],_0x466b15),_0x4ec31a={};for(const _0x125cc7 of _0x2cd7ab){_0x3cf7be[_0x125cc7]&&(_0x4ec31a[_0x125cc7]=_0x3cf7be[_0x125cc7]);}return(0x0,core_1[_0x29c18a(0x13d)])(interface_1['RULES_KEY'],_0x4ec31a,_0x210677),_0x210677;}exports[a5_0x4f4d45(0x149)]=PickDto;function a5_0xd711(_0x5842d7,_0x15490d){const _0x228cb4=a5_0x1137();return a5_0xd711=function(_0x5c6725,_0x53fb2c){_0x5c6725=_0x5c6725-0x138;let _0x1137ca=_0x228cb4[_0x5c6725];return _0x1137ca;},a5_0xd711(_0x5842d7,_0x15490d);}function OmitDto(_0x30e4f3,_0x38a52f){const _0x4ef7f2=a5_0x4f4d45,_0x22ac90=function(){};_0x22ac90['prototype']=_0x30e4f3[_0x4ef7f2(0x144)];const _0x16d036=(0x0,core_1['getClassExtendedMetadata'])(interface_1[_0x4ef7f2(0x142)],_0x30e4f3),_0x1eda9c=Object['assign']({},_0x16d036);for(const _0x317828 of _0x38a52f){delete _0x1eda9c[_0x317828];}return(0x0,core_1[_0x4ef7f2(0x13d)])(interface_1[_0x4ef7f2(0x142)],_0x1eda9c,_0x22ac90),_0x22ac90;}exports[a5_0x4f4d45(0x14c)]=OmitDto;
|
package/dist/helper/getSchema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a6_0x44b5(_0x23aed,_0x1d4dbd){const _0x50c642=a6_0x3854();return a6_0x44b5=function(_0x5aa9c7,_0x177bee){_0x5aa9c7=_0x5aa9c7-0x6a;let _0x38544a=_0x50c642[_0x5aa9c7];return _0x38544a;},a6_0x44b5(_0x23aed,_0x1d4dbd);}const a6_0x39d3e4=a6_0x44b5;(function(_0xd09f4,_0x18f795){const _0x325b26=a6_0x44b5,_0x1768cc=_0xd09f4();while(!![]){try{const _0x1a5bf5=-parseInt(_0x325b26(0x7a))/0x1*(parseInt(_0x325b26(0x70))/0x2)+parseInt(_0x325b26(0x7b))/0x3+parseInt(_0x325b26(0x75))/0x4+-parseInt(_0x325b26(0x6e))/0x5*(parseInt(_0x325b26(0x7f))/0x6)+parseInt(_0x325b26(0x6d))/0x7*(parseInt(_0x325b26(0x6c))/0x8)+parseInt(_0x325b26(0x6b))/0x9+-parseInt(_0x325b26(0x6f))/0xa;if(_0x1a5bf5===_0x18f795)break;else _0x1768cc['push'](_0x1768cc['shift']());}catch(_0x48cb83){_0x1768cc['push'](_0x1768cc['shift']());}}}(a6_0x3854,0x2ac5f));const a6_0x177bee=(function(){let _0x412aa9=!![];return function(_0x64dd63,_0x3e0fd4){const _0x595bfc=_0x412aa9?function(){const _0x45b9a5=a6_0x44b5;if(_0x3e0fd4){const _0x247bc8=_0x3e0fd4[_0x45b9a5(0x76)](_0x64dd63,arguments);return _0x3e0fd4=null,_0x247bc8;}}:function(){};return _0x412aa9=![],_0x595bfc;};}()),a6_0x5aa9c7=a6_0x177bee(this,function(){const _0x3fa6c7=a6_0x44b5;return a6_0x5aa9c7[_0x3fa6c7(0x73)]()[_0x3fa6c7(0x72)](_0x3fa6c7(0x74))[_0x3fa6c7(0x73)]()[_0x3fa6c7(0x79)](a6_0x5aa9c7)['search'](_0x3fa6c7(0x74));});a6_0x5aa9c7();'use strict';Object[a6_0x39d3e4(0x7e)](exports,'__esModule',{'value':!![]}),exports[a6_0x39d3e4(0x6a)]=void 0x0;function a6_0x3854(){const _0xe530b2=['1kJqOuJ','919536WZIcIg','../interface','@midwayjs/core','defineProperty','924iWZpWr','getSchema','331389NxxNvO','2617096zAONyc','7qOVUbD','5465NEKQdd','2220380cAYesR','482910xmZeGC','object','search','toString','(((.+)+)+)+$','546176sYhhCb','apply','RULES_KEY','getClassExtendedMetadata','constructor'];a6_0x3854=function(){return _0xe530b2;};return a6_0x3854();}const Joi=require('joi'),core_1=require(a6_0x39d3e4(0x7d)),interface_1=require(a6_0x39d3e4(0x7c));function getSchema(_0x3078f3){const _0x576f69=a6_0x39d3e4,_0x2ac84a=(0x0,core_1[_0x576f69(0x78)])(interface_1[_0x576f69(0x77)],_0x3078f3);if(_0x2ac84a)return Joi[_0x576f69(0x71)](_0x2ac84a);}exports[a6_0x39d3e4(0x6a)]=getSchema;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a7_0x51d407=a7_0xa26c;(function(_0x228643,_0x368088){var _0x246840=a7_0xa26c,_0x4b7b22=_0x228643();while(!![]){try{var _0x23df2a=-parseInt(_0x246840(0x1cd))/0x1+-parseInt(_0x246840(0x1c6))/0x2+-parseInt(_0x246840(0x1db))/0x3+parseInt(_0x246840(0x1c4))/0x4+parseInt(_0x246840(0x1e3))/0x5*(parseInt(_0x246840(0x1d6))/0x6)+-parseInt(_0x246840(0x1c7))/0x7*(-parseInt(_0x246840(0x1d1))/0x8)+parseInt(_0x246840(0x1da))/0x9;if(_0x23df2a===_0x368088)break;else _0x4b7b22['push'](_0x4b7b22['shift']());}catch(_0x59071e){_0x4b7b22['push'](_0x4b7b22['shift']());}}}(a7_0x498d,0x97e8b));var a7_0x1ee9f3=(function(){var _0x30b7ab=!![];return function(_0x8be1f2,_0x1d4553){var _0x3d5305=_0x30b7ab?function(){if(_0x1d4553){var _0x100b3f=_0x1d4553['apply'](_0x8be1f2,arguments);return _0x1d4553=null,_0x100b3f;}}:function(){};return _0x30b7ab=![],_0x3d5305;};}()),a7_0x1ab72b=a7_0x1ee9f3(this,function(){var _0x510d1e=a7_0xa26c;return a7_0x1ab72b[_0x510d1e(0x1c0)]()[_0x510d1e(0x1de)](_0x510d1e(0x1d5))['toString']()[_0x510d1e(0x1d9)](a7_0x1ab72b)['search'](_0x510d1e(0x1d5));});a7_0x1ab72b();'use strict';var __createBinding=this&&this[a7_0x51d407(0x1e0)]||(Object['create']?function(_0x13d483,_0x1fcb0e,_0x5f3d5f,_0x2dd4fd){var _0x4bf777=a7_0x51d407;if(_0x2dd4fd===undefined)_0x2dd4fd=_0x5f3d5f;var _0x417c2d=Object[_0x4bf777(0x1d3)](_0x1fcb0e,_0x5f3d5f);(!_0x417c2d||(_0x4bf777(0x1cf)in _0x417c2d?!_0x1fcb0e[_0x4bf777(0x1dc)]:_0x417c2d[_0x4bf777(0x1bf)]||_0x417c2d[_0x4bf777(0x1dd)]))&&(_0x417c2d={'enumerable':!![],'get':function(){return _0x1fcb0e[_0x5f3d5f];}}),Object[_0x4bf777(0x1e2)](_0x13d483,_0x2dd4fd,_0x417c2d);}:function(_0x8994f7,_0x637da2,_0x248d0d,_0x5452f1){if(_0x5452f1===undefined)_0x5452f1=_0x248d0d;_0x8994f7[_0x5452f1]=_0x637da2[_0x248d0d];}),__exportStar=this&&this[a7_0x51d407(0x1c3)]||function(_0x3a09c4,_0x3bdea5){var _0x37cfcf=a7_0x51d407;for(var _0x41c63e in _0x3a09c4)if(_0x41c63e!==_0x37cfcf(0x1e1)&&!Object[_0x37cfcf(0x1c1)][_0x37cfcf(0x1d4)]['call'](_0x3bdea5,_0x41c63e))__createBinding(_0x3bdea5,_0x3a09c4,_0x41c63e);};Object[a7_0x51d407(0x1e2)](exports,a7_0x51d407(0x1dc),{'value':!![]}),exports[a7_0x51d407(0x1c9)]=exports[a7_0x51d407(0x1c5)]=exports[a7_0x51d407(0x1cb)]=exports[a7_0x51d407(0x1d0)]=exports[a7_0x51d407(0x1ce)]=exports[a7_0x51d407(0x1d2)]=void 0x0,__exportStar(require(a7_0x51d407(0x1d8)),exports),__exportStar(require(a7_0x51d407(0x1d7)),exports),__exportStar(require(a7_0x51d407(0x1cc)),exports);var Validator_1=require(a7_0x51d407(0x1df));Object[a7_0x51d407(0x1e2)](exports,a7_0x51d407(0x1d2),{'enumerable':!![],'get':function(){var _0x1a4ef7=a7_0x51d407;return Validator_1[_0x1a4ef7(0x1d2)];}});var Rule_1=require(a7_0x51d407(0x1c8));function a7_0xa26c(_0x3b4e26,_0x52eb63){var _0x39731f=a7_0x498d();return a7_0xa26c=function(_0x1ab72b,_0x1ee9f3){_0x1ab72b=_0x1ab72b-0x1bf;var _0x498df7=_0x39731f[_0x1ab72b];return _0x498df7;},a7_0xa26c(_0x3b4e26,_0x52eb63);}Object[a7_0x51d407(0x1e2)](exports,'Rule',{'enumerable':!![],'get':function(){var _0x2d8a4c=a7_0x51d407;return Rule_1[_0x2d8a4c(0x1ce)];}}),Object[a7_0x51d407(0x1e2)](exports,a7_0x51d407(0x1d0),{'enumerable':!![],'get':function(){var _0x8703a=a7_0x51d407;return Rule_1[_0x8703a(0x1d0)];}});var ValidatorError_1=require('./exception/ValidatorError');function a7_0x498d(){var _0x28f000=['./helper/dtoHelper','./interface','constructor','24470865ljSkoa','2157789ychEVE','__esModule','configurable','search','./decorator/Validator','__createBinding','default','defineProperty','11315OjgRrw','writable','toString','prototype','./configuration','__exportStar','146708GgJEkc','ValidatorService','1102176DwWWNg','633395HnNDqq','./decorator/Rule','Configuration','CustomConfiguration','ValidatorError','./helper/getSchema','1157212ctNelj','Rule','get','RuleType','16NDOete','Validator','getOwnPropertyDescriptor','hasOwnProperty','(((.+)+)+)+$','300nOdEIS'];a7_0x498d=function(){return _0x28f000;};return a7_0x498d();}Object['defineProperty'](exports,a7_0x51d407(0x1cb),{'enumerable':!![],'get':function(){return ValidatorError_1['ValidatorError'];}});var ValidatorService_1=require('./service/ValidatorService');Object[a7_0x51d407(0x1e2)](exports,a7_0x51d407(0x1c5),{'enumerable':!![],'get':function(){var _0x4d94d2=a7_0x51d407;return ValidatorService_1[_0x4d94d2(0x1c5)];}});var configuration_1=require(a7_0x51d407(0x1c2));Object[a7_0x51d407(0x1e2)](exports,a7_0x51d407(0x1c9),{'enumerable':!![],'get':function(){var _0x16f693=a7_0x51d407;return configuration_1[_0x16f693(0x1ca)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a8_0x345aa6=a8_0x3e09;(function(_0x780c9a,_0x5d44d5){var _0x390704=a8_0x3e09,_0x458a5a=_0x780c9a();while(!![]){try{var _0x9a9473=-parseInt(_0x390704(0x9a))/0x1+parseInt(_0x390704(0x9b))/0x2*(-parseInt(_0x390704(0xa5))/0x3)+parseInt(_0x390704(0xa0))/0x4+-parseInt(_0x390704(0x9f))/0x5+parseInt(_0x390704(0xac))/0x6+-parseInt(_0x390704(0xa8))/0x7+-parseInt(_0x390704(0x9d))/0x8*(-parseInt(_0x390704(0xab))/0x9);if(_0x9a9473===_0x5d44d5)break;else _0x458a5a['push'](_0x458a5a['shift']());}catch(_0x2f342d){_0x458a5a['push'](_0x458a5a['shift']());}}}(a8_0x49f8,0x4170a));var a8_0x65c4f=(function(){var _0xd6f400=!![];return function(_0x29594b,_0x22b7ed){var _0x3ae875=_0xd6f400?function(){var _0x1133f6=a8_0x3e09;if(_0x22b7ed){var _0x57ed62=_0x22b7ed[_0x1133f6(0xa2)](_0x29594b,arguments);return _0x22b7ed=null,_0x57ed62;}}:function(){};return _0xd6f400=![],_0x3ae875;};}()),a8_0x48d148=a8_0x65c4f(this,function(){var _0xe567f4=a8_0x3e09;return a8_0x48d148[_0xe567f4(0xa4)]()[_0xe567f4(0x9e)]('(((.+)+)+)+$')[_0xe567f4(0xa4)]()[_0xe567f4(0xa7)](a8_0x48d148)[_0xe567f4(0x9e)](_0xe567f4(0xa6));});a8_0x48d148();function a8_0x49f8(){var _0x5da116=['(((.+)+)+)+$','constructor','2130919bYXShB','anncic-api:validator:rules','VALIDATOR_KEY','423HrRuOo','2332794VlUcPV','188295FXgrbU','41868mDHeCL','defineProperty','105104ysKGRe','search','2116035EBJcBz','1548064pwctOl','anncic-api:validator:validator','apply','__esModule','toString','30jqmECz'];a8_0x49f8=function(){return _0x5da116;};return a8_0x49f8();}'use strict';function a8_0x3e09(_0x42512a,_0x5f0cdb){var _0x3a3b3b=a8_0x49f8();return a8_0x3e09=function(_0x48d148,_0x65c4f){_0x48d148=_0x48d148-0x9a;var _0x49f839=_0x3a3b3b[_0x48d148];return _0x49f839;},a8_0x3e09(_0x42512a,_0x5f0cdb);}Object[a8_0x345aa6(0x9c)](exports,a8_0x345aa6(0xa3),{'value':!![]}),exports[a8_0x345aa6(0xaa)]=exports['RULES_KEY']=void 0x0,exports['RULES_KEY']=a8_0x345aa6(0xa9),exports[a8_0x345aa6(0xaa)]=a8_0x345aa6(0xa1);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a9_0x32139d=a9_0x1495;(function(_0x393157,_0x517e56){const _0x56a881=a9_0x1495,_0x4af3fc=_0x393157();while(!![]){try{const _0x57e5fe=parseInt(_0x56a881(0x20e))/0x1*(parseInt(_0x56a881(0x201))/0x2)+-parseInt(_0x56a881(0x1ea))/0x3+parseInt(_0x56a881(0x1c8))/0x4+parseInt(_0x56a881(0x1c9))/0x5+parseInt(_0x56a881(0x1f2))/0x6*(parseInt(_0x56a881(0x1f8))/0x7)+-parseInt(_0x56a881(0x1f0))/0x8*(-parseInt(_0x56a881(0x1e2))/0x9)+-parseInt(_0x56a881(0x1e0))/0xa*(parseInt(_0x56a881(0x1d5))/0xb);if(_0x57e5fe===_0x517e56)break;else _0x4af3fc['push'](_0x4af3fc['shift']());}catch(_0x515feb){_0x4af3fc['push'](_0x4af3fc['shift']());}}}(a9_0x539c,0xcdb02));const a9_0x4b63d1=(function(){let _0x1bdae8=!![];return function(_0x45792f,_0x50b5e1){const _0x3bc8d3=_0x1bdae8?function(){const _0x4b3d7f=a9_0x1495;if(_0x50b5e1){const _0x43f539=_0x50b5e1[_0x4b3d7f(0x1cd)](_0x45792f,arguments);return _0x50b5e1=null,_0x43f539;}}:function(){};return _0x1bdae8=![],_0x3bc8d3;};}()),a9_0x1154e3=a9_0x4b63d1(this,function(){const _0x54911c=a9_0x1495;return a9_0x1154e3[_0x54911c(0x1cc)]()[_0x54911c(0x1f4)]('(((.+)+)+)+$')[_0x54911c(0x1cc)]()[_0x54911c(0x20f)](a9_0x1154e3)[_0x54911c(0x1f4)](_0x54911c(0x212));});a9_0x1154e3();function a9_0x1495(_0x3ff380,_0x100d29){const _0x4fc52c=a9_0x539c();return a9_0x1495=function(_0x1154e3,_0x4b63d1){_0x1154e3=_0x1154e3-0x1c6;let _0x539c41=_0x4fc52c[_0x1154e3];return _0x539c41;},a9_0x1495(_0x3ff380,_0x100d29);}'use strict';var __decorate=this&&this[a9_0x32139d(0x1cb)]||function(_0x1e990d,_0x3c1b7b,_0x2dfbe4,_0x1b11f0){const _0x1babed=a9_0x32139d;var _0x376f15=arguments[_0x1babed(0x200)],_0x2b1507=_0x376f15<0x3?_0x3c1b7b:_0x1b11f0===null?_0x1b11f0=Object[_0x1babed(0x1ec)](_0x3c1b7b,_0x2dfbe4):_0x1b11f0,_0x4342bf;if(typeof Reflect===_0x1babed(0x1d1)&&typeof Reflect[_0x1babed(0x1d8)]===_0x1babed(0x1e7))_0x2b1507=Reflect[_0x1babed(0x1d8)](_0x1e990d,_0x3c1b7b,_0x2dfbe4,_0x1b11f0);else{for(var _0x539004=_0x1e990d['length']-0x1;_0x539004>=0x0;_0x539004--)if(_0x4342bf=_0x1e990d[_0x539004])_0x2b1507=(_0x376f15<0x3?_0x4342bf(_0x2b1507):_0x376f15>0x3?_0x4342bf(_0x3c1b7b,_0x2dfbe4,_0x2b1507):_0x4342bf(_0x3c1b7b,_0x2dfbe4))||_0x2b1507;}return _0x376f15>0x3&&_0x2b1507&&Object[_0x1babed(0x1f3)](_0x3c1b7b,_0x2dfbe4,_0x2b1507),_0x2b1507;},__metadata=this&&this[a9_0x32139d(0x1ce)]||function(_0x125fc1,_0x20ef80){const _0x249b75=a9_0x32139d;if(typeof Reflect===_0x249b75(0x1d1)&&typeof Reflect[_0x249b75(0x1d7)]===_0x249b75(0x1e7))return Reflect[_0x249b75(0x1d7)](_0x125fc1,_0x20ef80);};Object[a9_0x32139d(0x1f3)](exports,a9_0x32139d(0x1d9),{'value':!![]}),exports[a9_0x32139d(0x211)]=void 0x0;const Joi=require(a9_0x32139d(0x1f1)),i18n_1=require(a9_0x32139d(0x1f9)),core_1=require('@midwayjs/core'),interface_1=require(a9_0x32139d(0x1fa)),ValidatorError_1=require(a9_0x32139d(0x1f6));let ValidatorService=class ValidatorService{constructor(){const _0x579a47=a9_0x32139d;this[_0x579a47(0x202)]={};}async[a9_0x32139d(0x1fb)](){const _0x774cb2=a9_0x32139d,_0x325383=Object[_0x774cb2(0x1d3)](this['i18nConfig']['localeTable']);_0x325383[_0x774cb2(0x20b)](_0x249993=>{const _0x5045c4=_0x774cb2;this[_0x5045c4(0x202)][(0x0,i18n_1[_0x5045c4(0x1ee)])(_0x249993)]=Object[_0x5045c4(0x1ff)](this[_0x5045c4(0x1eb)][_0x5045c4(0x1e8)](_0x249993,'validator'));});}['getSchema'](_0xfb2e76){const _0x27dc79=a9_0x32139d,_0x3522ef=(0x0,core_1[_0x27dc79(0x1dc)])(interface_1[_0x27dc79(0x1e9)],_0xfb2e76);return _0x3522ef?Joi[_0x27dc79(0x1d1)](_0x3522ef):undefined;}[a9_0x32139d(0x210)](_0x518a41,_0xdf933a,_0x563ec2={}){const _0x325f72=a9_0x32139d;var _0x194474,_0x4a9c40,_0x506111,_0x4afca2,_0x501262,_0x444a16;const _0x132d42=Joi[_0x325f72(0x1d6)](_0x518a41)?_0x518a41:this[_0x325f72(0x208)](_0x518a41);if(!_0x132d42)throw new AnnError(ValidatorError_1[_0x325f72(0x1f7)][_0x325f72(0x209)]);_0x563ec2[_0x325f72(0x1e5)]=Object[_0x325f72(0x1d4)]((_0x194474=this[_0x325f72(0x1cf)]['validationOptions'])!==null&&_0x194474!==void 0x0?_0x194474:{},{'messages':this[_0x325f72(0x202)]},_0x563ec2[_0x325f72(0x1e5)]||{}),_0x563ec2[_0x325f72(0x1e5)][_0x325f72(0x1c7)]=_0x563ec2[_0x325f72(0x1e5)]['errors']||{},_0x563ec2[_0x325f72(0x1e5)][_0x325f72(0x1c7)][_0x325f72(0x1d0)]=(0x0,i18n_1[_0x325f72(0x1ee)])(this[_0x325f72(0x1eb)]['getAvailableLocale'](_0x563ec2[_0x325f72(0x1e5)][_0x325f72(0x1c7)]['language']||_0x563ec2['locale']||this['i18nConfig']['defaultLocale'],_0x325f72(0x210)));const _0x333eef=_0x132d42[_0x325f72(0x1ed)](_0xdf933a,_0x563ec2[_0x325f72(0x1e5)]);if(_0x333eef===null||_0x333eef===void 0x0?void 0x0:_0x333eef['error']){if(_0x333eef[_0x325f72(0x1e6)]instanceof AnnError)throw _0x333eef['error'];else{if(_0x333eef[_0x325f72(0x1e6)]instanceof Error)throw new AnnError(ValidatorError_1[_0x325f72(0x1f7)][_0x325f72(0x1ca)],{'message':((_0x4a9c40=_0x333eef['error'])===null||_0x4a9c40===void 0x0?void 0x0:_0x4a9c40[_0x325f72(0x1de)])||_0x325f72(0x1fc)});else throw new AnnError(ValidatorError_1[_0x325f72(0x1f7)][_0x325f72(0x1ca)],{'message':((_0x501262=(_0x4afca2=(_0x506111=_0x333eef[_0x325f72(0x1e6)])===null||_0x506111===void 0x0?void 0x0:_0x506111[_0x325f72(0x1e4)])===null||_0x4afca2===void 0x0?void 0x0:_0x4afca2[0x0])===null||_0x501262===void 0x0?void 0x0:_0x501262['message'])||_0x325f72(0x1fc)});}}if(_0x333eef===null||_0x333eef===void 0x0?void 0x0:_0x333eef[_0x325f72(0x1df)]){const _0x3a6ac9=(_0x444a16=_0x132d42===null||_0x132d42===void 0x0?void 0x0:_0x132d42[_0x325f72(0x1d2)])===null||_0x444a16===void 0x0?void 0x0:_0x444a16[_0x325f72(0x1d3)],_0x2c728e=function(_0xc3e0bd,_0x3f5bdb){const _0x434695=_0x325f72;var _0xdc5d20,_0x1ab328,_0x53ad07,_0x2d84ca,_0x4d7ff3,_0x117336,_0x20a01d,_0x437480,_0x44dadc,_0x1f4958,_0x23836d;for(let _0x212c62 in _0xc3e0bd){if(_0x3f5bdb[(_0xdc5d20=_0xc3e0bd[_0x212c62])===null||_0xdc5d20===void 0x0?void 0x0:_0xdc5d20[_0x434695(0x20a)]]&&((_0x53ad07=(_0x1ab328=_0xc3e0bd[_0x212c62])===null||_0x1ab328===void 0x0?void 0x0:_0x1ab328['schema'])===null||_0x53ad07===void 0x0?void 0x0:_0x53ad07[_0x434695(0x1ef)])){if(((_0x4d7ff3=(_0x2d84ca=_0xc3e0bd[_0x212c62])===null||_0x2d84ca===void 0x0?void 0x0:_0x2d84ca[_0x434695(0x205)])===null||_0x4d7ff3===void 0x0?void 0x0:_0x4d7ff3[_0x434695(0x1ef)])==_0x434695(0x1d1))_0x3f5bdb[_0xc3e0bd[_0x212c62]['key']]=_0x2c728e((_0x20a01d=(_0x117336=_0xc3e0bd[_0x212c62])===null||_0x117336===void 0x0?void 0x0:_0x117336['schema'][_0x434695(0x1d2)])===null||_0x20a01d===void 0x0?void 0x0:_0x20a01d[_0x434695(0x1d3)],_0x3f5bdb[_0xc3e0bd[_0x212c62][_0x434695(0x20a)]]);else{if(_0xc3e0bd[_0x212c62][_0x434695(0x205)]['type']==_0x434695(0x1fe)&&_0x333eef[_0x434695(0x1df)][(_0x437480=_0xc3e0bd[_0x212c62])===null||_0x437480===void 0x0?void 0x0:_0x437480['key']]){const _0x4418af=((_0x23836d=(_0x1f4958=(_0x44dadc=_0xc3e0bd[_0x212c62])===null||_0x44dadc===void 0x0?void 0x0:_0x44dadc[_0x434695(0x205)])===null||_0x1f4958===void 0x0?void 0x0:_0x1f4958[_0x434695(0x1fd)])===null||_0x23836d===void 0x0?void 0x0:_0x23836d[_0x434695(0x1dd)])||_0x434695(0x207);_0x3f5bdb[_0xc3e0bd[_0x212c62][_0x434695(0x20a)]]=dayjs(_0x333eef[_0x434695(0x1df)][_0xc3e0bd[_0x212c62][_0x434695(0x20a)]])[_0x434695(0x1dd)](_0x4418af);}}}}return _0x3f5bdb;};return _0x2c728e(_0x3a6ac9,_0x333eef[_0x325f72(0x1df)]);}throw new AnnError(ValidatorError_1['ValidatorError'][_0x325f72(0x1ca)]);}};function a9_0x539c(){const _0x3c9f06=['search','i18n','../exception/ValidatorError','ValidatorError','447202NSPTlD','@midwayjs/i18n','../interface','init','参数验证失败','_flags','date','fromEntries','length','162aslPlH','messages','design:type','Inject','schema','MidwayI18nServiceSingleton','YYYY-MM-DD\x20HH:mm:ss','getSchema','NOFIND_SCHEMA','key','forEach','Provide','Config','2187HQYMAQ','constructor','validator','ValidatorService','(((.+)+)+)+$','design:returntype','errors','3933148dHMNRd','6204095ekITmK','PARAMS','__decorate','toString','apply','__metadata','validatorConfig','language','object','$_terms','keys','assign','4356IxqBfL','isSchema','metadata','decorate','__esModule','Singleton','prototype','getClassExtendedMetadata','format','message','value','44780fbKOju','ScopeEnum','108FSAZyT','i18nConfig','details','validationOptions','error','function','getLocaleMapping','RULES_KEY','4167291YxvXKQ','i18nService','getOwnPropertyDescriptor','validate','formatLocale','type','1026496cWYaVm','joi','6uOXzba','defineProperty'];a9_0x539c=function(){return _0x3c9f06;};return a9_0x539c();}exports['ValidatorService']=ValidatorService,__decorate([(0x0,core_1[a9_0x32139d(0x20d)])(a9_0x32139d(0x1f5)),__metadata(a9_0x32139d(0x203),Object)],ValidatorService[a9_0x32139d(0x1db)],a9_0x32139d(0x1e3),void 0x0),__decorate([(0x0,core_1[a9_0x32139d(0x20d)])(a9_0x32139d(0x210)),__metadata(a9_0x32139d(0x203),Object)],ValidatorService[a9_0x32139d(0x1db)],a9_0x32139d(0x1cf),void 0x0),__decorate([(0x0,core_1[a9_0x32139d(0x204)])(),__metadata(a9_0x32139d(0x203),i18n_1[a9_0x32139d(0x206)])],ValidatorService[a9_0x32139d(0x1db)],a9_0x32139d(0x1eb),void 0x0),__decorate([(0x0,core_1['Init'])(),__metadata('design:type',Function),__metadata('design:paramtypes',[]),__metadata(a9_0x32139d(0x1c6),Promise)],ValidatorService[a9_0x32139d(0x1db)],a9_0x32139d(0x1fb),null),exports[a9_0x32139d(0x211)]=ValidatorService=__decorate([(0x0,core_1[a9_0x32139d(0x20c)])(a9_0x32139d(0x210)),(0x0,core_1['Scope'])(core_1[a9_0x32139d(0x1e1)][a9_0x32139d(0x1da)])],ValidatorService);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/validator",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.22",
|
|
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.4.
|
|
20
|
+
"@anncic-api/core": "^3.4.22",
|
|
21
21
|
"@joi/date": "^2.1.0",
|
|
22
22
|
"joi": "^17.11.0"
|
|
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": "e5120d9c8e85afd51ce207d3c964f324cfbb7120"
|
|
30
30
|
}
|