@anncic-api/validator 3.7.0 → 3.7.2
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
|
+
const a0_0x3872c4=a0_0x44d4;(function(_0x312736,_0x531e86){const _0x5722f5=a0_0x44d4,_0x263df2=_0x312736();while(!![]){try{const _0x35fafc=parseInt(_0x5722f5(0x160))/0x1+parseInt(_0x5722f5(0x15f))/0x2*(-parseInt(_0x5722f5(0x15e))/0x3)+-parseInt(_0x5722f5(0x166))/0x4+parseInt(_0x5722f5(0x15a))/0x5*(parseInt(_0x5722f5(0x165))/0x6)+parseInt(_0x5722f5(0x168))/0x7+parseInt(_0x5722f5(0x16b))/0x8+parseInt(_0x5722f5(0x16a))/0x9*(-parseInt(_0x5722f5(0x163))/0xa);if(_0x35fafc===_0x531e86)break;else _0x263df2['push'](_0x263df2['shift']());}catch(_0x400cde){_0x263df2['push'](_0x263df2['shift']());}}}(a0_0x271e,0xce42a));function a0_0x271e(){const _0x4b7fd6=['string','9KBqjXb','1266376MPTkwS','(((.+)+)+)+$','toString','../../locales/en_US.json','35sfkWMN','search','PARAMS','defineProperty','13275DpLSSp','30KYlRGy','861795rnpBMZ','../../locales/zh_CN.json','ValidatorError','16429290TmzsHd','constructor','1229178EftaVL','5059588opVTrP','../exception/ValidatorError','9554370aOzsyd'];a0_0x271e=function(){return _0x4b7fd6;};return a0_0x271e();}const a0_0x35d29c=(function(){let _0x55ab14=!![];return function(_0x2246d6,_0x238945){const _0xe70ebb=_0x55ab14?function(){if(_0x238945){const _0x1ce2eb=_0x238945['apply'](_0x2246d6,arguments);return _0x238945=null,_0x1ce2eb;}}:function(){};return _0x55ab14=![],_0xe70ebb;};}()),a0_0x500c84=a0_0x35d29c(this,function(){const _0x2644fc=a0_0x44d4;return a0_0x500c84[_0x2644fc(0x158)]()[_0x2644fc(0x15b)](_0x2644fc(0x16c))[_0x2644fc(0x158)]()[_0x2644fc(0x164)](a0_0x500c84)[_0x2644fc(0x15b)](_0x2644fc(0x16c));});a0_0x500c84();'use strict';Object[a0_0x3872c4(0x15d)](exports,'__esModule',{'value':!![]});function a0_0x44d4(_0x4d31f3,_0x2905ab){const _0x241cd1=a0_0x271e();return a0_0x44d4=function(_0x500c84,_0x35d29c){_0x500c84=_0x500c84-0x158;let _0x271ebd=_0x241cd1[_0x500c84];return _0x271ebd;},a0_0x44d4(_0x4d31f3,_0x2905ab);}const ValidatorError_1=require(a0_0x3872c4(0x167));exports['default']={'validator':{'errorStatus':ValidatorError_1[a0_0x3872c4(0x162)][a0_0x3872c4(0x15c)],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':a0_0x3872c4(0x169)}},'i18n':{'localeTable':{'en_US':{'validator':require(a0_0x3872c4(0x159))},'zh_CN':{'validator':require(a0_0x3872c4(0x161))}}}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a1_0x56cf4c=a1_0x3d3d;(function(_0x512f2c,_0x4637c4){const _0x1b765a=a1_0x3d3d,_0x420961=_0x512f2c();while(!![]){try{const _0x30c216=parseInt(_0x1b765a(0xa0))/0x1*(-parseInt(_0x1b765a(0xb5))/0x2)+-parseInt(_0x1b765a(0xa7))/0x3*(parseInt(_0x1b765a(0x8e))/0x4)+-parseInt(_0x1b765a(0x94))/0x5+parseInt(_0x1b765a(0xb0))/0x6+parseInt(_0x1b765a(0x9c))/0x7*(-parseInt(_0x1b765a(0xa6))/0x8)+parseInt(_0x1b765a(0xb3))/0x9*(parseInt(_0x1b765a(0xb4))/0xa)+parseInt(_0x1b765a(0xa8))/0xb*(parseInt(_0x1b765a(0xc0))/0xc);if(_0x30c216===_0x4637c4)break;else _0x420961['push'](_0x420961['shift']());}catch(_0x3dbbab){_0x420961['push'](_0x420961['shift']());}}}(a1_0x5ddc,0x21981));const a1_0x2a38a6=(function(){let _0x55a7a3=!![];return function(_0x4f494e,_0x855eae){const _0x1b4f99=_0x55a7a3?function(){if(_0x855eae){const _0x228c57=_0x855eae['apply'](_0x4f494e,arguments);return _0x855eae=null,_0x228c57;}}:function(){};return _0x55a7a3=![],_0x1b4f99;};}()),a1_0xc8e328=a1_0x2a38a6(this,function(){const _0x15d352=a1_0x3d3d;return a1_0xc8e328[_0x15d352(0x9e)]()[_0x15d352(0x90)](_0x15d352(0x91))['toString']()[_0x15d352(0x93)](a1_0xc8e328)[_0x15d352(0x90)](_0x15d352(0x91));});a1_0xc8e328();'use strict';var __decorate=this&&this['__decorate']||function(_0x10f2ba,_0x53daed,_0x4c1d77,_0x299763){const _0x5edbf7=a1_0x3d3d;var _0x3b8f0b=arguments[_0x5edbf7(0x98)],_0x3762a8=_0x3b8f0b<0x3?_0x53daed:_0x299763===null?_0x299763=Object[_0x5edbf7(0xbe)](_0x53daed,_0x4c1d77):_0x299763,_0x13ea7f;if(typeof Reflect===_0x5edbf7(0x9f)&&typeof Reflect['decorate']===_0x5edbf7(0xa5))_0x3762a8=Reflect[_0x5edbf7(0xa3)](_0x10f2ba,_0x53daed,_0x4c1d77,_0x299763);else{for(var _0x4ca5e9=_0x10f2ba[_0x5edbf7(0x98)]-0x1;_0x4ca5e9>=0x0;_0x4ca5e9--)if(_0x13ea7f=_0x10f2ba[_0x4ca5e9])_0x3762a8=(_0x3b8f0b<0x3?_0x13ea7f(_0x3762a8):_0x3b8f0b>0x3?_0x13ea7f(_0x53daed,_0x4c1d77,_0x3762a8):_0x13ea7f(_0x53daed,_0x4c1d77))||_0x3762a8;}return _0x3b8f0b>0x3&&_0x3762a8&&Object[_0x5edbf7(0x9d)](_0x53daed,_0x4c1d77,_0x3762a8),_0x3762a8;},__metadata=this&&this[a1_0x56cf4c(0xac)]||function(_0x2e6649,_0x38bbd4){const _0x351bb7=a1_0x56cf4c;if(typeof Reflect===_0x351bb7(0x9f)&&typeof Reflect['metadata']==='function')return Reflect[_0x351bb7(0xc2)](_0x2e6649,_0x38bbd4);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['CustomConfiguration']=void 0x0;const i18n_1=require(a1_0x56cf4c(0xa4)),core_1=require(a1_0x56cf4c(0xa2)),core_2=require(a1_0x56cf4c(0xa2)),interface_1=require(a1_0x56cf4c(0xb7)),ValidatorService_1=require(a1_0x56cf4c(0x95)),i18n=require(a1_0x56cf4c(0xa4)),anncic=require(a1_0x56cf4c(0x92)),ConfigDefault=require(a1_0x56cf4c(0x8c));let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x199df4=a1_0x56cf4c;this[_0x199df4(0xaf)]['registerMethodHandler'](interface_1[_0x199df4(0xbc)],_0x26a251=>{const _0x24ec40=_0x199df4,_0x43671e=_0x26a251[_0x24ec40(0xc2)],_0x376585=(0x0,core_2['getMethodParamTypes'])(_0x26a251[_0x24ec40(0xc4)],_0x26a251[_0x24ec40(0xa1)]);return{'before':_0x564176=>{const _0x15670a=_0x24ec40;var _0x3b1b44,_0x1fee82,_0x5b899c,_0xd2619a,_0x623310,_0x38e523,_0x29a663,_0x17be51,_0x34cdba,_0x51aab3,_0x140f68,_0x4090f8,_0x4f9657;const _0x543a59=_0x564176[_0x15670a(0xc4)][core_1[_0x15670a(0x9b)]],_0x344162=Object['assign']({},((_0x3b1b44=_0x543a59===null||_0x543a59===void 0x0?void 0x0:_0x543a59[_0x15670a(0x89)])===null||_0x3b1b44===void 0x0?void 0x0:_0x3b1b44[_0x15670a(0x97)])||{},((_0x1fee82=_0x543a59===null||_0x543a59===void 0x0?void 0x0:_0x543a59[_0x15670a(0x89)])===null||_0x1fee82===void 0x0?void 0x0:_0x1fee82[_0x15670a(0x88)])||{}),_0x40133d=((0x0,core_2['getClassMetadata'])(interface_1['VALIDATOR_KEY'],_0x564176[_0x15670a(0xc4)])||[])[_0x15670a(0xa9)](_0x29134b=>_0x29134b[_0x15670a(0xb2)]==_0x564176[_0x15670a(0x96)]);!(_0x43671e===null||_0x43671e===void 0x0?void 0x0:_0x43671e[_0x15670a(0x8a)])&&_0x543a59&&_0x543a59[_0x15670a(0xba)]&&(_0x43671e[_0x15670a(0x8a)]=_0x543a59[_0x15670a(0xba)](i18n_1[_0x15670a(0xad)]));for(let _0x26dd67=0x0;_0x26dd67<_0x376585[_0x15670a(0x98)];_0x26dd67++){const _0x41cdea=_0x376585[_0x26dd67],_0x4cf37b=this[_0x15670a(0x8b)]['getSchema'](_0x41cdea);if(_0x4cf37b){if(typeof _0x564176[_0x15670a(0x99)][_0x26dd67]==_0x15670a(0xb1)||((_0x5b899c=_0x564176['args'][_0x26dd67])===null||_0x5b899c===void 0x0?void 0x0:_0x5b899c['request'])&&((_0xd2619a=_0x564176[_0x15670a(0x99)][_0x26dd67])===null||_0xd2619a===void 0x0?void 0x0:_0xd2619a[_0x15670a(0x9a)])&&((_0x623310=_0x564176[_0x15670a(0x99)][_0x26dd67])===null||_0x623310===void 0x0?void 0x0:_0x623310[_0x15670a(0xbf)]))_0x564176[_0x15670a(0x99)][_0x26dd67]=_0x344162;else((_0x38e523=_0x564176[_0x15670a(0x99)][_0x26dd67])===null||_0x38e523===void 0x0?void 0x0:_0x38e523[_0x15670a(0xb9)])=='bound\x20dispatch'&&_0x564176[_0x15670a(0x99)][_0x15670a(0x8d)](_0x26dd67,0x0,_0x344162);const _0x49b54e=this['ValidatorService'][_0x15670a(0xc3)](_0x4cf37b,_0x564176[_0x15670a(0x99)][_0x26dd67],_0x43671e);_0x49b54e&&(_0x564176[_0x15670a(0x99)][_0x26dd67]=_0x49b54e);}else{if((_0x40133d===null||_0x40133d===void 0x0?void 0x0:_0x40133d['methodArgs'][_0x26dd67])&&((_0x29a663=_0x564176[_0x15670a(0x99)][_0x26dd67])===null||_0x29a663===void 0x0?void 0x0:_0x29a663[_0x15670a(0xbb)])&&typeof _0x564176['args'][_0x26dd67][_0x15670a(0xb6)]==_0x15670a(0xa5)&&((_0x17be51=_0x543a59===null||_0x543a59===void 0x0?void 0x0:_0x543a59[_0x15670a(0xbb)])===null||_0x17be51===void 0x0?void 0x0:_0x17be51[_0x40133d[_0x15670a(0xbd)][_0x26dd67]]))_0x564176['args'][_0x26dd67]=_0x41cdea((_0x34cdba=_0x543a59===null||_0x543a59===void 0x0?void 0x0:_0x543a59[_0x15670a(0xbb)])===null||_0x34cdba===void 0x0?void 0x0:_0x34cdba[_0x40133d[_0x15670a(0xbd)][_0x26dd67]]);else(_0x40133d===null||_0x40133d===void 0x0?void 0x0:_0x40133d[_0x15670a(0xbd)][_0x26dd67])&&((_0x140f68=(_0x51aab3=_0x564176[_0x15670a(0x99)][_0x26dd67])===null||_0x51aab3===void 0x0?void 0x0:_0x51aab3[_0x15670a(0xbb)])===null||_0x140f68===void 0x0?void 0x0:_0x140f68[_0x40133d[_0x15670a(0xbd)][_0x26dd67]])&&(_0x564176[_0x15670a(0x99)][_0x26dd67]=(_0x4f9657=(_0x4090f8=_0x564176[_0x15670a(0x99)][_0x26dd67])===null||_0x4090f8===void 0x0?void 0x0:_0x4090f8[_0x15670a(0xbb)])===null||_0x4f9657===void 0x0?void 0x0:_0x4f9657[_0x40133d['methodArgs'][_0x26dd67]]);}}},'afterThrow':(_0xe3693,_0x35b955)=>{throw _0x35b955;}};});}};function a1_0x3d3d(_0x4bc609,_0x57d1f9){const _0x9d43ee=a1_0x5ddc();return a1_0x3d3d=function(_0xc8e328,_0x2a38a6){_0xc8e328=_0xc8e328-0x88;let _0x5ddc86=_0x9d43ee[_0xc8e328];return _0x5ddc86;},a1_0x3d3d(_0x4bc609,_0x57d1f9);}function a1_0x5ddc(){const _0x24676b=['anncic-api:validator','metadata','validator','target','body','request','locale','ValidatorService','./config/config.default','splice','4MzdbQU','prototype','search','(((.+)+)+)+$','@anncic-api/core','constructor','1359930YbIDCc','./service/ValidatorService','methodName','query','length','args','res','REQUEST_OBJ_CTX_KEY','287119WVZuFi','defineProperty','toString','object','20977OuMDIw','propertyName','@midwayjs/core','decorate','@midwayjs/i18n','function','40EnEqNX','21285vqxPKg','1834778mblgiV','find','Inject','Configuration','__metadata','I18N_ATTR_KEY','design:type','decorator','245280FdyIeT','undefined','method','50859WuEuBj','70gUaFDs','12imvBIS','param','./interface','CustomConfiguration','name','getAttr','params','VALIDATOR_KEY','methodArgs','getOwnPropertyDescriptor','req','48nULluC'];a1_0x5ddc=function(){return _0x24676b;};return a1_0x5ddc();}exports['CustomConfiguration']=CustomConfiguration,__decorate([(0x0,core_2[a1_0x56cf4c(0xaa)])(),__metadata(a1_0x56cf4c(0xae),core_1['MidwayDecoratorService'])],CustomConfiguration[a1_0x56cf4c(0x8f)],a1_0x56cf4c(0xaf),void 0x0),__decorate([(0x0,core_2[a1_0x56cf4c(0xaa)])(),__metadata(a1_0x56cf4c(0xae),ValidatorService_1[a1_0x56cf4c(0x8b)])],CustomConfiguration['prototype'],a1_0x56cf4c(0x8b),void 0x0),exports[a1_0x56cf4c(0xb8)]=CustomConfiguration=__decorate([(0x0,core_2[a1_0x56cf4c(0xab)])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':a1_0x56cf4c(0xc1),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
|
package/dist/decorator/Rule.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0x19327a=a2_0x32b1;function a2_0x32b1(_0x101dbf,_0x144847){const _0x2ff7e7=a2_0x2208();return a2_0x32b1=function(_0x237015,_0x11f656){_0x237015=_0x237015-0x19b;let _0x2208cf=_0x2ff7e7[_0x237015];return _0x2208cf;},a2_0x32b1(_0x101dbf,_0x144847);}(function(_0x2fb8b8,_0x3855f9){const _0x3b6068=a2_0x32b1,_0x3d2c7d=_0x2fb8b8();while(!![]){try{const _0x4b7e34=-parseInt(_0x3b6068(0x1be))/0x1+-parseInt(_0x3b6068(0x1af))/0x2+-parseInt(_0x3b6068(0x1ac))/0x3*(parseInt(_0x3b6068(0x1b8))/0x4)+parseInt(_0x3b6068(0x1c0))/0x5*(-parseInt(_0x3b6068(0x1a4))/0x6)+-parseInt(_0x3b6068(0x1b9))/0x7*(-parseInt(_0x3b6068(0x1b3))/0x8)+parseInt(_0x3b6068(0x1b2))/0x9+parseInt(_0x3b6068(0x1aa))/0xa*(parseInt(_0x3b6068(0x1a9))/0xb);if(_0x4b7e34===_0x3855f9)break;else _0x3d2c7d['push'](_0x3d2c7d['shift']());}catch(_0x36887f){_0x3d2c7d['push'](_0x3d2c7d['shift']());}}}(a2_0x2208,0x99faf));const a2_0x11f656=(function(){let _0x25ac25=!![];return function(_0x1d7994,_0x4001c5){const _0x5292da=_0x25ac25?function(){const _0x21a6a5=a2_0x32b1;if(_0x4001c5){const _0x4e8ee7=_0x4001c5[_0x21a6a5(0x19b)](_0x1d7994,arguments);return _0x4001c5=null,_0x4e8ee7;}}:function(){};return _0x25ac25=![],_0x5292da;};}()),a2_0x237015=a2_0x11f656(this,function(){const _0x1090bc=a2_0x32b1;return a2_0x237015[_0x1090bc(0x1b1)]()['search']('(((.+)+)+)+$')[_0x1090bc(0x1b1)]()[_0x1090bc(0x1ad)](a2_0x237015)[_0x1090bc(0x1a0)](_0x1090bc(0x1b7));});a2_0x237015();function a2_0x2208(){const _0x5e90e1=['constructor','getPropertyType','2357288sMHPeG','isSchema','toString','7885278UeobKI','24gNqhup','saveClassMetadata','Array','keys','(((.+)+)+)+$','4PNBegr','1173382wVhxsx','name','label','RULES_KEY','map','47600zxrXcK','@joi/date','68785TlBVTX','meta','apply','attachClassMetadata','extend','defineProperty','default','search','RuleType','@midwayjs/core','getClassMetadata','282WzaSWp','description','function','array','items','22WPrDqn','9863430plIMkH','object','2544540ROScbH'];a2_0x2208=function(){return _0x5e90e1;};return a2_0x2208();}'use strict';Object[a2_0x19327a(0x19e)](exports,'__esModule',{'value':!![]}),exports[a2_0x19327a(0x1a1)]=void 0x0,exports['Rule']=Rule;const joi=require('joi'),date_1=require(a2_0x19327a(0x1bf)),core_1=require(a2_0x19327a(0x1a2)),interface_1=require('../interface');exports[a2_0x19327a(0x1a1)]=joi[a2_0x19327a(0x19d)](date_1[a2_0x19327a(0x19f)]);function Rule(_0x13a35a,_0x433d1c,_0x17616b=''){return(_0x409a77,_0x28b324)=>{const _0x56f3cf=a2_0x32b1;var _0x1cd9c5;if(_0x28b324)!joi[_0x56f3cf(0x1b0)](_0x433d1c)&&(_0x433d1c===null||_0x433d1c===void 0x0?void 0x0:_0x433d1c[_0x56f3cf(0x1ba)])&&(_0x433d1c=joi[_0x56f3cf(0x1ab)]((0x0,core_1[_0x56f3cf(0x1a3)])(interface_1['RULES_KEY'],_0x433d1c))[_0x56f3cf(0x1c1)]({'id':_0x433d1c['name']}),(0x0,core_1[_0x56f3cf(0x1ae)])(_0x409a77,_0x28b324)[_0x56f3cf(0x1ba)]===_0x56f3cf(0x1b5)&&(_0x433d1c=joi[_0x56f3cf(0x1a7)]()[_0x56f3cf(0x1a8)](_0x433d1c))),joi[_0x56f3cf(0x1b0)](_0x433d1c)&&(_0x13a35a&&typeof(_0x433d1c===null||_0x433d1c===void 0x0?void 0x0:_0x433d1c[_0x56f3cf(0x1bb)])==_0x56f3cf(0x1a6)&&(_0x433d1c=_0x433d1c['label'](_0x13a35a)),_0x17616b&&typeof(_0x433d1c===null||_0x433d1c===void 0x0?void 0x0:_0x433d1c[_0x56f3cf(0x1a5)])=='function'&&(_0x433d1c=_0x433d1c[_0x56f3cf(0x1a5)](_0x17616b)),(0x0,core_1[_0x56f3cf(0x19c)])(interface_1[_0x56f3cf(0x1bc)],_0x433d1c,_0x409a77,_0x28b324));else{const _0x11bbd2=(0x0,core_1[_0x56f3cf(0x1a3)])(interface_1[_0x56f3cf(0x1bc)],_0x433d1c);if(_0x11bbd2){let _0x584cc4=(_0x1cd9c5=(0x0,core_1['getClassMetadata'])(interface_1[_0x56f3cf(0x1bc)],_0x409a77))!==null&&_0x1cd9c5!==void 0x0?_0x1cd9c5:{};Object[_0x56f3cf(0x1b6)](_0x11bbd2)[_0x56f3cf(0x1bd)](_0x1b87fb=>{!_0x584cc4[_0x1b87fb]&&(_0x584cc4[_0x1b87fb]=_0x11bbd2[_0x1b87fb]);}),(0x0,core_1[_0x56f3cf(0x1b4)])(interface_1[_0x56f3cf(0x1bc)],_0x584cc4,_0x409a77);}}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x5da322=a3_0x2ae5;function a3_0x2ae5(_0x427994,_0x2c8ab7){const _0x4bffbe=a3_0x5e59();return a3_0x2ae5=function(_0x4aca77,_0x1dfb95){_0x4aca77=_0x4aca77-0xbe;let _0x5e595a=_0x4bffbe[_0x4aca77];return _0x5e595a;},a3_0x2ae5(_0x427994,_0x2c8ab7);}(function(_0x3c946c,_0x5505e6){const _0x77b921=a3_0x2ae5,_0x456b04=_0x3c946c();while(!![]){try{const _0x30e4af=-parseInt(_0x77b921(0xc6))/0x1+-parseInt(_0x77b921(0xc4))/0x2*(-parseInt(_0x77b921(0xd7))/0x3)+parseInt(_0x77b921(0xd4))/0x4*(-parseInt(_0x77b921(0xd1))/0x5)+-parseInt(_0x77b921(0xd5))/0x6*(parseInt(_0x77b921(0xc5))/0x7)+-parseInt(_0x77b921(0xcd))/0x8*(parseInt(_0x77b921(0xbf))/0x9)+-parseInt(_0x77b921(0xd8))/0xa*(parseInt(_0x77b921(0xcb))/0xb)+parseInt(_0x77b921(0xc1))/0xc;if(_0x30e4af===_0x5505e6)break;else _0x456b04['push'](_0x456b04['shift']());}catch(_0x25f168){_0x456b04['push'](_0x456b04['shift']());}}}(a3_0x5e59,0x983e6));const a3_0x1dfb95=(function(){let _0x210813=!![];return function(_0x245bf0,_0x468b6d){const _0x51918f=_0x210813?function(){const _0x3e8708=a3_0x2ae5;if(_0x468b6d){const _0x16026c=_0x468b6d[_0x3e8708(0xce)](_0x245bf0,arguments);return _0x468b6d=null,_0x16026c;}}:function(){};return _0x210813=![],_0x51918f;};}()),a3_0x4aca77=a3_0x1dfb95(this,function(){const _0x772077=a3_0x2ae5;return a3_0x4aca77['toString']()[_0x772077(0xc9)](_0x772077(0xd6))['toString']()['constructor'](a3_0x4aca77)[_0x772077(0xc9)]('(((.+)+)+)+$');});a3_0x4aca77();'use strict';Object[a3_0x5da322(0xcf)](exports,a3_0x5da322(0xcc),{'value':!![]}),exports['Validator']=Validator,exports[a3_0x5da322(0xc0)]=getFuncArgs;const core_1=require('@midwayjs/core'),interface_1=require(a3_0x5da322(0xca));function a3_0x5e59(){const _0x563d54=['477DWmYka','getFuncArgs','40582884Sfkucc','toString','prototype','2LDLTFU','1996036pPiCge','1117688fJZewe','replace','match','search','../interface','11wrBnwM','__esModule','160376bHXeeV','apply','defineProperty','indexOf','385VxbPJi','VALIDATOR_KEY','function','13808HWCWOr','24ZuZDPI','(((.+)+)+)+$','3628893qebZqp','3813730iOHLug','slice'];a3_0x5e59=function(){return _0x563d54;};return a3_0x5e59();}function Validator(_0xfc2a2={}){return(_0x4cd1bb,_0x20af88,_0x57e6f7)=>{const _0x7e8cd8=a3_0x2ae5,_0x4a282e=getFuncArgs(_0x4cd1bb[_0x20af88]);(0x0,core_1['attachClassMetadata'])(interface_1[_0x7e8cd8(0xd2)],{'method':_0x20af88,'methodArgs':_0x4a282e},_0x4cd1bb),(0x0,core_1['createCustomMethodDecorator'])(interface_1[_0x7e8cd8(0xd2)],_0xfc2a2)(_0x4cd1bb,_0x20af88,_0x57e6f7);};}function getFuncArgs(_0x54805a){const _0x10e891=a3_0x5da322;if(typeof _0x54805a==_0x10e891(0xd3)){const _0x5ea51b=/=>.*$/mg,_0x204e70=/=[^,)]+/mg,_0x580088=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x33ed9a=(_0x54805a[_0x10e891(0xc3)]?_0x54805a[_0x10e891(0xc3)]['constructor'][_0x10e891(0xc2)]():_0x54805a[_0x10e891(0xc2)]())['replace'](_0x580088,'')[_0x10e891(0xc7)](_0x5ea51b,'')['replace'](_0x204e70,''),_0x10e210=_0x33ed9a[_0x10e891(0xbe)](_0x33ed9a['indexOf']('(')+0x1,_0x33ed9a[_0x10e891(0xd0)](')'))[_0x10e891(0xc8)](/([^\s,]+)/g)||[];return _0x10e210;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a4_0x16f9fc=a4_0x269f;(function(_0x2316a5,_0x16c2ac){var _0x2faecd=a4_0x269f,_0x23708a=_0x2316a5();while(!![]){try{var _0x16c9cb=parseInt(_0x2faecd(0xf0))/0x1*(parseInt(_0x2faecd(0xde))/0x2)+-parseInt(_0x2faecd(0xf7))/0x3*(parseInt(_0x2faecd(0xef))/0x4)+parseInt(_0x2faecd(0xe7))/0x5+-parseInt(_0x2faecd(0xe4))/0x6*(-parseInt(_0x2faecd(0xf5))/0x7)+-parseInt(_0x2faecd(0xdd))/0x8+parseInt(_0x2faecd(0xf4))/0x9*(parseInt(_0x2faecd(0xe5))/0xa)+-parseInt(_0x2faecd(0xf8))/0xb*(parseInt(_0x2faecd(0xe6))/0xc);if(_0x16c9cb===_0x16c2ac)break;else _0x23708a['push'](_0x23708a['shift']());}catch(_0x5e491c){_0x23708a['push'](_0x23708a['shift']());}}}(a4_0x40fa,0x85606));var a4_0x20604d=(function(){var _0x4663aa=!![];return function(_0x4d4c16,_0x3364bf){var _0xc67594=_0x4663aa?function(){if(_0x3364bf){var _0x45fc35=_0x3364bf['apply'](_0x4d4c16,arguments);return _0x3364bf=null,_0x45fc35;}}:function(){};return _0x4663aa=![],_0xc67594;};}()),a4_0x171b68=a4_0x20604d(this,function(){var _0x3858ea=a4_0x269f;return a4_0x171b68[_0x3858ea(0xf2)]()['search'](_0x3858ea(0xe9))[_0x3858ea(0xf2)]()['constructor'](a4_0x171b68)['search'](_0x3858ea(0xe9));});a4_0x171b68();function a4_0x40fa(){var _0x483122=['5812xKrnme','456077OjTIhE','defineProperty','toString','PARAMS','357057yJyVNB','3328682kOSAGy','ValidatorError','1515jCFzgB','307571gzbbAW','getOwnPropertyDescriptor','__metadata','3553632rnKAIL','2JtgNsn','decorate','function','length','object','metadata','6FtBTDk','10AuoNWn','36MvvBDN','4184430qwiiir','design:type','(((.+)+)+)+$','参数验证失败','__esModule','NOFIND_SCHEMA','AnnErrorMsg','@anncic-api/core'];a4_0x40fa=function(){return _0x483122;};return a4_0x40fa();}function a4_0x269f(_0x2d0f77,_0x2b113e){var _0x172b88=a4_0x40fa();return a4_0x269f=function(_0x171b68,_0x20604d){_0x171b68=_0x171b68-0xdd;var _0x40fac8=_0x172b88[_0x171b68];return _0x40fac8;},a4_0x269f(_0x2d0f77,_0x2b113e);}'use strict';var __decorate=this&&this['__decorate']||function(_0x327def,_0x364c01,_0xe2a847,_0x311831){var _0x3967e0=a4_0x269f,_0xbcf98f=arguments['length'],_0x27f061=_0xbcf98f<0x3?_0x364c01:_0x311831===null?_0x311831=Object[_0x3967e0(0xf9)](_0x364c01,_0xe2a847):_0x311831,_0x42da6d;if(typeof Reflect===_0x3967e0(0xe2)&&typeof Reflect[_0x3967e0(0xdf)]===_0x3967e0(0xe0))_0x27f061=Reflect['decorate'](_0x327def,_0x364c01,_0xe2a847,_0x311831);else{for(var _0x373bfc=_0x327def[_0x3967e0(0xe1)]-0x1;_0x373bfc>=0x0;_0x373bfc--)if(_0x42da6d=_0x327def[_0x373bfc])_0x27f061=(_0xbcf98f<0x3?_0x42da6d(_0x27f061):_0xbcf98f>0x3?_0x42da6d(_0x364c01,_0xe2a847,_0x27f061):_0x42da6d(_0x364c01,_0xe2a847))||_0x27f061;}return _0xbcf98f>0x3&&_0x27f061&&Object[_0x3967e0(0xf1)](_0x364c01,_0xe2a847,_0x27f061),_0x27f061;},__metadata=this&&this[a4_0x16f9fc(0xfa)]||function(_0x225b5c,_0x1492e7){var _0x4919cb=a4_0x16f9fc;if(typeof Reflect===_0x4919cb(0xe2)&&typeof Reflect[_0x4919cb(0xe3)]==='function')return Reflect[_0x4919cb(0xe3)](_0x225b5c,_0x1492e7);};Object[a4_0x16f9fc(0xf1)](exports,a4_0x16f9fc(0xeb),{'value':!![]}),exports[a4_0x16f9fc(0xf6)]=void 0x0;const core_1=require(a4_0x16f9fc(0xee));class ValidatorError extends AnnError{}exports[a4_0x16f9fc(0xf6)]=ValidatorError,ValidatorError[a4_0x16f9fc(0xf3)]=0x18c1e,ValidatorError['NOFIND_SCHEMA']=0x18c1c,__decorate([(0x0,core_1['AnnErrorMsg'])(a4_0x16f9fc(0xea)),__metadata(a4_0x16f9fc(0xe8),Object)],ValidatorError,a4_0x16f9fc(0xf3),void 0x0),__decorate([(0x0,core_1[a4_0x16f9fc(0xed)])(a4_0x16f9fc(0xea)),__metadata(a4_0x16f9fc(0xe8),Object)],ValidatorError,a4_0x16f9fc(0xec),void 0x0);
|
package/dist/helper/dtoHelper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x5eab6e=a5_0x52f0;function a5_0x52f0(_0x55c9f5,_0x147bcd){const _0x205769=a5_0x1322();return a5_0x52f0=function(_0x1c1934,_0xf150c4){_0x1c1934=_0x1c1934-0x1c5;let _0x13222d=_0x205769[_0x1c1934];return _0x13222d;},a5_0x52f0(_0x55c9f5,_0x147bcd);}(function(_0x1262c6,_0x1884be){const _0x2fb66e=a5_0x52f0,_0x577128=_0x1262c6();while(!![]){try{const _0x11796b=parseInt(_0x2fb66e(0x1d8))/0x1+parseInt(_0x2fb66e(0x1d4))/0x2*(-parseInt(_0x2fb66e(0x1dd))/0x3)+-parseInt(_0x2fb66e(0x1dc))/0x4*(-parseInt(_0x2fb66e(0x1d1))/0x5)+parseInt(_0x2fb66e(0x1d2))/0x6+-parseInt(_0x2fb66e(0x1d0))/0x7*(parseInt(_0x2fb66e(0x1cf))/0x8)+-parseInt(_0x2fb66e(0x1ce))/0x9*(parseInt(_0x2fb66e(0x1da))/0xa)+parseInt(_0x2fb66e(0x1c8))/0xb;if(_0x11796b===_0x1884be)break;else _0x577128['push'](_0x577128['shift']());}catch(_0x5c4529){_0x577128['push'](_0x577128['shift']());}}}(a5_0x1322,0x5686e));const a5_0xf150c4=(function(){let _0x1565bc=!![];return function(_0x48dbaa,_0x5d4fed){const _0x22be93=_0x1565bc?function(){const _0x41a095=a5_0x52f0;if(_0x5d4fed){const _0x57527c=_0x5d4fed[_0x41a095(0x1d7)](_0x48dbaa,arguments);return _0x5d4fed=null,_0x57527c;}}:function(){};return _0x1565bc=![],_0x22be93;};}()),a5_0x1c1934=a5_0xf150c4(this,function(){const _0x3ce11d=a5_0x52f0;return a5_0x1c1934[_0x3ce11d(0x1d6)]()[_0x3ce11d(0x1c5)](_0x3ce11d(0x1c6))[_0x3ce11d(0x1d6)]()[_0x3ce11d(0x1c9)](a5_0x1c1934)[_0x3ce11d(0x1c5)](_0x3ce11d(0x1c6));});a5_0x1c1934();'use strict';Object[a5_0x5eab6e(0x1ca)](exports,'__esModule',{'value':!![]}),exports['PickDto']=PickDto,exports[a5_0x5eab6e(0x1d3)]=OmitDto;const core_1=require(a5_0x5eab6e(0x1d5)),interface_1=require(a5_0x5eab6e(0x1cb));function a5_0x1322(){const _0x25f8bf=['toString','apply','486286ekBxMs','prototype','70kHnkFB','getClassExtendedMetadata','118016bkucbM','61095otudZi','search','(((.+)+)+)+$','saveClassMetadata','9025588ablHjX','constructor','defineProperty','../interface','RULES_KEY','assign','876483qLyipf','2413792QAUfMG','7qAzgMP','50xMtqxd','4548aDBDKt','OmitDto','26wCPraU','@midwayjs/core'];a5_0x1322=function(){return _0x25f8bf;};return a5_0x1322();}function PickDto(_0x5cbbfc,_0x3a4542){const _0x5e005c=a5_0x5eab6e,_0x280f90=function(){};_0x280f90['prototype']=_0x5cbbfc[_0x5e005c(0x1d9)];const _0x51a15c=(0x0,core_1['getClassExtendedMetadata'])(interface_1[_0x5e005c(0x1cc)],_0x5cbbfc),_0x5167cc={};for(const _0x4106b3 of _0x3a4542){_0x51a15c[_0x4106b3]&&(_0x5167cc[_0x4106b3]=_0x51a15c[_0x4106b3]);}return(0x0,core_1['saveClassMetadata'])(interface_1['RULES_KEY'],_0x5167cc,_0x280f90),_0x280f90;}function OmitDto(_0x4e29ed,_0x488b97){const _0x4e1d6d=a5_0x5eab6e,_0x10e2f3=function(){};_0x10e2f3[_0x4e1d6d(0x1d9)]=_0x4e29ed[_0x4e1d6d(0x1d9)];const _0x402291=(0x0,core_1[_0x4e1d6d(0x1db)])(interface_1['RULES_KEY'],_0x4e29ed),_0x307258=Object[_0x4e1d6d(0x1cd)]({},_0x402291);for(const _0x3aaa8d of _0x488b97){delete _0x307258[_0x3aaa8d];}return(0x0,core_1[_0x4e1d6d(0x1c7)])(interface_1[_0x4e1d6d(0x1cc)],_0x307258,_0x10e2f3),_0x10e2f3;}
|
package/dist/helper/getSchema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a6_0x52db(_0x4efe2d,_0x2f9d76){const _0x38816a=a6_0x230a();return a6_0x52db=function(_0x261f1d,_0x27fdb7){_0x261f1d=_0x261f1d-0x10a;let _0x230a84=_0x38816a[_0x261f1d];return _0x230a84;},a6_0x52db(_0x4efe2d,_0x2f9d76);}const a6_0x58ea4b=a6_0x52db;(function(_0x2f02b5,_0xb11e3a){const _0x1c9da6=a6_0x52db,_0x425365=_0x2f02b5();while(!![]){try{const _0x567185=-parseInt(_0x1c9da6(0x114))/0x1*(parseInt(_0x1c9da6(0x10b))/0x2)+parseInt(_0x1c9da6(0x117))/0x3*(parseInt(_0x1c9da6(0x11b))/0x4)+parseInt(_0x1c9da6(0x10f))/0x5+-parseInt(_0x1c9da6(0x10e))/0x6+-parseInt(_0x1c9da6(0x11a))/0x7+parseInt(_0x1c9da6(0x119))/0x8*(parseInt(_0x1c9da6(0x112))/0x9)+parseInt(_0x1c9da6(0x110))/0xa;if(_0x567185===_0xb11e3a)break;else _0x425365['push'](_0x425365['shift']());}catch(_0x233fea){_0x425365['push'](_0x425365['shift']());}}}(a6_0x230a,0x18abf));function a6_0x230a(){const _0x1b629b=['1233806wfUVlZ','8XkDQRF','defineProperty','__esModule','getSchema','249582HtNZKs','joi','toString','327492BiLLFI','679025JmqRyl','658280JTJzfL','object','9UcBQMP','search','1qnlEbM','(((.+)+)+)+$','apply','193461CpeTuQ','@midwayjs/core','1008632yHqcMw'];a6_0x230a=function(){return _0x1b629b;};return a6_0x230a();}const a6_0x27fdb7=(function(){let _0x11cc7b=!![];return function(_0x1fd529,_0x3edfd4){const _0x459172=_0x11cc7b?function(){const _0x130542=a6_0x52db;if(_0x3edfd4){const _0x129c4a=_0x3edfd4[_0x130542(0x116)](_0x1fd529,arguments);return _0x3edfd4=null,_0x129c4a;}}:function(){};return _0x11cc7b=![],_0x459172;};}()),a6_0x261f1d=a6_0x27fdb7(this,function(){const _0x4b4924=a6_0x52db;return a6_0x261f1d[_0x4b4924(0x10d)]()[_0x4b4924(0x113)](_0x4b4924(0x115))[_0x4b4924(0x10d)]()['constructor'](a6_0x261f1d)['search']('(((.+)+)+)+$');});a6_0x261f1d();'use strict';Object[a6_0x58ea4b(0x11c)](exports,a6_0x58ea4b(0x11d),{'value':!![]}),exports[a6_0x58ea4b(0x10a)]=getSchema;const Joi=require(a6_0x58ea4b(0x10c)),core_1=require(a6_0x58ea4b(0x118)),interface_1=require('../interface');function getSchema(_0x35281d){const _0x389bb5=a6_0x58ea4b,_0x476fac=(0x0,core_1['getClassExtendedMetadata'])(interface_1['RULES_KEY'],_0x35281d);if(_0x476fac)return Joi[_0x389bb5(0x111)](_0x476fac);}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a7_0x27692f=a7_0x3914;(function(_0x15a47c,_0x9f0828){var _0x3f9aac=a7_0x3914,_0x17c833=_0x15a47c();while(!![]){try{var _0x496058=parseInt(_0x3f9aac(0x1f2))/0x1+-parseInt(_0x3f9aac(0x1e6))/0x2+-parseInt(_0x3f9aac(0x1ee))/0x3*(parseInt(_0x3f9aac(0x1fb))/0x4)+parseInt(_0x3f9aac(0x1f7))/0x5+-parseInt(_0x3f9aac(0x1e4))/0x6*(parseInt(_0x3f9aac(0x1e5))/0x7)+parseInt(_0x3f9aac(0x1e9))/0x8+-parseInt(_0x3f9aac(0x1e2))/0x9;if(_0x496058===_0x9f0828)break;else _0x17c833['push'](_0x17c833['shift']());}catch(_0x2939a8){_0x17c833['push'](_0x17c833['shift']());}}}(a7_0x1238,0xebc94));var a7_0x3094b5=(function(){var _0x1a1e6a=!![];return function(_0x258eba,_0x395a25){var _0x20e2d7=_0x1a1e6a?function(){if(_0x395a25){var _0x5c5fd3=_0x395a25['apply'](_0x258eba,arguments);return _0x395a25=null,_0x5c5fd3;}}:function(){};return _0x1a1e6a=![],_0x20e2d7;};}()),a7_0x1a5ac8=a7_0x3094b5(this,function(){var _0x5487a7=a7_0x3914;return a7_0x1a5ac8[_0x5487a7(0x1d9)]()[_0x5487a7(0x1f6)](_0x5487a7(0x1ea))[_0x5487a7(0x1d9)]()[_0x5487a7(0x1e8)](a7_0x1a5ac8)['search'](_0x5487a7(0x1ea));});a7_0x1a5ac8();'use strict';var __createBinding=this&&this[a7_0x27692f(0x1ec)]||(Object[a7_0x27692f(0x1fd)]?function(_0x4459f4,_0x26ff58,_0x29bb9e,_0x2ec3a2){var _0xb428c1=a7_0x27692f;if(_0x2ec3a2===undefined)_0x2ec3a2=_0x29bb9e;var _0x203e82=Object['getOwnPropertyDescriptor'](_0x26ff58,_0x29bb9e);(!_0x203e82||(_0xb428c1(0x1f0)in _0x203e82?!_0x26ff58[_0xb428c1(0x1e1)]:_0x203e82[_0xb428c1(0x1dd)]||_0x203e82[_0xb428c1(0x1f4)]))&&(_0x203e82={'enumerable':!![],'get':function(){return _0x26ff58[_0x29bb9e];}}),Object[_0xb428c1(0x1fa)](_0x4459f4,_0x2ec3a2,_0x203e82);}:function(_0x46d35b,_0x4f163f,_0x35e423,_0x24024b){if(_0x24024b===undefined)_0x24024b=_0x35e423;_0x46d35b[_0x24024b]=_0x4f163f[_0x35e423];}),__exportStar=this&&this[a7_0x27692f(0x1eb)]||function(_0x15d94f,_0xb6cac4){var _0x2e4415=a7_0x27692f;for(var _0x55ed36 in _0x15d94f)if(_0x55ed36!==_0x2e4415(0x1e3)&&!Object[_0x2e4415(0x1f8)]['hasOwnProperty'][_0x2e4415(0x1ed)](_0xb6cac4,_0x55ed36))__createBinding(_0xb6cac4,_0x15d94f,_0x55ed36);};Object[a7_0x27692f(0x1fa)](exports,a7_0x27692f(0x1e1),{'value':!![]}),exports[a7_0x27692f(0x1db)]=exports['ValidatorService']=exports[a7_0x27692f(0x1f9)]=exports[a7_0x27692f(0x1de)]=exports[a7_0x27692f(0x1da)]=exports['Validator']=void 0x0,__exportStar(require(a7_0x27692f(0x1e0)),exports),__exportStar(require('./helper/dtoHelper'),exports),__exportStar(require(a7_0x27692f(0x1f5)),exports);var Validator_1=require(a7_0x27692f(0x1fc));Object[a7_0x27692f(0x1fa)](exports,a7_0x27692f(0x1f3),{'enumerable':!![],'get':function(){var _0x418c6c=a7_0x27692f;return Validator_1[_0x418c6c(0x1f3)];}});var Rule_1=require(a7_0x27692f(0x1ef));Object[a7_0x27692f(0x1fa)](exports,'Rule',{'enumerable':!![],'get':function(){var _0xb412df=a7_0x27692f;return Rule_1[_0xb412df(0x1da)];}}),Object['defineProperty'](exports,a7_0x27692f(0x1de),{'enumerable':!![],'get':function(){var _0x3c89b3=a7_0x27692f;return Rule_1[_0x3c89b3(0x1de)];}});var ValidatorError_1=require(a7_0x27692f(0x1df));Object[a7_0x27692f(0x1fa)](exports,a7_0x27692f(0x1f9),{'enumerable':!![],'get':function(){var _0x4124f5=a7_0x27692f;return ValidatorError_1[_0x4124f5(0x1f9)];}});var ValidatorService_1=require('./service/ValidatorService');Object[a7_0x27692f(0x1fa)](exports,a7_0x27692f(0x1e7),{'enumerable':!![],'get':function(){var _0x35f8ae=a7_0x27692f;return ValidatorService_1[_0x35f8ae(0x1e7)];}});function a7_0x1238(){var _0xa070db=['12602448vGvPtM','(((.+)+)+)+$','__exportStar','__createBinding','call','3jxfrsG','./decorator/Rule','get','./configuration','782362XBJHJd','Validator','configurable','./helper/getSchema','search','7505585XHXjVu','prototype','ValidatorError','defineProperty','857004ebOUSq','./decorator/Validator','create','toString','Rule','Configuration','CustomConfiguration','writable','RuleType','./exception/ValidatorError','./interface','__esModule','22781322ELLyub','default','759570dyGpvZ','7RRjISU','41802yZBleL','ValidatorService','constructor'];a7_0x1238=function(){return _0xa070db;};return a7_0x1238();}var configuration_1=require(a7_0x27692f(0x1f1));function a7_0x3914(_0x4f3847,_0x3f67a1){var _0x47c7dc=a7_0x1238();return a7_0x3914=function(_0x1a5ac8,_0x3094b5){_0x1a5ac8=_0x1a5ac8-0x1d9;var _0x123899=_0x47c7dc[_0x1a5ac8];return _0x123899;},a7_0x3914(_0x4f3847,_0x3f67a1);}Object[a7_0x27692f(0x1fa)](exports,a7_0x27692f(0x1db),{'enumerable':!![],'get':function(){var _0x33bf69=a7_0x27692f;return configuration_1[_0x33bf69(0x1dc)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a8_0x1265bd=a8_0x21eb;(function(_0x104af6,_0x1b8143){var _0x30b325=a8_0x21eb,_0x4f9c37=_0x104af6();while(!![]){try{var _0x41b32c=-parseInt(_0x30b325(0x15e))/0x1*(parseInt(_0x30b325(0x15a))/0x2)+parseInt(_0x30b325(0x15b))/0x3*(-parseInt(_0x30b325(0x153))/0x4)+parseInt(_0x30b325(0x156))/0x5+-parseInt(_0x30b325(0x15d))/0x6+-parseInt(_0x30b325(0x152))/0x7+parseInt(_0x30b325(0x155))/0x8+-parseInt(_0x30b325(0x14e))/0x9*(-parseInt(_0x30b325(0x15f))/0xa);if(_0x41b32c===_0x1b8143)break;else _0x4f9c37['push'](_0x4f9c37['shift']());}catch(_0x297ad1){_0x4f9c37['push'](_0x4f9c37['shift']());}}}(a8_0x2664,0x50236));var a8_0xe21419=(function(){var _0x5c1b03=!![];return function(_0x274a78,_0x40f9f3){var _0x3492e9=_0x5c1b03?function(){var _0x2d554e=a8_0x21eb;if(_0x40f9f3){var _0xedd739=_0x40f9f3[_0x2d554e(0x154)](_0x274a78,arguments);return _0x40f9f3=null,_0xedd739;}}:function(){};return _0x5c1b03=![],_0x3492e9;};}()),a8_0x1b5bea=a8_0xe21419(this,function(){var _0x26d686=a8_0x21eb;return a8_0x1b5bea['toString']()['search']('(((.+)+)+)+$')[_0x26d686(0x159)]()[_0x26d686(0x14d)](a8_0x1b5bea)[_0x26d686(0x158)](_0x26d686(0x150));});a8_0x1b5bea();function a8_0x21eb(_0x10c73e,_0x4ce390){var _0x487ed2=a8_0x2664();return a8_0x21eb=function(_0x1b5bea,_0xe21419){_0x1b5bea=_0x1b5bea-0x14c;var _0x26643b=_0x487ed2[_0x1b5bea];return _0x26643b;},a8_0x21eb(_0x10c73e,_0x4ce390);}'use strict';function a8_0x2664(){var _0x1b16ae=['VALIDATOR_KEY','(((.+)+)+)+$','anncic-api:validator:rules','3227721bxQiMz','102824FELiJG','apply','2964744HjQcPy','640215ZqGhaV','RULES_KEY','search','toString','6nUvetK','21TvdNhW','__esModule','1401672efdjqB','111177kwpVpT','39460zXOzzS','anncic-api:validator:validator','constructor','2367Szoxox'];a8_0x2664=function(){return _0x1b16ae;};return a8_0x2664();}Object['defineProperty'](exports,a8_0x1265bd(0x15c),{'value':!![]}),exports[a8_0x1265bd(0x14f)]=exports[a8_0x1265bd(0x157)]=void 0x0,exports[a8_0x1265bd(0x157)]=a8_0x1265bd(0x151),exports[a8_0x1265bd(0x14f)]=a8_0x1265bd(0x14c);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a9_0x4306c5=a9_0x47c8;function a9_0x47c8(_0x89a62d,_0x2eb025){const _0x200a9a=a9_0x5e70();return a9_0x47c8=function(_0x5d36ec,_0x34144d){_0x5d36ec=_0x5d36ec-0x64;let _0x5e7038=_0x200a9a[_0x5d36ec];return _0x5e7038;},a9_0x47c8(_0x89a62d,_0x2eb025);}(function(_0x148b46,_0x2d358a){const _0x4e59ef=a9_0x47c8,_0x5bab5e=_0x148b46();while(!![]){try{const _0x21ff4b=parseInt(_0x4e59ef(0xa4))/0x1+parseInt(_0x4e59ef(0xac))/0x2*(-parseInt(_0x4e59ef(0x8e))/0x3)+-parseInt(_0x4e59ef(0x7e))/0x4*(parseInt(_0x4e59ef(0x99))/0x5)+parseInt(_0x4e59ef(0xa5))/0x6*(-parseInt(_0x4e59ef(0x97))/0x7)+parseInt(_0x4e59ef(0x77))/0x8+parseInt(_0x4e59ef(0xa0))/0x9*(-parseInt(_0x4e59ef(0x96))/0xa)+parseInt(_0x4e59ef(0x7d))/0xb;if(_0x21ff4b===_0x2d358a)break;else _0x5bab5e['push'](_0x5bab5e['shift']());}catch(_0x2e5a6d){_0x5bab5e['push'](_0x5bab5e['shift']());}}}(a9_0x5e70,0xec2f1));const a9_0x34144d=(function(){let _0x6aff80=!![];return function(_0x247947,_0x3dd993){const _0x4ab398=_0x6aff80?function(){const _0x50465e=a9_0x47c8;if(_0x3dd993){const _0x45c45f=_0x3dd993[_0x50465e(0x73)](_0x247947,arguments);return _0x3dd993=null,_0x45c45f;}}:function(){};return _0x6aff80=![],_0x4ab398;};}()),a9_0x5d36ec=a9_0x34144d(this,function(){const _0x4fe1a6=a9_0x47c8;return a9_0x5d36ec[_0x4fe1a6(0x72)]()[_0x4fe1a6(0x6e)]('(((.+)+)+)+$')['toString']()[_0x4fe1a6(0x8f)](a9_0x5d36ec)[_0x4fe1a6(0x6e)]('(((.+)+)+)+$');});a9_0x5d36ec();'use strict';var __decorate=this&&this[a9_0x4306c5(0x92)]||function(_0x3a1c41,_0x11da74,_0xa0774c,_0xc5cc53){const _0x135417=a9_0x4306c5;var _0x19ee3a=arguments['length'],_0x1a0a85=_0x19ee3a<0x3?_0x11da74:_0xc5cc53===null?_0xc5cc53=Object[_0x135417(0xb1)](_0x11da74,_0xa0774c):_0xc5cc53,_0x2fc1aa;if(typeof Reflect===_0x135417(0x70)&&typeof Reflect[_0x135417(0xae)]===_0x135417(0x80))_0x1a0a85=Reflect['decorate'](_0x3a1c41,_0x11da74,_0xa0774c,_0xc5cc53);else{for(var _0x1c36c9=_0x3a1c41[_0x135417(0x7a)]-0x1;_0x1c36c9>=0x0;_0x1c36c9--)if(_0x2fc1aa=_0x3a1c41[_0x1c36c9])_0x1a0a85=(_0x19ee3a<0x3?_0x2fc1aa(_0x1a0a85):_0x19ee3a>0x3?_0x2fc1aa(_0x11da74,_0xa0774c,_0x1a0a85):_0x2fc1aa(_0x11da74,_0xa0774c))||_0x1a0a85;}return _0x19ee3a>0x3&&_0x1a0a85&&Object[_0x135417(0x76)](_0x11da74,_0xa0774c,_0x1a0a85),_0x1a0a85;},__metadata=this&&this[a9_0x4306c5(0x74)]||function(_0x43a8ad,_0x46ce86){const _0x3e703c=a9_0x4306c5;if(typeof Reflect===_0x3e703c(0x70)&&typeof Reflect[_0x3e703c(0xa2)]===_0x3e703c(0x80))return Reflect[_0x3e703c(0xa2)](_0x43a8ad,_0x46ce86);};function a9_0x5e70(){const _0x4608d3=['299463qBmcfv','38706qAcJhI','getLocaleMapping','messages','details','isSchema','../interface','ValidatorError','1648642vyrIDJ','keys','decorate','RULES_KEY','fromEntries','getOwnPropertyDescriptor','key','format','@midwayjs/i18n','_flags','ValidatorService','getSchema','validatorConfig','Config','Scope','Inject','schema','search','formatLocale','object','forEach','toString','apply','__metadata','date','defineProperty','582128LgEedj','NOFIND_SCHEMA','__esModule','length','message','Init','61771479KBfVIQ','40316ZYZUKB','locale','function','getClassExtendedMetadata','errors','defaultLocale','Provide','init','design:type','localeTable','validationOptions','joi','prototype','language','design:returntype','$_terms','3tbtyrE','constructor','validate','assign','__decorate','PARAMS','参数验证失败','value','16185550LhdBOZ','2086MVOVIY','type','325UBilGE','i18nService','../exception/ValidatorError','MidwayI18nServiceSingleton','i18nConfig','validator','error','9fYtgjU','YYYY-MM-DD\x20HH:mm:ss','metadata','getAvailableLocale'];a9_0x5e70=function(){return _0x4608d3;};return a9_0x5e70();}Object[a9_0x4306c5(0x76)](exports,a9_0x4306c5(0x79),{'value':!![]}),exports[a9_0x4306c5(0x67)]=void 0x0;const Joi=require(a9_0x4306c5(0x89)),i18n_1=require(a9_0x4306c5(0x65)),core_1=require('@midwayjs/core'),interface_1=require(a9_0x4306c5(0xaa)),ValidatorError_1=require(a9_0x4306c5(0x9b));let ValidatorService=class ValidatorService{constructor(){const _0x4f62ec=a9_0x4306c5;this[_0x4f62ec(0xa7)]={};}async['init'](){const _0x50e100=a9_0x4306c5,_0x3d26e3=Object[_0x50e100(0xad)](this[_0x50e100(0x9d)][_0x50e100(0x87)]);_0x3d26e3[_0x50e100(0x71)](_0x44a861=>{const _0x4e3024=_0x50e100;this[_0x4e3024(0xa7)][(0x0,i18n_1[_0x4e3024(0x6f)])(_0x44a861)]=Object[_0x4e3024(0xb0)](this[_0x4e3024(0x9a)][_0x4e3024(0xa6)](_0x44a861,_0x4e3024(0x9e)));});}[a9_0x4306c5(0x68)](_0x20679b){const _0x4b27e5=a9_0x4306c5,_0x48f8bf=(0x0,core_1[_0x4b27e5(0x81)])(interface_1[_0x4b27e5(0xaf)],_0x20679b);return _0x48f8bf?Joi[_0x4b27e5(0x70)](_0x48f8bf):undefined;}[a9_0x4306c5(0x9e)](_0x342db0,_0x3bb3fa,_0x23165e={}){const _0x3b18ba=a9_0x4306c5;var _0x4cda70,_0x144204,_0x20cfa1,_0x2b8f98,_0x53d899,_0x35fde0;const _0x12c9d2=Joi[_0x3b18ba(0xa9)](_0x342db0)?_0x342db0:this[_0x3b18ba(0x68)](_0x342db0);if(!_0x12c9d2)throw new AnnError(ValidatorError_1['ValidatorError'][_0x3b18ba(0x78)]);_0x23165e[_0x3b18ba(0x88)]=Object[_0x3b18ba(0x91)]((_0x4cda70=this[_0x3b18ba(0x69)][_0x3b18ba(0x88)])!==null&&_0x4cda70!==void 0x0?_0x4cda70:{},{'messages':this['messages']},_0x23165e['validationOptions']||{}),_0x23165e[_0x3b18ba(0x88)][_0x3b18ba(0x82)]=_0x23165e[_0x3b18ba(0x88)][_0x3b18ba(0x82)]||{},_0x23165e[_0x3b18ba(0x88)][_0x3b18ba(0x82)]['language']=(0x0,i18n_1[_0x3b18ba(0x6f)])(this[_0x3b18ba(0x9a)][_0x3b18ba(0xa3)](_0x23165e[_0x3b18ba(0x88)][_0x3b18ba(0x82)][_0x3b18ba(0x8b)]||_0x23165e[_0x3b18ba(0x7f)]||this[_0x3b18ba(0x9d)][_0x3b18ba(0x83)],_0x3b18ba(0x9e)));const _0x26ca08=_0x12c9d2[_0x3b18ba(0x90)](_0x3bb3fa,_0x23165e[_0x3b18ba(0x88)]);if(_0x26ca08===null||_0x26ca08===void 0x0?void 0x0:_0x26ca08['error']){if(_0x26ca08[_0x3b18ba(0x9f)]instanceof AnnError)throw _0x26ca08[_0x3b18ba(0x9f)];else{if(_0x26ca08[_0x3b18ba(0x9f)]instanceof Error)throw new AnnError(ValidatorError_1[_0x3b18ba(0xab)][_0x3b18ba(0x93)],{'message':((_0x144204=_0x26ca08[_0x3b18ba(0x9f)])===null||_0x144204===void 0x0?void 0x0:_0x144204[_0x3b18ba(0x7b)])||_0x3b18ba(0x94)});else throw new AnnError(ValidatorError_1[_0x3b18ba(0xab)][_0x3b18ba(0x93)],{'message':((_0x53d899=(_0x2b8f98=(_0x20cfa1=_0x26ca08[_0x3b18ba(0x9f)])===null||_0x20cfa1===void 0x0?void 0x0:_0x20cfa1[_0x3b18ba(0xa8)])===null||_0x2b8f98===void 0x0?void 0x0:_0x2b8f98[0x0])===null||_0x53d899===void 0x0?void 0x0:_0x53d899[_0x3b18ba(0x7b)])||_0x3b18ba(0x94)});}}if(_0x26ca08===null||_0x26ca08===void 0x0?void 0x0:_0x26ca08[_0x3b18ba(0x95)]){const _0xb609a5=(_0x35fde0=_0x12c9d2===null||_0x12c9d2===void 0x0?void 0x0:_0x12c9d2[_0x3b18ba(0x8d)])===null||_0x35fde0===void 0x0?void 0x0:_0x35fde0[_0x3b18ba(0xad)],_0x5b6c93=function(_0x49d542,_0x31bd6a){const _0x588e11=_0x3b18ba;var _0x4e252f,_0x1f496a,_0x243d6e,_0x30b9d6,_0x195a39,_0x3ee3aa,_0x52654f,_0x4741a7,_0x57edaa,_0x3f7faa,_0x1fc31a;for(let _0x35f910 in _0x49d542){if(_0x31bd6a[(_0x4e252f=_0x49d542[_0x35f910])===null||_0x4e252f===void 0x0?void 0x0:_0x4e252f[_0x588e11(0xb2)]]&&((_0x243d6e=(_0x1f496a=_0x49d542[_0x35f910])===null||_0x1f496a===void 0x0?void 0x0:_0x1f496a[_0x588e11(0x6d)])===null||_0x243d6e===void 0x0?void 0x0:_0x243d6e[_0x588e11(0x98)])){if(((_0x195a39=(_0x30b9d6=_0x49d542[_0x35f910])===null||_0x30b9d6===void 0x0?void 0x0:_0x30b9d6[_0x588e11(0x6d)])===null||_0x195a39===void 0x0?void 0x0:_0x195a39[_0x588e11(0x98)])==_0x588e11(0x70))_0x31bd6a[_0x49d542[_0x35f910][_0x588e11(0xb2)]]=_0x5b6c93((_0x52654f=(_0x3ee3aa=_0x49d542[_0x35f910])===null||_0x3ee3aa===void 0x0?void 0x0:_0x3ee3aa[_0x588e11(0x6d)][_0x588e11(0x8d)])===null||_0x52654f===void 0x0?void 0x0:_0x52654f[_0x588e11(0xad)],_0x31bd6a[_0x49d542[_0x35f910][_0x588e11(0xb2)]]);else{if(_0x49d542[_0x35f910][_0x588e11(0x6d)]['type']==_0x588e11(0x75)&&_0x26ca08['value'][(_0x4741a7=_0x49d542[_0x35f910])===null||_0x4741a7===void 0x0?void 0x0:_0x4741a7[_0x588e11(0xb2)]]){const _0x47f6c1=((_0x1fc31a=(_0x3f7faa=(_0x57edaa=_0x49d542[_0x35f910])===null||_0x57edaa===void 0x0?void 0x0:_0x57edaa[_0x588e11(0x6d)])===null||_0x3f7faa===void 0x0?void 0x0:_0x3f7faa[_0x588e11(0x66)])===null||_0x1fc31a===void 0x0?void 0x0:_0x1fc31a[_0x588e11(0x64)])||_0x588e11(0xa1);_0x31bd6a[_0x49d542[_0x35f910][_0x588e11(0xb2)]]=dayjs(_0x26ca08[_0x588e11(0x95)][_0x49d542[_0x35f910]['key']])[_0x588e11(0x64)](_0x47f6c1);}}}}return _0x31bd6a;};return _0x5b6c93(_0xb609a5,_0x26ca08['value']);}throw new AnnError(ValidatorError_1[_0x3b18ba(0xab)]['PARAMS']);}};exports[a9_0x4306c5(0x67)]=ValidatorService,__decorate([(0x0,core_1[a9_0x4306c5(0x6a)])('i18n'),__metadata(a9_0x4306c5(0x86),Object)],ValidatorService[a9_0x4306c5(0x8a)],'i18nConfig',void 0x0),__decorate([(0x0,core_1[a9_0x4306c5(0x6a)])(a9_0x4306c5(0x9e)),__metadata(a9_0x4306c5(0x86),Object)],ValidatorService[a9_0x4306c5(0x8a)],a9_0x4306c5(0x69),void 0x0),__decorate([(0x0,core_1[a9_0x4306c5(0x6c)])(),__metadata(a9_0x4306c5(0x86),i18n_1[a9_0x4306c5(0x9c)])],ValidatorService['prototype'],'i18nService',void 0x0),__decorate([(0x0,core_1[a9_0x4306c5(0x7c)])(),__metadata(a9_0x4306c5(0x86),Function),__metadata('design:paramtypes',[]),__metadata(a9_0x4306c5(0x8c),Promise)],ValidatorService['prototype'],a9_0x4306c5(0x85),null),exports[a9_0x4306c5(0x67)]=ValidatorService=__decorate([(0x0,core_1[a9_0x4306c5(0x84)])('validator'),(0x0,core_1[a9_0x4306c5(0x6b)])(core_1['ScopeEnum']['Singleton'])],ValidatorService);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/validator",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.2",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@anncic-api/core": "^3.7.
|
|
21
|
+
"@anncic-api/core": "^3.7.2",
|
|
22
22
|
"@joi/date": "^2.1.0",
|
|
23
23
|
"joi": "^17.11.0"
|
|
24
24
|
},
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"javascript-obfuscator": "^4.0.2",
|
|
28
28
|
"typescript": "^5.5.4"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "3d3ade76a599250d64e7bd4ce1596fa8aa4c8aee"
|
|
31
31
|
}
|