@anncic-api/validator 3.4.33 → 3.4.34
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_0x22ef91=a0_0x13b0;(function(_0x44b624,_0x607dc6){const _0x30122b=a0_0x13b0,_0x46a88a=_0x44b624();while(!![]){try{const _0x5cb8f1=parseInt(_0x30122b(0x1c4))/0x1*(parseInt(_0x30122b(0x1d5))/0x2)+parseInt(_0x30122b(0x1c6))/0x3*(-parseInt(_0x30122b(0x1ca))/0x4)+parseInt(_0x30122b(0x1d9))/0x5*(parseInt(_0x30122b(0x1c5))/0x6)+parseInt(_0x30122b(0x1cf))/0x7*(-parseInt(_0x30122b(0x1d0))/0x8)+-parseInt(_0x30122b(0x1c7))/0x9+parseInt(_0x30122b(0x1cc))/0xa+parseInt(_0x30122b(0x1c9))/0xb;if(_0x5cb8f1===_0x607dc6)break;else _0x46a88a['push'](_0x46a88a['shift']());}catch(_0x538a72){_0x46a88a['push'](_0x46a88a['shift']());}}}(a0_0x5789,0xe108d));const a0_0x2d1228=(function(){let _0x550941=!![];return function(_0xdd932f,_0x269a4b){const _0x526f30=_0x550941?function(){const _0x54c295=a0_0x13b0;if(_0x269a4b){const _0x47e7bd=_0x269a4b[_0x54c295(0x1d7)](_0xdd932f,arguments);return _0x269a4b=null,_0x47e7bd;}}:function(){};return _0x550941=![],_0x526f30;};}()),a0_0x166654=a0_0x2d1228(this,function(){const _0x2dbfd2=a0_0x13b0;return a0_0x166654[_0x2dbfd2(0x1d1)]()[_0x2dbfd2(0x1d3)](_0x2dbfd2(0x1d2))[_0x2dbfd2(0x1d1)]()[_0x2dbfd2(0x1c8)](a0_0x166654)['search'](_0x2dbfd2(0x1d2));});a0_0x166654();'use strict';Object[a0_0x22ef91(0x1cb)](exports,a0_0x22ef91(0x1d4),{'value':!![]});function a0_0x13b0(_0x1ee930,_0x35f5ef){const _0x42f69b=a0_0x5789();return a0_0x13b0=function(_0x166654,_0x2d1228){_0x166654=_0x166654-0x1c4;let _0x578911=_0x42f69b[_0x166654];return _0x578911;},a0_0x13b0(_0x1ee930,_0x35f5ef);}const ValidatorError_1=require(a0_0x22ef91(0x1ce));function a0_0x5789(){const _0x218420=['(((.+)+)+)+$','search','__esModule','8ZWusER','string','apply','../../locales/zh_CN.json','5YLuHgG','220412QGXROZ','2399388yCjfyJ','1729590TkZHPA','10427130KGQYJL','constructor','18697294yEViTk','4HWQCvA','defineProperty','10381540XTimtx','../../locales/en_US.json','../exception/ValidatorError','9538291oADeoo','8WCCnat','toString'];a0_0x5789=function(){return _0x218420;};return a0_0x5789();}exports['default']={'validator':{'errorStatus':ValidatorError_1['ValidatorError']['PARAMS'],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':a0_0x22ef91(0x1d6)}},'i18n':{'localeTable':{'en_US':{'validator':require(a0_0x22ef91(0x1cd))},'zh_CN':{'validator':require(a0_0x22ef91(0x1d8))}}}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a1_0x35aed1=a1_0x84cf;(function(_0x39b7af,_0x55a91b){const _0x2bc196=a1_0x84cf,_0x441d67=_0x39b7af();while(!![]){try{const _0x2a5523=-parseInt(_0x2bc196(0x195))/0x1*(-parseInt(_0x2bc196(0x17b))/0x2)+parseInt(_0x2bc196(0x1a2))/0x3+parseInt(_0x2bc196(0x18a))/0x4*(-parseInt(_0x2bc196(0x187))/0x5)+parseInt(_0x2bc196(0x180))/0x6+-parseInt(_0x2bc196(0x17e))/0x7*(-parseInt(_0x2bc196(0x1a7))/0x8)+-parseInt(_0x2bc196(0x178))/0x9*(parseInt(_0x2bc196(0x177))/0xa)+-parseInt(_0x2bc196(0x194))/0xb;if(_0x2a5523===_0x55a91b)break;else _0x441d67['push'](_0x441d67['shift']());}catch(_0x5ba179){_0x441d67['push'](_0x441d67['shift']());}}}(a1_0x2692,0x2d205));function a1_0x2692(){const _0x1f86f8=['name','20TPjBUl','decorate','defineProperty','308428VJkXWO','splice','request','constructor','object','param','methodName','body','args','validator','2148366NchaIm','882CJFVnq','assign','./interface','params','CustomConfiguration','methodArgs','function','metadata','VALIDATOR_KEY','(((.+)+)+)+$','__metadata','propertyName','@midwayjs/core','1093737rDHzxC','prototype','@anncic-api/core','search','@midwayjs/i18n','16032uxaubm','design:type','toString','registerMethodHandler','REQUEST_OBJ_CTX_KEY','__decorate','Inject','20cIdsKc','885771ztrxVS','getMethodParamTypes','query','504wWvRNl','length','decorator','42tdcSqR','bound\x20dispatch','1719252HCFysk','ValidatorService','locale','method','onReady','target'];a1_0x2692=function(){return _0x1f86f8;};return a1_0x2692();}const a1_0x52a8a7=(function(){let _0xaa00a3=!![];return function(_0x4883ff,_0x5ec7a2){const _0x321c5f=_0xaa00a3?function(){if(_0x5ec7a2){const _0x270561=_0x5ec7a2['apply'](_0x4883ff,arguments);return _0x5ec7a2=null,_0x270561;}}:function(){};return _0xaa00a3=![],_0x321c5f;};}()),a1_0x4570a5=a1_0x52a8a7(this,function(){const _0x3141e6=a1_0x84cf;return a1_0x4570a5['toString']()[_0x3141e6(0x1a5)](_0x3141e6(0x19e))[_0x3141e6(0x1a9)]()[_0x3141e6(0x18d)](a1_0x4570a5)[_0x3141e6(0x1a5)](_0x3141e6(0x19e));});a1_0x4570a5();function a1_0x84cf(_0x11029d,_0x57ff85){const _0x2f4dda=a1_0x2692();return a1_0x84cf=function(_0x4570a5,_0x52a8a7){_0x4570a5=_0x4570a5-0x174;let _0x269245=_0x2f4dda[_0x4570a5];return _0x269245;},a1_0x84cf(_0x11029d,_0x57ff85);}'use strict';var __decorate=this&&this[a1_0x35aed1(0x175)]||function(_0x5e7162,_0x2f7f90,_0x2518bf,_0x283885){const _0x1445cd=a1_0x35aed1;var _0x4470f0=arguments[_0x1445cd(0x17c)],_0x54fa29=_0x4470f0<0x3?_0x2f7f90:_0x283885===null?_0x283885=Object['getOwnPropertyDescriptor'](_0x2f7f90,_0x2518bf):_0x283885,_0x5cf17a;if(typeof Reflect===_0x1445cd(0x18e)&&typeof Reflect[_0x1445cd(0x188)]===_0x1445cd(0x19b))_0x54fa29=Reflect[_0x1445cd(0x188)](_0x5e7162,_0x2f7f90,_0x2518bf,_0x283885);else{for(var _0x1aeb1e=_0x5e7162['length']-0x1;_0x1aeb1e>=0x0;_0x1aeb1e--)if(_0x5cf17a=_0x5e7162[_0x1aeb1e])_0x54fa29=(_0x4470f0<0x3?_0x5cf17a(_0x54fa29):_0x4470f0>0x3?_0x5cf17a(_0x2f7f90,_0x2518bf,_0x54fa29):_0x5cf17a(_0x2f7f90,_0x2518bf))||_0x54fa29;}return _0x4470f0>0x3&&_0x54fa29&&Object['defineProperty'](_0x2f7f90,_0x2518bf,_0x54fa29),_0x54fa29;},__metadata=this&&this[a1_0x35aed1(0x19f)]||function(_0x4b7d77,_0x23af60){const _0x362c7c=a1_0x35aed1;if(typeof Reflect===_0x362c7c(0x18e)&&typeof Reflect[_0x362c7c(0x19c)]===_0x362c7c(0x19b))return Reflect['metadata'](_0x4b7d77,_0x23af60);};Object[a1_0x35aed1(0x189)](exports,'__esModule',{'value':!![]}),exports[a1_0x35aed1(0x199)]=void 0x0;const i18n_1=require(a1_0x35aed1(0x1a6)),core_1=require(a1_0x35aed1(0x1a1)),core_2=require(a1_0x35aed1(0x1a1)),interface_1=require(a1_0x35aed1(0x197)),ValidatorService_1=require('./service/ValidatorService'),i18n=require(a1_0x35aed1(0x1a6)),anncic=require(a1_0x35aed1(0x1a4)),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{async[a1_0x35aed1(0x184)](){const _0x458d62=a1_0x35aed1;this['decorator'][_0x458d62(0x1aa)](interface_1[_0x458d62(0x19d)],_0x58f8cf=>{const _0x774cdf=_0x458d62,_0xc81417=_0x58f8cf[_0x774cdf(0x19c)],_0x4b13cc=(0x0,core_2[_0x774cdf(0x179)])(_0x58f8cf[_0x774cdf(0x185)],_0x58f8cf[_0x774cdf(0x1a0)]);return{'before':_0x36201b=>{const _0x486a26=_0x774cdf;var _0x52340c,_0xa7156c,_0x1ae2d1,_0x45c3c2,_0x52923f,_0x58f7f1,_0x3682f3,_0x20cb37,_0x2284e1,_0x4264dd,_0x49096f,_0x564019,_0x1f155d;const _0x1b288b=_0x36201b['target'][core_1[_0x486a26(0x174)]],_0x2937c3=Object[_0x486a26(0x196)]({},((_0x52340c=_0x1b288b===null||_0x1b288b===void 0x0?void 0x0:_0x1b288b[_0x486a26(0x18c)])===null||_0x52340c===void 0x0?void 0x0:_0x52340c[_0x486a26(0x17a)])||{},((_0xa7156c=_0x1b288b===null||_0x1b288b===void 0x0?void 0x0:_0x1b288b[_0x486a26(0x18c)])===null||_0xa7156c===void 0x0?void 0x0:_0xa7156c[_0x486a26(0x191)])||{}),_0x1e80ea=((0x0,core_2['getClassMetadata'])(interface_1[_0x486a26(0x19d)],_0x36201b[_0x486a26(0x185)])||[])['find'](_0x28e85e=>_0x28e85e[_0x486a26(0x183)]==_0x36201b[_0x486a26(0x190)]);!(_0xc81417===null||_0xc81417===void 0x0?void 0x0:_0xc81417['locale'])&&_0x1b288b&&_0x1b288b['getAttr']&&(_0xc81417[_0x486a26(0x182)]=_0x1b288b['getAttr'](i18n_1['I18N_ATTR_KEY']));for(let _0x2500a0=0x0;_0x2500a0<_0x4b13cc[_0x486a26(0x17c)];_0x2500a0++){const _0x5052d2=_0x4b13cc[_0x2500a0],_0xe8dfe5=this[_0x486a26(0x181)]['getSchema'](_0x5052d2);if(_0xe8dfe5){if(typeof _0x36201b[_0x486a26(0x192)][_0x2500a0]=='undefined'||((_0x1ae2d1=_0x36201b[_0x486a26(0x192)][_0x2500a0])===null||_0x1ae2d1===void 0x0?void 0x0:_0x1ae2d1[_0x486a26(0x18c)])&&((_0x45c3c2=_0x36201b[_0x486a26(0x192)][_0x2500a0])===null||_0x45c3c2===void 0x0?void 0x0:_0x45c3c2['res'])&&((_0x52923f=_0x36201b['args'][_0x2500a0])===null||_0x52923f===void 0x0?void 0x0:_0x52923f['req']))_0x36201b[_0x486a26(0x192)][_0x2500a0]=_0x2937c3;else((_0x58f7f1=_0x36201b[_0x486a26(0x192)][_0x2500a0])===null||_0x58f7f1===void 0x0?void 0x0:_0x58f7f1[_0x486a26(0x186)])==_0x486a26(0x17f)&&_0x36201b[_0x486a26(0x192)][_0x486a26(0x18b)](_0x2500a0,0x0,_0x2937c3);const _0xe3d8b6=this[_0x486a26(0x181)][_0x486a26(0x193)](_0xe8dfe5,_0x36201b[_0x486a26(0x192)][_0x2500a0],_0xc81417);_0xe3d8b6&&(_0x36201b[_0x486a26(0x192)][_0x2500a0]=_0xe3d8b6);}else{if((_0x1e80ea===null||_0x1e80ea===void 0x0?void 0x0:_0x1e80ea[_0x486a26(0x19a)][_0x2500a0])&&((_0x3682f3=_0x36201b['args'][_0x2500a0])===null||_0x3682f3===void 0x0?void 0x0:_0x3682f3[_0x486a26(0x198)])&&typeof _0x36201b[_0x486a26(0x192)][_0x2500a0][_0x486a26(0x18f)]=='function'&&((_0x20cb37=_0x1b288b===null||_0x1b288b===void 0x0?void 0x0:_0x1b288b[_0x486a26(0x198)])===null||_0x20cb37===void 0x0?void 0x0:_0x20cb37[_0x1e80ea['methodArgs'][_0x2500a0]]))_0x36201b[_0x486a26(0x192)][_0x2500a0]=_0x5052d2((_0x2284e1=_0x1b288b===null||_0x1b288b===void 0x0?void 0x0:_0x1b288b[_0x486a26(0x198)])===null||_0x2284e1===void 0x0?void 0x0:_0x2284e1[_0x1e80ea[_0x486a26(0x19a)][_0x2500a0]]);else(_0x1e80ea===null||_0x1e80ea===void 0x0?void 0x0:_0x1e80ea[_0x486a26(0x19a)][_0x2500a0])&&((_0x49096f=(_0x4264dd=_0x36201b['args'][_0x2500a0])===null||_0x4264dd===void 0x0?void 0x0:_0x4264dd[_0x486a26(0x198)])===null||_0x49096f===void 0x0?void 0x0:_0x49096f[_0x1e80ea[_0x486a26(0x19a)][_0x2500a0]])&&(_0x36201b[_0x486a26(0x192)][_0x2500a0]=(_0x1f155d=(_0x564019=_0x36201b[_0x486a26(0x192)][_0x2500a0])===null||_0x564019===void 0x0?void 0x0:_0x564019[_0x486a26(0x198)])===null||_0x1f155d===void 0x0?void 0x0:_0x1f155d[_0x1e80ea[_0x486a26(0x19a)][_0x2500a0]]);}}},'afterThrow':(_0x11283f,_0x5b5db8)=>{throw _0x5b5db8;}};});}};__decorate([(0x0,core_2[a1_0x35aed1(0x176)])(),__metadata('design:type',core_1['MidwayDecoratorService'])],CustomConfiguration[a1_0x35aed1(0x1a3)],a1_0x35aed1(0x17d),void 0x0),__decorate([(0x0,core_2[a1_0x35aed1(0x176)])(),__metadata(a1_0x35aed1(0x1a8),ValidatorService_1[a1_0x35aed1(0x181)])],CustomConfiguration[a1_0x35aed1(0x1a3)],'ValidatorService',void 0x0),CustomConfiguration=__decorate([(0x0,core_2['Configuration'])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':'anncic-api:validator','importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x35aed1(0x199)]=CustomConfiguration;
|
package/dist/decorator/Rule.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0xea52bf=a2_0xeb69;(function(_0x412d28,_0x443555){const _0xc708f3=a2_0xeb69,_0x2e5228=_0x412d28();while(!![]){try{const _0x351fc6=parseInt(_0xc708f3(0xa8))/0x1+-parseInt(_0xc708f3(0x98))/0x2*(-parseInt(_0xc708f3(0xae))/0x3)+-parseInt(_0xc708f3(0xb3))/0x4*(parseInt(_0xc708f3(0xab))/0x5)+-parseInt(_0xc708f3(0xa7))/0x6*(parseInt(_0xc708f3(0xaf))/0x7)+-parseInt(_0xc708f3(0xb1))/0x8+-parseInt(_0xc708f3(0xb9))/0x9+parseInt(_0xc708f3(0xb0))/0xa;if(_0x351fc6===_0x443555)break;else _0x2e5228['push'](_0x2e5228['shift']());}catch(_0x450022){_0x2e5228['push'](_0x2e5228['shift']());}}}(a2_0x1f96,0x6ee25));function a2_0x1f96(){const _0x5aff1e=['@joi/date','Rule','default','items','attachClassMetadata','array','getClassMetadata','constructor','__esModule','1389486DiTsKf','452764IqBhuz','meta','label','4265cRFsND','extend','function','153hXchKd','14gcvTin','18109170QSeOgj','5301064ZuTIwo','object','3156siIyOR','isSchema','description','joi','map','getPropertyType','810855VaITfn','toString','saveClassMetadata','3114UtzRhI','(((.+)+)+)+$','RULES_KEY','search','@midwayjs/core','RuleType'];a2_0x1f96=function(){return _0x5aff1e;};return a2_0x1f96();}const a2_0x3bb811=(function(){let _0x15bb26=!![];return function(_0x462db6,_0x43e99c){const _0x50b320=_0x15bb26?function(){if(_0x43e99c){const _0x3c99ef=_0x43e99c['apply'](_0x462db6,arguments);return _0x43e99c=null,_0x3c99ef;}}:function(){};return _0x15bb26=![],_0x50b320;};}()),a2_0x3454a1=a2_0x3bb811(this,function(){const _0x42077a=a2_0xeb69;return a2_0x3454a1['toString']()[_0x42077a(0x9b)](_0x42077a(0x99))[_0x42077a(0x96)]()[_0x42077a(0xa5)](a2_0x3454a1)[_0x42077a(0x9b)]('(((.+)+)+)+$');});a2_0x3454a1();'use strict';Object['defineProperty'](exports,a2_0xea52bf(0xa6),{'value':!![]}),exports[a2_0xea52bf(0x9f)]=exports[a2_0xea52bf(0x9d)]=void 0x0;const joi=require(a2_0xea52bf(0xb6)),date_1=require(a2_0xea52bf(0x9e)),core_1=require(a2_0xea52bf(0x9c)),interface_1=require('../interface');exports['RuleType']=joi[a2_0xea52bf(0xac)](date_1[a2_0xea52bf(0xa0)]);function a2_0xeb69(_0x8146eb,_0x58d29b){const _0x2fffd3=a2_0x1f96();return a2_0xeb69=function(_0x3454a1,_0x3bb811){_0x3454a1=_0x3454a1-0x96;let _0x1f96fb=_0x2fffd3[_0x3454a1];return _0x1f96fb;},a2_0xeb69(_0x8146eb,_0x58d29b);}function Rule(_0x4df74a,_0x13f7a8,_0x162ffe=''){return(_0xb3ed90,_0x4b560a)=>{const _0x13f6ef=a2_0xeb69;var _0x2f74ce;if(_0x4b560a)!joi[_0x13f6ef(0xb4)](_0x13f7a8)&&(_0x13f7a8===null||_0x13f7a8===void 0x0?void 0x0:_0x13f7a8['name'])&&(_0x13f7a8=joi[_0x13f6ef(0xb2)]((0x0,core_1['getClassMetadata'])(interface_1[_0x13f6ef(0x9a)],_0x13f7a8))[_0x13f6ef(0xa9)]({'id':_0x13f7a8['name']}),(0x0,core_1[_0x13f6ef(0xb8)])(_0xb3ed90,_0x4b560a)['name']==='Array'&&(_0x13f7a8=joi[_0x13f6ef(0xa3)]()[_0x13f6ef(0xa1)](_0x13f7a8))),joi['isSchema'](_0x13f7a8)&&(_0x4df74a&&typeof(_0x13f7a8===null||_0x13f7a8===void 0x0?void 0x0:_0x13f7a8['label'])==_0x13f6ef(0xad)&&(_0x13f7a8=_0x13f7a8[_0x13f6ef(0xaa)](_0x4df74a)),_0x162ffe&&typeof(_0x13f7a8===null||_0x13f7a8===void 0x0?void 0x0:_0x13f7a8[_0x13f6ef(0xb5)])=='function'&&(_0x13f7a8=_0x13f7a8[_0x13f6ef(0xb5)](_0x162ffe)),(0x0,core_1[_0x13f6ef(0xa2)])(interface_1[_0x13f6ef(0x9a)],_0x13f7a8,_0xb3ed90,_0x4b560a));else{const _0x24b782=(0x0,core_1[_0x13f6ef(0xa4)])(interface_1[_0x13f6ef(0x9a)],_0x13f7a8);if(_0x24b782){let _0x5596c3=(_0x2f74ce=(0x0,core_1[_0x13f6ef(0xa4)])(interface_1[_0x13f6ef(0x9a)],_0xb3ed90))!==null&&_0x2f74ce!==void 0x0?_0x2f74ce:{};Object['keys'](_0x24b782)[_0x13f6ef(0xb7)](_0xef385=>{!_0x5596c3[_0xef385]&&(_0x5596c3[_0xef385]=_0x24b782[_0xef385]);}),(0x0,core_1[_0x13f6ef(0x97)])(interface_1[_0x13f6ef(0x9a)],_0x5596c3,_0xb3ed90);}}};}exports['Rule']=Rule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x14568d=a3_0xf335;(function(_0x2138d2,_0x149512){const _0x58b60e=a3_0xf335,_0x43a3f4=_0x2138d2();while(!![]){try{const _0x1e397d=-parseInt(_0x58b60e(0x77))/0x1+parseInt(_0x58b60e(0x75))/0x2+parseInt(_0x58b60e(0x83))/0x3*(-parseInt(_0x58b60e(0x8b))/0x4)+-parseInt(_0x58b60e(0x81))/0x5*(-parseInt(_0x58b60e(0x7e))/0x6)+-parseInt(_0x58b60e(0x88))/0x7+parseInt(_0x58b60e(0x7a))/0x8*(-parseInt(_0x58b60e(0x76))/0x9)+parseInt(_0x58b60e(0x82))/0xa*(parseInt(_0x58b60e(0x86))/0xb);if(_0x1e397d===_0x149512)break;else _0x43a3f4['push'](_0x43a3f4['shift']());}catch(_0x5a29cb){_0x43a3f4['push'](_0x43a3f4['shift']());}}}(a3_0x57a8,0x1ca83));const a3_0x18add1=(function(){let _0x86dff5=!![];return function(_0x1cc9e9,_0x14386a){const _0x15acdc=_0x86dff5?function(){const _0x7aea9f=a3_0xf335;if(_0x14386a){const _0x289674=_0x14386a[_0x7aea9f(0x84)](_0x1cc9e9,arguments);return _0x14386a=null,_0x289674;}}:function(){};return _0x86dff5=![],_0x15acdc;};}()),a3_0x2420f1=a3_0x18add1(this,function(){const _0x1b1b4b=a3_0xf335;return a3_0x2420f1[_0x1b1b4b(0x8e)]()[_0x1b1b4b(0x85)]('(((.+)+)+)+$')['toString']()[_0x1b1b4b(0x8f)](a3_0x2420f1)['search']('(((.+)+)+)+$');});a3_0x2420f1();function a3_0x57a8(){const _0x58e654=['@midwayjs/core','304700NGcgvf','657mtjJvo','102871FuOSXY','createCustomMethodDecorator','../interface','10952lRjbZp','getFuncArgs','defineProperty','prototype','300yalhlu','attachClassMetadata','replace','6290AMHYvA','1024230cxPtuK','3ZlcDSF','apply','search','55kvTYEI','slice','1363047kmVztc','__esModule','VALIDATOR_KEY','849828tQKrpC','Validator','indexOf','toString','constructor'];a3_0x57a8=function(){return _0x58e654;};return a3_0x57a8();}function a3_0xf335(_0x4121ce,_0x7f5b73){const _0x1351f9=a3_0x57a8();return a3_0xf335=function(_0x2420f1,_0x18add1){_0x2420f1=_0x2420f1-0x74;let _0x57a865=_0x1351f9[_0x2420f1];return _0x57a865;},a3_0xf335(_0x4121ce,_0x7f5b73);}'use strict';Object[a3_0x14568d(0x7c)](exports,a3_0x14568d(0x89),{'value':!![]}),exports[a3_0x14568d(0x7b)]=exports[a3_0x14568d(0x8c)]=void 0x0;const core_1=require(a3_0x14568d(0x74)),interface_1=require(a3_0x14568d(0x79));function Validator(_0x1c255d={}){return(_0x52effc,_0x22a669,_0x34cee0)=>{const _0x5f34f5=a3_0xf335,_0x5b25e9=getFuncArgs(_0x52effc[_0x22a669]);(0x0,core_1[_0x5f34f5(0x7f)])(interface_1[_0x5f34f5(0x8a)],{'method':_0x22a669,'methodArgs':_0x5b25e9},_0x52effc),(0x0,core_1[_0x5f34f5(0x78)])(interface_1[_0x5f34f5(0x8a)],_0x1c255d)(_0x52effc,_0x22a669,_0x34cee0);};}exports[a3_0x14568d(0x8c)]=Validator;function getFuncArgs(_0x2efd0e){const _0x5d67aa=a3_0x14568d;if(typeof _0x2efd0e=='function'){const _0x1c860=/=>.*$/mg,_0x351118=/=[^,)]+/mg,_0x355b77=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x299c46=(_0x2efd0e[_0x5d67aa(0x7d)]?_0x2efd0e[_0x5d67aa(0x7d)][_0x5d67aa(0x8f)][_0x5d67aa(0x8e)]():_0x2efd0e[_0x5d67aa(0x8e)]())[_0x5d67aa(0x80)](_0x355b77,'')[_0x5d67aa(0x80)](_0x1c860,'')[_0x5d67aa(0x80)](_0x351118,''),_0x3419a5=_0x299c46[_0x5d67aa(0x87)](_0x299c46[_0x5d67aa(0x8d)]('(')+0x1,_0x299c46[_0x5d67aa(0x8d)](')'))['match'](/([^\s,]+)/g)||[];return _0x3419a5;}}exports[a3_0x14568d(0x7b)]=getFuncArgs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a4_0x435a3a=a4_0xe4b4;(function(_0xa2f292,_0xdbe81b){var _0xf63e93=a4_0xe4b4,_0x54cd83=_0xa2f292();while(!![]){try{var _0x1d363d=-parseInt(_0xf63e93(0x18d))/0x1*(-parseInt(_0xf63e93(0x199))/0x2)+parseInt(_0xf63e93(0x181))/0x3*(parseInt(_0xf63e93(0x19c))/0x4)+-parseInt(_0xf63e93(0x19b))/0x5*(-parseInt(_0xf63e93(0x186))/0x6)+-parseInt(_0xf63e93(0x188))/0x7*(parseInt(_0xf63e93(0x190))/0x8)+-parseInt(_0xf63e93(0x184))/0x9*(-parseInt(_0xf63e93(0x18f))/0xa)+parseInt(_0xf63e93(0x196))/0xb+-parseInt(_0xf63e93(0x195))/0xc*(parseInt(_0xf63e93(0x182))/0xd);if(_0x1d363d===_0xdbe81b)break;else _0x54cd83['push'](_0x54cd83['shift']());}catch(_0x53797e){_0x54cd83['push'](_0x54cd83['shift']());}}}(a4_0x16fd,0x42c31));var a4_0x41582e=(function(){var _0x3124cb=!![];return function(_0x51f7f2,_0x4a5d76){var _0x5e2fdd=_0x3124cb?function(){if(_0x4a5d76){var _0x73eaf=_0x4a5d76['apply'](_0x51f7f2,arguments);return _0x4a5d76=null,_0x73eaf;}}:function(){};return _0x3124cb=![],_0x5e2fdd;};}()),a4_0x549e77=a4_0x41582e(this,function(){var _0x293566=a4_0xe4b4;return a4_0x549e77[_0x293566(0x19d)]()['search'](_0x293566(0x194))[_0x293566(0x19d)]()[_0x293566(0x18e)](a4_0x549e77)['search'](_0x293566(0x194));});a4_0x549e77();'use strict';function a4_0xe4b4(_0x3f08b2,_0x53728e){var _0x4a297b=a4_0x16fd();return a4_0xe4b4=function(_0x549e77,_0x41582e){_0x549e77=_0x549e77-0x180;var _0x16fd5f=_0x4a297b[_0x549e77];return _0x16fd5f;},a4_0xe4b4(_0x3f08b2,_0x53728e);}var __decorate=this&&this['__decorate']||function(_0x55d42a,_0x37f557,_0x376c9a,_0xe0d3f4){var _0x4be6de=a4_0xe4b4,_0x3a7fe0=arguments[_0x4be6de(0x192)],_0x597798=_0x3a7fe0<0x3?_0x37f557:_0xe0d3f4===null?_0xe0d3f4=Object[_0x4be6de(0x191)](_0x37f557,_0x376c9a):_0xe0d3f4,_0x598e55;if(typeof Reflect==='object'&&typeof Reflect[_0x4be6de(0x193)]==='function')_0x597798=Reflect['decorate'](_0x55d42a,_0x37f557,_0x376c9a,_0xe0d3f4);else{for(var _0x19e4aa=_0x55d42a['length']-0x1;_0x19e4aa>=0x0;_0x19e4aa--)if(_0x598e55=_0x55d42a[_0x19e4aa])_0x597798=(_0x3a7fe0<0x3?_0x598e55(_0x597798):_0x3a7fe0>0x3?_0x598e55(_0x37f557,_0x376c9a,_0x597798):_0x598e55(_0x37f557,_0x376c9a))||_0x597798;}return _0x3a7fe0>0x3&&_0x597798&&Object['defineProperty'](_0x37f557,_0x376c9a,_0x597798),_0x597798;},__metadata=this&&this['__metadata']||function(_0x14f852,_0x149a78){var _0x37c1b9=a4_0xe4b4;if(typeof Reflect===_0x37c1b9(0x180)&&typeof Reflect[_0x37c1b9(0x198)]===_0x37c1b9(0x18c))return Reflect[_0x37c1b9(0x198)](_0x14f852,_0x149a78);};Object[a4_0x435a3a(0x197)](exports,a4_0x435a3a(0x183),{'value':!![]}),exports[a4_0x435a3a(0x19a)]=void 0x0;const core_1=require(a4_0x435a3a(0x18b));class ValidatorError extends AnnError{}function a4_0x16fd(){var _0x1b30d6=['975254SSidnj','NOFIND_SCHEMA','design:type','@anncic-api/core','function','1rcWGkf','constructor','41950dRjQUm','16pAJLvX','getOwnPropertyDescriptor','length','decorate','(((.+)+)+)+$','48rXXPmA','1024353UxFchW','defineProperty','metadata','893150JmvMhe','ValidatorError','541165FoHqna','876WupwWi','toString','object','4287qxKeVb','4058041JUcJoe','__esModule','873Uaytin','参数验证失败','30BsapQH','PARAMS'];a4_0x16fd=function(){return _0x1b30d6;};return a4_0x16fd();}ValidatorError['PARAMS']=0x18c1e,ValidatorError[a4_0x435a3a(0x189)]=0x18c1c,__decorate([(0x0,core_1['AnnErrorMsg'])('参数验证失败'),__metadata('design:type',Object)],ValidatorError,a4_0x435a3a(0x187),void 0x0),__decorate([(0x0,core_1['AnnErrorMsg'])(a4_0x435a3a(0x185)),__metadata(a4_0x435a3a(0x18a),Object)],ValidatorError,a4_0x435a3a(0x189),void 0x0),exports[a4_0x435a3a(0x19a)]=ValidatorError;
|
package/dist/helper/dtoHelper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x134373=a5_0xaf37;(function(_0x12961d,_0x500546){const _0x29e22d=a5_0xaf37,_0x307b6f=_0x12961d();while(!![]){try{const _0x3f7aa1=-parseInt(_0x29e22d(0x1ed))/0x1+parseInt(_0x29e22d(0x1fd))/0x2*(-parseInt(_0x29e22d(0x1ef))/0x3)+-parseInt(_0x29e22d(0x1e6))/0x4+parseInt(_0x29e22d(0x1e9))/0x5*(parseInt(_0x29e22d(0x1fa))/0x6)+parseInt(_0x29e22d(0x1ea))/0x7+-parseInt(_0x29e22d(0x1e5))/0x8+parseInt(_0x29e22d(0x1f6))/0x9*(parseInt(_0x29e22d(0x1eb))/0xa);if(_0x3f7aa1===_0x500546)break;else _0x307b6f['push'](_0x307b6f['shift']());}catch(_0x365707){_0x307b6f['push'](_0x307b6f['shift']());}}}(a5_0x1fe8,0x93e13));const a5_0x273928=(function(){let _0x1aa362=!![];return function(_0x524c0a,_0x57ca35){const _0x3098f8=_0x1aa362?function(){const _0x125d0a=a5_0xaf37;if(_0x57ca35){const _0x3d76b7=_0x57ca35[_0x125d0a(0x1f3)](_0x524c0a,arguments);return _0x57ca35=null,_0x3d76b7;}}:function(){};return _0x1aa362=![],_0x3098f8;};}()),a5_0x20702b=a5_0x273928(this,function(){const _0x4b91db=a5_0xaf37;return a5_0x20702b[_0x4b91db(0x1fc)]()[_0x4b91db(0x1fb)](_0x4b91db(0x1e8))[_0x4b91db(0x1fc)]()[_0x4b91db(0x1f1)](a5_0x20702b)['search'](_0x4b91db(0x1e8));});function a5_0xaf37(_0x2f6535,_0x26feef){const _0x1e976c=a5_0x1fe8();return a5_0xaf37=function(_0x20702b,_0x273928){_0x20702b=_0x20702b-0x1e5;let _0x1fe8e9=_0x1e976c[_0x20702b];return _0x1fe8e9;},a5_0xaf37(_0x2f6535,_0x26feef);}a5_0x20702b();'use strict';function a5_0x1fe8(){const _0x56c79f=['3720905drEijg','1577751Oapvda','170lrsUDv','__esModule','1107465lsDdNV','prototype','3GYfnBd','RULES_KEY','constructor','@midwayjs/core','apply','PickDto','saveClassMetadata','1532214hfYnTd','assign','OmitDto','defineProperty','6EAfNDQ','search','toString','2254678fbDGvb','1044248khfxnD','3570824ZfbvBf','getClassExtendedMetadata','(((.+)+)+)+$'];a5_0x1fe8=function(){return _0x56c79f;};return a5_0x1fe8();}Object[a5_0x134373(0x1f9)](exports,a5_0x134373(0x1ec),{'value':!![]}),exports[a5_0x134373(0x1f8)]=exports[a5_0x134373(0x1f4)]=void 0x0;const core_1=require(a5_0x134373(0x1f2)),interface_1=require('../interface');function PickDto(_0x3f65d8,_0x7497a3){const _0x9a6590=a5_0x134373,_0x16ccae=function(){};_0x16ccae[_0x9a6590(0x1ee)]=_0x3f65d8[_0x9a6590(0x1ee)];const _0x1bfb3b=(0x0,core_1[_0x9a6590(0x1e7)])(interface_1[_0x9a6590(0x1f0)],_0x3f65d8),_0x102db9={};for(const _0x3ffd6e of _0x7497a3){_0x1bfb3b[_0x3ffd6e]&&(_0x102db9[_0x3ffd6e]=_0x1bfb3b[_0x3ffd6e]);}return(0x0,core_1['saveClassMetadata'])(interface_1['RULES_KEY'],_0x102db9,_0x16ccae),_0x16ccae;}exports[a5_0x134373(0x1f4)]=PickDto;function OmitDto(_0xb3dda4,_0x2c182c){const _0x46f251=a5_0x134373,_0x26a977=function(){};_0x26a977[_0x46f251(0x1ee)]=_0xb3dda4[_0x46f251(0x1ee)];const _0x86bf4f=(0x0,core_1[_0x46f251(0x1e7)])(interface_1[_0x46f251(0x1f0)],_0xb3dda4),_0x53a919=Object[_0x46f251(0x1f7)]({},_0x86bf4f);for(const _0x401d62 of _0x2c182c){delete _0x53a919[_0x401d62];}return(0x0,core_1[_0x46f251(0x1f5)])(interface_1['RULES_KEY'],_0x53a919,_0x26a977),_0x26a977;}exports[a5_0x134373(0x1f8)]=OmitDto;
|
package/dist/helper/getSchema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6_0x5b5a08=a6_0x6f76;(function(_0x522497,_0x1d247e){const _0x3cf5df=a6_0x6f76,_0x15689b=_0x522497();while(!![]){try{const _0x2b40a2=parseInt(_0x3cf5df(0x1f2))/0x1*(parseInt(_0x3cf5df(0x1e6))/0x2)+parseInt(_0x3cf5df(0x1f1))/0x3+-parseInt(_0x3cf5df(0x1e8))/0x4+-parseInt(_0x3cf5df(0x1e5))/0x5+-parseInt(_0x3cf5df(0x1f3))/0x6+-parseInt(_0x3cf5df(0x1f5))/0x7*(-parseInt(_0x3cf5df(0x1e2))/0x8)+-parseInt(_0x3cf5df(0x1e1))/0x9*(parseInt(_0x3cf5df(0x1ec))/0xa);if(_0x2b40a2===_0x1d247e)break;else _0x15689b['push'](_0x15689b['shift']());}catch(_0x1a5a85){_0x15689b['push'](_0x15689b['shift']());}}}(a6_0x4bd2,0x2cd34));function a6_0x6f76(_0xd533bb,_0x215997){const _0x529d3f=a6_0x4bd2();return a6_0x6f76=function(_0x1ba782,_0x3cb4cf){_0x1ba782=_0x1ba782-0x1e1;let _0x4bd2aa=_0x529d3f[_0x1ba782];return _0x4bd2aa;},a6_0x6f76(_0xd533bb,_0x215997);}function a6_0x4bd2(){const _0xf1a63c=['object','952XKxloj','18MYBDIj','19016BTpacM','RULES_KEY','defineProperty','472640EjPUtq','128HKgGEV','(((.+)+)+)+$','340968TuAchf','constructor','getClassExtendedMetadata','getSchema','881740WrlCAa','joi','search','apply','__esModule','975549JlUpoE','2459fpNhvt','1596654EbreqY'];a6_0x4bd2=function(){return _0xf1a63c;};return a6_0x4bd2();}const a6_0x3cb4cf=(function(){let _0x2b5645=!![];return function(_0x11342b,_0x5c9416){const _0x562f82=_0x2b5645?function(){const _0x36bb55=a6_0x6f76;if(_0x5c9416){const _0xc782f0=_0x5c9416[_0x36bb55(0x1ef)](_0x11342b,arguments);return _0x5c9416=null,_0xc782f0;}}:function(){};return _0x2b5645=![],_0x562f82;};}()),a6_0x1ba782=a6_0x3cb4cf(this,function(){const _0x210cf3=a6_0x6f76;return a6_0x1ba782['toString']()['search'](_0x210cf3(0x1e7))['toString']()[_0x210cf3(0x1e9)](a6_0x1ba782)[_0x210cf3(0x1ee)](_0x210cf3(0x1e7));});a6_0x1ba782();'use strict';Object[a6_0x5b5a08(0x1e4)](exports,a6_0x5b5a08(0x1f0),{'value':!![]}),exports[a6_0x5b5a08(0x1eb)]=void 0x0;const Joi=require(a6_0x5b5a08(0x1ed)),core_1=require('@midwayjs/core'),interface_1=require('../interface');function getSchema(_0x2e16fc){const _0x40e254=a6_0x5b5a08,_0x2e62ab=(0x0,core_1[_0x40e254(0x1ea)])(interface_1[_0x40e254(0x1e3)],_0x2e16fc);if(_0x2e62ab)return Joi[_0x40e254(0x1f4)](_0x2e62ab);}exports[a6_0x5b5a08(0x1eb)]=getSchema;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a7_0x1eb2(){var _0x23902e=['./decorator/Rule','Configuration','7022070mYiTdu','./exception/ValidatorError','1heCkbb','hasOwnProperty','get','Rule','ValidatorError','33900faEjHY','./decorator/Validator','ValidatorService','./configuration','./helper/getSchema','3NCaKtB','__exportStar','configurable','4713410WrbrHK','305rSWDdQ','5392863ZGlzay','3121538NnCxEk','getOwnPropertyDescriptor','__createBinding','./helper/dtoHelper','2340564uFpMwZ','call','defineProperty','prototype','257446WDkWja','toString','Validator','8kkSlKo','__esModule','writable','12EgVeyL','search','RuleType'];a7_0x1eb2=function(){return _0x23902e;};return a7_0x1eb2();}function a7_0x8b52(_0x54ca57,_0x3038d4){var _0x2ab18d=a7_0x1eb2();return a7_0x8b52=function(_0x5921c7,_0x587f2f){_0x5921c7=_0x5921c7-0x150;var _0x1eb255=_0x2ab18d[_0x5921c7];return _0x1eb255;},a7_0x8b52(_0x54ca57,_0x3038d4);}var a7_0x4775f6=a7_0x8b52;(function(_0xb41f23,_0x29a505){var _0x224dfa=a7_0x8b52,_0x58ab85=_0xb41f23();while(!![]){try{var _0x446ec3=parseInt(_0x224dfa(0x171))/0x1*(parseInt(_0x224dfa(0x164))/0x2)+parseInt(_0x224dfa(0x156))/0x3*(parseInt(_0x224dfa(0x160))/0x4)+parseInt(_0x224dfa(0x15a))/0x5*(-parseInt(_0x224dfa(0x151))/0x6)+parseInt(_0x224dfa(0x15c))/0x7+parseInt(_0x224dfa(0x167))/0x8*(parseInt(_0x224dfa(0x15b))/0x9)+-parseInt(_0x224dfa(0x159))/0xa+-parseInt(_0x224dfa(0x16f))/0xb*(parseInt(_0x224dfa(0x16a))/0xc);if(_0x446ec3===_0x29a505)break;else _0x58ab85['push'](_0x58ab85['shift']());}catch(_0x3f8516){_0x58ab85['push'](_0x58ab85['shift']());}}}(a7_0x1eb2,0x4a604));var a7_0x587f2f=(function(){var _0x2cdec3=!![];return function(_0x3c7992,_0x1ca9db){var _0x505bb9=_0x2cdec3?function(){if(_0x1ca9db){var _0x4a20b3=_0x1ca9db['apply'](_0x3c7992,arguments);return _0x1ca9db=null,_0x4a20b3;}}:function(){};return _0x2cdec3=![],_0x505bb9;};}()),a7_0x5921c7=a7_0x587f2f(this,function(){var _0x1474ec=a7_0x8b52;return a7_0x5921c7[_0x1474ec(0x165)]()[_0x1474ec(0x16b)]('(((.+)+)+)+$')[_0x1474ec(0x165)]()['constructor'](a7_0x5921c7)[_0x1474ec(0x16b)]('(((.+)+)+)+$');});a7_0x5921c7();'use strict';var __createBinding=this&&this[a7_0x4775f6(0x15e)]||(Object['create']?function(_0x34fd4c,_0x17881a,_0x3d5d1e,_0x58baf5){var _0x4572c5=a7_0x4775f6;if(_0x58baf5===undefined)_0x58baf5=_0x3d5d1e;var _0x1a7ed9=Object[_0x4572c5(0x15d)](_0x17881a,_0x3d5d1e);(!_0x1a7ed9||(_0x4572c5(0x173)in _0x1a7ed9?!_0x17881a[_0x4572c5(0x168)]:_0x1a7ed9[_0x4572c5(0x169)]||_0x1a7ed9[_0x4572c5(0x158)]))&&(_0x1a7ed9={'enumerable':!![],'get':function(){return _0x17881a[_0x3d5d1e];}}),Object[_0x4572c5(0x162)](_0x34fd4c,_0x58baf5,_0x1a7ed9);}:function(_0x33abb9,_0x6da0f8,_0x2f40d,_0x487ad8){if(_0x487ad8===undefined)_0x487ad8=_0x2f40d;_0x33abb9[_0x487ad8]=_0x6da0f8[_0x2f40d];}),__exportStar=this&&this[a7_0x4775f6(0x157)]||function(_0x2022d1,_0x5b089c){var _0x1be846=a7_0x4775f6;for(var _0x1ada01 in _0x2022d1)if(_0x1ada01!=='default'&&!Object[_0x1be846(0x163)][_0x1be846(0x172)][_0x1be846(0x161)](_0x5b089c,_0x1ada01))__createBinding(_0x5b089c,_0x2022d1,_0x1ada01);};Object[a7_0x4775f6(0x162)](exports,a7_0x4775f6(0x168),{'value':!![]}),exports[a7_0x4775f6(0x16e)]=exports['ValidatorService']=exports[a7_0x4775f6(0x150)]=exports[a7_0x4775f6(0x16c)]=exports[a7_0x4775f6(0x174)]=exports[a7_0x4775f6(0x166)]=void 0x0,__exportStar(require('./interface'),exports),__exportStar(require(a7_0x4775f6(0x15f)),exports),__exportStar(require(a7_0x4775f6(0x155)),exports);var Validator_1=require(a7_0x4775f6(0x152));Object[a7_0x4775f6(0x162)](exports,'Validator',{'enumerable':!![],'get':function(){var _0x5943c2=a7_0x4775f6;return Validator_1[_0x5943c2(0x166)];}});var Rule_1=require(a7_0x4775f6(0x16d));Object[a7_0x4775f6(0x162)](exports,a7_0x4775f6(0x174),{'enumerable':!![],'get':function(){var _0x45bc45=a7_0x4775f6;return Rule_1[_0x45bc45(0x174)];}}),Object[a7_0x4775f6(0x162)](exports,a7_0x4775f6(0x16c),{'enumerable':!![],'get':function(){var _0x5c66a5=a7_0x4775f6;return Rule_1[_0x5c66a5(0x16c)];}});var ValidatorError_1=require(a7_0x4775f6(0x170));Object[a7_0x4775f6(0x162)](exports,a7_0x4775f6(0x150),{'enumerable':!![],'get':function(){var _0x45b7c5=a7_0x4775f6;return ValidatorError_1[_0x45b7c5(0x150)];}});var ValidatorService_1=require('./service/ValidatorService');Object[a7_0x4775f6(0x162)](exports,a7_0x4775f6(0x153),{'enumerable':!![],'get':function(){var _0x4a2245=a7_0x4775f6;return ValidatorService_1[_0x4a2245(0x153)];}});var configuration_1=require(a7_0x4775f6(0x154));Object[a7_0x4775f6(0x162)](exports,a7_0x4775f6(0x16e),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a8_0x104f99=a8_0x3c34;function a8_0x3c34(_0x2fac5c,_0x373b80){var _0x5796b4=a8_0x5b9c();return a8_0x3c34=function(_0x2a1e29,_0x5ebe00){_0x2a1e29=_0x2a1e29-0x1b9;var _0x5b9c18=_0x5796b4[_0x2a1e29];return _0x5b9c18;},a8_0x3c34(_0x2fac5c,_0x373b80);}function a8_0x5b9c(){var _0x95418a=['anncic-api:validator:validator','70715JTEyLs','1895640KMNjGh','toString','search','9ymrqHp','RULES_KEY','20jSGyGm','apply','381367rXJOyY','4467ZgUQMa','812230bdlkHA','__esModule','154NAaSwb','864738Rxnraw','anncic-api:validator:rules','202167zOCByl','VALIDATOR_KEY','defineProperty','(((.+)+)+)+$','constructor'];a8_0x5b9c=function(){return _0x95418a;};return a8_0x5b9c();}(function(_0x321370,_0x54c4b1){var _0x17d316=a8_0x3c34,_0x2fb00f=_0x321370();while(!![]){try{var _0x26dae7=-parseInt(_0x17d316(0x1b9))/0x1+parseInt(_0x17d316(0x1cb))/0x2*(parseInt(_0x17d316(0x1c8))/0x3)+parseInt(_0x17d316(0x1c5))/0x4*(parseInt(_0x17d316(0x1bf))/0x5)+-parseInt(_0x17d316(0x1cc))/0x6+parseInt(_0x17d316(0x1c7))/0x7+-parseInt(_0x17d316(0x1c0))/0x8*(-parseInt(_0x17d316(0x1c3))/0x9)+parseInt(_0x17d316(0x1c9))/0xa;if(_0x26dae7===_0x54c4b1)break;else _0x2fb00f['push'](_0x2fb00f['shift']());}catch(_0x5ce350){_0x2fb00f['push'](_0x2fb00f['shift']());}}}(a8_0x5b9c,0x33b19));var a8_0x5ebe00=(function(){var _0x2ebca6=!![];return function(_0x1d4eee,_0x123fdb){var _0x3abef6=_0x2ebca6?function(){var _0x2ddc0=a8_0x3c34;if(_0x123fdb){var _0x4c8747=_0x123fdb[_0x2ddc0(0x1c6)](_0x1d4eee,arguments);return _0x123fdb=null,_0x4c8747;}}:function(){};return _0x2ebca6=![],_0x3abef6;};}()),a8_0x2a1e29=a8_0x5ebe00(this,function(){var _0x795cf5=a8_0x3c34;return a8_0x2a1e29[_0x795cf5(0x1c1)]()[_0x795cf5(0x1c2)]('(((.+)+)+)+$')[_0x795cf5(0x1c1)]()[_0x795cf5(0x1bd)](a8_0x2a1e29)[_0x795cf5(0x1c2)](_0x795cf5(0x1bc));});a8_0x2a1e29();'use strict';Object[a8_0x104f99(0x1bb)](exports,a8_0x104f99(0x1ca),{'value':!![]}),exports[a8_0x104f99(0x1ba)]=exports[a8_0x104f99(0x1c4)]=void 0x0,exports[a8_0x104f99(0x1c4)]=a8_0x104f99(0x1cd),exports['VALIDATOR_KEY']=a8_0x104f99(0x1be);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a9_0x4a571d=a9_0x59b6;(function(_0x282c59,_0x25319e){const _0x2ec823=a9_0x59b6,_0x59baf6=_0x282c59();while(!![]){try{const _0x3d8ebf=parseInt(_0x2ec823(0xd0))/0x1*(parseInt(_0x2ec823(0xd2))/0x2)+-parseInt(_0x2ec823(0xa2))/0x3*(-parseInt(_0x2ec823(0xc9))/0x4)+-parseInt(_0x2ec823(0xbf))/0x5*(-parseInt(_0x2ec823(0xcf))/0x6)+-parseInt(_0x2ec823(0xa0))/0x7*(-parseInt(_0x2ec823(0xd7))/0x8)+-parseInt(_0x2ec823(0xbb))/0x9*(-parseInt(_0x2ec823(0xc7))/0xa)+-parseInt(_0x2ec823(0xb8))/0xb+-parseInt(_0x2ec823(0xda))/0xc;if(_0x3d8ebf===_0x25319e)break;else _0x59baf6['push'](_0x59baf6['shift']());}catch(_0xca84f4){_0x59baf6['push'](_0x59baf6['shift']());}}}(a9_0x2f68,0x209e4));const a9_0x11c723=(function(){let _0xb632d4=!![];return function(_0x4c873b,_0x15c7e5){const _0x30f6b8=_0xb632d4?function(){const _0x30f89f=a9_0x59b6;if(_0x15c7e5){const _0x27b682=_0x15c7e5[_0x30f89f(0xa1)](_0x4c873b,arguments);return _0x15c7e5=null,_0x27b682;}}:function(){};return _0xb632d4=![],_0x30f6b8;};}()),a9_0x2cbef8=a9_0x11c723(this,function(){const _0x564bbc=a9_0x59b6;return a9_0x2cbef8[_0x564bbc(0xe6)]()[_0x564bbc(0xa8)]('(((.+)+)+)+$')['toString']()['constructor'](a9_0x2cbef8)[_0x564bbc(0xa8)](_0x564bbc(0xb5));});a9_0x2cbef8();'use strict';function a9_0x2f68(){const _0x3c7bf9=['locale','MidwayI18nServiceSingleton','10320vgIgyF','object','2812hMNnBO','getLocaleMapping','errors','../exception/ValidatorError','i18nService','__esModule','727266iiumKW','61351ImSlni','length','8jXkkpq','validator','prototype','message','function','980320vTrztQ','decorate','validatorConfig','5355792meNvjt','defaultLocale','metadata','formatLocale','design:returntype','messages','__metadata','i18n','keys','key','../interface','Scope','toString','$_terms','forEach','参数验证失败','Config','isSchema','PARAMS','7kmGLWL','apply','318PUZHTU','validate','design:type','Singleton','@midwayjs/i18n','RULES_KEY','search','ValidatorError','language','getClassExtendedMetadata','ScopeEnum','schema','Init','__decorate','type','details','ValidatorService','YYYY-MM-DD\x20HH:mm:ss','getSchema','(((.+)+)+)+$','i18nConfig','design:paramtypes','116435RHPhlF','init','defineProperty','234LHXtZf','NOFIND_SCHEMA','Inject','getOwnPropertyDescriptor','5lsQKVd','validationOptions','value','error','fromEntries','@midwayjs/core'];a9_0x2f68=function(){return _0x3c7bf9;};return a9_0x2f68();}var __decorate=this&&this[a9_0x4a571d(0xaf)]||function(_0x47ed9f,_0x592d2b,_0x2e8604,_0x421638){const _0x37cb47=a9_0x4a571d;var _0x532421=arguments[_0x37cb47(0xd1)],_0x29bc6d=_0x532421<0x3?_0x592d2b:_0x421638===null?_0x421638=Object[_0x37cb47(0xbe)](_0x592d2b,_0x2e8604):_0x421638,_0x26ab3b;if(typeof Reflect===_0x37cb47(0xc8)&&typeof Reflect[_0x37cb47(0xd8)]===_0x37cb47(0xd6))_0x29bc6d=Reflect['decorate'](_0x47ed9f,_0x592d2b,_0x2e8604,_0x421638);else{for(var _0x189ff4=_0x47ed9f['length']-0x1;_0x189ff4>=0x0;_0x189ff4--)if(_0x26ab3b=_0x47ed9f[_0x189ff4])_0x29bc6d=(_0x532421<0x3?_0x26ab3b(_0x29bc6d):_0x532421>0x3?_0x26ab3b(_0x592d2b,_0x2e8604,_0x29bc6d):_0x26ab3b(_0x592d2b,_0x2e8604))||_0x29bc6d;}return _0x532421>0x3&&_0x29bc6d&&Object['defineProperty'](_0x592d2b,_0x2e8604,_0x29bc6d),_0x29bc6d;},__metadata=this&&this[a9_0x4a571d(0xe0)]||function(_0x208b96,_0x3037c2){const _0x1e9472=a9_0x4a571d;if(typeof Reflect===_0x1e9472(0xc8)&&typeof Reflect[_0x1e9472(0xdc)]===_0x1e9472(0xd6))return Reflect[_0x1e9472(0xdc)](_0x208b96,_0x3037c2);};function a9_0x59b6(_0x27e0cf,_0x59de2a){const _0x1f2b00=a9_0x2f68();return a9_0x59b6=function(_0x2cbef8,_0x11c723){_0x2cbef8=_0x2cbef8-0x9f;let _0x2f68ef=_0x1f2b00[_0x2cbef8];return _0x2f68ef;},a9_0x59b6(_0x27e0cf,_0x59de2a);}Object[a9_0x4a571d(0xba)](exports,a9_0x4a571d(0xce),{'value':!![]}),exports[a9_0x4a571d(0xb2)]=void 0x0;const Joi=require('joi'),i18n_1=require(a9_0x4a571d(0xa6)),core_1=require(a9_0x4a571d(0xc4)),interface_1=require(a9_0x4a571d(0xe4)),ValidatorError_1=require(a9_0x4a571d(0xcc));let ValidatorService=class ValidatorService{constructor(){const _0x17fa97=a9_0x4a571d;this[_0x17fa97(0xdf)]={};}async[a9_0x4a571d(0xb9)](){const _0x589408=a9_0x4a571d,_0xd6d8c2=Object[_0x589408(0xe2)](this[_0x589408(0xb6)]['localeTable']);_0xd6d8c2[_0x589408(0xe8)](_0x53528f=>{const _0x161a59=_0x589408;this[_0x161a59(0xdf)][(0x0,i18n_1['formatLocale'])(_0x53528f)]=Object[_0x161a59(0xc3)](this['i18nService'][_0x161a59(0xca)](_0x53528f,'validator'));});}['getSchema'](_0x21ca8d){const _0xb3450c=a9_0x4a571d,_0x1b6791=(0x0,core_1[_0xb3450c(0xab)])(interface_1[_0xb3450c(0xa7)],_0x21ca8d);return _0x1b6791?Joi[_0xb3450c(0xc8)](_0x1b6791):undefined;}['validator'](_0x37a51d,_0x44ecc0,_0x6fd0dd={}){const _0x1094f9=a9_0x4a571d;var _0x11ca0a,_0x574abf,_0x471293,_0x352f52,_0x515829,_0x2ee782;const _0x40d3f0=Joi[_0x1094f9(0xeb)](_0x37a51d)?_0x37a51d:this[_0x1094f9(0xb4)](_0x37a51d);if(!_0x40d3f0)throw new AnnError(ValidatorError_1[_0x1094f9(0xa9)][_0x1094f9(0xbc)]);_0x6fd0dd[_0x1094f9(0xc0)]=Object['assign']((_0x11ca0a=this[_0x1094f9(0xd9)]['validationOptions'])!==null&&_0x11ca0a!==void 0x0?_0x11ca0a:{},{'messages':this[_0x1094f9(0xdf)]},_0x6fd0dd[_0x1094f9(0xc0)]||{}),_0x6fd0dd[_0x1094f9(0xc0)][_0x1094f9(0xcb)]=_0x6fd0dd[_0x1094f9(0xc0)][_0x1094f9(0xcb)]||{},_0x6fd0dd[_0x1094f9(0xc0)][_0x1094f9(0xcb)][_0x1094f9(0xaa)]=(0x0,i18n_1[_0x1094f9(0xdd)])(this[_0x1094f9(0xcd)]['getAvailableLocale'](_0x6fd0dd['validationOptions'][_0x1094f9(0xcb)][_0x1094f9(0xaa)]||_0x6fd0dd[_0x1094f9(0xc5)]||this[_0x1094f9(0xb6)][_0x1094f9(0xdb)],'validator'));const _0x52aba1=_0x40d3f0[_0x1094f9(0xa3)](_0x44ecc0,_0x6fd0dd['validationOptions']);if(_0x52aba1===null||_0x52aba1===void 0x0?void 0x0:_0x52aba1[_0x1094f9(0xc2)]){if(_0x52aba1[_0x1094f9(0xc2)]instanceof AnnError)throw _0x52aba1[_0x1094f9(0xc2)];else{if(_0x52aba1[_0x1094f9(0xc2)]instanceof Error)throw new AnnError(ValidatorError_1['ValidatorError'][_0x1094f9(0x9f)],{'message':((_0x574abf=_0x52aba1['error'])===null||_0x574abf===void 0x0?void 0x0:_0x574abf['message'])||_0x1094f9(0xe9)});else throw new AnnError(ValidatorError_1[_0x1094f9(0xa9)][_0x1094f9(0x9f)],{'message':((_0x515829=(_0x352f52=(_0x471293=_0x52aba1[_0x1094f9(0xc2)])===null||_0x471293===void 0x0?void 0x0:_0x471293[_0x1094f9(0xb1)])===null||_0x352f52===void 0x0?void 0x0:_0x352f52[0x0])===null||_0x515829===void 0x0?void 0x0:_0x515829[_0x1094f9(0xd5)])||_0x1094f9(0xe9)});}}if(_0x52aba1===null||_0x52aba1===void 0x0?void 0x0:_0x52aba1[_0x1094f9(0xc1)]){const _0x41d867=(_0x2ee782=_0x40d3f0===null||_0x40d3f0===void 0x0?void 0x0:_0x40d3f0[_0x1094f9(0xe7)])===null||_0x2ee782===void 0x0?void 0x0:_0x2ee782[_0x1094f9(0xe2)],_0x32e9a9=function(_0x13750f,_0x1a48c9){const _0x4b11af=_0x1094f9;var _0x4dcc7a,_0x1f8604,_0x3b091d,_0x2b357c,_0x21ef41,_0x596d5f,_0x13a62c,_0x15f300,_0x1d1df7,_0x173b0c,_0xeb1abd;for(let _0x1e671c in _0x13750f){if(_0x1a48c9[(_0x4dcc7a=_0x13750f[_0x1e671c])===null||_0x4dcc7a===void 0x0?void 0x0:_0x4dcc7a[_0x4b11af(0xe3)]]&&((_0x3b091d=(_0x1f8604=_0x13750f[_0x1e671c])===null||_0x1f8604===void 0x0?void 0x0:_0x1f8604['schema'])===null||_0x3b091d===void 0x0?void 0x0:_0x3b091d[_0x4b11af(0xb0)])){if(((_0x21ef41=(_0x2b357c=_0x13750f[_0x1e671c])===null||_0x2b357c===void 0x0?void 0x0:_0x2b357c['schema'])===null||_0x21ef41===void 0x0?void 0x0:_0x21ef41[_0x4b11af(0xb0)])==_0x4b11af(0xc8))_0x1a48c9[_0x13750f[_0x1e671c][_0x4b11af(0xe3)]]=_0x32e9a9((_0x13a62c=(_0x596d5f=_0x13750f[_0x1e671c])===null||_0x596d5f===void 0x0?void 0x0:_0x596d5f[_0x4b11af(0xad)]['$_terms'])===null||_0x13a62c===void 0x0?void 0x0:_0x13a62c[_0x4b11af(0xe2)],_0x1a48c9[_0x13750f[_0x1e671c][_0x4b11af(0xe3)]]);else{if(_0x13750f[_0x1e671c][_0x4b11af(0xad)][_0x4b11af(0xb0)]=='date'&&_0x52aba1['value'][(_0x15f300=_0x13750f[_0x1e671c])===null||_0x15f300===void 0x0?void 0x0:_0x15f300['key']]){const _0x100e81=((_0xeb1abd=(_0x173b0c=(_0x1d1df7=_0x13750f[_0x1e671c])===null||_0x1d1df7===void 0x0?void 0x0:_0x1d1df7['schema'])===null||_0x173b0c===void 0x0?void 0x0:_0x173b0c['_flags'])===null||_0xeb1abd===void 0x0?void 0x0:_0xeb1abd['format'])||_0x4b11af(0xb3);_0x1a48c9[_0x13750f[_0x1e671c][_0x4b11af(0xe3)]]=dayjs(_0x52aba1[_0x4b11af(0xc1)][_0x13750f[_0x1e671c][_0x4b11af(0xe3)]])['format'](_0x100e81);}}}}return _0x1a48c9;};return _0x32e9a9(_0x41d867,_0x52aba1[_0x1094f9(0xc1)]);}throw new AnnError(ValidatorError_1['ValidatorError'][_0x1094f9(0x9f)]);}};__decorate([(0x0,core_1[a9_0x4a571d(0xea)])(a9_0x4a571d(0xe1)),__metadata('design:type',Object)],ValidatorService[a9_0x4a571d(0xd4)],a9_0x4a571d(0xb6),void 0x0),__decorate([(0x0,core_1['Config'])(a9_0x4a571d(0xd3)),__metadata(a9_0x4a571d(0xa4),Object)],ValidatorService[a9_0x4a571d(0xd4)],a9_0x4a571d(0xd9),void 0x0),__decorate([(0x0,core_1[a9_0x4a571d(0xbd)])(),__metadata(a9_0x4a571d(0xa4),i18n_1[a9_0x4a571d(0xc6)])],ValidatorService[a9_0x4a571d(0xd4)],a9_0x4a571d(0xcd),void 0x0),__decorate([(0x0,core_1[a9_0x4a571d(0xae)])(),__metadata(a9_0x4a571d(0xa4),Function),__metadata(a9_0x4a571d(0xb7),[]),__metadata(a9_0x4a571d(0xde),Promise)],ValidatorService[a9_0x4a571d(0xd4)],a9_0x4a571d(0xb9),null),ValidatorService=__decorate([(0x0,core_1['Provide'])(a9_0x4a571d(0xd3)),(0x0,core_1[a9_0x4a571d(0xe5)])(core_1[a9_0x4a571d(0xac)][a9_0x4a571d(0xa5)])],ValidatorService),exports[a9_0x4a571d(0xb2)]=ValidatorService;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/validator",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.34",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/core": "^3.4.
|
|
20
|
+
"@anncic-api/core": "^3.4.34",
|
|
21
21
|
"@joi/date": "^2.1.0",
|
|
22
22
|
"joi": "^17.11.0"
|
|
23
23
|
},
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"javascript-obfuscator": "^4.0.2",
|
|
27
27
|
"typescript": "^5.1.3"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "ee5d6108f5470a0eac75bcbc1fde8f24de4e68be"
|
|
30
30
|
}
|