@anncic-api/validator 3.2.4 → 3.2.6
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
|
+
const a0_0x47cea8=a0_0x40b4;function a0_0x438c(){const _0x6bf2fc=['5412258wzyLON','default','35752PJrGZG','../exception/ValidatorError','search','113384tUONHa','20647PTNUXX','PARAMS','2384196mIWPnB','1890309mPGAec','__esModule','toString','../../locales/en_US.json','172cXXUFR','../../locales/zh_CN.json','(((.+)+)+)+$','378TQYFJx','30QrXNqP','110ixFBDn','ValidatorError','string','217AkTooz','apply'];a0_0x438c=function(){return _0x6bf2fc;};return a0_0x438c();}(function(_0x252ba2,_0x167b98){const _0x3cac6c=a0_0x40b4,_0x94de96=_0x252ba2();while(!![]){try{const _0x5ccc27=-parseInt(_0x3cac6c(0x106))/0x1*(parseInt(_0x3cac6c(0x103))/0x2)+parseInt(_0x3cac6c(0xff))/0x3+parseInt(_0x3cac6c(0xfb))/0x4*(parseInt(_0x3cac6c(0x107))/0x5)+parseInt(_0x3cac6c(0xfe))/0x6+parseInt(_0x3cac6c(0xf4))/0x7*(-parseInt(_0x3cac6c(0xf8))/0x8)+-parseInt(_0x3cac6c(0xf6))/0x9+-parseInt(_0x3cac6c(0x108))/0xa*(-parseInt(_0x3cac6c(0xfc))/0xb);if(_0x5ccc27===_0x167b98)break;else _0x94de96['push'](_0x94de96['shift']());}catch(_0x4017a9){_0x94de96['push'](_0x94de96['shift']());}}}(a0_0x438c,0x6cd57));const a0_0x40ec57=(function(){let _0x4cecc7=!![];return function(_0x51f9da,_0x5967d8){const _0x572534=_0x4cecc7?function(){const _0x541a79=a0_0x40b4;if(_0x5967d8){const _0x159ae4=_0x5967d8[_0x541a79(0xf5)](_0x51f9da,arguments);return _0x5967d8=null,_0x159ae4;}}:function(){};return _0x4cecc7=![],_0x572534;};}()),a0_0x1d0660=a0_0x40ec57(this,function(){const _0x4b161b=a0_0x40b4;return a0_0x1d0660[_0x4b161b(0x101)]()[_0x4b161b(0xfa)](_0x4b161b(0x105))[_0x4b161b(0x101)]()['constructor'](a0_0x1d0660)[_0x4b161b(0xfa)](_0x4b161b(0x105));});a0_0x1d0660();'use strict';Object['defineProperty'](exports,a0_0x47cea8(0x100),{'value':!![]});function a0_0x40b4(_0x3ce3dd,_0x583ca7){const _0x270d56=a0_0x438c();return a0_0x40b4=function(_0x1d0660,_0x40ec57){_0x1d0660=_0x1d0660-0xf2;let _0x438ce9=_0x270d56[_0x1d0660];return _0x438ce9;},a0_0x40b4(_0x3ce3dd,_0x583ca7);}const ValidatorError_1=require(a0_0x47cea8(0xf9));exports[a0_0x47cea8(0xf7)]={'validator':{'errorStatus':ValidatorError_1[a0_0x47cea8(0xf2)][a0_0x47cea8(0xfd)],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':a0_0x47cea8(0xf3)}},'i18n':{'localeTable':{'en_US':{'validator':require(a0_0x47cea8(0x102))},'zh_CN':{'validator':require(a0_0x47cea8(0x104))}}}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a1_0xddc04=a1_0x53ed;function a1_0x2212(){const _0xbd69a1=['CustomConfiguration','methodArgs','@anncic-api/core','2011CEfiFJ','(((.+)+)+)+$','param','assign','decorate','941380GMVkXY','splice','@midwayjs/core','args','I18N_ATTR_KEY','32790cihcpm','locale','614AwhSnM','res','./service/ValidatorService','36mFNbyA','target','search','defineProperty','design:type','6871165ySBqrT','name','onReady','getClassMetadata','__esModule','./config/config.default','request','getAttr','length','toString','1478181wdoxoL','@midwayjs/i18n','decorator','1200tKyUnC','function','object','bound\x20dispatch','getSchema','Configuration','prototype','req','find','ValidatorService','validator','registerMethodHandler','metadata','method','REQUEST_OBJ_CTX_KEY','constructor','830656uCKcKC','__metadata','2399192ypshaE','params','VALIDATOR_KEY'];a1_0x2212=function(){return _0xbd69a1;};return a1_0x2212();}(function(_0x274580,_0x4783a0){const _0x3bd845=a1_0x53ed,_0x52effe=_0x274580();while(!![]){try{const _0x2683b5=-parseInt(_0x3bd845(0x19e))/0x1*(parseInt(_0x3bd845(0x1aa))/0x2)+parseInt(_0x3bd845(0x1bc))/0x3+-parseInt(_0x3bd845(0x196))/0x4+-parseInt(_0x3bd845(0x1a8))/0x5*(-parseInt(_0x3bd845(0x186))/0x6)+-parseInt(_0x3bd845(0x1b2))/0x7+parseInt(_0x3bd845(0x198))/0x8+parseInt(_0x3bd845(0x1ad))/0x9*(parseInt(_0x3bd845(0x1a3))/0xa);if(_0x2683b5===_0x4783a0)break;else _0x52effe['push'](_0x52effe['shift']());}catch(_0x323a26){_0x52effe['push'](_0x52effe['shift']());}}}(a1_0x2212,0xa495e));function a1_0x53ed(_0x52a9d4,_0x4e8e0a){const _0x219f13=a1_0x2212();return a1_0x53ed=function(_0x397ee6,_0x489fb6){_0x397ee6=_0x397ee6-0x185;let _0x221260=_0x219f13[_0x397ee6];return _0x221260;},a1_0x53ed(_0x52a9d4,_0x4e8e0a);}const a1_0x489fb6=(function(){let _0x1fb5f2=!![];return function(_0x3d240e,_0x4ff128){const _0x40c813=_0x1fb5f2?function(){if(_0x4ff128){const _0x3eb27f=_0x4ff128['apply'](_0x3d240e,arguments);return _0x4ff128=null,_0x3eb27f;}}:function(){};return _0x1fb5f2=![],_0x40c813;};}()),a1_0x397ee6=a1_0x489fb6(this,function(){const _0x4a8d7f=a1_0x53ed;return a1_0x397ee6[_0x4a8d7f(0x1bb)]()[_0x4a8d7f(0x1af)](_0x4a8d7f(0x19f))[_0x4a8d7f(0x1bb)]()[_0x4a8d7f(0x195)](a1_0x397ee6)['search']('(((.+)+)+)+$');});a1_0x397ee6();'use strict';var __decorate=this&&this['__decorate']||function(_0x3f3024,_0x13e6bc,_0x26ffbb,_0x150a00){const _0x5029b3=a1_0x53ed;var _0x161aba=arguments['length'],_0x127058=_0x161aba<0x3?_0x13e6bc:_0x150a00===null?_0x150a00=Object['getOwnPropertyDescriptor'](_0x13e6bc,_0x26ffbb):_0x150a00,_0x346283;if(typeof Reflect===_0x5029b3(0x188)&&typeof Reflect[_0x5029b3(0x1a2)]===_0x5029b3(0x187))_0x127058=Reflect['decorate'](_0x3f3024,_0x13e6bc,_0x26ffbb,_0x150a00);else{for(var _0x30fd7d=_0x3f3024[_0x5029b3(0x1ba)]-0x1;_0x30fd7d>=0x0;_0x30fd7d--)if(_0x346283=_0x3f3024[_0x30fd7d])_0x127058=(_0x161aba<0x3?_0x346283(_0x127058):_0x161aba>0x3?_0x346283(_0x13e6bc,_0x26ffbb,_0x127058):_0x346283(_0x13e6bc,_0x26ffbb))||_0x127058;}return _0x161aba>0x3&&_0x127058&&Object[_0x5029b3(0x1b0)](_0x13e6bc,_0x26ffbb,_0x127058),_0x127058;},__metadata=this&&this[a1_0xddc04(0x197)]||function(_0x29dac3,_0x45aa3f){const _0x4c05ca=a1_0xddc04;if(typeof Reflect===_0x4c05ca(0x188)&&typeof Reflect[_0x4c05ca(0x192)]===_0x4c05ca(0x187))return Reflect[_0x4c05ca(0x192)](_0x29dac3,_0x45aa3f);};Object[a1_0xddc04(0x1b0)](exports,a1_0xddc04(0x1b6),{'value':!![]}),exports[a1_0xddc04(0x19b)]=void 0x0;const i18n_1=require(a1_0xddc04(0x1bd)),core_1=require('@midwayjs/core'),core_2=require(a1_0xddc04(0x1a5)),interface_1=require('./interface'),ValidatorService_1=require(a1_0xddc04(0x1ac)),i18n=require(a1_0xddc04(0x1bd)),anncic=require(a1_0xddc04(0x19d)),ConfigDefault=require(a1_0xddc04(0x1b7));let CustomConfiguration=exports[a1_0xddc04(0x19b)]=class CustomConfiguration{async[a1_0xddc04(0x1b4)](){const _0x5d246c=a1_0xddc04;this[_0x5d246c(0x185)][_0x5d246c(0x191)](interface_1[_0x5d246c(0x19a)],_0x31ad79=>{const _0x5c12a0=_0x5d246c,_0xb4e774=_0x31ad79[_0x5c12a0(0x192)],_0x26c3e0=(0x0,core_2['getMethodParamTypes'])(_0x31ad79[_0x5c12a0(0x1ae)],_0x31ad79['propertyName']);return{'before':_0x1acdbe=>{const _0x190033=_0x5c12a0;var _0x479d9b,_0x107005,_0x15091f,_0x4ae5a3,_0x57ff09,_0x431357,_0x48909a,_0x3f02c3,_0x466577,_0x451f29,_0x32aa22,_0x4912b8,_0x3fc123;const _0x20af16=_0x1acdbe[_0x190033(0x1ae)][core_1[_0x190033(0x194)]],_0x4103cb=Object[_0x190033(0x1a1)]({},((_0x479d9b=_0x20af16===null||_0x20af16===void 0x0?void 0x0:_0x20af16['request'])===null||_0x479d9b===void 0x0?void 0x0:_0x479d9b['query'])||{},((_0x107005=_0x20af16===null||_0x20af16===void 0x0?void 0x0:_0x20af16[_0x190033(0x1b8)])===null||_0x107005===void 0x0?void 0x0:_0x107005['body'])||{}),_0x39b94d=((0x0,core_2[_0x190033(0x1b5)])(interface_1['VALIDATOR_KEY'],_0x1acdbe['target'])||[])[_0x190033(0x18e)](_0x258b72=>_0x258b72[_0x190033(0x193)]==_0x1acdbe['methodName']);!(_0xb4e774===null||_0xb4e774===void 0x0?void 0x0:_0xb4e774[_0x190033(0x1a9)])&&_0x20af16&&_0x20af16[_0x190033(0x1b9)]&&(_0xb4e774[_0x190033(0x1a9)]=_0x20af16['getAttr'](i18n_1[_0x190033(0x1a7)]));for(let _0x2bc58f=0x0;_0x2bc58f<_0x26c3e0[_0x190033(0x1ba)];_0x2bc58f++){const _0x57f616=_0x26c3e0[_0x2bc58f],_0x348e57=this[_0x190033(0x18f)][_0x190033(0x18a)](_0x57f616);if(_0x348e57){if(typeof _0x1acdbe[_0x190033(0x1a6)][_0x2bc58f]=='undefined'||((_0x15091f=_0x1acdbe[_0x190033(0x1a6)][_0x2bc58f])===null||_0x15091f===void 0x0?void 0x0:_0x15091f['request'])&&((_0x4ae5a3=_0x1acdbe[_0x190033(0x1a6)][_0x2bc58f])===null||_0x4ae5a3===void 0x0?void 0x0:_0x4ae5a3[_0x190033(0x1ab)])&&((_0x57ff09=_0x1acdbe[_0x190033(0x1a6)][_0x2bc58f])===null||_0x57ff09===void 0x0?void 0x0:_0x57ff09[_0x190033(0x18d)]))_0x1acdbe[_0x190033(0x1a6)][_0x2bc58f]=_0x4103cb;else((_0x431357=_0x1acdbe[_0x190033(0x1a6)][_0x2bc58f])===null||_0x431357===void 0x0?void 0x0:_0x431357[_0x190033(0x1b3)])==_0x190033(0x189)&&_0x1acdbe[_0x190033(0x1a6)][_0x190033(0x1a4)](_0x2bc58f,0x0,_0x4103cb);const _0x3d8ced=this[_0x190033(0x18f)][_0x190033(0x190)](_0x348e57,_0x1acdbe[_0x190033(0x1a6)][_0x2bc58f],_0xb4e774);_0x3d8ced&&(_0x1acdbe[_0x190033(0x1a6)][_0x2bc58f]=_0x3d8ced);}else{if((_0x39b94d===null||_0x39b94d===void 0x0?void 0x0:_0x39b94d[_0x190033(0x19c)][_0x2bc58f])&&((_0x48909a=_0x1acdbe['args'][_0x2bc58f])===null||_0x48909a===void 0x0?void 0x0:_0x48909a[_0x190033(0x199)])&&typeof _0x1acdbe[_0x190033(0x1a6)][_0x2bc58f][_0x190033(0x1a0)]==_0x190033(0x187)&&((_0x3f02c3=_0x20af16===null||_0x20af16===void 0x0?void 0x0:_0x20af16['params'])===null||_0x3f02c3===void 0x0?void 0x0:_0x3f02c3[_0x39b94d['methodArgs'][_0x2bc58f]]))_0x1acdbe[_0x190033(0x1a6)][_0x2bc58f]=_0x57f616((_0x466577=_0x20af16===null||_0x20af16===void 0x0?void 0x0:_0x20af16[_0x190033(0x199)])===null||_0x466577===void 0x0?void 0x0:_0x466577[_0x39b94d[_0x190033(0x19c)][_0x2bc58f]]);else(_0x39b94d===null||_0x39b94d===void 0x0?void 0x0:_0x39b94d[_0x190033(0x19c)][_0x2bc58f])&&((_0x32aa22=(_0x451f29=_0x1acdbe['args'][_0x2bc58f])===null||_0x451f29===void 0x0?void 0x0:_0x451f29[_0x190033(0x199)])===null||_0x32aa22===void 0x0?void 0x0:_0x32aa22[_0x39b94d[_0x190033(0x19c)][_0x2bc58f]])&&(_0x1acdbe[_0x190033(0x1a6)][_0x2bc58f]=(_0x3fc123=(_0x4912b8=_0x1acdbe[_0x190033(0x1a6)][_0x2bc58f])===null||_0x4912b8===void 0x0?void 0x0:_0x4912b8[_0x190033(0x199)])===null||_0x3fc123===void 0x0?void 0x0:_0x3fc123[_0x39b94d[_0x190033(0x19c)][_0x2bc58f]]);}}},'afterThrow':(_0x429ff7,_0x2c1b4b)=>{throw _0x2c1b4b;}};});}};__decorate([(0x0,core_2['Inject'])(),__metadata(a1_0xddc04(0x1b1),core_1['MidwayDecoratorService'])],CustomConfiguration[a1_0xddc04(0x18c)],a1_0xddc04(0x185),void 0x0),__decorate([(0x0,core_2['Inject'])(),__metadata(a1_0xddc04(0x1b1),ValidatorService_1[a1_0xddc04(0x18f)])],CustomConfiguration[a1_0xddc04(0x18c)],a1_0xddc04(0x18f),void 0x0),exports[a1_0xddc04(0x19b)]=CustomConfiguration=__decorate([(0x0,core_2[a1_0xddc04(0x18b)])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':'anncic-api:validator','importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
|
package/dist/decorator/Rule.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a2_0x479a(_0x5c79ef,_0x445e35){const _0x232e39=a2_0x3c4f();return a2_0x479a=function(_0x4814d7,_0xf907a6){_0x4814d7=_0x4814d7-0x8f;let _0x3c4fcc=_0x232e39[_0x4814d7];return _0x3c4fcc;},a2_0x479a(_0x5c79ef,_0x445e35);}const a2_0x358fc3=a2_0x479a;(function(_0x4dd8ba,_0x3d1468){const _0x3507d8=a2_0x479a,_0x54e0fd=_0x4dd8ba();while(!![]){try{const _0x2f19bd=-parseInt(_0x3507d8(0x99))/0x1*(-parseInt(_0x3507d8(0xa7))/0x2)+parseInt(_0x3507d8(0xb9))/0x3*(-parseInt(_0x3507d8(0xa4))/0x4)+parseInt(_0x3507d8(0xad))/0x5+parseInt(_0x3507d8(0xa9))/0x6*(-parseInt(_0x3507d8(0x96))/0x7)+-parseInt(_0x3507d8(0xb8))/0x8*(-parseInt(_0x3507d8(0xb5))/0x9)+-parseInt(_0x3507d8(0xa8))/0xa*(parseInt(_0x3507d8(0x94))/0xb)+parseInt(_0x3507d8(0xb1))/0xc*(parseInt(_0x3507d8(0xae))/0xd);if(_0x2f19bd===_0x3d1468)break;else _0x54e0fd['push'](_0x54e0fd['shift']());}catch(_0x380928){_0x54e0fd['push'](_0x54e0fd['shift']());}}}(a2_0x3c4f,0x7f128));function a2_0x3c4f(){const _0x25f0c7=['default','238fgSNQM','label','getClassMetadata','73152WVgzRz','items','saveClassMetadata','search','getPropertyType','keys','toString','array','isSchema','../interface','function','82028jxCChy','meta','name','2AHGuUt','365720afPiPp','20604BGiUUA','@joi/date','attachClassMetadata','__esModule','2397155lqOwTG','5171010lXYsox','object','apply','12sYvktc','Rule','defineProperty','@midwayjs/core','6788619qKguxv','map','RULES_KEY','8qEqoAG','108JoLQkD','joi','RuleType','description','(((.+)+)+)+$','extend','constructor','99hdQZqd'];a2_0x3c4f=function(){return _0x25f0c7;};return a2_0x3c4f();}const a2_0xf907a6=(function(){let _0x137e71=!![];return function(_0x59d07c,_0x1edeac){const _0x4dfc41=_0x137e71?function(){const _0x4841a6=a2_0x479a;if(_0x1edeac){const _0x3604ee=_0x1edeac[_0x4841a6(0xb0)](_0x59d07c,arguments);return _0x1edeac=null,_0x3604ee;}}:function(){};return _0x137e71=![],_0x4dfc41;};}()),a2_0x4814d7=a2_0xf907a6(this,function(){const _0x46cac0=a2_0x479a;return a2_0x4814d7['toString']()[_0x46cac0(0x9c)]('(((.+)+)+)+$')[_0x46cac0(0x9f)]()[_0x46cac0(0x93)](a2_0x4814d7)[_0x46cac0(0x9c)](_0x46cac0(0x91));});a2_0x4814d7();'use strict';Object[a2_0x358fc3(0xb3)](exports,a2_0x358fc3(0xac),{'value':!![]}),exports[a2_0x358fc3(0xb2)]=exports['RuleType']=void 0x0;const joi=require(a2_0x358fc3(0xba)),date_1=require(a2_0x358fc3(0xaa)),core_1=require(a2_0x358fc3(0xb4)),interface_1=require(a2_0x358fc3(0xa2));exports[a2_0x358fc3(0x8f)]=joi[a2_0x358fc3(0x92)](date_1[a2_0x358fc3(0x95)]);function Rule(_0x887e0d,_0x4234c6,_0x2f31f6=''){return(_0x356771,_0x47cb83)=>{const _0x1c3df4=a2_0x479a;var _0x3578eb;if(_0x47cb83)!joi['isSchema'](_0x4234c6)&&(_0x4234c6===null||_0x4234c6===void 0x0?void 0x0:_0x4234c6[_0x1c3df4(0xa6)])&&(_0x4234c6=joi[_0x1c3df4(0xaf)]((0x0,core_1[_0x1c3df4(0x98)])(interface_1[_0x1c3df4(0xb7)],_0x4234c6))[_0x1c3df4(0xa5)]({'id':_0x4234c6['name']}),(0x0,core_1[_0x1c3df4(0x9d)])(_0x356771,_0x47cb83)[_0x1c3df4(0xa6)]==='Array'&&(_0x4234c6=joi[_0x1c3df4(0xa0)]()[_0x1c3df4(0x9a)](_0x4234c6))),joi[_0x1c3df4(0xa1)](_0x4234c6)&&(_0x887e0d&&typeof(_0x4234c6===null||_0x4234c6===void 0x0?void 0x0:_0x4234c6[_0x1c3df4(0x97)])=='function'&&(_0x4234c6=_0x4234c6[_0x1c3df4(0x97)](_0x887e0d)),_0x2f31f6&&typeof(_0x4234c6===null||_0x4234c6===void 0x0?void 0x0:_0x4234c6['description'])==_0x1c3df4(0xa3)&&(_0x4234c6=_0x4234c6[_0x1c3df4(0x90)](_0x2f31f6)),(0x0,core_1[_0x1c3df4(0xab)])(interface_1[_0x1c3df4(0xb7)],_0x4234c6,_0x356771,_0x47cb83));else{const _0x5d5249=(0x0,core_1[_0x1c3df4(0x98)])(interface_1[_0x1c3df4(0xb7)],_0x4234c6);if(_0x5d5249){let _0x79739b=(_0x3578eb=(0x0,core_1[_0x1c3df4(0x98)])(interface_1[_0x1c3df4(0xb7)],_0x356771))!==null&&_0x3578eb!==void 0x0?_0x3578eb:{};Object[_0x1c3df4(0x9e)](_0x5d5249)[_0x1c3df4(0xb6)](_0x30648b=>{!_0x79739b[_0x30648b]&&(_0x79739b[_0x30648b]=_0x5d5249[_0x30648b]);}),(0x0,core_1[_0x1c3df4(0x9b)])(interface_1[_0x1c3df4(0xb7)],_0x79739b,_0x356771);}}};}exports[a2_0x358fc3(0xb2)]=Rule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x2f7a09=a3_0x556d;(function(_0x36f2c1,_0x3368a7){const _0x47d98d=a3_0x556d,_0x32948d=_0x36f2c1();while(!![]){try{const _0xc600e1=-parseInt(_0x47d98d(0x8e))/0x1*(-parseInt(_0x47d98d(0x9d))/0x2)+parseInt(_0x47d98d(0xa1))/0x3+-parseInt(_0x47d98d(0x93))/0x4+-parseInt(_0x47d98d(0x9c))/0x5+parseInt(_0x47d98d(0x92))/0x6*(-parseInt(_0x47d98d(0x88))/0x7)+-parseInt(_0x47d98d(0x90))/0x8*(parseInt(_0x47d98d(0x8c))/0x9)+-parseInt(_0x47d98d(0x91))/0xa*(-parseInt(_0x47d98d(0x95))/0xb);if(_0xc600e1===_0x3368a7)break;else _0x32948d['push'](_0x32948d['shift']());}catch(_0x44a4d1){_0x32948d['push'](_0x32948d['shift']());}}}(a3_0x2ae7,0x2880c));function a3_0x2ae7(){const _0x34bf76=['@midwayjs/core','createCustomMethodDecorator','function','getFuncArgs','constructor','1645995hhhrDJ','44016jLkpAq','(((.+)+)+)+$','__esModule','prototype','432750BozFTp','VALIDATOR_KEY','apply','search','attachClassMetadata','56fgxNcZ','indexOf','../interface','replace','216585uLMbdE','toString','4snGYJg','Validator','56zmcqCj','302700fjXmFr','96648MuiWEQ','1270776VeaGPo','defineProperty','319QhkEGj','slice'];a3_0x2ae7=function(){return _0x34bf76;};return a3_0x2ae7();}const a3_0x27008c=(function(){let _0x584ee6=!![];return function(_0x2dd1a9,_0x44daf0){const _0x3d6aa2=_0x584ee6?function(){const _0x157eeb=a3_0x556d;if(_0x44daf0){const _0x4e60b0=_0x44daf0[_0x157eeb(0xa3)](_0x2dd1a9,arguments);return _0x44daf0=null,_0x4e60b0;}}:function(){};return _0x584ee6=![],_0x3d6aa2;};}()),a3_0x4eab4e=a3_0x27008c(this,function(){const _0x554b9a=a3_0x556d;return a3_0x4eab4e[_0x554b9a(0x8d)]()[_0x554b9a(0xa4)]('(((.+)+)+)+$')[_0x554b9a(0x8d)]()[_0x554b9a(0x9b)](a3_0x4eab4e)[_0x554b9a(0xa4)](_0x554b9a(0x9e));});a3_0x4eab4e();'use strict';function a3_0x556d(_0x57f317,_0x32df31){const _0x6da88b=a3_0x2ae7();return a3_0x556d=function(_0x4eab4e,_0x27008c){_0x4eab4e=_0x4eab4e-0x88;let _0x2ae795=_0x6da88b[_0x4eab4e];return _0x2ae795;},a3_0x556d(_0x57f317,_0x32df31);}Object[a3_0x2f7a09(0x94)](exports,a3_0x2f7a09(0x9f),{'value':!![]}),exports[a3_0x2f7a09(0x9a)]=exports[a3_0x2f7a09(0x8f)]=void 0x0;const core_1=require(a3_0x2f7a09(0x97)),interface_1=require(a3_0x2f7a09(0x8a));function Validator(_0x56ed26={}){return(_0x57f0ce,_0x2e7a74,_0x28eff8)=>{const _0x15c4b1=a3_0x556d,_0x290de7=getFuncArgs(_0x57f0ce[_0x2e7a74]);(0x0,core_1[_0x15c4b1(0xa5)])(interface_1[_0x15c4b1(0xa2)],{'method':_0x2e7a74,'methodArgs':_0x290de7},_0x57f0ce),(0x0,core_1[_0x15c4b1(0x98)])(interface_1[_0x15c4b1(0xa2)],_0x56ed26)(_0x57f0ce,_0x2e7a74,_0x28eff8);};}exports[a3_0x2f7a09(0x8f)]=Validator;function getFuncArgs(_0x39c7a2){const _0xabdcc0=a3_0x2f7a09;if(typeof _0x39c7a2==_0xabdcc0(0x99)){const _0xd0147=/=>.*$/mg,_0x1b88a7=/=[^,)]+/mg,_0x4bc234=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0xd81bbe=(_0x39c7a2[_0xabdcc0(0xa0)]?_0x39c7a2['prototype'][_0xabdcc0(0x9b)]['toString']():_0x39c7a2['toString']())[_0xabdcc0(0x8b)](_0x4bc234,'')['replace'](_0xd0147,'')[_0xabdcc0(0x8b)](_0x1b88a7,''),_0x5b4f84=_0xd81bbe[_0xabdcc0(0x96)](_0xd81bbe[_0xabdcc0(0x89)]('(')+0x1,_0xd81bbe[_0xabdcc0(0x89)](')'))['match'](/([^\s,]+)/g)||[];return _0x5b4f84;}}exports['getFuncArgs']=getFuncArgs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a4_0x1a38b1=a4_0x14f5;(function(_0x43c60f,_0x343c26){var _0x2caf94=a4_0x14f5,_0x77da92=_0x43c60f();while(!![]){try{var _0x5f169c=-parseInt(_0x2caf94(0xe2))/0x1*(parseInt(_0x2caf94(0xd9))/0x2)+-parseInt(_0x2caf94(0xd8))/0x3+-parseInt(_0x2caf94(0xc6))/0x4+parseInt(_0x2caf94(0xcc))/0x5*(-parseInt(_0x2caf94(0xcb))/0x6)+parseInt(_0x2caf94(0xdb))/0x7+-parseInt(_0x2caf94(0xd3))/0x8+parseInt(_0x2caf94(0xe3))/0x9;if(_0x5f169c===_0x343c26)break;else _0x77da92['push'](_0x77da92['shift']());}catch(_0x1b4c36){_0x77da92['push'](_0x77da92['shift']());}}}(a4_0x4823,0x3bc26));var a4_0x386897=(function(){var _0x85f8f8=!![];return function(_0x185e9b,_0x521502){var _0x45fa4b=_0x85f8f8?function(){var _0x597b57=a4_0x14f5;if(_0x521502){var _0xd56250=_0x521502[_0x597b57(0xcf)](_0x185e9b,arguments);return _0x521502=null,_0xd56250;}}:function(){};return _0x85f8f8=![],_0x45fa4b;};}()),a4_0xd24c40=a4_0x386897(this,function(){var _0x329ce4=a4_0x14f5;return a4_0xd24c40['toString']()[_0x329ce4(0xd2)](_0x329ce4(0xcd))[_0x329ce4(0xd7)]()[_0x329ce4(0xdf)](a4_0xd24c40)[_0x329ce4(0xd2)](_0x329ce4(0xcd));});a4_0xd24c40();'use strict';var __decorate=this&&this[a4_0x1a38b1(0xca)]||function(_0x1082a0,_0x2eb851,_0x1f005e,_0x187b17){var _0x289676=a4_0x1a38b1,_0x562eaf=arguments[_0x289676(0xe0)],_0x5c6919=_0x562eaf<0x3?_0x2eb851:_0x187b17===null?_0x187b17=Object[_0x289676(0xe1)](_0x2eb851,_0x1f005e):_0x187b17,_0x208ac5;if(typeof Reflect===_0x289676(0xda)&&typeof Reflect[_0x289676(0xc8)]==='function')_0x5c6919=Reflect['decorate'](_0x1082a0,_0x2eb851,_0x1f005e,_0x187b17);else{for(var _0x122818=_0x1082a0[_0x289676(0xe0)]-0x1;_0x122818>=0x0;_0x122818--)if(_0x208ac5=_0x1082a0[_0x122818])_0x5c6919=(_0x562eaf<0x3?_0x208ac5(_0x5c6919):_0x562eaf>0x3?_0x208ac5(_0x2eb851,_0x1f005e,_0x5c6919):_0x208ac5(_0x2eb851,_0x1f005e))||_0x5c6919;}return _0x562eaf>0x3&&_0x5c6919&&Object[_0x289676(0xd6)](_0x2eb851,_0x1f005e,_0x5c6919),_0x5c6919;},__metadata=this&&this['__metadata']||function(_0x4f9a23,_0x37a69a){var _0x213dd6=a4_0x1a38b1;if(typeof Reflect===_0x213dd6(0xda)&&typeof Reflect['metadata']===_0x213dd6(0xc9))return Reflect[_0x213dd6(0xce)](_0x4f9a23,_0x37a69a);};Object[a4_0x1a38b1(0xd6)](exports,a4_0x1a38b1(0xd4),{'value':!![]}),exports[a4_0x1a38b1(0xd0)]=void 0x0;const core_1=require(a4_0x1a38b1(0xc7));class ValidatorError extends AnnError{}function a4_0x4823(){var _0x4d20e0=['__esModule','PARAMS','defineProperty','toString','1468296kzjmwf','3308KCZehT','object','1577324tVcyFW','NOFIND_SCHEMA','AnnErrorMsg','参数验证失败','constructor','length','getOwnPropertyDescriptor','232kdDPAS','14436099poHVSz','1952044KwtACR','@anncic-api/core','decorate','function','__decorate','18516imQtMp','255jIQLAi','(((.+)+)+)+$','metadata','apply','ValidatorError','design:type','search','528096ZIRHBx'];a4_0x4823=function(){return _0x4d20e0;};return a4_0x4823();}function a4_0x14f5(_0x4359,_0x100fa8){var _0x49af05=a4_0x4823();return a4_0x14f5=function(_0xd24c40,_0x386897){_0xd24c40=_0xd24c40-0xc6;var _0x4823dc=_0x49af05[_0xd24c40];return _0x4823dc;},a4_0x14f5(_0x4359,_0x100fa8);}exports[a4_0x1a38b1(0xd0)]=ValidatorError,ValidatorError[a4_0x1a38b1(0xd5)]=0x18c1e,ValidatorError[a4_0x1a38b1(0xdc)]=0x18c1c,__decorate([(0x0,core_1[a4_0x1a38b1(0xdd)])('参数验证失败'),__metadata(a4_0x1a38b1(0xd1),Object)],ValidatorError,a4_0x1a38b1(0xd5),void 0x0),__decorate([(0x0,core_1[a4_0x1a38b1(0xdd)])(a4_0x1a38b1(0xde)),__metadata('design:type',Object)],ValidatorError,'NOFIND_SCHEMA',void 0x0);
|
package/dist/helper/dtoHelper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x269170=a5_0x4b77;(function(_0x297743,_0x37caee){const _0xf895a=a5_0x4b77,_0x3bfd73=_0x297743();while(!![]){try{const _0x3b34d5=-parseInt(_0xf895a(0x112))/0x1*(-parseInt(_0xf895a(0x11c))/0x2)+parseInt(_0xf895a(0x119))/0x3+parseInt(_0xf895a(0x120))/0x4+-parseInt(_0xf895a(0x11e))/0x5*(-parseInt(_0xf895a(0x114))/0x6)+-parseInt(_0xf895a(0x111))/0x7*(parseInt(_0xf895a(0x11a))/0x8)+-parseInt(_0xf895a(0x110))/0x9+parseInt(_0xf895a(0x10f))/0xa;if(_0x3b34d5===_0x37caee)break;else _0x3bfd73['push'](_0x3bfd73['shift']());}catch(_0x30d3b4){_0x3bfd73['push'](_0x3bfd73['shift']());}}}(a5_0x4ac9,0xb3727));const a5_0x1f246c=(function(){let _0x34a06f=!![];return function(_0x4530e5,_0x353399){const _0x299135=_0x34a06f?function(){const _0xd4126b=a5_0x4b77;if(_0x353399){const _0x3ef81c=_0x353399[_0xd4126b(0x10e)](_0x4530e5,arguments);return _0x353399=null,_0x3ef81c;}}:function(){};return _0x34a06f=![],_0x299135;};}()),a5_0x33c840=a5_0x1f246c(this,function(){const _0x1cde2a=a5_0x4b77;return a5_0x33c840[_0x1cde2a(0x10b)]()[_0x1cde2a(0x122)]('(((.+)+)+)+$')[_0x1cde2a(0x10b)]()[_0x1cde2a(0x115)](a5_0x33c840)['search'](_0x1cde2a(0x11b));});function a5_0x4ac9(){const _0x577280=['RULES_KEY','assign','apply','16574650zwMDWC','10235889lHyGVT','1806zahEeF','19iOZNzI','getClassExtendedMetadata','1766166DqtSJE','constructor','defineProperty','../interface','prototype','2075304ZGzJtG','29312zrtXom','(((.+)+)+)+$','10154dgjZoH','PickDto','5yCFAmw','OmitDto','310364NLzBGy','saveClassMetadata','search','toString'];a5_0x4ac9=function(){return _0x577280;};return a5_0x4ac9();}a5_0x33c840();'use strict';function a5_0x4b77(_0x246b0c,_0x1151e3){const _0x40feb9=a5_0x4ac9();return a5_0x4b77=function(_0x33c840,_0x1f246c){_0x33c840=_0x33c840-0x10b;let _0x4ac9f2=_0x40feb9[_0x33c840];return _0x4ac9f2;},a5_0x4b77(_0x246b0c,_0x1151e3);}Object[a5_0x269170(0x116)](exports,'__esModule',{'value':!![]}),exports[a5_0x269170(0x11f)]=exports[a5_0x269170(0x11d)]=void 0x0;const core_1=require('@midwayjs/core'),interface_1=require(a5_0x269170(0x117));function PickDto(_0xd5c5a3,_0x2340fb){const _0x138d5a=a5_0x269170,_0x246555=function(){};_0x246555[_0x138d5a(0x118)]=_0xd5c5a3[_0x138d5a(0x118)];const _0x3f56e5=(0x0,core_1[_0x138d5a(0x113)])(interface_1[_0x138d5a(0x10c)],_0xd5c5a3),_0x86c78c={};for(const _0x587a99 of _0x2340fb){_0x3f56e5[_0x587a99]&&(_0x86c78c[_0x587a99]=_0x3f56e5[_0x587a99]);}return(0x0,core_1[_0x138d5a(0x121)])(interface_1['RULES_KEY'],_0x86c78c,_0x246555),_0x246555;}exports[a5_0x269170(0x11d)]=PickDto;function OmitDto(_0x1df7ef,_0x499079){const _0x944cdd=a5_0x269170,_0x2b25dc=function(){};_0x2b25dc[_0x944cdd(0x118)]=_0x1df7ef[_0x944cdd(0x118)];const _0x17788a=(0x0,core_1[_0x944cdd(0x113)])(interface_1[_0x944cdd(0x10c)],_0x1df7ef),_0x4844fc=Object[_0x944cdd(0x10d)]({},_0x17788a);for(const _0x30db90 of _0x499079){delete _0x4844fc[_0x30db90];}return(0x0,core_1['saveClassMetadata'])(interface_1[_0x944cdd(0x10c)],_0x4844fc,_0x2b25dc),_0x2b25dc;}exports[a5_0x269170(0x11f)]=OmitDto;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a6_0x121492=a6_0x4801;(function(_0x50fb51,_0x4b0095){var _0x26f4e1=a6_0x4801,_0x356829=_0x50fb51();while(!![]){try{var _0x1e7470=-parseInt(_0x26f4e1(0x1fb))/0x1+parseInt(_0x26f4e1(0x1f7))/0x2*(parseInt(_0x26f4e1(0x1fd))/0x3)+parseInt(_0x26f4e1(0x1f6))/0x4+-parseInt(_0x26f4e1(0x1fe))/0x5+-parseInt(_0x26f4e1(0x1f5))/0x6*(-parseInt(_0x26f4e1(0x20c))/0x7)+parseInt(_0x26f4e1(0x1fa))/0x8+-parseInt(_0x26f4e1(0x211))/0x9;if(_0x1e7470===_0x4b0095)break;else _0x356829['push'](_0x356829['shift']());}catch(_0x3b64cb){_0x356829['push'](_0x356829['shift']());}}}(a6_0xc6d2,0xa4917));var a6_0xdcd178=(function(){var _0x3137b0=!![];return function(_0x7b2438,_0x1da370){var _0x3fa23f=_0x3137b0?function(){var _0x217a4e=a6_0x4801;if(_0x1da370){var _0x1a2357=_0x1da370[_0x217a4e(0x1ff)](_0x7b2438,arguments);return _0x1da370=null,_0x1a2357;}}:function(){};return _0x3137b0=![],_0x3fa23f;};}()),a6_0x1112bb=a6_0xdcd178(this,function(){var _0x21175e=a6_0x4801;return a6_0x1112bb['toString']()[_0x21175e(0x20f)](_0x21175e(0x200))[_0x21175e(0x205)]()[_0x21175e(0x206)](a6_0x1112bb)[_0x21175e(0x20f)](_0x21175e(0x200));});a6_0x1112bb();'use strict';var __createBinding=this&&this['__createBinding']||(Object[a6_0x121492(0x1f4)]?function(_0x5a02f3,_0x101f61,_0x4192f6,_0x3ea67c){var _0x4bcedc=a6_0x121492;if(_0x3ea67c===undefined)_0x3ea67c=_0x4192f6;var _0x421a1a=Object[_0x4bcedc(0x20a)](_0x101f61,_0x4192f6);(!_0x421a1a||(_0x4bcedc(0x210)in _0x421a1a?!_0x101f61[_0x4bcedc(0x207)]:_0x421a1a[_0x4bcedc(0x208)]||_0x421a1a[_0x4bcedc(0x20d)]))&&(_0x421a1a={'enumerable':!![],'get':function(){return _0x101f61[_0x4192f6];}}),Object['defineProperty'](_0x5a02f3,_0x3ea67c,_0x421a1a);}:function(_0x241283,_0x93a5d1,_0x489355,_0x1a49f7){if(_0x1a49f7===undefined)_0x1a49f7=_0x489355;_0x241283[_0x1a49f7]=_0x93a5d1[_0x489355];}),__exportStar=this&&this['__exportStar']||function(_0x515cc2,_0x3d5b16){var _0x5b7761=a6_0x121492;for(var _0x524f21 in _0x515cc2)if(_0x524f21!==_0x5b7761(0x202)&&!Object[_0x5b7761(0x1f9)]['hasOwnProperty'][_0x5b7761(0x203)](_0x3d5b16,_0x524f21))__createBinding(_0x3d5b16,_0x515cc2,_0x524f21);};Object[a6_0x121492(0x20b)](exports,'__esModule',{'value':!![]}),exports['Configuration']=exports['ValidatorService']=exports['ValidatorError']=exports[a6_0x121492(0x209)]=exports[a6_0x121492(0x1fc)]=exports['Validator']=void 0x0,__exportStar(require(a6_0x121492(0x1f8)),exports),__exportStar(require(a6_0x121492(0x212)),exports);var Validator_1=require('./decorator/Validator');Object[a6_0x121492(0x20b)](exports,a6_0x121492(0x201),{'enumerable':!![],'get':function(){var _0x16ce64=a6_0x121492;return Validator_1[_0x16ce64(0x201)];}});function a6_0x4801(_0x5e1a5e,_0x585df1){var _0x15e331=a6_0xc6d2();return a6_0x4801=function(_0x1112bb,_0xdcd178){_0x1112bb=_0x1112bb-0x1f4;var _0xc6d23b=_0x15e331[_0x1112bb];return _0xc6d23b;},a6_0x4801(_0x5e1a5e,_0x585df1);}var Rule_1=require('./decorator/Rule');Object[a6_0x121492(0x20b)](exports,'Rule',{'enumerable':!![],'get':function(){var _0x564148=a6_0x121492;return Rule_1[_0x564148(0x1fc)];}}),Object[a6_0x121492(0x20b)](exports,a6_0x121492(0x209),{'enumerable':!![],'get':function(){var _0x32b0f2=a6_0x121492;return Rule_1[_0x32b0f2(0x209)];}});var ValidatorError_1=require('./exception/ValidatorError');Object[a6_0x121492(0x20b)](exports,a6_0x121492(0x20e),{'enumerable':!![],'get':function(){return ValidatorError_1['ValidatorError'];}});var ValidatorService_1=require(a6_0x121492(0x213));function a6_0xc6d2(){var _0x2c4a8d=['Rule','15lZFKST','46265pZVppo','apply','(((.+)+)+)+$','Validator','default','call','ValidatorService','toString','constructor','__esModule','writable','RuleType','getOwnPropertyDescriptor','defineProperty','614649jvKrUr','configurable','ValidatorError','search','get','23495814VAaVfb','./helper/dtoHelper','./service/ValidatorService','create','78EVyloc','4687828MCMmSG','464074NkMsFd','./interface','prototype','7443968WHkfPH','1110159PjYKuQ'];a6_0xc6d2=function(){return _0x2c4a8d;};return a6_0xc6d2();}Object[a6_0x121492(0x20b)](exports,a6_0x121492(0x204),{'enumerable':!![],'get':function(){var _0x294288=a6_0x121492;return ValidatorService_1[_0x294288(0x204)];}});var configuration_1=require('./configuration');Object[a6_0x121492(0x20b)](exports,'Configuration',{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a7_0x2bcc9b=a7_0x4422;(function(_0x319e31,_0xbd75c0){var _0x42e5b8=a7_0x4422,_0x57f6c4=_0x319e31();while(!![]){try{var _0x361a95=parseInt(_0x42e5b8(0x1ed))/0x1*(parseInt(_0x42e5b8(0x1f4))/0x2)+-parseInt(_0x42e5b8(0x1eb))/0x3+parseInt(_0x42e5b8(0x1f9))/0x4*(-parseInt(_0x42e5b8(0x1f2))/0x5)+parseInt(_0x42e5b8(0x1f6))/0x6+-parseInt(_0x42e5b8(0x1ef))/0x7+parseInt(_0x42e5b8(0x1f7))/0x8*(parseInt(_0x42e5b8(0x1e7))/0x9)+parseInt(_0x42e5b8(0x1ea))/0xa;if(_0x361a95===_0xbd75c0)break;else _0x57f6c4['push'](_0x57f6c4['shift']());}catch(_0x4690da){_0x57f6c4['push'](_0x57f6c4['shift']());}}}(a7_0x1479,0xe5cb3));function a7_0x4422(_0x4070c2,_0x24aaa2){var _0xfa4bc5=a7_0x1479();return a7_0x4422=function(_0x3c7101,_0x3fcbaa){_0x3c7101=_0x3c7101-0x1e7;var _0x14798b=_0xfa4bc5[_0x3c7101];return _0x14798b;},a7_0x4422(_0x4070c2,_0x24aaa2);}var a7_0x3fcbaa=(function(){var _0x3efabd=!![];return function(_0x1ec136,_0x3bd84f){var _0x59fdfb=_0x3efabd?function(){var _0x3269eb=a7_0x4422;if(_0x3bd84f){var _0x194d78=_0x3bd84f[_0x3269eb(0x1e8)](_0x1ec136,arguments);return _0x3bd84f=null,_0x194d78;}}:function(){};return _0x3efabd=![],_0x59fdfb;};}()),a7_0x3c7101=a7_0x3fcbaa(this,function(){var _0x54089f=a7_0x4422;return a7_0x3c7101[_0x54089f(0x1ec)]()[_0x54089f(0x1e9)](_0x54089f(0x1f0))[_0x54089f(0x1ec)]()[_0x54089f(0x1f1)](a7_0x3c7101)['search']('(((.+)+)+)+$');});a7_0x3c7101();'use strict';function a7_0x1479(){var _0x33831a=['anncic-api:validator:rules','5010004Jfjcio','defineProperty','54aRQWxQ','apply','search','6541780CoQyby','1978500bCNnrG','toString','1129308DmiMaD','VALIDATOR_KEY','11006058tomwHc','(((.+)+)+)+$','constructor','5Moibmv','RULES_KEY','2meTguw','__esModule','8184012fUQCVX','1704056lmlaPg'];a7_0x1479=function(){return _0x33831a;};return a7_0x1479();}Object[a7_0x2bcc9b(0x1fa)](exports,a7_0x2bcc9b(0x1f5),{'value':!![]}),exports[a7_0x2bcc9b(0x1ee)]=exports['RULES_KEY']=void 0x0,exports[a7_0x2bcc9b(0x1f3)]=a7_0x2bcc9b(0x1f8),exports[a7_0x2bcc9b(0x1ee)]='anncic-api:validator:validator';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a8_0x550870=a8_0x40d5;(function(_0x1e50c2,_0x5572fb){const _0x3e5b49=a8_0x40d5,_0x11dfb9=_0x1e50c2();while(!![]){try{const _0x4c3b88=-parseInt(_0x3e5b49(0x10f))/0x1+-parseInt(_0x3e5b49(0xe8))/0x2+-parseInt(_0x3e5b49(0xff))/0x3*(-parseInt(_0x3e5b49(0x106))/0x4)+parseInt(_0x3e5b49(0xe7))/0x5+parseInt(_0x3e5b49(0x103))/0x6+parseInt(_0x3e5b49(0xed))/0x7+parseInt(_0x3e5b49(0x107))/0x8*(-parseInt(_0x3e5b49(0x112))/0x9);if(_0x4c3b88===_0x5572fb)break;else _0x11dfb9['push'](_0x11dfb9['shift']());}catch(_0x39c9d8){_0x11dfb9['push'](_0x11dfb9['shift']());}}}(a8_0x2315,0xf22a6));function a8_0x2315(){const _0x3a9f11=['Provide','assign','messages','init','__esModule','validationOptions','design:type','defineProperty','validator','keys','error','2752146CRnqTA','YYYY-MM-DD\x20HH:mm:ss','../exception/ValidatorError','type','7519704WczIbW','metadata','language','8HJXBMh','16401992mJXMck','value','validate','localeTable','(((.+)+)+)+$','function','format','errors','438411vWBAmz','$_terms','ValidatorService','18tUewud','i18nConfig','formatLocale','getSchema','NOFIND_SCHEMA','schema','Singleton','i18n','参数验证失败','RULES_KEY','length','Config','key','constructor','fromEntries','@midwayjs/i18n','design:paramtypes','design:returntype','defaultLocale','../interface','_flags','i18nService','apply','PARAMS','@midwayjs/core','Scope','ScopeEnum','toString','isSchema','message','4497940gnMlBh','326904nuPKvl','object','getAvailableLocale','joi','prototype','11946445UiqvpI','Init','date','Inject','getLocaleMapping','ValidatorError','validatorConfig'];a8_0x2315=function(){return _0x3a9f11;};return a8_0x2315();}const a8_0x2708c3=(function(){let _0x4f6545=!![];return function(_0x18c7ba,_0x165ab9){const _0x345d5e=_0x4f6545?function(){const _0x3deb6d=a8_0x40d5;if(_0x165ab9){const _0x1b1ca9=_0x165ab9[_0x3deb6d(0xdf)](_0x18c7ba,arguments);return _0x165ab9=null,_0x1b1ca9;}}:function(){};return _0x4f6545=![],_0x345d5e;};}()),a8_0x2249f4=a8_0x2708c3(this,function(){const _0x605f95=a8_0x40d5;return a8_0x2249f4[_0x605f95(0xe4)]()['search'](_0x605f95(0x10b))[_0x605f95(0xe4)]()[_0x605f95(0xd6)](a8_0x2249f4)['search'](_0x605f95(0x10b));});function a8_0x40d5(_0x2204df,_0x2a309b){const _0x5e5377=a8_0x2315();return a8_0x40d5=function(_0x2249f4,_0x2708c3){_0x2249f4=_0x2249f4-0xd1;let _0x231582=_0x5e5377[_0x2249f4];return _0x231582;},a8_0x40d5(_0x2204df,_0x2a309b);}a8_0x2249f4();'use strict';var __decorate=this&&this['__decorate']||function(_0xae5a6f,_0x44cf33,_0x375b7f,_0x59dbf9){const _0x2b23fe=a8_0x40d5;var _0x434a09=arguments[_0x2b23fe(0xd3)],_0x32138e=_0x434a09<0x3?_0x44cf33:_0x59dbf9===null?_0x59dbf9=Object['getOwnPropertyDescriptor'](_0x44cf33,_0x375b7f):_0x59dbf9,_0x15fcec;if(typeof Reflect===_0x2b23fe(0xe9)&&typeof Reflect['decorate']===_0x2b23fe(0x10c))_0x32138e=Reflect['decorate'](_0xae5a6f,_0x44cf33,_0x375b7f,_0x59dbf9);else{for(var _0xd1957a=_0xae5a6f[_0x2b23fe(0xd3)]-0x1;_0xd1957a>=0x0;_0xd1957a--)if(_0x15fcec=_0xae5a6f[_0xd1957a])_0x32138e=(_0x434a09<0x3?_0x15fcec(_0x32138e):_0x434a09>0x3?_0x15fcec(_0x44cf33,_0x375b7f,_0x32138e):_0x15fcec(_0x44cf33,_0x375b7f))||_0x32138e;}return _0x434a09>0x3&&_0x32138e&&Object[_0x2b23fe(0xfb)](_0x44cf33,_0x375b7f,_0x32138e),_0x32138e;},__metadata=this&&this['__metadata']||function(_0x9c29ee,_0x445235){const _0x1fead0=a8_0x40d5;if(typeof Reflect===_0x1fead0(0xe9)&&typeof Reflect[_0x1fead0(0x104)]===_0x1fead0(0x10c))return Reflect[_0x1fead0(0x104)](_0x9c29ee,_0x445235);};Object['defineProperty'](exports,a8_0x550870(0xf8),{'value':!![]}),exports[a8_0x550870(0x111)]=void 0x0;const Joi=require(a8_0x550870(0xeb)),i18n_1=require(a8_0x550870(0xd8)),core_1=require(a8_0x550870(0xe1)),interface_1=require(a8_0x550870(0xdc)),ValidatorError_1=require(a8_0x550870(0x101));let ValidatorService=exports[a8_0x550870(0x111)]=class ValidatorService{constructor(){this['messages']={};}async[a8_0x550870(0xf7)](){const _0x8138a2=a8_0x550870,_0x45ffd8=Object['keys'](this[_0x8138a2(0x113)][_0x8138a2(0x10a)]);_0x45ffd8['forEach'](_0x2e0a2a=>{const _0x1f2976=_0x8138a2;this[_0x1f2976(0xf6)][(0x0,i18n_1[_0x1f2976(0x114)])(_0x2e0a2a)]=Object[_0x1f2976(0xd7)](this[_0x1f2976(0xde)][_0x1f2976(0xf1)](_0x2e0a2a,'validator'));});}[a8_0x550870(0x115)](_0xb5225b){const _0x44793a=a8_0x550870,_0x15d062=(0x0,core_1['getClassExtendedMetadata'])(interface_1[_0x44793a(0xd2)],_0xb5225b);return _0x15d062?Joi[_0x44793a(0xe9)](_0x15d062):undefined;}[a8_0x550870(0xfc)](_0x30f31f,_0x373396,_0x375302={}){const _0x5b753c=a8_0x550870;var _0x1797a0,_0xcbf761,_0x257617,_0x1d1d34,_0x2c0b12,_0x7da472;const _0x33f07b=Joi[_0x5b753c(0xe5)](_0x30f31f)?_0x30f31f:this[_0x5b753c(0x115)](_0x30f31f);if(!_0x33f07b)throw new AnnError(ValidatorError_1[_0x5b753c(0xf2)][_0x5b753c(0x116)]);_0x375302[_0x5b753c(0xf9)]=Object[_0x5b753c(0xf5)]((_0x1797a0=this[_0x5b753c(0xf3)][_0x5b753c(0xf9)])!==null&&_0x1797a0!==void 0x0?_0x1797a0:{},{'messages':this[_0x5b753c(0xf6)]},_0x375302[_0x5b753c(0xf9)]||{}),_0x375302[_0x5b753c(0xf9)]['errors']=_0x375302['validationOptions'][_0x5b753c(0x10e)]||{},_0x375302[_0x5b753c(0xf9)][_0x5b753c(0x10e)][_0x5b753c(0x105)]=(0x0,i18n_1[_0x5b753c(0x114)])(this[_0x5b753c(0xde)][_0x5b753c(0xea)](_0x375302[_0x5b753c(0xf9)][_0x5b753c(0x10e)][_0x5b753c(0x105)]||_0x375302['locale']||this[_0x5b753c(0x113)][_0x5b753c(0xdb)],'validator'));const _0xa44099=_0x33f07b[_0x5b753c(0x109)](_0x373396,_0x375302[_0x5b753c(0xf9)]);if(_0xa44099===null||_0xa44099===void 0x0?void 0x0:_0xa44099[_0x5b753c(0xfe)]){if(_0xa44099[_0x5b753c(0xfe)]instanceof AnnError)throw _0xa44099['error'];else{if(_0xa44099['error']instanceof Error)throw new AnnError(ValidatorError_1[_0x5b753c(0xf2)][_0x5b753c(0xe0)],{'message':((_0xcbf761=_0xa44099[_0x5b753c(0xfe)])===null||_0xcbf761===void 0x0?void 0x0:_0xcbf761[_0x5b753c(0xe6)])||_0x5b753c(0xd1)});else throw new AnnError(ValidatorError_1[_0x5b753c(0xf2)]['PARAMS'],{'message':((_0x2c0b12=(_0x1d1d34=(_0x257617=_0xa44099['error'])===null||_0x257617===void 0x0?void 0x0:_0x257617['details'])===null||_0x1d1d34===void 0x0?void 0x0:_0x1d1d34[0x0])===null||_0x2c0b12===void 0x0?void 0x0:_0x2c0b12[_0x5b753c(0xe6)])||_0x5b753c(0xd1)});}}if(_0xa44099===null||_0xa44099===void 0x0?void 0x0:_0xa44099['value']){const _0x38cc1e=(_0x7da472=_0x33f07b===null||_0x33f07b===void 0x0?void 0x0:_0x33f07b['$_terms'])===null||_0x7da472===void 0x0?void 0x0:_0x7da472[_0x5b753c(0xfd)],_0x39cd4f=function(_0x5811fb,_0x5cd675){const _0x3e47a2=_0x5b753c;var _0x810980,_0x48d635,_0xf69a52,_0x3d9c99,_0x38656a,_0x2fc36b,_0x206e30,_0x16e5c8,_0x1a7e63,_0x2ce8f7,_0x5ed218;for(let _0x133796 in _0x5811fb){if(_0x5cd675[(_0x810980=_0x5811fb[_0x133796])===null||_0x810980===void 0x0?void 0x0:_0x810980['key']]&&((_0xf69a52=(_0x48d635=_0x5811fb[_0x133796])===null||_0x48d635===void 0x0?void 0x0:_0x48d635[_0x3e47a2(0x117)])===null||_0xf69a52===void 0x0?void 0x0:_0xf69a52[_0x3e47a2(0x102)])){if(((_0x38656a=(_0x3d9c99=_0x5811fb[_0x133796])===null||_0x3d9c99===void 0x0?void 0x0:_0x3d9c99[_0x3e47a2(0x117)])===null||_0x38656a===void 0x0?void 0x0:_0x38656a[_0x3e47a2(0x102)])==_0x3e47a2(0xe9))_0x5cd675[_0x5811fb[_0x133796][_0x3e47a2(0xd5)]]=_0x39cd4f((_0x206e30=(_0x2fc36b=_0x5811fb[_0x133796])===null||_0x2fc36b===void 0x0?void 0x0:_0x2fc36b['schema'][_0x3e47a2(0x110)])===null||_0x206e30===void 0x0?void 0x0:_0x206e30[_0x3e47a2(0xfd)],_0x5cd675[_0x5811fb[_0x133796]['key']]);else{if(_0x5811fb[_0x133796][_0x3e47a2(0x117)][_0x3e47a2(0x102)]==_0x3e47a2(0xef)&&_0xa44099[_0x3e47a2(0x108)][(_0x16e5c8=_0x5811fb[_0x133796])===null||_0x16e5c8===void 0x0?void 0x0:_0x16e5c8[_0x3e47a2(0xd5)]]){const _0x181126=((_0x5ed218=(_0x2ce8f7=(_0x1a7e63=_0x5811fb[_0x133796])===null||_0x1a7e63===void 0x0?void 0x0:_0x1a7e63['schema'])===null||_0x2ce8f7===void 0x0?void 0x0:_0x2ce8f7[_0x3e47a2(0xdd)])===null||_0x5ed218===void 0x0?void 0x0:_0x5ed218[_0x3e47a2(0x10d)])||_0x3e47a2(0x100);_0x5cd675[_0x5811fb[_0x133796][_0x3e47a2(0xd5)]]=dayjs(_0xa44099[_0x3e47a2(0x108)][_0x5811fb[_0x133796][_0x3e47a2(0xd5)]])['format'](_0x181126);}}}}return _0x5cd675;};return _0x39cd4f(_0x38cc1e,_0xa44099[_0x5b753c(0x108)]);}throw new AnnError(ValidatorError_1[_0x5b753c(0xf2)][_0x5b753c(0xe0)]);}};__decorate([(0x0,core_1[a8_0x550870(0xd4)])(a8_0x550870(0x119)),__metadata('design:type',Object)],ValidatorService['prototype'],a8_0x550870(0x113),void 0x0),__decorate([(0x0,core_1['Config'])(a8_0x550870(0xfc)),__metadata(a8_0x550870(0xfa),Object)],ValidatorService[a8_0x550870(0xec)],a8_0x550870(0xf3),void 0x0),__decorate([(0x0,core_1[a8_0x550870(0xf0)])(),__metadata(a8_0x550870(0xfa),i18n_1['MidwayI18nServiceSingleton'])],ValidatorService[a8_0x550870(0xec)],a8_0x550870(0xde),void 0x0),__decorate([(0x0,core_1[a8_0x550870(0xee)])(),__metadata(a8_0x550870(0xfa),Function),__metadata(a8_0x550870(0xd9),[]),__metadata(a8_0x550870(0xda),Promise)],ValidatorService[a8_0x550870(0xec)],a8_0x550870(0xf7),null),exports[a8_0x550870(0x111)]=ValidatorService=__decorate([(0x0,core_1[a8_0x550870(0xf4)])('validator'),(0x0,core_1[a8_0x550870(0xe2)])(core_1[a8_0x550870(0xe3)][a8_0x550870(0x118)])],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.6",
|
|
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.6",
|
|
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": "006cee3e3eb7d3044699c1b679ac5f88ed4e8bb1"
|
|
30
30
|
}
|