@anncic-api/validator 2.1.6 → 2.1.7
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_0x4bde(_0x477308,_0x164e28){const _0x197e75=a0_0x80c0();return a0_0x4bde=function(_0x38f5b3,_0x215e91){_0x38f5b3=_0x38f5b3-0x76;let _0x80c04b=_0x197e75[_0x38f5b3];return _0x80c04b;},a0_0x4bde(_0x477308,_0x164e28);}const a0_0x5e8635=a0_0x4bde;(function(_0x73bc12,_0x3069c8){const _0x279d78=a0_0x4bde,_0x33439b=_0x73bc12();while(!![]){try{const _0x4a309d=-parseInt(_0x279d78(0x77))/0x1+-parseInt(_0x279d78(0x88))/0x2+parseInt(_0x279d78(0x7b))/0x3*(-parseInt(_0x279d78(0x7c))/0x4)+-parseInt(_0x279d78(0x8a))/0x5+-parseInt(_0x279d78(0x79))/0x6+parseInt(_0x279d78(0x82))/0x7+parseInt(_0x279d78(0x85))/0x8*(parseInt(_0x279d78(0x86))/0x9);if(_0x4a309d===_0x3069c8)break;else _0x33439b['push'](_0x33439b['shift']());}catch(_0x442da8){_0x33439b['push'](_0x33439b['shift']());}}}(a0_0x80c0,0xe19bc));const a0_0x215e91=(function(){let _0x377063=!![];return function(_0x224a4c,_0x47d8bc){const _0x11f570=_0x377063?function(){if(_0x47d8bc){const _0x2f96f5=_0x47d8bc['apply'](_0x224a4c,arguments);return _0x47d8bc=null,_0x2f96f5;}}:function(){};return _0x377063=![],_0x11f570;};}()),a0_0x38f5b3=a0_0x215e91(this,function(){const _0x1b2479=a0_0x4bde;return a0_0x38f5b3[_0x1b2479(0x76)]()[_0x1b2479(0x7a)]('(((.+)+)+)+$')[_0x1b2479(0x76)]()[_0x1b2479(0x84)](a0_0x38f5b3)[_0x1b2479(0x7a)](_0x1b2479(0x7f));});a0_0x38f5b3();'use strict';Object[a0_0x5e8635(0x78)](exports,a0_0x5e8635(0x7e),{'value':!![]});const ValidatorError_1=require(a0_0x5e8635(0x89));function a0_0x80c0(){const _0x33ca41=['3777EAAuCk','4564lQzwPk','PARAMS','__esModule','(((.+)+)+)+$','../../locales/zh_CN.json','default','11669399HHGKLn','../../locales/en_US.json','constructor','8yImTMe','32420187DdlnQv','ValidatorError','2006798DNsDEW','../exception/ValidatorError','3538550dCHpHr','toString','1082283fZRjKt','defineProperty','691782fAiDCI','search'];a0_0x80c0=function(){return _0x33ca41;};return a0_0x80c0();}exports[a0_0x5e8635(0x81)]={'validator':{'errorStatus':ValidatorError_1[a0_0x5e8635(0x87)][a0_0x5e8635(0x7d)],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':'string'}},'i18n':{'localeTable':{'en_US':{'validator':require(a0_0x5e8635(0x83))},'zh_CN':{'validator':require(a0_0x5e8635(0x80))}}}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a1_0x5e6300=a1_0x4441;(function(_0x4fed9b,_0x5670e4){const _0x2a254c=a1_0x4441,_0x3f39aa=_0x4fed9b();while(!![]){try{const _0x19a82b=parseInt(_0x2a254c(0xba))/0x1+parseInt(_0x2a254c(0xae))/0x2+-parseInt(_0x2a254c(0x9a))/0x3*(parseInt(_0x2a254c(0x8b))/0x4)+parseInt(_0x2a254c(0x92))/0x5*(-parseInt(_0x2a254c(0xc1))/0x6)+-parseInt(_0x2a254c(0xaf))/0x7+parseInt(_0x2a254c(0xb9))/0x8*(parseInt(_0x2a254c(0x8c))/0x9)+parseInt(_0x2a254c(0xb5))/0xa;if(_0x19a82b===_0x5670e4)break;else _0x3f39aa['push'](_0x3f39aa['shift']());}catch(_0x2be4b0){_0x3f39aa['push'](_0x3f39aa['shift']());}}}(a1_0x3fa1,0xbd6ed));const a1_0x1b3e69=(function(){let _0x4aadce=!![];return function(_0x2945f0,_0x2c38d2){const _0x2b02ca=_0x4aadce?function(){const _0x164d47=a1_0x4441;if(_0x2c38d2){const _0x300bda=_0x2c38d2[_0x164d47(0x97)](_0x2945f0,arguments);return _0x2c38d2=null,_0x300bda;}}:function(){};return _0x4aadce=![],_0x2b02ca;};}()),a1_0x53d4cc=a1_0x1b3e69(this,function(){const _0x5904e5=a1_0x4441;return a1_0x53d4cc[_0x5904e5(0xc2)]()['search'](_0x5904e5(0xac))[_0x5904e5(0xc2)]()['constructor'](a1_0x53d4cc)[_0x5904e5(0xc3)](_0x5904e5(0xac));});a1_0x53d4cc();function a1_0x3fa1(){const _0x454a52=['splice','locale','@midwayjs/i18n','./service/ValidatorService','args','__esModule','6228402MWnxTh','toString','search','getClassMetadata','Configuration','CustomConfiguration','964SxAjaC','12053106lCgIkq','REQUEST_OBJ_CTX_KEY','name','I18N_ATTR_KEY','@anncic-api/core','onReady','5UtOzCI','assign','@midwayjs/core','prototype','object','apply','res','length','8133cunpJs','design:type','defineProperty','undefined','body','validator','bound\x20dispatch','getSchema','method','decorator','propertyName','./config/config.default','params','decorate','anncic-api:validator','ValidatorService','param','MidwayDecoratorService','(((.+)+)+)+$','getOwnPropertyDescriptor','846474ADidXN','7320488TSsFMl','methodArgs','request','function','target','getAttr','4462720ByWYmV','./interface','VALIDATOR_KEY','metadata','8TVDcul','1304376asmGeW'];a1_0x3fa1=function(){return _0x454a52;};return a1_0x3fa1();}'use strict';var __decorate=this&&this['__decorate']||function(_0x58e2a0,_0x36925e,_0x2bebe6,_0x3ff2b4){const _0x31175e=a1_0x4441;var _0x2ae713=arguments['length'],_0x11e6d2=_0x2ae713<0x3?_0x36925e:_0x3ff2b4===null?_0x3ff2b4=Object[_0x31175e(0xad)](_0x36925e,_0x2bebe6):_0x3ff2b4,_0x197eab;if(typeof Reflect===_0x31175e(0x96)&&typeof Reflect[_0x31175e(0xa7)]==='function')_0x11e6d2=Reflect[_0x31175e(0xa7)](_0x58e2a0,_0x36925e,_0x2bebe6,_0x3ff2b4);else{for(var _0x9895ba=_0x58e2a0['length']-0x1;_0x9895ba>=0x0;_0x9895ba--)if(_0x197eab=_0x58e2a0[_0x9895ba])_0x11e6d2=(_0x2ae713<0x3?_0x197eab(_0x11e6d2):_0x2ae713>0x3?_0x197eab(_0x36925e,_0x2bebe6,_0x11e6d2):_0x197eab(_0x36925e,_0x2bebe6))||_0x11e6d2;}return _0x2ae713>0x3&&_0x11e6d2&&Object[_0x31175e(0x9c)](_0x36925e,_0x2bebe6,_0x11e6d2),_0x11e6d2;},__metadata=this&&this['__metadata']||function(_0x529f9b,_0x5ebe76){const _0x323aad=a1_0x4441;if(typeof Reflect==='object'&&typeof Reflect['metadata']===_0x323aad(0xb2))return Reflect[_0x323aad(0xb8)](_0x529f9b,_0x5ebe76);};Object[a1_0x5e6300(0x9c)](exports,a1_0x5e6300(0xc0),{'value':!![]}),exports['CustomConfiguration']=void 0x0;function a1_0x4441(_0x56473d,_0x351c6a){const _0x1f8fa8=a1_0x3fa1();return a1_0x4441=function(_0x53d4cc,_0x1b3e69){_0x53d4cc=_0x53d4cc-0x89;let _0x3fa101=_0x1f8fa8[_0x53d4cc];return _0x3fa101;},a1_0x4441(_0x56473d,_0x351c6a);}const i18n_1=require(a1_0x5e6300(0xbd)),core_1=require(a1_0x5e6300(0x94)),core_2=require(a1_0x5e6300(0x94)),interface_1=require(a1_0x5e6300(0xb6)),ValidatorService_1=require(a1_0x5e6300(0xbe)),i18n=require(a1_0x5e6300(0xbd)),anncic=require(a1_0x5e6300(0x90)),ConfigDefault=require(a1_0x5e6300(0xa5));let CustomConfiguration=class CustomConfiguration{async[a1_0x5e6300(0x91)](){const _0x4f0f32=a1_0x5e6300;this[_0x4f0f32(0xa3)]['registerMethodHandler'](interface_1['VALIDATOR_KEY'],_0x4f1e83=>{const _0x5cbc8c=_0x4f0f32,_0x5b8e59=_0x4f1e83[_0x5cbc8c(0xb8)],_0x508a71=(0x0,core_2['getMethodParamTypes'])(_0x4f1e83[_0x5cbc8c(0xb3)],_0x4f1e83[_0x5cbc8c(0xa4)]);return{'before':_0x2598b2=>{const _0x1fa804=_0x5cbc8c;var _0x2008a9,_0x44fac4,_0x593854,_0xe062cd,_0x48457e,_0x58f9f2,_0x1677ea,_0x5c1249,_0xb427aa,_0x482886,_0x537dfe,_0x41c43e,_0x59ccbf;const _0x14b4fa=_0x2598b2['target'][core_1[_0x1fa804(0x8d)]],_0x9ead23=Object[_0x1fa804(0x93)]({},((_0x2008a9=_0x14b4fa===null||_0x14b4fa===void 0x0?void 0x0:_0x14b4fa[_0x1fa804(0xb1)])===null||_0x2008a9===void 0x0?void 0x0:_0x2008a9['query'])||{},((_0x44fac4=_0x14b4fa===null||_0x14b4fa===void 0x0?void 0x0:_0x14b4fa['request'])===null||_0x44fac4===void 0x0?void 0x0:_0x44fac4[_0x1fa804(0x9e)])||{}),_0x157f83=((0x0,core_2[_0x1fa804(0xc4)])(interface_1[_0x1fa804(0xb7)],_0x2598b2[_0x1fa804(0xb3)])||[])['find'](_0x324a89=>_0x324a89[_0x1fa804(0xa2)]==_0x2598b2['methodName']);!(_0x5b8e59===null||_0x5b8e59===void 0x0?void 0x0:_0x5b8e59[_0x1fa804(0xbc)])&&_0x14b4fa&&_0x14b4fa[_0x1fa804(0xb4)]&&(_0x5b8e59['locale']=_0x14b4fa[_0x1fa804(0xb4)](i18n_1[_0x1fa804(0x8f)]));for(let _0x360f27=0x0;_0x360f27<_0x508a71[_0x1fa804(0x99)];_0x360f27++){const _0x394cc8=_0x508a71[_0x360f27],_0x532d3b=this[_0x1fa804(0xa9)][_0x1fa804(0xa1)](_0x394cc8);if(_0x532d3b){if(typeof _0x2598b2[_0x1fa804(0xbf)][_0x360f27]==_0x1fa804(0x9d)||((_0x593854=_0x2598b2[_0x1fa804(0xbf)][_0x360f27])===null||_0x593854===void 0x0?void 0x0:_0x593854['request'])&&((_0xe062cd=_0x2598b2[_0x1fa804(0xbf)][_0x360f27])===null||_0xe062cd===void 0x0?void 0x0:_0xe062cd[_0x1fa804(0x98)])&&((_0x48457e=_0x2598b2['args'][_0x360f27])===null||_0x48457e===void 0x0?void 0x0:_0x48457e['req']))_0x2598b2[_0x1fa804(0xbf)][_0x360f27]=_0x9ead23;else((_0x58f9f2=_0x2598b2[_0x1fa804(0xbf)][_0x360f27])===null||_0x58f9f2===void 0x0?void 0x0:_0x58f9f2[_0x1fa804(0x8e)])==_0x1fa804(0xa0)&&_0x2598b2['args'][_0x1fa804(0xbb)](_0x360f27,0x0,_0x9ead23);const _0x15ca50=this[_0x1fa804(0xa9)][_0x1fa804(0x9f)](_0x532d3b,_0x2598b2[_0x1fa804(0xbf)][_0x360f27],_0x5b8e59);_0x15ca50&&(_0x2598b2['args'][_0x360f27]=_0x15ca50);}else{if((_0x157f83===null||_0x157f83===void 0x0?void 0x0:_0x157f83[_0x1fa804(0xb0)][_0x360f27])&&((_0x1677ea=_0x2598b2[_0x1fa804(0xbf)][_0x360f27])===null||_0x1677ea===void 0x0?void 0x0:_0x1677ea[_0x1fa804(0xa6)])&&typeof _0x2598b2[_0x1fa804(0xbf)][_0x360f27][_0x1fa804(0xaa)]==_0x1fa804(0xb2)&&((_0x5c1249=_0x14b4fa===null||_0x14b4fa===void 0x0?void 0x0:_0x14b4fa[_0x1fa804(0xa6)])===null||_0x5c1249===void 0x0?void 0x0:_0x5c1249[_0x157f83['methodArgs'][_0x360f27]]))_0x2598b2[_0x1fa804(0xbf)][_0x360f27]=_0x394cc8((_0xb427aa=_0x14b4fa===null||_0x14b4fa===void 0x0?void 0x0:_0x14b4fa[_0x1fa804(0xa6)])===null||_0xb427aa===void 0x0?void 0x0:_0xb427aa[_0x157f83[_0x1fa804(0xb0)][_0x360f27]]);else(_0x157f83===null||_0x157f83===void 0x0?void 0x0:_0x157f83[_0x1fa804(0xb0)][_0x360f27])&&((_0x537dfe=(_0x482886=_0x2598b2['args'][_0x360f27])===null||_0x482886===void 0x0?void 0x0:_0x482886[_0x1fa804(0xa6)])===null||_0x537dfe===void 0x0?void 0x0:_0x537dfe[_0x157f83[_0x1fa804(0xb0)][_0x360f27]])&&(_0x2598b2['args'][_0x360f27]=(_0x59ccbf=(_0x41c43e=_0x2598b2[_0x1fa804(0xbf)][_0x360f27])===null||_0x41c43e===void 0x0?void 0x0:_0x41c43e[_0x1fa804(0xa6)])===null||_0x59ccbf===void 0x0?void 0x0:_0x59ccbf[_0x157f83[_0x1fa804(0xb0)][_0x360f27]]);}}},'afterThrow':(_0x186cde,_0x51b191)=>{throw _0x51b191;}};});}};__decorate([(0x0,core_2['Inject'])(),__metadata(a1_0x5e6300(0x9b),core_1[a1_0x5e6300(0xab)])],CustomConfiguration[a1_0x5e6300(0x95)],a1_0x5e6300(0xa3),void 0x0),__decorate([(0x0,core_2['Inject'])(),__metadata(a1_0x5e6300(0x9b),ValidatorService_1['ValidatorService'])],CustomConfiguration['prototype'],a1_0x5e6300(0xa9),void 0x0),CustomConfiguration=__decorate([(0x0,core_2[a1_0x5e6300(0x89)])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':a1_0x5e6300(0xa8),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x5e6300(0x8a)]=CustomConfiguration;
|
package/dist/decorator/Rule.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0x316510=a2_0x293e;(function(_0x113b7c,_0x50118e){const _0x387598=a2_0x293e,_0x3dbb8e=_0x113b7c();while(!![]){try{const _0xa6975a=-parseInt(_0x387598(0xbf))/0x1+parseInt(_0x387598(0xb8))/0x2+-parseInt(_0x387598(0xd1))/0x3+-parseInt(_0x387598(0xb6))/0x4+-parseInt(_0x387598(0xaf))/0x5+parseInt(_0x387598(0xc8))/0x6+parseInt(_0x387598(0xc0))/0x7;if(_0xa6975a===_0x50118e)break;else _0x3dbb8e['push'](_0x3dbb8e['shift']());}catch(_0x5a41e6){_0x3dbb8e['push'](_0x3dbb8e['shift']());}}}(a2_0x2d35,0xe8401));const a2_0x470980=(function(){let _0x6c6414=!![];return function(_0x50d395,_0x58ced1){const _0x2555e0=_0x6c6414?function(){const _0x32c992=a2_0x293e;if(_0x58ced1){const _0x3c9d2f=_0x58ced1[_0x32c992(0xb9)](_0x50d395,arguments);return _0x58ced1=null,_0x3c9d2f;}}:function(){};return _0x6c6414=![],_0x2555e0;};}()),a2_0x44f060=a2_0x470980(this,function(){const _0x20143f=a2_0x293e;return a2_0x44f060[_0x20143f(0xb0)]()[_0x20143f(0xc7)](_0x20143f(0xc9))[_0x20143f(0xb0)]()[_0x20143f(0xbd)](a2_0x44f060)[_0x20143f(0xc7)]('(((.+)+)+)+$');});a2_0x44f060();'use strict';Object[a2_0x316510(0xbc)](exports,'__esModule',{'value':!![]}),exports[a2_0x316510(0xd0)]=exports[a2_0x316510(0xb4)]=void 0x0;function a2_0x2d35(){const _0x44e11b=['RuleType','object','2462560TNqDHh','getPropertyType','531068GeGuDo','apply','saveClassMetadata','isSchema','defineProperty','constructor','meta','659446XLnqEM','10222828PayzRT','description','joi','@midwayjs/core','default','name','Array','search','11000706sLHThr','(((.+)+)+)+$','getClassMetadata','@joi/date','RULES_KEY','attachClassMetadata','../interface','function','Rule','1147761sMdOZz','4752095PKixDX','toString','extend','keys','label'];a2_0x2d35=function(){return _0x44e11b;};return a2_0x2d35();}const joi=require(a2_0x316510(0xc2)),date_1=require(a2_0x316510(0xcb)),core_1=require(a2_0x316510(0xc3)),interface_1=require(a2_0x316510(0xce));exports[a2_0x316510(0xb4)]=joi[a2_0x316510(0xb1)](date_1[a2_0x316510(0xc4)]);function a2_0x293e(_0x42ec9c,_0x422d85){const _0x17f5a5=a2_0x2d35();return a2_0x293e=function(_0x44f060,_0x470980){_0x44f060=_0x44f060-0xaf;let _0x2d357f=_0x17f5a5[_0x44f060];return _0x2d357f;},a2_0x293e(_0x42ec9c,_0x422d85);}function Rule(_0x2dbf7,_0x4596f8,_0xb3bcd=''){return(_0x2a1486,_0x2a4a71)=>{const _0x155341=a2_0x293e;var _0x12f4df;if(_0x2a4a71)!joi[_0x155341(0xbb)](_0x4596f8)&&(_0x4596f8===null||_0x4596f8===void 0x0?void 0x0:_0x4596f8[_0x155341(0xc5)])&&(_0x4596f8=joi[_0x155341(0xb5)]((0x0,core_1[_0x155341(0xca)])(interface_1[_0x155341(0xcc)],_0x4596f8))[_0x155341(0xbe)]({'id':_0x4596f8[_0x155341(0xc5)]}),(0x0,core_1[_0x155341(0xb7)])(_0x2a1486,_0x2a4a71)[_0x155341(0xc5)]===_0x155341(0xc6)&&(_0x4596f8=joi['array']()['items'](_0x4596f8))),joi[_0x155341(0xbb)](_0x4596f8)&&(_0x2dbf7&&typeof(_0x4596f8===null||_0x4596f8===void 0x0?void 0x0:_0x4596f8[_0x155341(0xb3)])==_0x155341(0xcf)&&(_0x4596f8=_0x4596f8[_0x155341(0xb3)](_0x2dbf7)),_0xb3bcd&&typeof(_0x4596f8===null||_0x4596f8===void 0x0?void 0x0:_0x4596f8[_0x155341(0xc1)])==_0x155341(0xcf)&&(_0x4596f8=_0x4596f8[_0x155341(0xc1)](_0xb3bcd)),(0x0,core_1[_0x155341(0xcd)])(interface_1[_0x155341(0xcc)],_0x4596f8,_0x2a1486,_0x2a4a71));else{const _0x2aa475=(0x0,core_1[_0x155341(0xca)])(interface_1['RULES_KEY'],_0x4596f8);if(_0x2aa475){let _0x365a16=(_0x12f4df=(0x0,core_1['getClassMetadata'])(interface_1[_0x155341(0xcc)],_0x2a1486))!==null&&_0x12f4df!==void 0x0?_0x12f4df:{};Object[_0x155341(0xb2)](_0x2aa475)['map'](_0xd3a665=>{!_0x365a16[_0xd3a665]&&(_0x365a16[_0xd3a665]=_0x2aa475[_0xd3a665]);}),(0x0,core_1[_0x155341(0xba)])(interface_1[_0x155341(0xcc)],_0x365a16,_0x2a1486);}}};}exports[a2_0x316510(0xd0)]=Rule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x4917b0=a3_0x42c8;(function(_0x49d0c8,_0x47d7e0){const _0xdb0810=a3_0x42c8,_0x5676ac=_0x49d0c8();while(!![]){try{const _0x4eb537=parseInt(_0xdb0810(0xa8))/0x1*(-parseInt(_0xdb0810(0xae))/0x2)+parseInt(_0xdb0810(0xaa))/0x3*(parseInt(_0xdb0810(0xbe))/0x4)+parseInt(_0xdb0810(0xa1))/0x5+-parseInt(_0xdb0810(0xa7))/0x6*(parseInt(_0xdb0810(0xad))/0x7)+parseInt(_0xdb0810(0xb2))/0x8*(-parseInt(_0xdb0810(0xab))/0x9)+-parseInt(_0xdb0810(0xa4))/0xa*(parseInt(_0xdb0810(0xa3))/0xb)+parseInt(_0xdb0810(0xb6))/0xc*(parseInt(_0xdb0810(0xbc))/0xd);if(_0x4eb537===_0x47d7e0)break;else _0x5676ac['push'](_0x5676ac['shift']());}catch(_0x2db7af){_0x5676ac['push'](_0x5676ac['shift']());}}}(a3_0x1444,0xb9ca5));const a3_0x430506=(function(){let _0xb4d8e0=!![];return function(_0x3029db,_0x7f99a6){const _0x2f94fc=_0xb4d8e0?function(){const _0x361fc3=a3_0x42c8;if(_0x7f99a6){const _0x3f0b35=_0x7f99a6[_0x361fc3(0xba)](_0x3029db,arguments);return _0x7f99a6=null,_0x3f0b35;}}:function(){};return _0xb4d8e0=![],_0x2f94fc;};}()),a3_0x3f8e8a=a3_0x430506(this,function(){const _0x33838f=a3_0x42c8;return a3_0x3f8e8a[_0x33838f(0xb4)]()[_0x33838f(0xb7)](_0x33838f(0xa9))['toString']()[_0x33838f(0xaf)](a3_0x3f8e8a)[_0x33838f(0xb7)](_0x33838f(0xa9));});a3_0x3f8e8a();function a3_0x1444(){const _0x93fe26=['getFuncArgs','slice','56BTjQBR','function','toString','defineProperty','12WsjKyD','search','attachClassMetadata','VALIDATOR_KEY','apply','createCustomMethodDecorator','6648226WArfIB','match','8mWvXEr','../interface','7574775FycRNg','replace','33UxoUcr','395030zSSNtU','indexOf','prototype','714QWYAxy','117353HysJnK','(((.+)+)+)+$','1094937xeIoSZ','185697NjwINN','__esModule','67389ZWfHkU','10Qzudqp','constructor'];a3_0x1444=function(){return _0x93fe26;};return a3_0x1444();}'use strict';Object[a3_0x4917b0(0xb5)](exports,a3_0x4917b0(0xac),{'value':!![]}),exports['getFuncArgs']=exports['Validator']=void 0x0;const core_1=require('@midwayjs/core'),interface_1=require(a3_0x4917b0(0xbf));function Validator(_0x25cc76={}){return(_0x226c19,_0x2fd00d,_0x3b2654)=>{const _0x54b8b9=a3_0x42c8,_0x2b67b9=getFuncArgs(_0x226c19[_0x2fd00d]);(0x0,core_1[_0x54b8b9(0xb8)])(interface_1[_0x54b8b9(0xb9)],{'method':_0x2fd00d,'methodArgs':_0x2b67b9},_0x226c19),(0x0,core_1[_0x54b8b9(0xbb)])(interface_1[_0x54b8b9(0xb9)],_0x25cc76)(_0x226c19,_0x2fd00d,_0x3b2654);};}exports['Validator']=Validator;function a3_0x42c8(_0x1f73da,_0x36fcd6){const _0x3b96ae=a3_0x1444();return a3_0x42c8=function(_0x3f8e8a,_0x430506){_0x3f8e8a=_0x3f8e8a-0xa1;let _0x1444da=_0x3b96ae[_0x3f8e8a];return _0x1444da;},a3_0x42c8(_0x1f73da,_0x36fcd6);}function getFuncArgs(_0x52c6a4){const _0x502b5f=a3_0x4917b0;if(typeof _0x52c6a4==_0x502b5f(0xb3)){const _0x37c25b=/=>.*$/mg,_0x5a14df=/=[^,)]+/mg,_0x35d09c=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x1a50fb=(_0x52c6a4['prototype']?_0x52c6a4[_0x502b5f(0xa6)]['constructor'][_0x502b5f(0xb4)]():_0x52c6a4['toString']())['replace'](_0x35d09c,'')[_0x502b5f(0xa2)](_0x37c25b,'')[_0x502b5f(0xa2)](_0x5a14df,''),_0x28d148=_0x1a50fb[_0x502b5f(0xb1)](_0x1a50fb[_0x502b5f(0xa5)]('(')+0x1,_0x1a50fb[_0x502b5f(0xa5)](')'))[_0x502b5f(0xbd)](/([^\s,]+)/g)||[];return _0x28d148;}}exports[a3_0x4917b0(0xb0)]=getFuncArgs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a4_0x4d06(){var _0x2355c4=['apply','object','2080106XHUZKO','3056045xyyuYz','110tYdZlO','91160MdTCff','221bZWABe','design:type','function','(((.+)+)+)+$','NOFIND_SCHEMA','decorate','AnnErrorMsg','参数验证失败','defineProperty','ValidatorError','6xwuQNu','3812104UilJeI','metadata','search','394355fUttue','__decorate','toString','688986yyrhCK','constructor','length','2VGPNVW','9acWoPQ','@anncic-api/core','getOwnPropertyDescriptor','325743FjPcZL','7UidMEv','24TfrYAi'];a4_0x4d06=function(){return _0x2355c4;};return a4_0x4d06();}function a4_0x5c3f(_0x3f41f9,_0x1e72b7){var _0x5456a4=a4_0x4d06();return a4_0x5c3f=function(_0x41c6e4,_0x1aaeee){_0x41c6e4=_0x41c6e4-0x17f;var _0x4d064e=_0x5456a4[_0x41c6e4];return _0x4d064e;},a4_0x5c3f(_0x3f41f9,_0x1e72b7);}var a4_0x5eb19a=a4_0x5c3f;(function(_0x278ec3,_0x1af549){var _0x4befda=a4_0x5c3f,_0x170f18=_0x278ec3();while(!![]){try{var _0x502e5c=-parseInt(_0x4befda(0x185))/0x1*(-parseInt(_0x4befda(0x18b))/0x2)+parseInt(_0x4befda(0x18c))/0x3*(-parseInt(_0x4befda(0x197))/0x4)+-parseInt(_0x4befda(0x195))/0x5*(parseInt(_0x4befda(0x181))/0x6)+parseInt(_0x4befda(0x190))/0x7*(-parseInt(_0x4befda(0x182))/0x8)+-parseInt(_0x4befda(0x188))/0x9*(parseInt(_0x4befda(0x196))/0xa)+-parseInt(_0x4befda(0x18f))/0xb*(parseInt(_0x4befda(0x191))/0xc)+-parseInt(_0x4befda(0x198))/0xd*(-parseInt(_0x4befda(0x194))/0xe);if(_0x502e5c===_0x1af549)break;else _0x170f18['push'](_0x170f18['shift']());}catch(_0x461e47){_0x170f18['push'](_0x170f18['shift']());}}}(a4_0x4d06,0xd2a42));var a4_0x1aaeee=(function(){var _0x396bb5=!![];return function(_0x469db0,_0x35dcf7){var _0x5f22e1=_0x396bb5?function(){var _0x5828cc=a4_0x5c3f;if(_0x35dcf7){var _0x417691=_0x35dcf7[_0x5828cc(0x192)](_0x469db0,arguments);return _0x35dcf7=null,_0x417691;}}:function(){};return _0x396bb5=![],_0x5f22e1;};}()),a4_0x41c6e4=a4_0x1aaeee(this,function(){var _0x2a2def=a4_0x5c3f;return a4_0x41c6e4[_0x2a2def(0x187)]()[_0x2a2def(0x184)](_0x2a2def(0x19b))[_0x2a2def(0x187)]()[_0x2a2def(0x189)](a4_0x41c6e4)[_0x2a2def(0x184)](_0x2a2def(0x19b));});a4_0x41c6e4();'use strict';var __decorate=this&&this[a4_0x5eb19a(0x186)]||function(_0x26789d,_0x480bf3,_0x51956a,_0xd4e63c){var _0xc7ed0a=a4_0x5eb19a,_0x349f2a=arguments['length'],_0x55d791=_0x349f2a<0x3?_0x480bf3:_0xd4e63c===null?_0xd4e63c=Object[_0xc7ed0a(0x18e)](_0x480bf3,_0x51956a):_0xd4e63c,_0x305ff3;if(typeof Reflect===_0xc7ed0a(0x193)&&typeof Reflect[_0xc7ed0a(0x19d)]==='function')_0x55d791=Reflect[_0xc7ed0a(0x19d)](_0x26789d,_0x480bf3,_0x51956a,_0xd4e63c);else{for(var _0x4c952a=_0x26789d[_0xc7ed0a(0x18a)]-0x1;_0x4c952a>=0x0;_0x4c952a--)if(_0x305ff3=_0x26789d[_0x4c952a])_0x55d791=(_0x349f2a<0x3?_0x305ff3(_0x55d791):_0x349f2a>0x3?_0x305ff3(_0x480bf3,_0x51956a,_0x55d791):_0x305ff3(_0x480bf3,_0x51956a))||_0x55d791;}return _0x349f2a>0x3&&_0x55d791&&Object[_0xc7ed0a(0x17f)](_0x480bf3,_0x51956a,_0x55d791),_0x55d791;},__metadata=this&&this['__metadata']||function(_0x545ab3,_0x4fe519){var _0x5d1877=a4_0x5eb19a;if(typeof Reflect===_0x5d1877(0x193)&&typeof Reflect[_0x5d1877(0x183)]===_0x5d1877(0x19a))return Reflect[_0x5d1877(0x183)](_0x545ab3,_0x4fe519);};Object[a4_0x5eb19a(0x17f)](exports,'__esModule',{'value':!![]}),exports[a4_0x5eb19a(0x180)]=void 0x0;const core_1=require(a4_0x5eb19a(0x18d));class ValidatorError extends AnnError{}ValidatorError['PARAMS']=0x18c1e,ValidatorError[a4_0x5eb19a(0x19c)]=0x18c1c,__decorate([(0x0,core_1['AnnErrorMsg'])(a4_0x5eb19a(0x19f)),__metadata(a4_0x5eb19a(0x199),Object)],ValidatorError,'PARAMS',void 0x0),__decorate([(0x0,core_1[a4_0x5eb19a(0x19e)])(a4_0x5eb19a(0x19f)),__metadata('design:type',Object)],ValidatorError,a4_0x5eb19a(0x19c),void 0x0),exports[a4_0x5eb19a(0x180)]=ValidatorError;
|
package/dist/helper/dtoHelper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x391b19=a5_0xec7a;(function(_0x875b44,_0x10ffc3){const _0x410830=a5_0xec7a,_0x5be6d0=_0x875b44();while(!![]){try{const _0x40325e=parseInt(_0x410830(0x189))/0x1*(parseInt(_0x410830(0x197))/0x2)+parseInt(_0x410830(0x190))/0x3+-parseInt(_0x410830(0x193))/0x4+parseInt(_0x410830(0x195))/0x5*(-parseInt(_0x410830(0x18c))/0x6)+parseInt(_0x410830(0x19f))/0x7*(parseInt(_0x410830(0x196))/0x8)+-parseInt(_0x410830(0x192))/0x9*(parseInt(_0x410830(0x1a2))/0xa)+parseInt(_0x410830(0x1a1))/0xb;if(_0x40325e===_0x10ffc3)break;else _0x5be6d0['push'](_0x5be6d0['shift']());}catch(_0x541cee){_0x5be6d0['push'](_0x5be6d0['shift']());}}}(a5_0x58a4,0xc1c07));const a5_0x168590=(function(){let _0x3b59b1=!![];return function(_0x598f61,_0x45ad5c){const _0x3b7eb1=_0x3b59b1?function(){const _0xf64a87=a5_0xec7a;if(_0x45ad5c){const _0x168364=_0x45ad5c[_0xf64a87(0x18e)](_0x598f61,arguments);return _0x45ad5c=null,_0x168364;}}:function(){};return _0x3b59b1=![],_0x3b7eb1;};}()),a5_0x501bb8=a5_0x168590(this,function(){const _0x39cbbf=a5_0xec7a;return a5_0x501bb8[_0x39cbbf(0x18a)]()[_0x39cbbf(0x19e)](_0x39cbbf(0x191))[_0x39cbbf(0x18a)]()[_0x39cbbf(0x18d)](a5_0x501bb8)[_0x39cbbf(0x19e)](_0x39cbbf(0x191));});a5_0x501bb8();'use strict';Object[a5_0x391b19(0x1a0)](exports,a5_0x391b19(0x18b),{'value':!![]}),exports[a5_0x391b19(0x19c)]=exports[a5_0x391b19(0x19a)]=void 0x0;const core_1=require(a5_0x391b19(0x19d)),interface_1=require(a5_0x391b19(0x18f));function a5_0x58a4(){const _0xcf00f2=['assign','OmitDto','@midwayjs/core','search','357qHqljY','defineProperty','11636053bhXUqh','27700kpKZDI','saveClassMetadata','16IMErKy','toString','__esModule','882IFkvIR','constructor','apply','../interface','136140vrYBFa','(((.+)+)+)+$','1278OGYTbO','797724LljRkC','getClassExtendedMetadata','52445LQyrNr','165040vQLBwF','96616koodea','prototype','RULES_KEY','PickDto'];a5_0x58a4=function(){return _0xcf00f2;};return a5_0x58a4();}function a5_0xec7a(_0x450b5d,_0x35d5e9){const _0x90e959=a5_0x58a4();return a5_0xec7a=function(_0x501bb8,_0x168590){_0x501bb8=_0x501bb8-0x189;let _0x58a475=_0x90e959[_0x501bb8];return _0x58a475;},a5_0xec7a(_0x450b5d,_0x35d5e9);}function PickDto(_0x84ec4e,_0x186ab2){const _0x581b79=a5_0x391b19,_0x1250ce=function(){};_0x1250ce[_0x581b79(0x198)]=_0x84ec4e[_0x581b79(0x198)];const _0x59a738=(0x0,core_1[_0x581b79(0x194)])(interface_1[_0x581b79(0x199)],_0x84ec4e),_0x3a7933={};for(const _0x26438a of _0x186ab2){_0x59a738[_0x26438a]&&(_0x3a7933[_0x26438a]=_0x59a738[_0x26438a]);}return(0x0,core_1[_0x581b79(0x1a3)])(interface_1[_0x581b79(0x199)],_0x3a7933,_0x1250ce),_0x1250ce;}exports[a5_0x391b19(0x19a)]=PickDto;function OmitDto(_0x1b3aad,_0x23efed){const _0x46edef=a5_0x391b19,_0x300799=function(){};_0x300799[_0x46edef(0x198)]=_0x1b3aad[_0x46edef(0x198)];const _0x382c18=(0x0,core_1[_0x46edef(0x194)])(interface_1[_0x46edef(0x199)],_0x1b3aad),_0xa56836=Object[_0x46edef(0x19b)]({},_0x382c18);for(const _0x33625f of _0x23efed){delete _0xa56836[_0x33625f];}return(0x0,core_1[_0x46edef(0x1a3)])(interface_1[_0x46edef(0x199)],_0xa56836,_0x300799),_0x300799;}exports[a5_0x391b19(0x19c)]=OmitDto;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a6_0x30f27c=a6_0x4785;(function(_0x2f3f32,_0x43db6){var _0x2dd0e7=a6_0x4785,_0x5938e9=_0x2f3f32();while(!![]){try{var _0x4dcd2f=-parseInt(_0x2dd0e7(0x6c))/0x1+parseInt(_0x2dd0e7(0x80))/0x2+-parseInt(_0x2dd0e7(0x72))/0x3+-parseInt(_0x2dd0e7(0x6f))/0x4*(-parseInt(_0x2dd0e7(0x6d))/0x5)+-parseInt(_0x2dd0e7(0x6a))/0x6*(-parseInt(_0x2dd0e7(0x79))/0x7)+-parseInt(_0x2dd0e7(0x83))/0x8*(parseInt(_0x2dd0e7(0x6e))/0x9)+-parseInt(_0x2dd0e7(0x67))/0xa*(parseInt(_0x2dd0e7(0x86))/0xb);if(_0x4dcd2f===_0x43db6)break;else _0x5938e9['push'](_0x5938e9['shift']());}catch(_0x58f835){_0x5938e9['push'](_0x5938e9['shift']());}}}(a6_0x2710,0x1fb71));var a6_0x1748ad=(function(){var _0xc2eb56=!![];return function(_0x15e4f2,_0x53826f){var _0x1d0889=_0xc2eb56?function(){var _0x207a9f=a6_0x4785;if(_0x53826f){var _0x26d788=_0x53826f[_0x207a9f(0x74)](_0x15e4f2,arguments);return _0x53826f=null,_0x26d788;}}:function(){};return _0xc2eb56=![],_0x1d0889;};}()),a6_0x19043f=a6_0x1748ad(this,function(){var _0x1acc8e=a6_0x4785;return a6_0x19043f[_0x1acc8e(0x85)]()[_0x1acc8e(0x73)]('(((.+)+)+)+$')[_0x1acc8e(0x85)]()['constructor'](a6_0x19043f)[_0x1acc8e(0x73)]('(((.+)+)+)+$');});a6_0x19043f();'use strict';var __createBinding=this&&this[a6_0x30f27c(0x78)]||(Object[a6_0x30f27c(0x81)]?function(_0x5492d0,_0x48c25d,_0x3e580b,_0x15277c){var _0x2271d6=a6_0x30f27c;if(_0x15277c===undefined)_0x15277c=_0x3e580b;var _0xabae3=Object[_0x2271d6(0x7c)](_0x48c25d,_0x3e580b);(!_0xabae3||('get'in _0xabae3?!_0x48c25d[_0x2271d6(0x87)]:_0xabae3[_0x2271d6(0x7f)]||_0xabae3[_0x2271d6(0x66)]))&&(_0xabae3={'enumerable':!![],'get':function(){return _0x48c25d[_0x3e580b];}}),Object[_0x2271d6(0x69)](_0x5492d0,_0x15277c,_0xabae3);}:function(_0x56d6b5,_0x2b1054,_0x22c73d,_0x11dd31){if(_0x11dd31===undefined)_0x11dd31=_0x22c73d;_0x56d6b5[_0x11dd31]=_0x2b1054[_0x22c73d];}),__exportStar=this&&this[a6_0x30f27c(0x71)]||function(_0x29bbbb,_0xca2ddf){var _0x2292e5=a6_0x30f27c;for(var _0x4fa8b4 in _0x29bbbb)if(_0x4fa8b4!==_0x2292e5(0x76)&&!Object[_0x2292e5(0x68)][_0x2292e5(0x70)][_0x2292e5(0x84)](_0xca2ddf,_0x4fa8b4))__createBinding(_0xca2ddf,_0x29bbbb,_0x4fa8b4);};Object['defineProperty'](exports,a6_0x30f27c(0x87),{'value':!![]}),exports[a6_0x30f27c(0x89)]=exports[a6_0x30f27c(0x65)]=exports[a6_0x30f27c(0x77)]=exports[a6_0x30f27c(0x7e)]=exports['Rule']=exports[a6_0x30f27c(0x88)]=void 0x0,__exportStar(require(a6_0x30f27c(0x7d)),exports),__exportStar(require(a6_0x30f27c(0x7a)),exports);function a6_0x2710(){var _0x4bafd9=['configurable','10vXSKOu','prototype','defineProperty','42vTGAEw','./decorator/Rule','231498nZudSs','25PmYqgK','171pFtHAi','175912simbBF','hasOwnProperty','__exportStar','601443xxamuv','search','apply','./exception/ValidatorError','default','ValidatorError','__createBinding','145201sugNJV','./helper/dtoHelper','CustomConfiguration','getOwnPropertyDescriptor','./interface','RuleType','writable','511352LCcCQo','create','./decorator/Validator','19904HYtOEA','call','toString','127721QHLOZq','__esModule','Validator','Configuration','ValidatorService'];a6_0x2710=function(){return _0x4bafd9;};return a6_0x2710();}var Validator_1=require(a6_0x30f27c(0x82));Object[a6_0x30f27c(0x69)](exports,a6_0x30f27c(0x88),{'enumerable':!![],'get':function(){return Validator_1['Validator'];}});function a6_0x4785(_0x1f88d1,_0x450b4d){var _0x2204d3=a6_0x2710();return a6_0x4785=function(_0x19043f,_0x1748ad){_0x19043f=_0x19043f-0x65;var _0x2710e3=_0x2204d3[_0x19043f];return _0x2710e3;},a6_0x4785(_0x1f88d1,_0x450b4d);}var Rule_1=require(a6_0x30f27c(0x6b));Object[a6_0x30f27c(0x69)](exports,'Rule',{'enumerable':!![],'get':function(){return Rule_1['Rule'];}}),Object[a6_0x30f27c(0x69)](exports,a6_0x30f27c(0x7e),{'enumerable':!![],'get':function(){var _0xe9406f=a6_0x30f27c;return Rule_1[_0xe9406f(0x7e)];}});var ValidatorError_1=require(a6_0x30f27c(0x75));Object[a6_0x30f27c(0x69)](exports,a6_0x30f27c(0x77),{'enumerable':!![],'get':function(){var _0x38b5ca=a6_0x30f27c;return ValidatorError_1[_0x38b5ca(0x77)];}});var ValidatorService_1=require('./service/ValidatorService');Object[a6_0x30f27c(0x69)](exports,a6_0x30f27c(0x65),{'enumerable':!![],'get':function(){var _0x1b0487=a6_0x30f27c;return ValidatorService_1[_0x1b0487(0x65)];}});var configuration_1=require('./configuration');Object[a6_0x30f27c(0x69)](exports,a6_0x30f27c(0x89),{'enumerable':!![],'get':function(){var _0x4303e4=a6_0x30f27c;return configuration_1[_0x4303e4(0x7b)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a7_0x12d60c=a7_0x521c;(function(_0x4b6058,_0x45394b){var _0x4261f0=a7_0x521c,_0x2cdf3c=_0x4b6058();while(!![]){try{var _0x443c93=parseInt(_0x4261f0(0x12c))/0x1*(-parseInt(_0x4261f0(0x123))/0x2)+-parseInt(_0x4261f0(0x12a))/0x3+-parseInt(_0x4261f0(0x12e))/0x4*(-parseInt(_0x4261f0(0x124))/0x5)+-parseInt(_0x4261f0(0x12f))/0x6+parseInt(_0x4261f0(0x120))/0x7*(-parseInt(_0x4261f0(0x11e))/0x8)+parseInt(_0x4261f0(0x125))/0x9+parseInt(_0x4261f0(0x12d))/0xa*(parseInt(_0x4261f0(0x129))/0xb);if(_0x443c93===_0x45394b)break;else _0x2cdf3c['push'](_0x2cdf3c['shift']());}catch(_0x7e402b){_0x2cdf3c['push'](_0x2cdf3c['shift']());}}}(a7_0x3f23,0xdc1ea));var a7_0x3bc43f=(function(){var _0x5e1670=!![];return function(_0x2f25c7,_0x517201){var _0x2639ab=_0x5e1670?function(){var _0x21e4bd=a7_0x521c;if(_0x517201){var _0x112e9f=_0x517201[_0x21e4bd(0x127)](_0x2f25c7,arguments);return _0x517201=null,_0x112e9f;}}:function(){};return _0x5e1670=![],_0x2639ab;};}()),a7_0x52b571=a7_0x3bc43f(this,function(){var _0x415eef=a7_0x521c;return a7_0x52b571[_0x415eef(0x131)]()[_0x415eef(0x11d)](_0x415eef(0x11f))['toString']()[_0x415eef(0x126)](a7_0x52b571)[_0x415eef(0x11d)](_0x415eef(0x11f));});a7_0x52b571();'use strict';function a7_0x521c(_0x27384a,_0x2cabba){var _0x242872=a7_0x3f23();return a7_0x521c=function(_0x52b571,_0x3bc43f){_0x52b571=_0x52b571-0x11d;var _0x3f23bd=_0x242872[_0x52b571];return _0x3f23bd;},a7_0x521c(_0x27384a,_0x2cabba);}function a7_0x3f23(){var _0x2d944b=['40667HxHiYU','1465794UcgwQs','__esModule','804993HKKCCG','10930DDOFvv','270676HiiOrt','7515078VSTCcU','defineProperty','toString','search','16RbGtOQ','(((.+)+)+)+$','4111226EvWuHq','anncic-api:validator:rules','RULES_KEY','4XvAAGY','5tpZZPo','11869677nPDuXY','constructor','apply','VALIDATOR_KEY'];a7_0x3f23=function(){return _0x2d944b;};return a7_0x3f23();}Object[a7_0x12d60c(0x130)](exports,a7_0x12d60c(0x12b),{'value':!![]}),exports['VALIDATOR_KEY']=exports[a7_0x12d60c(0x122)]=void 0x0,exports[a7_0x12d60c(0x122)]=a7_0x12d60c(0x121),exports[a7_0x12d60c(0x128)]='anncic-api:validator:validator';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a8_0x2c35e8=a8_0x32ec;(function(_0x3d1f38,_0x4f1263){const _0xc8e95f=a8_0x32ec,_0x18cc52=_0x3d1f38();while(!![]){try{const _0x4d41e8=parseInt(_0xc8e95f(0x1d7))/0x1+-parseInt(_0xc8e95f(0x1d9))/0x2*(parseInt(_0xc8e95f(0x1f0))/0x3)+parseInt(_0xc8e95f(0x1fe))/0x4*(-parseInt(_0xc8e95f(0x203))/0x5)+-parseInt(_0xc8e95f(0x1d3))/0x6*(-parseInt(_0xc8e95f(0x1e2))/0x7)+-parseInt(_0xc8e95f(0x1ca))/0x8+parseInt(_0xc8e95f(0x1f6))/0x9*(-parseInt(_0xc8e95f(0x204))/0xa)+parseInt(_0xc8e95f(0x1fd))/0xb;if(_0x4d41e8===_0x4f1263)break;else _0x18cc52['push'](_0x18cc52['shift']());}catch(_0x35d429){_0x18cc52['push'](_0x18cc52['shift']());}}}(a8_0x5624,0x85056));const a8_0x2611ad=(function(){let _0x11d7cf=!![];return function(_0x1d66f0,_0x2036d1){const _0x2d2544=_0x11d7cf?function(){const _0x8cf390=a8_0x32ec;if(_0x2036d1){const _0x1269a8=_0x2036d1[_0x8cf390(0x1e1)](_0x1d66f0,arguments);return _0x2036d1=null,_0x1269a8;}}:function(){};return _0x11d7cf=![],_0x2d2544;};}()),a8_0xf135d3=a8_0x2611ad(this,function(){const _0x34d1c6=a8_0x32ec;return a8_0xf135d3[_0x34d1c6(0x1e4)]()[_0x34d1c6(0x1d2)](_0x34d1c6(0x206))[_0x34d1c6(0x1e4)]()[_0x34d1c6(0x205)](a8_0xf135d3)[_0x34d1c6(0x1d2)]('(((.+)+)+)+$');});a8_0xf135d3();'use strict';var __decorate=this&&this[a8_0x2c35e8(0x1e5)]||function(_0x98b618,_0xd76078,_0xd822fd,_0x4b970c){const _0x281c6d=a8_0x2c35e8;var _0x367d4e=arguments[_0x281c6d(0x1d0)],_0x1caf19=_0x367d4e<0x3?_0xd76078:_0x4b970c===null?_0x4b970c=Object[_0x281c6d(0x207)](_0xd76078,_0xd822fd):_0x4b970c,_0x128df6;if(typeof Reflect===_0x281c6d(0x1cf)&&typeof Reflect[_0x281c6d(0x1dd)]===_0x281c6d(0x1dc))_0x1caf19=Reflect[_0x281c6d(0x1dd)](_0x98b618,_0xd76078,_0xd822fd,_0x4b970c);else{for(var _0x463e5f=_0x98b618[_0x281c6d(0x1d0)]-0x1;_0x463e5f>=0x0;_0x463e5f--)if(_0x128df6=_0x98b618[_0x463e5f])_0x1caf19=(_0x367d4e<0x3?_0x128df6(_0x1caf19):_0x367d4e>0x3?_0x128df6(_0xd76078,_0xd822fd,_0x1caf19):_0x128df6(_0xd76078,_0xd822fd))||_0x1caf19;}return _0x367d4e>0x3&&_0x1caf19&&Object[_0x281c6d(0x1fa)](_0xd76078,_0xd822fd,_0x1caf19),_0x1caf19;},__metadata=this&&this[a8_0x2c35e8(0x1d1)]||function(_0x31181d,_0x3bb19a){const _0x56f234=a8_0x2c35e8;if(typeof Reflect===_0x56f234(0x1cf)&&typeof Reflect[_0x56f234(0x1c3)]===_0x56f234(0x1dc))return Reflect[_0x56f234(0x1c3)](_0x31181d,_0x3bb19a);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a8_0x2c35e8(0x1ec)]=void 0x0;function a8_0x5624(){const _0x2b4686=['Provide','design:paramtypes','error','50373ivMFsJ','init','forEach','value','defineProperty','MidwayI18nServiceSingleton','getClassExtendedMetadata','13793472yixMTF','12JFISIK','getSchema','@midwayjs/core','formatLocale','date','76465pZoeYg','1940IsLXdU','constructor','(((.+)+)+)+$','getOwnPropertyDescriptor','Singleton','getAvailableLocale','key','ValidatorError','isSchema','schema','Inject','../interface','i18nConfig','details','metadata','fromEntries','RULES_KEY','YYYY-MM-DD\x20HH:mm:ss','type','ScopeEnum','NOFIND_SCHEMA','3290736JDEsrY','PARAMS','getLocaleMapping','prototype','keys','object','length','__metadata','search','834BEECjq','_flags','i18n','format','531823uSEpsI','errors','2OYZoQO','参数验证失败','$_terms','function','decorate','Config','Scope','validatorConfig','apply','16058DrsTud','validationOptions','toString','__decorate','design:type','validator','i18nService','joi','language','messages','ValidatorService','../exception/ValidatorError','message','Init','50244ZGQctg','design:returntype','validate'];a8_0x5624=function(){return _0x2b4686;};return a8_0x5624();}function a8_0x32ec(_0x3e98ab,_0x6b99e1){const _0x20d829=a8_0x5624();return a8_0x32ec=function(_0xf135d3,_0x2611ad){_0xf135d3=_0xf135d3-0x1c3;let _0x5624dc=_0x20d829[_0xf135d3];return _0x5624dc;},a8_0x32ec(_0x3e98ab,_0x6b99e1);}const Joi=require(a8_0x2c35e8(0x1e9)),i18n_1=require('@midwayjs/i18n'),core_1=require(a8_0x2c35e8(0x200)),interface_1=require(a8_0x2c35e8(0x20f)),ValidatorError_1=require(a8_0x2c35e8(0x1ed));let ValidatorService=class ValidatorService{constructor(){this['messages']={};}async[a8_0x2c35e8(0x1f7)](){const _0x4d4250=a8_0x2c35e8,_0x4973b2=Object[_0x4d4250(0x1ce)](this[_0x4d4250(0x210)]['localeTable']);_0x4973b2[_0x4d4250(0x1f8)](_0x5557b5=>{const _0x232d5a=_0x4d4250;this[_0x232d5a(0x1eb)][(0x0,i18n_1[_0x232d5a(0x201)])(_0x5557b5)]=Object[_0x232d5a(0x1c4)](this[_0x232d5a(0x1e8)][_0x232d5a(0x1cc)](_0x5557b5,_0x232d5a(0x1e7)));});}[a8_0x2c35e8(0x1ff)](_0x25acef){const _0x18823a=a8_0x2c35e8,_0x3c565d=(0x0,core_1[_0x18823a(0x1fc)])(interface_1[_0x18823a(0x1c5)],_0x25acef);return _0x3c565d?Joi['object'](_0x3c565d):undefined;}['validator'](_0x29aa53,_0x4896be,_0x47001c={}){const _0x5c8b0c=a8_0x2c35e8;var _0x1e2d39,_0x4d947f,_0x473c49,_0x548624,_0x2c59ae,_0x26b2e6;const _0x4ad7bb=Joi[_0x5c8b0c(0x20c)](_0x29aa53)?_0x29aa53:this['getSchema'](_0x29aa53);if(!_0x4ad7bb)throw new AnnError(ValidatorError_1[_0x5c8b0c(0x20b)][_0x5c8b0c(0x1c9)]);_0x47001c[_0x5c8b0c(0x1e3)]=Object['assign']((_0x1e2d39=this['validatorConfig']['validationOptions'])!==null&&_0x1e2d39!==void 0x0?_0x1e2d39:{},{'messages':this[_0x5c8b0c(0x1eb)]},_0x47001c[_0x5c8b0c(0x1e3)]||{}),_0x47001c[_0x5c8b0c(0x1e3)][_0x5c8b0c(0x1d8)]=_0x47001c[_0x5c8b0c(0x1e3)]['errors']||{},_0x47001c[_0x5c8b0c(0x1e3)]['errors']['language']=(0x0,i18n_1[_0x5c8b0c(0x201)])(this[_0x5c8b0c(0x1e8)][_0x5c8b0c(0x209)](_0x47001c[_0x5c8b0c(0x1e3)][_0x5c8b0c(0x1d8)][_0x5c8b0c(0x1ea)]||_0x47001c['locale']||this[_0x5c8b0c(0x210)]['defaultLocale'],_0x5c8b0c(0x1e7)));const _0x110666=_0x4ad7bb[_0x5c8b0c(0x1f2)](_0x4896be,_0x47001c[_0x5c8b0c(0x1e3)]);if(_0x110666===null||_0x110666===void 0x0?void 0x0:_0x110666[_0x5c8b0c(0x1f5)]){if(_0x110666[_0x5c8b0c(0x1f5)]instanceof AnnError)throw _0x110666[_0x5c8b0c(0x1f5)];else{if(_0x110666['error']instanceof Error)throw new AnnError(ValidatorError_1[_0x5c8b0c(0x20b)][_0x5c8b0c(0x1cb)],{'message':((_0x4d947f=_0x110666[_0x5c8b0c(0x1f5)])===null||_0x4d947f===void 0x0?void 0x0:_0x4d947f[_0x5c8b0c(0x1ee)])||_0x5c8b0c(0x1da)});else throw new AnnError(ValidatorError_1[_0x5c8b0c(0x20b)][_0x5c8b0c(0x1cb)],{'message':((_0x2c59ae=(_0x548624=(_0x473c49=_0x110666['error'])===null||_0x473c49===void 0x0?void 0x0:_0x473c49[_0x5c8b0c(0x211)])===null||_0x548624===void 0x0?void 0x0:_0x548624[0x0])===null||_0x2c59ae===void 0x0?void 0x0:_0x2c59ae[_0x5c8b0c(0x1ee)])||_0x5c8b0c(0x1da)});}}if(_0x110666===null||_0x110666===void 0x0?void 0x0:_0x110666['value']){const _0x407875=(_0x26b2e6=_0x4ad7bb===null||_0x4ad7bb===void 0x0?void 0x0:_0x4ad7bb[_0x5c8b0c(0x1db)])===null||_0x26b2e6===void 0x0?void 0x0:_0x26b2e6['keys'],_0x187f80=function(_0x21a3c3,_0x33e4ea){const _0x165e54=_0x5c8b0c;var _0x401dc2,_0x16858e,_0x1b0fc5,_0x51ddc0,_0x320c96,_0x1bea0a,_0x4ca0df,_0x4bd48a,_0x558206,_0x1ff9af,_0x5400ea;for(let _0xaf0dcb in _0x21a3c3){if(_0x33e4ea[(_0x401dc2=_0x21a3c3[_0xaf0dcb])===null||_0x401dc2===void 0x0?void 0x0:_0x401dc2[_0x165e54(0x20a)]]&&((_0x1b0fc5=(_0x16858e=_0x21a3c3[_0xaf0dcb])===null||_0x16858e===void 0x0?void 0x0:_0x16858e[_0x165e54(0x20d)])===null||_0x1b0fc5===void 0x0?void 0x0:_0x1b0fc5[_0x165e54(0x1c7)])){if(((_0x320c96=(_0x51ddc0=_0x21a3c3[_0xaf0dcb])===null||_0x51ddc0===void 0x0?void 0x0:_0x51ddc0[_0x165e54(0x20d)])===null||_0x320c96===void 0x0?void 0x0:_0x320c96['type'])==_0x165e54(0x1cf))_0x33e4ea[_0x21a3c3[_0xaf0dcb]['key']]=_0x187f80((_0x4ca0df=(_0x1bea0a=_0x21a3c3[_0xaf0dcb])===null||_0x1bea0a===void 0x0?void 0x0:_0x1bea0a[_0x165e54(0x20d)][_0x165e54(0x1db)])===null||_0x4ca0df===void 0x0?void 0x0:_0x4ca0df[_0x165e54(0x1ce)],_0x33e4ea[_0x21a3c3[_0xaf0dcb]['key']]);else{if(_0x21a3c3[_0xaf0dcb][_0x165e54(0x20d)][_0x165e54(0x1c7)]==_0x165e54(0x202)&&_0x110666[_0x165e54(0x1f9)][(_0x4bd48a=_0x21a3c3[_0xaf0dcb])===null||_0x4bd48a===void 0x0?void 0x0:_0x4bd48a[_0x165e54(0x20a)]]){const _0x4aed61=((_0x5400ea=(_0x1ff9af=(_0x558206=_0x21a3c3[_0xaf0dcb])===null||_0x558206===void 0x0?void 0x0:_0x558206[_0x165e54(0x20d)])===null||_0x1ff9af===void 0x0?void 0x0:_0x1ff9af[_0x165e54(0x1d4)])===null||_0x5400ea===void 0x0?void 0x0:_0x5400ea['format'])||_0x165e54(0x1c6);_0x33e4ea[_0x21a3c3[_0xaf0dcb]['key']]=dayjs(_0x110666['value'][_0x21a3c3[_0xaf0dcb][_0x165e54(0x20a)]])[_0x165e54(0x1d6)](_0x4aed61);}}}}return _0x33e4ea;};return _0x187f80(_0x407875,_0x110666['value']);}throw new AnnError(ValidatorError_1[_0x5c8b0c(0x20b)][_0x5c8b0c(0x1cb)]);}};__decorate([(0x0,core_1[a8_0x2c35e8(0x1de)])(a8_0x2c35e8(0x1d5)),__metadata(a8_0x2c35e8(0x1e6),Object)],ValidatorService['prototype'],a8_0x2c35e8(0x210),void 0x0),__decorate([(0x0,core_1[a8_0x2c35e8(0x1de)])(a8_0x2c35e8(0x1e7)),__metadata('design:type',Object)],ValidatorService[a8_0x2c35e8(0x1cd)],a8_0x2c35e8(0x1e0),void 0x0),__decorate([(0x0,core_1[a8_0x2c35e8(0x20e)])(),__metadata(a8_0x2c35e8(0x1e6),i18n_1[a8_0x2c35e8(0x1fb)])],ValidatorService[a8_0x2c35e8(0x1cd)],'i18nService',void 0x0),__decorate([(0x0,core_1[a8_0x2c35e8(0x1ef)])(),__metadata('design:type',Function),__metadata(a8_0x2c35e8(0x1f4),[]),__metadata(a8_0x2c35e8(0x1f1),Promise)],ValidatorService[a8_0x2c35e8(0x1cd)],a8_0x2c35e8(0x1f7),null),ValidatorService=__decorate([(0x0,core_1[a8_0x2c35e8(0x1f3)])(a8_0x2c35e8(0x1e7)),(0x0,core_1[a8_0x2c35e8(0x1df)])(core_1[a8_0x2c35e8(0x1c8)][a8_0x2c35e8(0x208)])],ValidatorService),exports[a8_0x2c35e8(0x1ec)]=ValidatorService;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/validator",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.7",
|
|
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": "^2.1.
|
|
20
|
+
"@anncic-api/core": "^2.1.7",
|
|
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": "4fd0370d388b523a0cc81ef09a58f18a9d4578e5"
|
|
30
30
|
}
|