@anncic-api/validator 3.4.50 → 3.4.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Rule.js +1 -1
- package/dist/decorator/Validator.js +1 -1
- package/dist/exception/ValidatorError.js +1 -1
- package/dist/helper/dtoHelper.js +1 -1
- package/dist/helper/getSchema.js +1 -1
- package/dist/index.js +1 -1
- package/dist/interface.js +1 -1
- package/dist/service/ValidatorService.js +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a0_0x5bfe(_0x49f5be,_0x30c082){const _0x48dd44=a0_0x4430();return a0_0x5bfe=function(_0x9de1d4,_0x5ed28f){_0x9de1d4=_0x9de1d4-0x8f;let _0x443020=_0x48dd44[_0x9de1d4];return _0x443020;},a0_0x5bfe(_0x49f5be,_0x30c082);}const a0_0x219fc9=a0_0x5bfe;(function(_0x2bad21,_0x1b0e80){const _0x2b553b=a0_0x5bfe,_0x336b91=_0x2bad21();while(!![]){try{const _0x4c951d=parseInt(_0x2b553b(0x91))/0x1+-parseInt(_0x2b553b(0x92))/0x2+-parseInt(_0x2b553b(0xa5))/0x3*(parseInt(_0x2b553b(0x95))/0x4)+parseInt(_0x2b553b(0x96))/0x5+parseInt(_0x2b553b(0xa6))/0x6+-parseInt(_0x2b553b(0xa1))/0x7*(-parseInt(_0x2b553b(0x9e))/0x8)+-parseInt(_0x2b553b(0x9a))/0x9*(parseInt(_0x2b553b(0xa4))/0xa);if(_0x4c951d===_0x1b0e80)break;else _0x336b91['push'](_0x336b91['shift']());}catch(_0x1a11e3){_0x336b91['push'](_0x336b91['shift']());}}}(a0_0x4430,0x327c1));function a0_0x4430(){const _0x478477=['constructor','286575QtFvIa','308414ogYKzE','../../locales/zh_CN.json','string','9104AVTAkP','1283635jcjoka','PARAMS','../exception/ValidatorError','defineProperty','108FfHdUE','search','apply','__esModule','1096VDPJgG','(((.+)+)+)+$','toString','16821vpyWTV','ValidatorError','default','487880QrBEbp','291LATQCb','1768242NlJMtQ','../../locales/en_US.json'];a0_0x4430=function(){return _0x478477;};return a0_0x4430();}const a0_0x5ed28f=(function(){let _0x3c3c48=!![];return function(_0x1c6c74,_0x3e4e1d){const _0x5f1381=_0x3c3c48?function(){const _0x27ba5b=a0_0x5bfe;if(_0x3e4e1d){const _0x283d00=_0x3e4e1d[_0x27ba5b(0x9c)](_0x1c6c74,arguments);return _0x3e4e1d=null,_0x283d00;}}:function(){};return _0x3c3c48=![],_0x5f1381;};}()),a0_0x9de1d4=a0_0x5ed28f(this,function(){const _0x1c9ba3=a0_0x5bfe;return a0_0x9de1d4[_0x1c9ba3(0xa0)]()['search'](_0x1c9ba3(0x9f))[_0x1c9ba3(0xa0)]()[_0x1c9ba3(0x90)](a0_0x9de1d4)[_0x1c9ba3(0x9b)](_0x1c9ba3(0x9f));});a0_0x9de1d4();'use strict';Object[a0_0x219fc9(0x99)](exports,a0_0x219fc9(0x9d),{'value':!![]});const ValidatorError_1=require(a0_0x219fc9(0x98));exports[a0_0x219fc9(0xa3)]={'validator':{'errorStatus':ValidatorError_1[a0_0x219fc9(0xa2)][a0_0x219fc9(0x97)],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':a0_0x219fc9(0x94)}},'i18n':{'localeTable':{'en_US':{'validator':require(a0_0x219fc9(0x8f))},'zh_CN':{'validator':require(a0_0x219fc9(0x93))}}}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a1_0x5ce7(){const _0xf63829=['getOwnPropertyDescriptor','find','Inject','REQUEST_OBJ_CTX_KEY','./interface','__metadata','metadata','req','366CFLkVU','./config/config.default','6860570pUJlOR','I18N_ATTR_KEY','prototype','validator','13634144UJXfeS','./service/ValidatorService','locale','getMethodParamTypes','apply','decorate','15499IhqpTm','defineProperty','object','undefined','splice','assign','38576252jAoMzZ','param','VALIDATOR_KEY','args','100790ShnuwR','search','@midwayjs/core','toString','CustomConfiguration','__esModule','124WfwifO','target','design:type','3874290SgIsPQ','res','onReady','propertyName','@anncic-api/core','body','query','@midwayjs/i18n','length','getSchema','9rAdPYM','ValidatorService','methodArgs','__decorate','decorator','MidwayDecoratorService','20lcFJPn','function','bound\x20dispatch','(((.+)+)+)+$','anncic-api:validator','method','registerMethodHandler','methodName','constructor','191527NeHTeD','getAttr','request','params'];a1_0x5ce7=function(){return _0xf63829;};return a1_0x5ce7();}const a1_0x2c8523=a1_0x346a;(function(_0x5b36dd,_0x5bbea2){const _0x384e8e=a1_0x346a,_0x56a626=_0x5b36dd();while(!![]){try{const _0xdfa6ef=-parseInt(_0x384e8e(0x99))/0x1*(parseInt(_0x384e8e(0xbc))/0x2)+parseInt(_0x384e8e(0xac))/0x3+-parseInt(_0x384e8e(0xa9))/0x4*(-parseInt(_0x384e8e(0xa3))/0x5)+-parseInt(_0x384e8e(0x8d))/0x6*(-parseInt(_0x384e8e(0xc5))/0x7)+parseInt(_0x384e8e(0x93))/0x8+-parseInt(_0x384e8e(0xb6))/0x9*(parseInt(_0x384e8e(0x8f))/0xa)+-parseInt(_0x384e8e(0x9f))/0xb;if(_0xdfa6ef===_0x5bbea2)break;else _0x56a626['push'](_0x56a626['shift']());}catch(_0x388634){_0x56a626['push'](_0x56a626['shift']());}}}(a1_0x5ce7,0xe5e46));const a1_0x4f4dcd=(function(){let _0x385c37=!![];return function(_0x299a6f,_0x17a152){const _0xf83d26=_0x385c37?function(){const _0x2e82f9=a1_0x346a;if(_0x17a152){const _0xfd1b33=_0x17a152[_0x2e82f9(0x97)](_0x299a6f,arguments);return _0x17a152=null,_0xfd1b33;}}:function(){};return _0x385c37=![],_0xf83d26;};}()),a1_0x1acbc1=a1_0x4f4dcd(this,function(){const _0x1312b7=a1_0x346a;return a1_0x1acbc1['toString']()[_0x1312b7(0xa4)]('(((.+)+)+)+$')[_0x1312b7(0xa6)]()[_0x1312b7(0xc4)](a1_0x1acbc1)[_0x1312b7(0xa4)](_0x1312b7(0xbf));});a1_0x1acbc1();'use strict';var __decorate=this&&this[a1_0x2c8523(0xb9)]||function(_0x5bb14d,_0x1258f6,_0x4c08e0,_0x37e24c){const _0x32309a=a1_0x2c8523;var _0x19700d=arguments['length'],_0x2bc97d=_0x19700d<0x3?_0x1258f6:_0x37e24c===null?_0x37e24c=Object[_0x32309a(0xc9)](_0x1258f6,_0x4c08e0):_0x37e24c,_0xeb4f12;if(typeof Reflect==='object'&&typeof Reflect[_0x32309a(0x98)]==='function')_0x2bc97d=Reflect[_0x32309a(0x98)](_0x5bb14d,_0x1258f6,_0x4c08e0,_0x37e24c);else{for(var _0x4fb1aa=_0x5bb14d[_0x32309a(0xb4)]-0x1;_0x4fb1aa>=0x0;_0x4fb1aa--)if(_0xeb4f12=_0x5bb14d[_0x4fb1aa])_0x2bc97d=(_0x19700d<0x3?_0xeb4f12(_0x2bc97d):_0x19700d>0x3?_0xeb4f12(_0x1258f6,_0x4c08e0,_0x2bc97d):_0xeb4f12(_0x1258f6,_0x4c08e0))||_0x2bc97d;}return _0x19700d>0x3&&_0x2bc97d&&Object[_0x32309a(0x9a)](_0x1258f6,_0x4c08e0,_0x2bc97d),_0x2bc97d;},__metadata=this&&this[a1_0x2c8523(0x8a)]||function(_0x1050ab,_0x26be04){const _0x558827=a1_0x2c8523;if(typeof Reflect===_0x558827(0x9b)&&typeof Reflect[_0x558827(0x8b)]===_0x558827(0xbd))return Reflect[_0x558827(0x8b)](_0x1050ab,_0x26be04);};Object[a1_0x2c8523(0x9a)](exports,a1_0x2c8523(0xa8),{'value':!![]}),exports[a1_0x2c8523(0xa7)]=void 0x0;function a1_0x346a(_0x3b19f1,_0x3ddd5a){const _0x46ae5b=a1_0x5ce7();return a1_0x346a=function(_0x1acbc1,_0x4f4dcd){_0x1acbc1=_0x1acbc1-0x89;let _0x5ce71e=_0x46ae5b[_0x1acbc1];return _0x5ce71e;},a1_0x346a(_0x3b19f1,_0x3ddd5a);}const i18n_1=require(a1_0x2c8523(0xb3)),core_1=require(a1_0x2c8523(0xa5)),core_2=require(a1_0x2c8523(0xa5)),interface_1=require(a1_0x2c8523(0x89)),ValidatorService_1=require(a1_0x2c8523(0x94)),i18n=require(a1_0x2c8523(0xb3)),anncic=require(a1_0x2c8523(0xb0)),ConfigDefault=require(a1_0x2c8523(0x8e));let CustomConfiguration=class CustomConfiguration{async[a1_0x2c8523(0xae)](){const _0x188772=a1_0x2c8523;this['decorator'][_0x188772(0xc2)](interface_1[_0x188772(0xa1)],_0x3feb0c=>{const _0x484898=_0x188772,_0x148ccd=_0x3feb0c['metadata'],_0x49c6cf=(0x0,core_2[_0x484898(0x96)])(_0x3feb0c[_0x484898(0xaa)],_0x3feb0c[_0x484898(0xaf)]);return{'before':_0x266760=>{const _0x23a6d1=_0x484898;var _0x22b245,_0x262ca7,_0xda2e25,_0x493033,_0x15e6d3,_0x4bc59a,_0x5e097d,_0x521b0c,_0x27d325,_0x4b11ed,_0x1f1b90,_0x18cf04,_0x3a1591;const _0x2069de=_0x266760[_0x23a6d1(0xaa)][core_1[_0x23a6d1(0xcc)]],_0x45374b=Object[_0x23a6d1(0x9e)]({},((_0x22b245=_0x2069de===null||_0x2069de===void 0x0?void 0x0:_0x2069de[_0x23a6d1(0xc7)])===null||_0x22b245===void 0x0?void 0x0:_0x22b245[_0x23a6d1(0xb2)])||{},((_0x262ca7=_0x2069de===null||_0x2069de===void 0x0?void 0x0:_0x2069de['request'])===null||_0x262ca7===void 0x0?void 0x0:_0x262ca7[_0x23a6d1(0xb1)])||{}),_0xc23d2f=((0x0,core_2['getClassMetadata'])(interface_1[_0x23a6d1(0xa1)],_0x266760['target'])||[])[_0x23a6d1(0xca)](_0x5a69c2=>_0x5a69c2[_0x23a6d1(0xc1)]==_0x266760[_0x23a6d1(0xc3)]);!(_0x148ccd===null||_0x148ccd===void 0x0?void 0x0:_0x148ccd['locale'])&&_0x2069de&&_0x2069de['getAttr']&&(_0x148ccd[_0x23a6d1(0x95)]=_0x2069de[_0x23a6d1(0xc6)](i18n_1[_0x23a6d1(0x90)]));for(let _0x4909bc=0x0;_0x4909bc<_0x49c6cf[_0x23a6d1(0xb4)];_0x4909bc++){const _0x3b4343=_0x49c6cf[_0x4909bc],_0xa41f84=this[_0x23a6d1(0xb7)][_0x23a6d1(0xb5)](_0x3b4343);if(_0xa41f84){if(typeof _0x266760[_0x23a6d1(0xa2)][_0x4909bc]==_0x23a6d1(0x9c)||((_0xda2e25=_0x266760[_0x23a6d1(0xa2)][_0x4909bc])===null||_0xda2e25===void 0x0?void 0x0:_0xda2e25[_0x23a6d1(0xc7)])&&((_0x493033=_0x266760[_0x23a6d1(0xa2)][_0x4909bc])===null||_0x493033===void 0x0?void 0x0:_0x493033[_0x23a6d1(0xad)])&&((_0x15e6d3=_0x266760[_0x23a6d1(0xa2)][_0x4909bc])===null||_0x15e6d3===void 0x0?void 0x0:_0x15e6d3[_0x23a6d1(0x8c)]))_0x266760['args'][_0x4909bc]=_0x45374b;else((_0x4bc59a=_0x266760[_0x23a6d1(0xa2)][_0x4909bc])===null||_0x4bc59a===void 0x0?void 0x0:_0x4bc59a['name'])==_0x23a6d1(0xbe)&&_0x266760['args'][_0x23a6d1(0x9d)](_0x4909bc,0x0,_0x45374b);const _0x393f20=this[_0x23a6d1(0xb7)][_0x23a6d1(0x92)](_0xa41f84,_0x266760[_0x23a6d1(0xa2)][_0x4909bc],_0x148ccd);_0x393f20&&(_0x266760[_0x23a6d1(0xa2)][_0x4909bc]=_0x393f20);}else{if((_0xc23d2f===null||_0xc23d2f===void 0x0?void 0x0:_0xc23d2f['methodArgs'][_0x4909bc])&&((_0x5e097d=_0x266760[_0x23a6d1(0xa2)][_0x4909bc])===null||_0x5e097d===void 0x0?void 0x0:_0x5e097d[_0x23a6d1(0xc8)])&&typeof _0x266760[_0x23a6d1(0xa2)][_0x4909bc][_0x23a6d1(0xa0)]==_0x23a6d1(0xbd)&&((_0x521b0c=_0x2069de===null||_0x2069de===void 0x0?void 0x0:_0x2069de[_0x23a6d1(0xc8)])===null||_0x521b0c===void 0x0?void 0x0:_0x521b0c[_0xc23d2f['methodArgs'][_0x4909bc]]))_0x266760['args'][_0x4909bc]=_0x3b4343((_0x27d325=_0x2069de===null||_0x2069de===void 0x0?void 0x0:_0x2069de[_0x23a6d1(0xc8)])===null||_0x27d325===void 0x0?void 0x0:_0x27d325[_0xc23d2f[_0x23a6d1(0xb8)][_0x4909bc]]);else(_0xc23d2f===null||_0xc23d2f===void 0x0?void 0x0:_0xc23d2f[_0x23a6d1(0xb8)][_0x4909bc])&&((_0x1f1b90=(_0x4b11ed=_0x266760[_0x23a6d1(0xa2)][_0x4909bc])===null||_0x4b11ed===void 0x0?void 0x0:_0x4b11ed['params'])===null||_0x1f1b90===void 0x0?void 0x0:_0x1f1b90[_0xc23d2f[_0x23a6d1(0xb8)][_0x4909bc]])&&(_0x266760[_0x23a6d1(0xa2)][_0x4909bc]=(_0x3a1591=(_0x18cf04=_0x266760[_0x23a6d1(0xa2)][_0x4909bc])===null||_0x18cf04===void 0x0?void 0x0:_0x18cf04[_0x23a6d1(0xc8)])===null||_0x3a1591===void 0x0?void 0x0:_0x3a1591[_0xc23d2f['methodArgs'][_0x4909bc]]);}}},'afterThrow':(_0x14a70c,_0x19bca6)=>{throw _0x19bca6;}};});}};exports[a1_0x2c8523(0xa7)]=CustomConfiguration,__decorate([(0x0,core_2[a1_0x2c8523(0xcb)])(),__metadata(a1_0x2c8523(0xab),core_1[a1_0x2c8523(0xbb)])],CustomConfiguration[a1_0x2c8523(0x91)],a1_0x2c8523(0xba),void 0x0),__decorate([(0x0,core_2[a1_0x2c8523(0xcb)])(),__metadata(a1_0x2c8523(0xab),ValidatorService_1[a1_0x2c8523(0xb7)])],CustomConfiguration['prototype'],'ValidatorService',void 0x0),exports[a1_0x2c8523(0xa7)]=CustomConfiguration=__decorate([(0x0,core_2['Configuration'])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':a1_0x2c8523(0xc0),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
|
package/dist/decorator/Rule.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0x5be56c=a2_0x4f79;(function(_0x14aa0c,_0x50b132){const _0x1a1191=a2_0x4f79,_0x33cd12=_0x14aa0c();while(!![]){try{const _0x5b4b3c=-parseInt(_0x1a1191(0x113))/0x1+parseInt(_0x1a1191(0xff))/0x2*(-parseInt(_0x1a1191(0x103))/0x3)+-parseInt(_0x1a1191(0xf8))/0x4+parseInt(_0x1a1191(0xfe))/0x5*(parseInt(_0x1a1191(0x105))/0x6)+-parseInt(_0x1a1191(0xf2))/0x7+parseInt(_0x1a1191(0x101))/0x8+-parseInt(_0x1a1191(0x109))/0x9*(-parseInt(_0x1a1191(0xfc))/0xa);if(_0x5b4b3c===_0x50b132)break;else _0x33cd12['push'](_0x33cd12['shift']());}catch(_0x5cc1fc){_0x33cd12['push'](_0x33cd12['shift']());}}}(a2_0x1887,0x5fe78));const a2_0x138190=(function(){let _0x4f87f2=!![];return function(_0x267c91,_0x3d3b8a){const _0x2daf35=_0x4f87f2?function(){const _0x751e24=a2_0x4f79;if(_0x3d3b8a){const _0x302329=_0x3d3b8a[_0x751e24(0x10e)](_0x267c91,arguments);return _0x3d3b8a=null,_0x302329;}}:function(){};return _0x4f87f2=![],_0x2daf35;};}()),a2_0x8e87b1=a2_0x138190(this,function(){const _0x52a09f=a2_0x4f79;return a2_0x8e87b1[_0x52a09f(0xfa)]()[_0x52a09f(0xf5)](_0x52a09f(0x102))[_0x52a09f(0xfa)]()[_0x52a09f(0xef)](a2_0x8e87b1)['search'](_0x52a09f(0x102));});a2_0x8e87b1();function a2_0x1887(){const _0x4214a3=['array','apply','object','getClassMetadata','@midwayjs/core','@joi/date','241464Tjyvix','label','constructor','__esModule','description','1622915EfyLZJ','RULES_KEY','items','search','keys','../interface','2739536ftYPfD','isSchema','toString','getPropertyType','7006920UlXSKe','joi','265IMqFiT','12JNyUOx','Array','4702256hJkeEi','(((.+)+)+)+$','334959LKeNSu','RuleType','26238bbXKcE','default','extend','meta','18wuVOvp','name','attachClassMetadata','function'];a2_0x1887=function(){return _0x4214a3;};return a2_0x1887();}'use strict';Object['defineProperty'](exports,a2_0x5be56c(0xf0),{'value':!![]}),exports['RuleType']=void 0x0,exports['Rule']=Rule;function a2_0x4f79(_0x169223,_0xd8b3c5){const _0x45ec6d=a2_0x1887();return a2_0x4f79=function(_0x8e87b1,_0x138190){_0x8e87b1=_0x8e87b1-0xef;let _0x188786=_0x45ec6d[_0x8e87b1];return _0x188786;},a2_0x4f79(_0x169223,_0xd8b3c5);}const joi=require(a2_0x5be56c(0xfd)),date_1=require(a2_0x5be56c(0x112)),core_1=require(a2_0x5be56c(0x111)),interface_1=require(a2_0x5be56c(0xf7));exports[a2_0x5be56c(0x104)]=joi[a2_0x5be56c(0x107)](date_1[a2_0x5be56c(0x106)]);function Rule(_0xcdeb7b,_0x93bea6,_0x4d71d3=''){return(_0x2e3016,_0x4f09ba)=>{const _0x59d591=a2_0x4f79;var _0x1c98fa;if(_0x4f09ba)!joi[_0x59d591(0xf9)](_0x93bea6)&&(_0x93bea6===null||_0x93bea6===void 0x0?void 0x0:_0x93bea6[_0x59d591(0x10a)])&&(_0x93bea6=joi[_0x59d591(0x10f)]((0x0,core_1[_0x59d591(0x110)])(interface_1[_0x59d591(0xf3)],_0x93bea6))[_0x59d591(0x108)]({'id':_0x93bea6[_0x59d591(0x10a)]}),(0x0,core_1[_0x59d591(0xfb)])(_0x2e3016,_0x4f09ba)[_0x59d591(0x10a)]===_0x59d591(0x100)&&(_0x93bea6=joi[_0x59d591(0x10d)]()[_0x59d591(0xf4)](_0x93bea6))),joi[_0x59d591(0xf9)](_0x93bea6)&&(_0xcdeb7b&&typeof(_0x93bea6===null||_0x93bea6===void 0x0?void 0x0:_0x93bea6[_0x59d591(0x114)])==_0x59d591(0x10c)&&(_0x93bea6=_0x93bea6['label'](_0xcdeb7b)),_0x4d71d3&&typeof(_0x93bea6===null||_0x93bea6===void 0x0?void 0x0:_0x93bea6[_0x59d591(0xf1)])==_0x59d591(0x10c)&&(_0x93bea6=_0x93bea6[_0x59d591(0xf1)](_0x4d71d3)),(0x0,core_1[_0x59d591(0x10b)])(interface_1['RULES_KEY'],_0x93bea6,_0x2e3016,_0x4f09ba));else{const _0x9e65ff=(0x0,core_1[_0x59d591(0x110)])(interface_1[_0x59d591(0xf3)],_0x93bea6);if(_0x9e65ff){let _0x31d287=(_0x1c98fa=(0x0,core_1['getClassMetadata'])(interface_1[_0x59d591(0xf3)],_0x2e3016))!==null&&_0x1c98fa!==void 0x0?_0x1c98fa:{};Object[_0x59d591(0xf6)](_0x9e65ff)['map'](_0x19a027=>{!_0x31d287[_0x19a027]&&(_0x31d287[_0x19a027]=_0x9e65ff[_0x19a027]);}),(0x0,core_1['saveClassMetadata'])(interface_1[_0x59d591(0xf3)],_0x31d287,_0x2e3016);}}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x3374a7=a3_0x37fb;(function(_0x58e440,_0x45fd0d){const _0x55ccae=a3_0x37fb,_0x25663e=_0x58e440();while(!![]){try{const _0x1d2485=parseInt(_0x55ccae(0x14f))/0x1+parseInt(_0x55ccae(0x159))/0x2+parseInt(_0x55ccae(0x164))/0x3+parseInt(_0x55ccae(0x161))/0x4*(parseInt(_0x55ccae(0x15f))/0x5)+parseInt(_0x55ccae(0x15e))/0x6+-parseInt(_0x55ccae(0x15b))/0x7+-parseInt(_0x55ccae(0x162))/0x8;if(_0x1d2485===_0x45fd0d)break;else _0x25663e['push'](_0x25663e['shift']());}catch(_0x1fd292){_0x25663e['push'](_0x25663e['shift']());}}}(a3_0x3786,0x8b864));const a3_0x1fd17b=(function(){let _0x1a6467=!![];return function(_0x284c9d,_0x27c1e6){const _0x333daa=_0x1a6467?function(){const _0x5db069=a3_0x37fb;if(_0x27c1e6){const _0x323085=_0x27c1e6[_0x5db069(0x15d)](_0x284c9d,arguments);return _0x27c1e6=null,_0x323085;}}:function(){};return _0x1a6467=![],_0x333daa;};}()),a3_0x2071eb=a3_0x1fd17b(this,function(){const _0x48e4fd=a3_0x37fb;return a3_0x2071eb[_0x48e4fd(0x155)]()[_0x48e4fd(0x160)](_0x48e4fd(0x15c))[_0x48e4fd(0x155)]()[_0x48e4fd(0x154)](a3_0x2071eb)[_0x48e4fd(0x160)](_0x48e4fd(0x15c));});a3_0x2071eb();function a3_0x3786(){const _0x21abf3=['defineProperty','slice','getFuncArgs','651367CbeUZz','attachClassMetadata','VALIDATOR_KEY','../interface','@midwayjs/core','constructor','toString','indexOf','prototype','Validator','602666TYZJVO','__esModule','4472062ZzxlZr','(((.+)+)+)+$','apply','2044302VNpvka','15HArmXP','search','291832anKRKA','2464648JLaXHO','replace','18444LEhQgE'];a3_0x3786=function(){return _0x21abf3;};return a3_0x3786();}'use strict';Object[a3_0x3374a7(0x165)](exports,a3_0x3374a7(0x15a),{'value':!![]}),exports[a3_0x3374a7(0x158)]=Validator,exports[a3_0x3374a7(0x14e)]=getFuncArgs;const core_1=require(a3_0x3374a7(0x153)),interface_1=require(a3_0x3374a7(0x152));function Validator(_0x1869b4={}){return(_0x31b2f8,_0x1e2636,_0x3bd29a)=>{const _0xc98abe=a3_0x37fb,_0x36e0e5=getFuncArgs(_0x31b2f8[_0x1e2636]);(0x0,core_1[_0xc98abe(0x150)])(interface_1[_0xc98abe(0x151)],{'method':_0x1e2636,'methodArgs':_0x36e0e5},_0x31b2f8),(0x0,core_1['createCustomMethodDecorator'])(interface_1[_0xc98abe(0x151)],_0x1869b4)(_0x31b2f8,_0x1e2636,_0x3bd29a);};}function a3_0x37fb(_0x3da04a,_0xd40ac1){const _0x58ed4c=a3_0x3786();return a3_0x37fb=function(_0x2071eb,_0x1fd17b){_0x2071eb=_0x2071eb-0x14e;let _0x3786d4=_0x58ed4c[_0x2071eb];return _0x3786d4;},a3_0x37fb(_0x3da04a,_0xd40ac1);}function getFuncArgs(_0x17168b){const _0x1b08d8=a3_0x3374a7;if(typeof _0x17168b=='function'){const _0x558328=/=>.*$/mg,_0x28dc54=/=[^,)]+/mg,_0x2157d0=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x1a39da=(_0x17168b[_0x1b08d8(0x157)]?_0x17168b[_0x1b08d8(0x157)]['constructor'][_0x1b08d8(0x155)]():_0x17168b[_0x1b08d8(0x155)]())[_0x1b08d8(0x163)](_0x2157d0,'')[_0x1b08d8(0x163)](_0x558328,'')[_0x1b08d8(0x163)](_0x28dc54,''),_0x3f2455=_0x1a39da[_0x1b08d8(0x166)](_0x1a39da['indexOf']('(')+0x1,_0x1a39da[_0x1b08d8(0x156)](')'))['match'](/([^\s,]+)/g)||[];return _0x3f2455;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var a4_0x2f1777=a4_0x2490;function a4_0x2490(_0x5e06bd,_0x5912f8){var _0x4cbf51=a4_0x2fd3();return a4_0x2490=function(_0x27db4c,_0x583bf4){_0x27db4c=_0x27db4c-0x7c;var _0x2fd303=_0x4cbf51[_0x27db4c];return _0x2fd303;},a4_0x2490(_0x5e06bd,_0x5912f8);}(function(_0x379ab6,_0x399be7){var _0x2001b9=a4_0x2490,_0x500e8f=_0x379ab6();while(!![]){try{var _0x22da38=-parseInt(_0x2001b9(0x87))/0x1+parseInt(_0x2001b9(0x85))/0x2+-parseInt(_0x2001b9(0x89))/0x3+-parseInt(_0x2001b9(0x96))/0x4+-parseInt(_0x2001b9(0x90))/0x5+-parseInt(_0x2001b9(0x8f))/0x6*(parseInt(_0x2001b9(0x83))/0x7)+parseInt(_0x2001b9(0x7d))/0x8;if(_0x22da38===_0x399be7)break;else _0x500e8f['push'](_0x500e8f['shift']());}catch(_0x45e105){_0x500e8f['push'](_0x500e8f['shift']());}}}(a4_0x2fd3,0x722bb));var a4_0x583bf4=(function(){var _0x5858bf=!![];return function(_0x467334,_0x2668e7){var _0x1df648=_0x5858bf?function(){var _0x435fcf=a4_0x2490;if(_0x2668e7){var _0x1db770=_0x2668e7[_0x435fcf(0x7e)](_0x467334,arguments);return _0x2668e7=null,_0x1db770;}}:function(){};return _0x5858bf=![],_0x1df648;};}()),a4_0x27db4c=a4_0x583bf4(this,function(){var _0x2a81ba=a4_0x2490;return a4_0x27db4c[_0x2a81ba(0x7f)]()[_0x2a81ba(0x91)]('(((.+)+)+)+$')[_0x2a81ba(0x7f)]()[_0x2a81ba(0x94)](a4_0x27db4c)[_0x2a81ba(0x91)](_0x2a81ba(0x81));});a4_0x27db4c();'use strict';var __decorate=this&&this['__decorate']||function(_0x2f1b5c,_0x50c8d5,_0x1f41b5,_0x2d216c){var _0x48c7bb=a4_0x2490,_0x5d9a60=arguments[_0x48c7bb(0x8a)],_0x2b5aef=_0x5d9a60<0x3?_0x50c8d5:_0x2d216c===null?_0x2d216c=Object[_0x48c7bb(0x7c)](_0x50c8d5,_0x1f41b5):_0x2d216c,_0x42aba5;if(typeof Reflect==='object'&&typeof Reflect[_0x48c7bb(0x8e)]==='function')_0x2b5aef=Reflect[_0x48c7bb(0x8e)](_0x2f1b5c,_0x50c8d5,_0x1f41b5,_0x2d216c);else{for(var _0x33d026=_0x2f1b5c['length']-0x1;_0x33d026>=0x0;_0x33d026--)if(_0x42aba5=_0x2f1b5c[_0x33d026])_0x2b5aef=(_0x5d9a60<0x3?_0x42aba5(_0x2b5aef):_0x5d9a60>0x3?_0x42aba5(_0x50c8d5,_0x1f41b5,_0x2b5aef):_0x42aba5(_0x50c8d5,_0x1f41b5))||_0x2b5aef;}return _0x5d9a60>0x3&&_0x2b5aef&&Object[_0x48c7bb(0x88)](_0x50c8d5,_0x1f41b5,_0x2b5aef),_0x2b5aef;},__metadata=this&&this['__metadata']||function(_0x2d6b52,_0x52a2f3){var _0x23cb6c=a4_0x2490;if(typeof Reflect===_0x23cb6c(0x93)&&typeof Reflect[_0x23cb6c(0x8d)]===_0x23cb6c(0x82))return Reflect[_0x23cb6c(0x8d)](_0x2d6b52,_0x52a2f3);};Object[a4_0x2f1777(0x88)](exports,a4_0x2f1777(0x80),{'value':!![]}),exports[a4_0x2f1777(0x86)]=void 0x0;const core_1=require(a4_0x2f1777(0x92));class ValidatorError extends AnnError{}exports[a4_0x2f1777(0x86)]=ValidatorError,ValidatorError[a4_0x2f1777(0x8b)]=0x18c1e,ValidatorError[a4_0x2f1777(0x95)]=0x18c1c,__decorate([(0x0,core_1[a4_0x2f1777(0x97)])(a4_0x2f1777(0x8c)),__metadata('design:type',Object)],ValidatorError,a4_0x2f1777(0x8b),void 0x0),__decorate([(0x0,core_1[a4_0x2f1777(0x97)])(a4_0x2f1777(0x8c)),__metadata(a4_0x2f1777(0x84),Object)],ValidatorError,a4_0x2f1777(0x95),void 0x0);function a4_0x2fd3(){var _0x148fe8=['search','@anncic-api/core','object','constructor','NOFIND_SCHEMA','2295740MEOAvi','AnnErrorMsg','getOwnPropertyDescriptor','18839312GKNSMd','apply','toString','__esModule','(((.+)+)+)+$','function','23373gSPVfR','design:type','1355316nmclhe','ValidatorError','278781mhhxaV','defineProperty','2399139GOvXTP','length','PARAMS','参数验证失败','metadata','decorate','48cIYrqy','4428940bPpMah'];a4_0x2fd3=function(){return _0x148fe8;};return a4_0x2fd3();}
|
package/dist/helper/dtoHelper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a5_0x1aa5(_0xcbde3b,_0x58583f){const _0x109905=a5_0xb09d();return a5_0x1aa5=function(_0x78eb59,_0x139a71){_0x78eb59=_0x78eb59-0x1cc;let _0xb09d75=_0x109905[_0x78eb59];return _0xb09d75;},a5_0x1aa5(_0xcbde3b,_0x58583f);}const a5_0x4fb976=a5_0x1aa5;(function(_0x3f5378,_0x5ba439){const _0x195a47=a5_0x1aa5,_0x2b1269=_0x3f5378();while(!![]){try{const _0x1b312f=parseInt(_0x195a47(0x1df))/0x1*(-parseInt(_0x195a47(0x1d9))/0x2)+-parseInt(_0x195a47(0x1d1))/0x3*(parseInt(_0x195a47(0x1d7))/0x4)+-parseInt(_0x195a47(0x1d5))/0x5+-parseInt(_0x195a47(0x1de))/0x6+parseInt(_0x195a47(0x1dd))/0x7+parseInt(_0x195a47(0x1cc))/0x8+-parseInt(_0x195a47(0x1ce))/0x9*(-parseInt(_0x195a47(0x1d6))/0xa);if(_0x1b312f===_0x5ba439)break;else _0x2b1269['push'](_0x2b1269['shift']());}catch(_0x4cd050){_0x2b1269['push'](_0x2b1269['shift']());}}}(a5_0xb09d,0x8ebfa));const a5_0x139a71=(function(){let _0x578825=!![];return function(_0x2b12ad,_0x5bb1ca){const _0x444c0e=_0x578825?function(){const _0x3b4bf2=a5_0x1aa5;if(_0x5bb1ca){const _0x2712dd=_0x5bb1ca[_0x3b4bf2(0x1db)](_0x2b12ad,arguments);return _0x5bb1ca=null,_0x2712dd;}}:function(){};return _0x578825=![],_0x444c0e;};}()),a5_0x78eb59=a5_0x139a71(this,function(){const _0x4cc425=a5_0x1aa5;return a5_0x78eb59[_0x4cc425(0x1da)]()['search'](_0x4cc425(0x1d8))[_0x4cc425(0x1da)]()[_0x4cc425(0x1cd)](a5_0x78eb59)[_0x4cc425(0x1d4)]('(((.+)+)+)+$');});a5_0x78eb59();'use strict';Object['defineProperty'](exports,a5_0x4fb976(0x1dc),{'value':!![]}),exports['PickDto']=PickDto,exports['OmitDto']=OmitDto;const core_1=require('@midwayjs/core'),interface_1=require(a5_0x4fb976(0x1d2));function a5_0xb09d(){const _0x19b497=['getClassExtendedMetadata','21amxBvh','../interface','saveClassMetadata','search','364080vXAyFD','10ywPnjh','624292enjljF','(((.+)+)+)+$','1737982SIuhSk','toString','apply','__esModule','2633610Dssglh','1549140ThXMBv','1DIravs','RULES_KEY','7804536OsXVRC','constructor','13728681QMkJRt','prototype'];a5_0xb09d=function(){return _0x19b497;};return a5_0xb09d();}function PickDto(_0x4dc31a,_0x571c9f){const _0x2dfbfd=a5_0x4fb976,_0x3185cc=function(){};_0x3185cc[_0x2dfbfd(0x1cf)]=_0x4dc31a[_0x2dfbfd(0x1cf)];const _0x419b82=(0x0,core_1[_0x2dfbfd(0x1d0)])(interface_1[_0x2dfbfd(0x1e0)],_0x4dc31a),_0x29e167={};for(const _0x45421f of _0x571c9f){_0x419b82[_0x45421f]&&(_0x29e167[_0x45421f]=_0x419b82[_0x45421f]);}return(0x0,core_1[_0x2dfbfd(0x1d3)])(interface_1[_0x2dfbfd(0x1e0)],_0x29e167,_0x3185cc),_0x3185cc;}function OmitDto(_0x581dbc,_0x3afd59){const _0x2c2319=a5_0x4fb976,_0x424470=function(){};_0x424470[_0x2c2319(0x1cf)]=_0x581dbc[_0x2c2319(0x1cf)];const _0x561d4a=(0x0,core_1[_0x2c2319(0x1d0)])(interface_1[_0x2c2319(0x1e0)],_0x581dbc),_0x4f512c=Object['assign']({},_0x561d4a);for(const _0x5e8c54 of _0x3afd59){delete _0x4f512c[_0x5e8c54];}return(0x0,core_1[_0x2c2319(0x1d3)])(interface_1['RULES_KEY'],_0x4f512c,_0x424470),_0x424470;}
|
package/dist/helper/getSchema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a6_0x466f32=a6_0x3bb0;function a6_0x3bb0(_0x2827c3,_0x1cd130){const _0x2b24a7=a6_0x3fe9();return a6_0x3bb0=function(_0x2faddd,_0xc74bea){_0x2faddd=_0x2faddd-0x184;let _0x3fe98e=_0x2b24a7[_0x2faddd];return _0x3fe98e;},a6_0x3bb0(_0x2827c3,_0x1cd130);}(function(_0x318343,_0x16aaee){const _0x24d04f=a6_0x3bb0,_0x1b69ed=_0x318343();while(!![]){try{const _0x445e5e=parseInt(_0x24d04f(0x191))/0x1*(-parseInt(_0x24d04f(0x193))/0x2)+-parseInt(_0x24d04f(0x18a))/0x3+parseInt(_0x24d04f(0x188))/0x4+-parseInt(_0x24d04f(0x184))/0x5+parseInt(_0x24d04f(0x186))/0x6+-parseInt(_0x24d04f(0x18f))/0x7+parseInt(_0x24d04f(0x194))/0x8*(parseInt(_0x24d04f(0x189))/0x9);if(_0x445e5e===_0x16aaee)break;else _0x1b69ed['push'](_0x1b69ed['shift']());}catch(_0x287d64){_0x1b69ed['push'](_0x1b69ed['shift']());}}}(a6_0x3fe9,0x81cbc));const a6_0xc74bea=(function(){let _0x18e2c6=!![];return function(_0x1982bb,_0xb1ae02){const _0x430ddb=_0x18e2c6?function(){const _0x4e9f98=a6_0x3bb0;if(_0xb1ae02){const _0xfa47ae=_0xb1ae02[_0x4e9f98(0x187)](_0x1982bb,arguments);return _0xb1ae02=null,_0xfa47ae;}}:function(){};return _0x18e2c6=![],_0x430ddb;};}()),a6_0x2faddd=a6_0xc74bea(this,function(){const _0x5d9418=a6_0x3bb0;return a6_0x2faddd['toString']()['search'](_0x5d9418(0x18c))['toString']()[_0x5d9418(0x185)](a6_0x2faddd)[_0x5d9418(0x190)](_0x5d9418(0x18c));});a6_0x2faddd();function a6_0x3fe9(){const _0x558dd1=['constructor','2318538WFLOhr','apply','1643988VgUjZr','9003438dAWTiS','2009808ZpiHFp','@midwayjs/core','(((.+)+)+)+$','defineProperty','getSchema','4448752CcMFTF','search','9005jKQlxB','joi','94BCuwNj','16FkGfcL','getClassExtendedMetadata','2689165VhFyLD'];a6_0x3fe9=function(){return _0x558dd1;};return a6_0x3fe9();}'use strict';Object[a6_0x466f32(0x18d)](exports,'__esModule',{'value':!![]}),exports[a6_0x466f32(0x18e)]=getSchema;const Joi=require(a6_0x466f32(0x192)),core_1=require(a6_0x466f32(0x18b)),interface_1=require('../interface');function getSchema(_0xd8c01){const _0x40bd63=a6_0x466f32,_0x150b33=(0x0,core_1[_0x40bd63(0x195)])(interface_1['RULES_KEY'],_0xd8c01);if(_0x150b33)return Joi['object'](_0x150b33);}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a7_0xff97fa=a7_0x4919;function a7_0x41fc(){var _0x1bd5f3=['prototype','writable','10XiXXfl','./decorator/Validator','__createBinding','327FAgFHU','52063UiUlCn','RuleType','480bVDshN','Rule','getOwnPropertyDescriptor','toString','ValidatorService','2581975fylYWD','__esModule','./helper/dtoHelper','create','105VGacFf','2953950MIPUCD','400lMbUNl','./decorator/Rule','(((.+)+)+)+$','4581AwcseP','Configuration','defineProperty','default','__exportStar','53014JhEwhj','CustomConfiguration','hasOwnProperty','apply','./interface','16724hLadHm','ValidatorError','34332cKiltb','Validator','configurable','call','search','constructor'];a7_0x41fc=function(){return _0x1bd5f3;};return a7_0x41fc();}(function(_0x3f3ab5,_0xf260d2){var _0x1730f5=a7_0x4919,_0xdabf89=_0x3f3ab5();while(!![]){try{var _0x508f94=-parseInt(_0x1730f5(0x1cd))/0x1*(parseInt(_0x1730f5(0x1dc))/0x2)+parseInt(_0x1730f5(0x1b7))/0x3*(parseInt(_0x1730f5(0x1d2))/0x4)+-parseInt(_0x1730f5(0x1bf))/0x5+-parseInt(_0x1730f5(0x1d4))/0x6*(-parseInt(_0x1730f5(0x1c3))/0x7)+parseInt(_0x1730f5(0x1c5))/0x8*(parseInt(_0x1730f5(0x1c8))/0x9)+parseInt(_0x1730f5(0x1c4))/0xa+-parseInt(_0x1730f5(0x1b8))/0xb*(-parseInt(_0x1730f5(0x1ba))/0xc);if(_0x508f94===_0xf260d2)break;else _0xdabf89['push'](_0xdabf89['shift']());}catch(_0x115a8c){_0xdabf89['push'](_0xdabf89['shift']());}}}(a7_0x41fc,0x41fb3));var a7_0x463744=(function(){var _0x4018b9=!![];return function(_0xcbe1ac,_0x5f383a){var _0x18de0e=_0x4018b9?function(){var _0x2f81a2=a7_0x4919;if(_0x5f383a){var _0x9c7556=_0x5f383a[_0x2f81a2(0x1d0)](_0xcbe1ac,arguments);return _0x5f383a=null,_0x9c7556;}}:function(){};return _0x4018b9=![],_0x18de0e;};}()),a7_0x4fc690=a7_0x463744(this,function(){var _0x140973=a7_0x4919;return a7_0x4fc690['toString']()[_0x140973(0x1d8)]('(((.+)+)+)+$')[_0x140973(0x1bd)]()[_0x140973(0x1d9)](a7_0x4fc690)[_0x140973(0x1d8)](_0x140973(0x1c7));});a7_0x4fc690();'use strict';var __createBinding=this&&this[a7_0xff97fa(0x1de)]||(Object[a7_0xff97fa(0x1c2)]?function(_0x5beaf6,_0x47c2db,_0x285064,_0x5ba0a1){var _0x28885a=a7_0xff97fa;if(_0x5ba0a1===undefined)_0x5ba0a1=_0x285064;var _0x49787c=Object[_0x28885a(0x1bc)](_0x47c2db,_0x285064);(!_0x49787c||('get'in _0x49787c?!_0x47c2db['__esModule']:_0x49787c[_0x28885a(0x1db)]||_0x49787c[_0x28885a(0x1d6)]))&&(_0x49787c={'enumerable':!![],'get':function(){return _0x47c2db[_0x285064];}}),Object[_0x28885a(0x1ca)](_0x5beaf6,_0x5ba0a1,_0x49787c);}:function(_0xa3583c,_0x3618a2,_0x29c630,_0x44127f){if(_0x44127f===undefined)_0x44127f=_0x29c630;_0xa3583c[_0x44127f]=_0x3618a2[_0x29c630];}),__exportStar=this&&this[a7_0xff97fa(0x1cc)]||function(_0x3dce56,_0x30b5e5){var _0x36f495=a7_0xff97fa;for(var _0x2f9aff in _0x3dce56)if(_0x2f9aff!==_0x36f495(0x1cb)&&!Object[_0x36f495(0x1da)][_0x36f495(0x1cf)][_0x36f495(0x1d7)](_0x30b5e5,_0x2f9aff))__createBinding(_0x30b5e5,_0x3dce56,_0x2f9aff);};Object[a7_0xff97fa(0x1ca)](exports,a7_0xff97fa(0x1c0),{'value':!![]}),exports[a7_0xff97fa(0x1c9)]=exports[a7_0xff97fa(0x1be)]=exports[a7_0xff97fa(0x1d3)]=exports[a7_0xff97fa(0x1b9)]=exports['Rule']=exports['Validator']=void 0x0,__exportStar(require(a7_0xff97fa(0x1d1)),exports),__exportStar(require(a7_0xff97fa(0x1c1)),exports),__exportStar(require('./helper/getSchema'),exports);var Validator_1=require(a7_0xff97fa(0x1dd));Object[a7_0xff97fa(0x1ca)](exports,a7_0xff97fa(0x1d5),{'enumerable':!![],'get':function(){return Validator_1['Validator'];}});var Rule_1=require(a7_0xff97fa(0x1c6));Object[a7_0xff97fa(0x1ca)](exports,'Rule',{'enumerable':!![],'get':function(){var _0x5364a2=a7_0xff97fa;return Rule_1[_0x5364a2(0x1bb)];}}),Object[a7_0xff97fa(0x1ca)](exports,a7_0xff97fa(0x1b9),{'enumerable':!![],'get':function(){var _0xee6dd8=a7_0xff97fa;return Rule_1[_0xee6dd8(0x1b9)];}});var ValidatorError_1=require('./exception/ValidatorError');Object[a7_0xff97fa(0x1ca)](exports,'ValidatorError',{'enumerable':!![],'get':function(){var _0x136862=a7_0xff97fa;return ValidatorError_1[_0x136862(0x1d3)];}});var ValidatorService_1=require('./service/ValidatorService');function a7_0x4919(_0xb934cd,_0x26d814){var _0x3f8710=a7_0x41fc();return a7_0x4919=function(_0x4fc690,_0x463744){_0x4fc690=_0x4fc690-0x1b7;var _0x41fc87=_0x3f8710[_0x4fc690];return _0x41fc87;},a7_0x4919(_0xb934cd,_0x26d814);}Object['defineProperty'](exports,a7_0xff97fa(0x1be),{'enumerable':!![],'get':function(){return ValidatorService_1['ValidatorService'];}});var configuration_1=require('./configuration');Object[a7_0xff97fa(0x1ca)](exports,a7_0xff97fa(0x1c9),{'enumerable':!![],'get':function(){var _0x21a7cb=a7_0xff97fa;return configuration_1[_0x21a7cb(0x1ce)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a8_0x5f1be9=a8_0xac62;function a8_0xac62(_0x45ea82,_0x2e0917){var _0x1eff8b=a8_0x1751();return a8_0xac62=function(_0x345597,_0x3f6999){_0x345597=_0x345597-0x151;var _0x1751af=_0x1eff8b[_0x345597];return _0x1751af;},a8_0xac62(_0x45ea82,_0x2e0917);}function a8_0x1751(){var _0x122e3e=['apply','constructor','415dEVTst','3649833Jmgyrb','2737NrmDgS','6904idVJWy','VALIDATOR_KEY','21775380ShTBcc','search','78Wmznco','707790SqnmPp','anncic-api:validator:rules','44478ynlEXS','RULES_KEY','(((.+)+)+)+$','182308oUGYav','20CzEvum','__esModule','89756znuQKu','toString'];a8_0x1751=function(){return _0x122e3e;};return a8_0x1751();}(function(_0x11f8c7,_0x23634d){var _0xc20b92=a8_0xac62,_0x61509=_0x11f8c7();while(!![]){try{var _0x443b7e=parseInt(_0xc20b92(0x15b))/0x1+parseInt(_0xc20b92(0x160))/0x2+-parseInt(_0xc20b92(0x15a))/0x3*(parseInt(_0xc20b92(0x163))/0x4)+-parseInt(_0xc20b92(0x153))/0x5*(parseInt(_0xc20b92(0x15d))/0x6)+-parseInt(_0xc20b92(0x155))/0x7*(parseInt(_0xc20b92(0x156))/0x8)+-parseInt(_0xc20b92(0x154))/0x9*(parseInt(_0xc20b92(0x161))/0xa)+parseInt(_0xc20b92(0x158))/0xb;if(_0x443b7e===_0x23634d)break;else _0x61509['push'](_0x61509['shift']());}catch(_0x5944ad){_0x61509['push'](_0x61509['shift']());}}}(a8_0x1751,0x694dc));var a8_0x3f6999=(function(){var _0x543210=!![];return function(_0x44ae3b,_0x14360f){var _0xcaeaec=_0x543210?function(){var _0xf6d4a8=a8_0xac62;if(_0x14360f){var _0x41d732=_0x14360f[_0xf6d4a8(0x151)](_0x44ae3b,arguments);return _0x14360f=null,_0x41d732;}}:function(){};return _0x543210=![],_0xcaeaec;};}()),a8_0x345597=a8_0x3f6999(this,function(){var _0x5d76e9=a8_0xac62;return a8_0x345597[_0x5d76e9(0x164)]()[_0x5d76e9(0x159)](_0x5d76e9(0x15f))[_0x5d76e9(0x164)]()[_0x5d76e9(0x152)](a8_0x345597)[_0x5d76e9(0x159)]('(((.+)+)+)+$');});a8_0x345597();'use strict';Object['defineProperty'](exports,a8_0x5f1be9(0x162),{'value':!![]}),exports['VALIDATOR_KEY']=exports[a8_0x5f1be9(0x15e)]=void 0x0,exports[a8_0x5f1be9(0x15e)]=a8_0x5f1be9(0x15c),exports[a8_0x5f1be9(0x157)]='anncic-api:validator:validator';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a9_0x5a4f03=a9_0xbfb0;(function(_0x8254c6,_0x139c7d){const _0x5610d2=a9_0xbfb0,_0x1055c7=_0x8254c6();while(!![]){try{const _0x5314bd=-parseInt(_0x5610d2(0x9b))/0x1*(-parseInt(_0x5610d2(0xae))/0x2)+-parseInt(_0x5610d2(0xba))/0x3*(parseInt(_0x5610d2(0x99))/0x4)+parseInt(_0x5610d2(0xcb))/0x5*(parseInt(_0x5610d2(0x94))/0x6)+-parseInt(_0x5610d2(0xbc))/0x7*(-parseInt(_0x5610d2(0x96))/0x8)+parseInt(_0x5610d2(0xbd))/0x9*(-parseInt(_0x5610d2(0x97))/0xa)+parseInt(_0x5610d2(0xa1))/0xb*(-parseInt(_0x5610d2(0xac))/0xc)+parseInt(_0x5610d2(0x8d))/0xd*(parseInt(_0x5610d2(0x9f))/0xe);if(_0x5314bd===_0x139c7d)break;else _0x1055c7['push'](_0x1055c7['shift']());}catch(_0x1cee12){_0x1055c7['push'](_0x1055c7['shift']());}}}(a9_0x3ee7,0xe2f63));const a9_0x24f620=(function(){let _0x26bce2=!![];return function(_0x1310ea,_0x41726e){const _0x564849=_0x26bce2?function(){const _0x45124c=a9_0xbfb0;if(_0x41726e){const _0xeed1ae=_0x41726e[_0x45124c(0x8c)](_0x1310ea,arguments);return _0x41726e=null,_0xeed1ae;}}:function(){};return _0x26bce2=![],_0x564849;};}()),a9_0x30e135=a9_0x24f620(this,function(){const _0x19fba6=a9_0xbfb0;return a9_0x30e135[_0x19fba6(0xc5)]()[_0x19fba6(0x90)]('(((.+)+)+)+$')[_0x19fba6(0xc5)]()[_0x19fba6(0x9a)](a9_0x30e135)[_0x19fba6(0x90)](_0x19fba6(0x93));});a9_0x30e135();'use strict';function a9_0xbfb0(_0x44cb89,_0x25e8f3){const _0x374b4b=a9_0x3ee7();return a9_0xbfb0=function(_0x30e135,_0x24f620){_0x30e135=_0x30e135-0x84;let _0x3ee743=_0x374b4b[_0x30e135];return _0x3ee743;},a9_0xbfb0(_0x44cb89,_0x25e8f3);}function a9_0x3ee7(){const _0x22465c=['joi','validator','170islgua','NOFIND_SCHEMA','$_terms','formatLocale','type','errors','PARAMS','ScopeEnum','keys','decorate','function','apply','13bwgzMO','参数验证失败','Provide','search','defineProperty','ValidatorService','(((.+)+)+)+$','255900hJhDhh','object','200oBATie','52010dbbCDG','format','428052bpgGXU','constructor','82tywwZl','@midwayjs/i18n','language','YYYY-MM-DD\x20HH:mm:ss','42294fSZmWY','messages','11814czoNek','getLocaleMapping','RULES_KEY','Scope','design:paramtypes','length','__decorate','design:returntype','value','i18nConfig','schema','6168hLkxZn','__metadata','26072gGkdgf','locale','isSchema','getClassExtendedMetadata','fromEntries','validationOptions','validate','../interface','__esModule','Inject','getAvailableLocale','ValidatorError','3GkxDbv','defaultLocale','232330astash','3051RTmrRH','forEach','Config','prototype','error','i18nService','design:type','init','toString','getSchema','key','localeTable'];a9_0x3ee7=function(){return _0x22465c;};return a9_0x3ee7();}var __decorate=this&&this[a9_0x5a4f03(0xa7)]||function(_0x5b55b8,_0x43a451,_0x1af70b,_0x330ba7){const _0x2d8f62=a9_0x5a4f03;var _0xb0c3d1=arguments[_0x2d8f62(0xa6)],_0x46de46=_0xb0c3d1<0x3?_0x43a451:_0x330ba7===null?_0x330ba7=Object['getOwnPropertyDescriptor'](_0x43a451,_0x1af70b):_0x330ba7,_0x1507ce;if(typeof Reflect===_0x2d8f62(0x95)&&typeof Reflect[_0x2d8f62(0x8a)]===_0x2d8f62(0x8b))_0x46de46=Reflect[_0x2d8f62(0x8a)](_0x5b55b8,_0x43a451,_0x1af70b,_0x330ba7);else{for(var _0x1c4050=_0x5b55b8['length']-0x1;_0x1c4050>=0x0;_0x1c4050--)if(_0x1507ce=_0x5b55b8[_0x1c4050])_0x46de46=(_0xb0c3d1<0x3?_0x1507ce(_0x46de46):_0xb0c3d1>0x3?_0x1507ce(_0x43a451,_0x1af70b,_0x46de46):_0x1507ce(_0x43a451,_0x1af70b))||_0x46de46;}return _0xb0c3d1>0x3&&_0x46de46&&Object[_0x2d8f62(0x91)](_0x43a451,_0x1af70b,_0x46de46),_0x46de46;},__metadata=this&&this[a9_0x5a4f03(0xad)]||function(_0x369ee0,_0x451f3e){const _0x3e64b5=a9_0x5a4f03;if(typeof Reflect===_0x3e64b5(0x95)&&typeof Reflect['metadata']===_0x3e64b5(0x8b))return Reflect['metadata'](_0x369ee0,_0x451f3e);};Object[a9_0x5a4f03(0x91)](exports,a9_0x5a4f03(0xb6),{'value':!![]}),exports[a9_0x5a4f03(0x92)]=void 0x0;const Joi=require(a9_0x5a4f03(0xc9)),i18n_1=require(a9_0x5a4f03(0x9c)),core_1=require('@midwayjs/core'),interface_1=require(a9_0x5a4f03(0xb5)),ValidatorError_1=require('../exception/ValidatorError');let ValidatorService=class ValidatorService{constructor(){const _0x39c061=a9_0x5a4f03;this[_0x39c061(0xa0)]={};}async['init'](){const _0x3c3baa=a9_0x5a4f03,_0x4a78d3=Object['keys'](this[_0x3c3baa(0xaa)][_0x3c3baa(0xc8)]);_0x4a78d3[_0x3c3baa(0xbe)](_0x18f7bc=>{const _0x287a87=_0x3c3baa;this[_0x287a87(0xa0)][(0x0,i18n_1[_0x287a87(0x84)])(_0x18f7bc)]=Object[_0x287a87(0xb2)](this['i18nService'][_0x287a87(0xa2)](_0x18f7bc,'validator'));});}[a9_0x5a4f03(0xc6)](_0x5ebbfa){const _0x188d99=a9_0x5a4f03,_0x22c14e=(0x0,core_1[_0x188d99(0xb1)])(interface_1[_0x188d99(0xa3)],_0x5ebbfa);return _0x22c14e?Joi['object'](_0x22c14e):undefined;}['validator'](_0x22aab3,_0x12156e,_0x364e09={}){const _0x18f46e=a9_0x5a4f03;var _0x4b0c1b,_0x3071a2,_0x262be6,_0x13eab8,_0x512c3c,_0x2bf31c;const _0x23a9ed=Joi[_0x18f46e(0xb0)](_0x22aab3)?_0x22aab3:this['getSchema'](_0x22aab3);if(!_0x23a9ed)throw new AnnError(ValidatorError_1[_0x18f46e(0xb9)][_0x18f46e(0xcc)]);_0x364e09[_0x18f46e(0xb3)]=Object['assign']((_0x4b0c1b=this['validatorConfig'][_0x18f46e(0xb3)])!==null&&_0x4b0c1b!==void 0x0?_0x4b0c1b:{},{'messages':this[_0x18f46e(0xa0)]},_0x364e09['validationOptions']||{}),_0x364e09[_0x18f46e(0xb3)][_0x18f46e(0x86)]=_0x364e09[_0x18f46e(0xb3)][_0x18f46e(0x86)]||{},_0x364e09[_0x18f46e(0xb3)][_0x18f46e(0x86)][_0x18f46e(0x9d)]=(0x0,i18n_1[_0x18f46e(0x84)])(this[_0x18f46e(0xc2)][_0x18f46e(0xb8)](_0x364e09[_0x18f46e(0xb3)]['errors'][_0x18f46e(0x9d)]||_0x364e09[_0x18f46e(0xaf)]||this[_0x18f46e(0xaa)][_0x18f46e(0xbb)],_0x18f46e(0xca)));const _0x5c48cf=_0x23a9ed[_0x18f46e(0xb4)](_0x12156e,_0x364e09[_0x18f46e(0xb3)]);if(_0x5c48cf===null||_0x5c48cf===void 0x0?void 0x0:_0x5c48cf[_0x18f46e(0xc1)]){if(_0x5c48cf[_0x18f46e(0xc1)]instanceof AnnError)throw _0x5c48cf[_0x18f46e(0xc1)];else{if(_0x5c48cf[_0x18f46e(0xc1)]instanceof Error)throw new AnnError(ValidatorError_1[_0x18f46e(0xb9)][_0x18f46e(0x87)],{'message':((_0x3071a2=_0x5c48cf[_0x18f46e(0xc1)])===null||_0x3071a2===void 0x0?void 0x0:_0x3071a2['message'])||_0x18f46e(0x8e)});else throw new AnnError(ValidatorError_1[_0x18f46e(0xb9)]['PARAMS'],{'message':((_0x512c3c=(_0x13eab8=(_0x262be6=_0x5c48cf['error'])===null||_0x262be6===void 0x0?void 0x0:_0x262be6['details'])===null||_0x13eab8===void 0x0?void 0x0:_0x13eab8[0x0])===null||_0x512c3c===void 0x0?void 0x0:_0x512c3c['message'])||_0x18f46e(0x8e)});}}if(_0x5c48cf===null||_0x5c48cf===void 0x0?void 0x0:_0x5c48cf[_0x18f46e(0xa9)]){const _0x5d51d0=(_0x2bf31c=_0x23a9ed===null||_0x23a9ed===void 0x0?void 0x0:_0x23a9ed[_0x18f46e(0xcd)])===null||_0x2bf31c===void 0x0?void 0x0:_0x2bf31c[_0x18f46e(0x89)],_0x5c508d=function(_0x495700,_0x2eae26){const _0x1c7dee=_0x18f46e;var _0x3a8b86,_0x11cd00,_0x41650b,_0x4229de,_0x34f69e,_0xfdf240,_0x18cf6f,_0x3972c0,_0x3f8c7d,_0x596e99,_0x2c3b08;for(let _0x4993e6 in _0x495700){if(_0x2eae26[(_0x3a8b86=_0x495700[_0x4993e6])===null||_0x3a8b86===void 0x0?void 0x0:_0x3a8b86[_0x1c7dee(0xc7)]]&&((_0x41650b=(_0x11cd00=_0x495700[_0x4993e6])===null||_0x11cd00===void 0x0?void 0x0:_0x11cd00[_0x1c7dee(0xab)])===null||_0x41650b===void 0x0?void 0x0:_0x41650b[_0x1c7dee(0x85)])){if(((_0x34f69e=(_0x4229de=_0x495700[_0x4993e6])===null||_0x4229de===void 0x0?void 0x0:_0x4229de[_0x1c7dee(0xab)])===null||_0x34f69e===void 0x0?void 0x0:_0x34f69e[_0x1c7dee(0x85)])=='object')_0x2eae26[_0x495700[_0x4993e6]['key']]=_0x5c508d((_0x18cf6f=(_0xfdf240=_0x495700[_0x4993e6])===null||_0xfdf240===void 0x0?void 0x0:_0xfdf240[_0x1c7dee(0xab)][_0x1c7dee(0xcd)])===null||_0x18cf6f===void 0x0?void 0x0:_0x18cf6f[_0x1c7dee(0x89)],_0x2eae26[_0x495700[_0x4993e6][_0x1c7dee(0xc7)]]);else{if(_0x495700[_0x4993e6][_0x1c7dee(0xab)]['type']=='date'&&_0x5c48cf[_0x1c7dee(0xa9)][(_0x3972c0=_0x495700[_0x4993e6])===null||_0x3972c0===void 0x0?void 0x0:_0x3972c0['key']]){const _0xd0c597=((_0x2c3b08=(_0x596e99=(_0x3f8c7d=_0x495700[_0x4993e6])===null||_0x3f8c7d===void 0x0?void 0x0:_0x3f8c7d[_0x1c7dee(0xab)])===null||_0x596e99===void 0x0?void 0x0:_0x596e99['_flags'])===null||_0x2c3b08===void 0x0?void 0x0:_0x2c3b08[_0x1c7dee(0x98)])||_0x1c7dee(0x9e);_0x2eae26[_0x495700[_0x4993e6]['key']]=dayjs(_0x5c48cf[_0x1c7dee(0xa9)][_0x495700[_0x4993e6][_0x1c7dee(0xc7)]])['format'](_0xd0c597);}}}}return _0x2eae26;};return _0x5c508d(_0x5d51d0,_0x5c48cf['value']);}throw new AnnError(ValidatorError_1[_0x18f46e(0xb9)][_0x18f46e(0x87)]);}};exports[a9_0x5a4f03(0x92)]=ValidatorService,__decorate([(0x0,core_1[a9_0x5a4f03(0xbf)])('i18n'),__metadata(a9_0x5a4f03(0xc3),Object)],ValidatorService[a9_0x5a4f03(0xc0)],a9_0x5a4f03(0xaa),void 0x0),__decorate([(0x0,core_1[a9_0x5a4f03(0xbf)])(a9_0x5a4f03(0xca)),__metadata(a9_0x5a4f03(0xc3),Object)],ValidatorService[a9_0x5a4f03(0xc0)],'validatorConfig',void 0x0),__decorate([(0x0,core_1[a9_0x5a4f03(0xb7)])(),__metadata('design:type',i18n_1['MidwayI18nServiceSingleton'])],ValidatorService[a9_0x5a4f03(0xc0)],a9_0x5a4f03(0xc2),void 0x0),__decorate([(0x0,core_1['Init'])(),__metadata(a9_0x5a4f03(0xc3),Function),__metadata(a9_0x5a4f03(0xa5),[]),__metadata(a9_0x5a4f03(0xa8),Promise)],ValidatorService[a9_0x5a4f03(0xc0)],a9_0x5a4f03(0xc4),null),exports[a9_0x5a4f03(0x92)]=ValidatorService=__decorate([(0x0,core_1[a9_0x5a4f03(0x8f)])(a9_0x5a4f03(0xca)),(0x0,core_1[a9_0x5a4f03(0xa4)])(core_1[a9_0x5a4f03(0x88)]['Singleton'])],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.52",
|
|
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.52",
|
|
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.5.4"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "67cff8b9f2b148a93d14bded6b10cfc236bcf748"
|
|
30
30
|
}
|