@anncic-api/validator 2.1.7 → 2.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Rule.js +1 -1
- package/dist/decorator/Validator.js +1 -1
- package/dist/exception/ValidatorError.js +1 -1
- package/dist/helper/dtoHelper.js +1 -1
- package/dist/index.js +1 -1
- package/dist/interface.js +1 -1
- package/dist/service/ValidatorService.js +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a0_0x7114(_0x3cf008,_0x3bcadc){const _0x33aced=a0_0x553f();return a0_0x7114=function(_0x48e433,_0x33f4a0){_0x48e433=_0x48e433-0x10f;let _0x553fff=_0x33aced[_0x48e433];return _0x553fff;},a0_0x7114(_0x3cf008,_0x3bcadc);}const a0_0x1ca01e=a0_0x7114;(function(_0x35cdaf,_0x66c591){const _0x2ab25c=a0_0x7114,_0x34a46c=_0x35cdaf();while(!![]){try{const _0x44356d=-parseInt(_0x2ab25c(0x122))/0x1+-parseInt(_0x2ab25c(0x11c))/0x2*(parseInt(_0x2ab25c(0x123))/0x3)+-parseInt(_0x2ab25c(0x116))/0x4*(-parseInt(_0x2ab25c(0x113))/0x5)+parseInt(_0x2ab25c(0x111))/0x6*(-parseInt(_0x2ab25c(0x115))/0x7)+parseInt(_0x2ab25c(0x114))/0x8*(-parseInt(_0x2ab25c(0x117))/0x9)+-parseInt(_0x2ab25c(0x11b))/0xa*(-parseInt(_0x2ab25c(0x11d))/0xb)+-parseInt(_0x2ab25c(0x110))/0xc*(-parseInt(_0x2ab25c(0x112))/0xd);if(_0x44356d===_0x66c591)break;else _0x34a46c['push'](_0x34a46c['shift']());}catch(_0x1bd68a){_0x34a46c['push'](_0x34a46c['shift']());}}}(a0_0x553f,0xaf984));const a0_0x33f4a0=(function(){let _0x584103=!![];return function(_0x4ae09c,_0x30c6fb){const _0x2f543d=_0x584103?function(){if(_0x30c6fb){const _0x4830b4=_0x30c6fb['apply'](_0x4ae09c,arguments);return _0x30c6fb=null,_0x4830b4;}}:function(){};return _0x584103=![],_0x2f543d;};}()),a0_0x48e433=a0_0x33f4a0(this,function(){const _0x196f48=a0_0x7114;return a0_0x48e433[_0x196f48(0x118)]()[_0x196f48(0x11f)](_0x196f48(0x119))[_0x196f48(0x118)]()['constructor'](a0_0x48e433)['search'](_0x196f48(0x119));});a0_0x48e433();'use strict';function a0_0x553f(){const _0xe63ead=['11CWKTqA','../exception/ValidatorError','search','default','ValidatorError','1228155vHeMMT','488697ZXnlCs','../../locales/zh_CN.json','19576812XlbdaA','18QanCvm','13epHgss','1246265wneyEW','5312aRCeFf','1813973ncimMV','20ksFwqs','5679cczDWj','toString','(((.+)+)+)+$','string','5919240SKCTVU','4PzKefb'];a0_0x553f=function(){return _0xe63ead;};return a0_0x553f();}Object['defineProperty'](exports,'__esModule',{'value':!![]});const ValidatorError_1=require(a0_0x1ca01e(0x11e));exports[a0_0x1ca01e(0x120)]={'validator':{'errorStatus':ValidatorError_1[a0_0x1ca01e(0x121)]['PARAMS'],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':a0_0x1ca01e(0x11a)}},'i18n':{'localeTable':{'en_US':{'validator':require('../../locales/en_US.json')},'zh_CN':{'validator':require(a0_0x1ca01e(0x10f))}}}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a1_0x5755(){const _0x2220b0=['@midwayjs/i18n','validator','getOwnPropertyDescriptor','__metadata','onReady','919976fEOEXJ','ValidatorService','67722PVeGCf','target','search','param','REQUEST_OBJ_CTX_KEY','request','prototype','splice','getMethodParamTypes','method','./service/ValidatorService','CustomConfiguration','length','336540hNTzzI','registerMethodHandler','@midwayjs/core','metadata','propertyName','decorate','getAttr','10226531XPsDRb','params','apply','1392705JglSAW','MidwayDecoratorService','req','bound\x20dispatch','52ghbFyc','undefined','VALIDATOR_KEY','decorator','assign','methodName','anncic-api:validator','I18N_ATTR_KEY','locale','toString','design:type','Configuration','Inject','methodArgs','defineProperty','450NesFVp','./interface','body','name','function','args','4098352ruOGIR','(((.+)+)+)+$','object','res','7844680GdHjnS'];a1_0x5755=function(){return _0x2220b0;};return a1_0x5755();}const a1_0x3bbe24=a1_0x4c40;(function(_0x2e55e7,_0x401b71){const _0x31977e=a1_0x4c40,_0x402fd1=_0x2e55e7();while(!![]){try{const _0x17d937=-parseInt(_0x31977e(0xa3))/0x1+parseInt(_0x31977e(0xa7))/0x2*(parseInt(_0x31977e(0x8c))/0x3)+-parseInt(_0x31977e(0x80))/0x4+-parseInt(_0x31977e(0x84))/0x5+parseInt(_0x31977e(0x99))/0x6+-parseInt(_0x31977e(0xa0))/0x7+parseInt(_0x31977e(0x8a))/0x8*(parseInt(_0x31977e(0xb6))/0x9);if(_0x17d937===_0x401b71)break;else _0x402fd1['push'](_0x402fd1['shift']());}catch(_0x3ca71f){_0x402fd1['push'](_0x402fd1['shift']());}}}(a1_0x5755,0xe6e26));const a1_0x177a52=(function(){let _0xb093bc=!![];return function(_0x82fdd3,_0x34c7d3){const _0x441eae=_0xb093bc?function(){const _0x3d795e=a1_0x4c40;if(_0x34c7d3){const _0x3c95fa=_0x34c7d3[_0x3d795e(0xa2)](_0x82fdd3,arguments);return _0x34c7d3=null,_0x3c95fa;}}:function(){};return _0xb093bc=![],_0x441eae;};}()),a1_0x4d222a=a1_0x177a52(this,function(){const _0x131c14=a1_0x4c40;return a1_0x4d222a[_0x131c14(0xb0)]()[_0x131c14(0x8e)]('(((.+)+)+)+$')[_0x131c14(0xb0)]()['constructor'](a1_0x4d222a)['search'](_0x131c14(0x81));});a1_0x4d222a();'use strict';function a1_0x4c40(_0xf86bc6,_0x58a1ae){const _0x2083f7=a1_0x5755();return a1_0x4c40=function(_0x4d222a,_0x177a52){_0x4d222a=_0x4d222a-0x7e;let _0x575586=_0x2083f7[_0x4d222a];return _0x575586;},a1_0x4c40(_0xf86bc6,_0x58a1ae);}var __decorate=this&&this['__decorate']||function(_0xac6e40,_0x183c51,_0x384301,_0x59f0e8){const _0x46cca5=a1_0x4c40;var _0x12e26e=arguments[_0x46cca5(0x98)],_0x5a0b0b=_0x12e26e<0x3?_0x183c51:_0x59f0e8===null?_0x59f0e8=Object[_0x46cca5(0x87)](_0x183c51,_0x384301):_0x59f0e8,_0x3f76a9;if(typeof Reflect===_0x46cca5(0x82)&&typeof Reflect['decorate']===_0x46cca5(0x7e))_0x5a0b0b=Reflect[_0x46cca5(0x9e)](_0xac6e40,_0x183c51,_0x384301,_0x59f0e8);else{for(var _0x4fb10f=_0xac6e40[_0x46cca5(0x98)]-0x1;_0x4fb10f>=0x0;_0x4fb10f--)if(_0x3f76a9=_0xac6e40[_0x4fb10f])_0x5a0b0b=(_0x12e26e<0x3?_0x3f76a9(_0x5a0b0b):_0x12e26e>0x3?_0x3f76a9(_0x183c51,_0x384301,_0x5a0b0b):_0x3f76a9(_0x183c51,_0x384301))||_0x5a0b0b;}return _0x12e26e>0x3&&_0x5a0b0b&&Object['defineProperty'](_0x183c51,_0x384301,_0x5a0b0b),_0x5a0b0b;},__metadata=this&&this[a1_0x3bbe24(0x88)]||function(_0xf496e5,_0x169874){const _0x4b713c=a1_0x3bbe24;if(typeof Reflect===_0x4b713c(0x82)&&typeof Reflect[_0x4b713c(0x9c)]==='function')return Reflect[_0x4b713c(0x9c)](_0xf496e5,_0x169874);};Object[a1_0x3bbe24(0xb5)](exports,'__esModule',{'value':!![]}),exports[a1_0x3bbe24(0x97)]=void 0x0;const i18n_1=require('@midwayjs/i18n'),core_1=require(a1_0x3bbe24(0x9b)),core_2=require(a1_0x3bbe24(0x9b)),interface_1=require(a1_0x3bbe24(0xb7)),ValidatorService_1=require(a1_0x3bbe24(0x96)),i18n=require(a1_0x3bbe24(0x85)),anncic=require('@anncic-api/core'),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{async[a1_0x3bbe24(0x89)](){const _0x496ec2=a1_0x3bbe24;this[_0x496ec2(0xaa)][_0x496ec2(0x9a)](interface_1[_0x496ec2(0xa9)],_0x2d8412=>{const _0x177600=_0x496ec2,_0x52654c=_0x2d8412[_0x177600(0x9c)],_0x35b521=(0x0,core_2[_0x177600(0x94)])(_0x2d8412[_0x177600(0x8d)],_0x2d8412[_0x177600(0x9d)]);return{'before':_0x2246c5=>{const _0x3f262b=_0x177600;var _0x1de756,_0x20aa90,_0x2c3ca7,_0x44b37c,_0x2044d0,_0x5d3013,_0x2d5615,_0x11a7c1,_0x1e2260,_0x409f46,_0x55421e,_0x4d8618,_0x231415;const _0x3141bf=_0x2246c5[_0x3f262b(0x8d)][core_1[_0x3f262b(0x90)]],_0x376b45=Object[_0x3f262b(0xab)]({},((_0x1de756=_0x3141bf===null||_0x3141bf===void 0x0?void 0x0:_0x3141bf[_0x3f262b(0x91)])===null||_0x1de756===void 0x0?void 0x0:_0x1de756['query'])||{},((_0x20aa90=_0x3141bf===null||_0x3141bf===void 0x0?void 0x0:_0x3141bf[_0x3f262b(0x91)])===null||_0x20aa90===void 0x0?void 0x0:_0x20aa90[_0x3f262b(0xb8)])||{}),_0x489fdd=((0x0,core_2['getClassMetadata'])(interface_1[_0x3f262b(0xa9)],_0x2246c5[_0x3f262b(0x8d)])||[])['find'](_0x153e5=>_0x153e5[_0x3f262b(0x95)]==_0x2246c5[_0x3f262b(0xac)]);!(_0x52654c===null||_0x52654c===void 0x0?void 0x0:_0x52654c[_0x3f262b(0xaf)])&&_0x3141bf&&_0x3141bf['getAttr']&&(_0x52654c[_0x3f262b(0xaf)]=_0x3141bf[_0x3f262b(0x9f)](i18n_1[_0x3f262b(0xae)]));for(let _0x40e6c6=0x0;_0x40e6c6<_0x35b521[_0x3f262b(0x98)];_0x40e6c6++){const _0x5aa64c=_0x35b521[_0x40e6c6],_0x52d334=this[_0x3f262b(0x8b)]['getSchema'](_0x5aa64c);if(_0x52d334){if(typeof _0x2246c5['args'][_0x40e6c6]==_0x3f262b(0xa8)||((_0x2c3ca7=_0x2246c5[_0x3f262b(0x7f)][_0x40e6c6])===null||_0x2c3ca7===void 0x0?void 0x0:_0x2c3ca7['request'])&&((_0x44b37c=_0x2246c5[_0x3f262b(0x7f)][_0x40e6c6])===null||_0x44b37c===void 0x0?void 0x0:_0x44b37c[_0x3f262b(0x83)])&&((_0x2044d0=_0x2246c5[_0x3f262b(0x7f)][_0x40e6c6])===null||_0x2044d0===void 0x0?void 0x0:_0x2044d0[_0x3f262b(0xa5)]))_0x2246c5['args'][_0x40e6c6]=_0x376b45;else((_0x5d3013=_0x2246c5['args'][_0x40e6c6])===null||_0x5d3013===void 0x0?void 0x0:_0x5d3013[_0x3f262b(0xb9)])==_0x3f262b(0xa6)&&_0x2246c5[_0x3f262b(0x7f)][_0x3f262b(0x93)](_0x40e6c6,0x0,_0x376b45);const _0x71fd90=this[_0x3f262b(0x8b)][_0x3f262b(0x86)](_0x52d334,_0x2246c5[_0x3f262b(0x7f)][_0x40e6c6],_0x52654c);_0x71fd90&&(_0x2246c5[_0x3f262b(0x7f)][_0x40e6c6]=_0x71fd90);}else{if((_0x489fdd===null||_0x489fdd===void 0x0?void 0x0:_0x489fdd[_0x3f262b(0xb4)][_0x40e6c6])&&((_0x2d5615=_0x2246c5[_0x3f262b(0x7f)][_0x40e6c6])===null||_0x2d5615===void 0x0?void 0x0:_0x2d5615[_0x3f262b(0xa1)])&&typeof _0x2246c5['args'][_0x40e6c6][_0x3f262b(0x8f)]=='function'&&((_0x11a7c1=_0x3141bf===null||_0x3141bf===void 0x0?void 0x0:_0x3141bf[_0x3f262b(0xa1)])===null||_0x11a7c1===void 0x0?void 0x0:_0x11a7c1[_0x489fdd[_0x3f262b(0xb4)][_0x40e6c6]]))_0x2246c5[_0x3f262b(0x7f)][_0x40e6c6]=_0x5aa64c((_0x1e2260=_0x3141bf===null||_0x3141bf===void 0x0?void 0x0:_0x3141bf[_0x3f262b(0xa1)])===null||_0x1e2260===void 0x0?void 0x0:_0x1e2260[_0x489fdd[_0x3f262b(0xb4)][_0x40e6c6]]);else(_0x489fdd===null||_0x489fdd===void 0x0?void 0x0:_0x489fdd[_0x3f262b(0xb4)][_0x40e6c6])&&((_0x55421e=(_0x409f46=_0x2246c5[_0x3f262b(0x7f)][_0x40e6c6])===null||_0x409f46===void 0x0?void 0x0:_0x409f46[_0x3f262b(0xa1)])===null||_0x55421e===void 0x0?void 0x0:_0x55421e[_0x489fdd[_0x3f262b(0xb4)][_0x40e6c6]])&&(_0x2246c5[_0x3f262b(0x7f)][_0x40e6c6]=(_0x231415=(_0x4d8618=_0x2246c5[_0x3f262b(0x7f)][_0x40e6c6])===null||_0x4d8618===void 0x0?void 0x0:_0x4d8618['params'])===null||_0x231415===void 0x0?void 0x0:_0x231415[_0x489fdd[_0x3f262b(0xb4)][_0x40e6c6]]);}}},'afterThrow':(_0x16d8da,_0x3e718c)=>{throw _0x3e718c;}};});}};__decorate([(0x0,core_2[a1_0x3bbe24(0xb3)])(),__metadata(a1_0x3bbe24(0xb1),core_1[a1_0x3bbe24(0xa4)])],CustomConfiguration[a1_0x3bbe24(0x92)],a1_0x3bbe24(0xaa),void 0x0),__decorate([(0x0,core_2['Inject'])(),__metadata('design:type',ValidatorService_1[a1_0x3bbe24(0x8b)])],CustomConfiguration[a1_0x3bbe24(0x92)],a1_0x3bbe24(0x8b),void 0x0),CustomConfiguration=__decorate([(0x0,core_2[a1_0x3bbe24(0xb2)])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':a1_0x3bbe24(0xad),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
package/dist/decorator/Rule.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0x31b015=a2_0x4157;(function(_0x286fc0,_0x3209d1){const _0x1bb944=a2_0x4157,_0x2857ad=_0x286fc0();while(!![]){try{const _0x367202=-parseInt(_0x1bb944(0x9d))/0x1*(-parseInt(_0x1bb944(0xa3))/0x2)+parseInt(_0x1bb944(0xa8))/0x3*(-parseInt(_0x1bb944(0xaa))/0x4)+-parseInt(_0x1bb944(0x90))/0x5+-parseInt(_0x1bb944(0x9e))/0x6+-parseInt(_0x1bb944(0x96))/0x7*(-parseInt(_0x1bb944(0x94))/0x8)+-parseInt(_0x1bb944(0x99))/0x9*(parseInt(_0x1bb944(0x91))/0xa)+parseInt(_0x1bb944(0xa6))/0xb;if(_0x367202===_0x3209d1)break;else _0x2857ad['push'](_0x2857ad['shift']());}catch(_0x3892b8){_0x2857ad['push'](_0x2857ad['shift']());}}}(a2_0x1442,0x9a439));function a2_0x4157(_0x350dea,_0xd8a871){const _0x5c518e=a2_0x1442();return a2_0x4157=function(_0x2cad4c,_0x4f503e){_0x2cad4c=_0x2cad4c-0x90;let _0x144266=_0x5c518e[_0x2cad4c];return _0x144266;},a2_0x4157(_0x350dea,_0xd8a871);}const a2_0x4f503e=(function(){let _0x2c1612=!![];return function(_0x270bc1,_0x2c2c6d){const _0x2906ae=_0x2c1612?function(){if(_0x2c2c6d){const _0x486922=_0x2c2c6d['apply'](_0x270bc1,arguments);return _0x2c2c6d=null,_0x486922;}}:function(){};return _0x2c1612=![],_0x2906ae;};}()),a2_0x2cad4c=a2_0x4f503e(this,function(){const _0x614fcd=a2_0x4157;return a2_0x2cad4c[_0x614fcd(0xad)]()[_0x614fcd(0x9a)](_0x614fcd(0x95))['toString']()['constructor'](a2_0x2cad4c)['search'](_0x614fcd(0x95));});a2_0x2cad4c();'use strict';Object[a2_0x31b015(0x9c)](exports,'__esModule',{'value':!![]}),exports[a2_0x31b015(0x9b)]=exports[a2_0x31b015(0x97)]=void 0x0;const joi=require(a2_0x31b015(0xa2)),date_1=require('@joi/date'),core_1=require('@midwayjs/core'),interface_1=require(a2_0x31b015(0xae));function a2_0x1442(){const _0x1e1339=['2qJotAX','name','items','20232355dWouNm','Array','511491ddyXUm','label','4GeUfKH','array','RULES_KEY','toString','../interface','isSchema','function','map','object','getPropertyType','saveClassMetadata','826050cwUjCh','10esPyHA','attachClassMetadata','description','256yaLYsj','(((.+)+)+)+$','249473hdnZZq','RuleType','keys','8159868jMwHRf','search','Rule','defineProperty','145777nzgBNW','7507836eWiZLz','getClassMetadata','meta','extend','joi'];a2_0x1442=function(){return _0x1e1339;};return a2_0x1442();}exports[a2_0x31b015(0x97)]=joi[a2_0x31b015(0xa1)](date_1['default']);function Rule(_0x477ef9,_0x260fe6,_0x1ef13b=''){return(_0x327aeb,_0x13ab85)=>{const _0x55a364=a2_0x4157;var _0xc13d31;if(_0x13ab85)!joi[_0x55a364(0xaf)](_0x260fe6)&&(_0x260fe6===null||_0x260fe6===void 0x0?void 0x0:_0x260fe6[_0x55a364(0xa4)])&&(_0x260fe6=joi[_0x55a364(0xb2)]((0x0,core_1[_0x55a364(0x9f)])(interface_1[_0x55a364(0xac)],_0x260fe6))[_0x55a364(0xa0)]({'id':_0x260fe6[_0x55a364(0xa4)]}),(0x0,core_1[_0x55a364(0xb3)])(_0x327aeb,_0x13ab85)['name']===_0x55a364(0xa7)&&(_0x260fe6=joi[_0x55a364(0xab)]()[_0x55a364(0xa5)](_0x260fe6))),joi[_0x55a364(0xaf)](_0x260fe6)&&(_0x477ef9&&typeof(_0x260fe6===null||_0x260fe6===void 0x0?void 0x0:_0x260fe6[_0x55a364(0xa9)])==_0x55a364(0xb0)&&(_0x260fe6=_0x260fe6['label'](_0x477ef9)),_0x1ef13b&&typeof(_0x260fe6===null||_0x260fe6===void 0x0?void 0x0:_0x260fe6[_0x55a364(0x93)])=='function'&&(_0x260fe6=_0x260fe6[_0x55a364(0x93)](_0x1ef13b)),(0x0,core_1[_0x55a364(0x92)])(interface_1[_0x55a364(0xac)],_0x260fe6,_0x327aeb,_0x13ab85));else{const _0x5311e1=(0x0,core_1['getClassMetadata'])(interface_1['RULES_KEY'],_0x260fe6);if(_0x5311e1){let _0x30d7c4=(_0xc13d31=(0x0,core_1['getClassMetadata'])(interface_1['RULES_KEY'],_0x327aeb))!==null&&_0xc13d31!==void 0x0?_0xc13d31:{};Object[_0x55a364(0x98)](_0x5311e1)[_0x55a364(0xb1)](_0x1bd9ae=>{!_0x30d7c4[_0x1bd9ae]&&(_0x30d7c4[_0x1bd9ae]=_0x5311e1[_0x1bd9ae]);}),(0x0,core_1[_0x55a364(0xb4)])(interface_1[_0x55a364(0xac)],_0x30d7c4,_0x327aeb);}}};}exports[a2_0x31b015(0x9b)]=Rule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x3b3656=a3_0x29e2;(function(_0x5a62e2,_0x9977ff){const _0x29fd36=a3_0x29e2,_0x15bc1a=_0x5a62e2();while(!![]){try{const _0x334e63=-parseInt(_0x29fd36(0xea))/0x1+parseInt(_0x29fd36(0xda))/0x2+-parseInt(_0x29fd36(0xe1))/0x3+parseInt(_0x29fd36(0xe3))/0x4+-parseInt(_0x29fd36(0xdb))/0x5+-parseInt(_0x29fd36(0xf3))/0x6*(-parseInt(_0x29fd36(0xef))/0x7)+parseInt(_0x29fd36(0xdd))/0x8*(parseInt(_0x29fd36(0xd9))/0x9);if(_0x334e63===_0x9977ff)break;else _0x15bc1a['push'](_0x15bc1a['shift']());}catch(_0x14803c){_0x15bc1a['push'](_0x15bc1a['shift']());}}}(a3_0xc9a6,0x5e899));const a3_0x58a1c1=(function(){let _0x3ffd74=!![];return function(_0x24490f,_0x3cdcd2){const _0x1c01fa=_0x3ffd74?function(){const _0xf79c58=a3_0x29e2;if(_0x3cdcd2){const _0x342d06=_0x3cdcd2[_0xf79c58(0xe9)](_0x24490f,arguments);return _0x3cdcd2=null,_0x342d06;}}:function(){};return _0x3ffd74=![],_0x1c01fa;};}()),a3_0x4493e1=a3_0x58a1c1(this,function(){const _0x1619f1=a3_0x29e2;return a3_0x4493e1['toString']()[_0x1619f1(0xf1)]('(((.+)+)+)+$')['toString']()['constructor'](a3_0x4493e1)[_0x1619f1(0xf1)](_0x1619f1(0xe0));});a3_0x4493e1();'use strict';function a3_0xc9a6(){const _0xa3a097=['141651bQKUXJ','1280208BkSpJQ','3832575wNOlcA','Validator','32lTRRyq','slice','function','(((.+)+)+)+$','1715352aFMopd','indexOf','1498660cXCTbB','match','prototype','../interface','__esModule','defineProperty','apply','23625NZvMVp','getFuncArgs','attachClassMetadata','@midwayjs/core','replace','182qosFdc','VALIDATOR_KEY','search','toString','154944LKaPGf'];a3_0xc9a6=function(){return _0xa3a097;};return a3_0xc9a6();}Object[a3_0x3b3656(0xe8)](exports,a3_0x3b3656(0xe7),{'value':!![]}),exports[a3_0x3b3656(0xeb)]=exports[a3_0x3b3656(0xdc)]=void 0x0;function a3_0x29e2(_0x17b8c8,_0x5afc4a){const _0x355892=a3_0xc9a6();return a3_0x29e2=function(_0x4493e1,_0x58a1c1){_0x4493e1=_0x4493e1-0xd9;let _0xc9a6f6=_0x355892[_0x4493e1];return _0xc9a6f6;},a3_0x29e2(_0x17b8c8,_0x5afc4a);}const core_1=require(a3_0x3b3656(0xed)),interface_1=require(a3_0x3b3656(0xe6));function Validator(_0x403be5={}){return(_0x14bb60,_0xd8c399,_0x1215c0)=>{const _0x50ab51=a3_0x29e2,_0x365e74=getFuncArgs(_0x14bb60[_0xd8c399]);(0x0,core_1[_0x50ab51(0xec)])(interface_1['VALIDATOR_KEY'],{'method':_0xd8c399,'methodArgs':_0x365e74},_0x14bb60),(0x0,core_1['createCustomMethodDecorator'])(interface_1[_0x50ab51(0xf0)],_0x403be5)(_0x14bb60,_0xd8c399,_0x1215c0);};}exports[a3_0x3b3656(0xdc)]=Validator;function getFuncArgs(_0x8ed4ff){const _0x34c756=a3_0x3b3656;if(typeof _0x8ed4ff==_0x34c756(0xdf)){const _0x423a95=/=>.*$/mg,_0x26b717=/=[^,)]+/mg,_0x1638ec=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x2125be=(_0x8ed4ff[_0x34c756(0xe5)]?_0x8ed4ff[_0x34c756(0xe5)]['constructor'][_0x34c756(0xf2)]():_0x8ed4ff[_0x34c756(0xf2)]())[_0x34c756(0xee)](_0x1638ec,'')[_0x34c756(0xee)](_0x423a95,'')[_0x34c756(0xee)](_0x26b717,''),_0x131de4=_0x2125be[_0x34c756(0xde)](_0x2125be[_0x34c756(0xe2)]('(')+0x1,_0x2125be[_0x34c756(0xe2)](')'))[_0x34c756(0xe4)](/([^\s,]+)/g)||[];return _0x131de4;}}exports[a3_0x3b3656(0xeb)]=getFuncArgs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a4_0xf0fa0c=a4_0x38cf;(function(_0x1aaad0,_0xde7b74){var _0x4fb1e5=a4_0x38cf,_0xc09ecb=_0x1aaad0();while(!![]){try{var _0x300f1d=-parseInt(_0x4fb1e5(0x116))/0x1*(-parseInt(_0x4fb1e5(0x109))/0x2)+-parseInt(_0x4fb1e5(0x108))/0x3+-parseInt(_0x4fb1e5(0x110))/0x4*(parseInt(_0x4fb1e5(0xff))/0x5)+-parseInt(_0x4fb1e5(0x10e))/0x6+-parseInt(_0x4fb1e5(0xfe))/0x7*(-parseInt(_0x4fb1e5(0x10c))/0x8)+-parseInt(_0x4fb1e5(0x113))/0x9*(-parseInt(_0x4fb1e5(0x102))/0xa)+-parseInt(_0x4fb1e5(0xfd))/0xb;if(_0x300f1d===_0xde7b74)break;else _0xc09ecb['push'](_0xc09ecb['shift']());}catch(_0x573811){_0xc09ecb['push'](_0xc09ecb['shift']());}}}(a4_0x5b7f,0x60970));function a4_0x5b7f(){var _0x561e08=['381438kzUimg','defineProperty','object','27iOVGtg','metadata','length','constructor','AnnErrorMsg','1782220WeXWQI','647227KgvMBE','15sCvYQs','参数验证失败','__decorate','150WusJhe','NOFIND_SCHEMA','PARAMS','apply','ValidatorError','decorate','239316YXDGNW','50170XmyPNg','search','function','40ujwEiB','(((.+)+)+)+$','2187720vOOHpj','@anncic-api/core','1031048qyINiT','getOwnPropertyDescriptor','toString'];a4_0x5b7f=function(){return _0x561e08;};return a4_0x5b7f();}var a4_0x2414a4=(function(){var _0x212014=!![];return function(_0x476227,_0x7fc55d){var _0x52cadd=_0x212014?function(){var _0x46ab8a=a4_0x38cf;if(_0x7fc55d){var _0x292d29=_0x7fc55d[_0x46ab8a(0x105)](_0x476227,arguments);return _0x7fc55d=null,_0x292d29;}}:function(){};return _0x212014=![],_0x52cadd;};}()),a4_0x459244=a4_0x2414a4(this,function(){var _0xb73c70=a4_0x38cf;return a4_0x459244[_0xb73c70(0x112)]()[_0xb73c70(0x10a)](_0xb73c70(0x10d))[_0xb73c70(0x112)]()[_0xb73c70(0x119)](a4_0x459244)[_0xb73c70(0x10a)]('(((.+)+)+)+$');});a4_0x459244();'use strict';var __decorate=this&&this[a4_0xf0fa0c(0x101)]||function(_0x12739a,_0x1449f1,_0x1ce7f1,_0x1edd0c){var _0x1229a0=a4_0xf0fa0c,_0x3326a2=arguments[_0x1229a0(0x118)],_0x33d820=_0x3326a2<0x3?_0x1449f1:_0x1edd0c===null?_0x1edd0c=Object[_0x1229a0(0x111)](_0x1449f1,_0x1ce7f1):_0x1edd0c,_0x1f17e4;if(typeof Reflect===_0x1229a0(0x115)&&typeof Reflect['decorate']===_0x1229a0(0x10b))_0x33d820=Reflect[_0x1229a0(0x107)](_0x12739a,_0x1449f1,_0x1ce7f1,_0x1edd0c);else{for(var _0x229f7e=_0x12739a['length']-0x1;_0x229f7e>=0x0;_0x229f7e--)if(_0x1f17e4=_0x12739a[_0x229f7e])_0x33d820=(_0x3326a2<0x3?_0x1f17e4(_0x33d820):_0x3326a2>0x3?_0x1f17e4(_0x1449f1,_0x1ce7f1,_0x33d820):_0x1f17e4(_0x1449f1,_0x1ce7f1))||_0x33d820;}return _0x3326a2>0x3&&_0x33d820&&Object[_0x1229a0(0x114)](_0x1449f1,_0x1ce7f1,_0x33d820),_0x33d820;},__metadata=this&&this['__metadata']||function(_0xd92d8a,_0x406c0c){var _0x40bd40=a4_0xf0fa0c;if(typeof Reflect==='object'&&typeof Reflect[_0x40bd40(0x117)]===_0x40bd40(0x10b))return Reflect[_0x40bd40(0x117)](_0xd92d8a,_0x406c0c);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['ValidatorError']=void 0x0;const core_1=require(a4_0xf0fa0c(0x10f));class ValidatorError extends AnnError{}function a4_0x38cf(_0x3ff67a,_0x998f66){var _0x9e3ce0=a4_0x5b7f();return a4_0x38cf=function(_0x459244,_0x2414a4){_0x459244=_0x459244-0xfc;var _0x5b7ffb=_0x9e3ce0[_0x459244];return _0x5b7ffb;},a4_0x38cf(_0x3ff67a,_0x998f66);}ValidatorError[a4_0xf0fa0c(0x104)]=0x18c1e,ValidatorError[a4_0xf0fa0c(0x103)]=0x18c1c,__decorate([(0x0,core_1[a4_0xf0fa0c(0xfc)])('参数验证失败'),__metadata('design:type',Object)],ValidatorError,'PARAMS',void 0x0),__decorate([(0x0,core_1[a4_0xf0fa0c(0xfc)])(a4_0xf0fa0c(0x100)),__metadata('design:type',Object)],ValidatorError,a4_0xf0fa0c(0x103),void 0x0),exports[a4_0xf0fa0c(0x106)]=ValidatorError;
|
package/dist/helper/dtoHelper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x445626=a5_0x1a14;(function(_0x140922,_0xd4591b){const _0x2dc152=a5_0x1a14,_0x4159f1=_0x140922();while(!![]){try{const _0xef8fb7=parseInt(_0x2dc152(0xf5))/0x1*(parseInt(_0x2dc152(0xfc))/0x2)+-parseInt(_0x2dc152(0xf9))/0x3+parseInt(_0x2dc152(0xfd))/0x4+parseInt(_0x2dc152(0xf2))/0x5*(-parseInt(_0x2dc152(0xed))/0x6)+-parseInt(_0x2dc152(0x101))/0x7+parseInt(_0x2dc152(0xec))/0x8*(-parseInt(_0x2dc152(0x100))/0x9)+parseInt(_0x2dc152(0xf8))/0xa*(parseInt(_0x2dc152(0xf4))/0xb);if(_0xef8fb7===_0xd4591b)break;else _0x4159f1['push'](_0x4159f1['shift']());}catch(_0x58f394){_0x4159f1['push'](_0x4159f1['shift']());}}}(a5_0x96e7,0x80f39));function a5_0x96e7(){const _0x181f7e=['1PBcLQg','prototype','apply','8590Fciggi','2646924sdrxhe','assign','getClassExtendedMetadata','1104446oivVao','3760904WAgLrX','saveClassMetadata','../interface','379197vIDxos','4877971HJtcbl','OmitDto','toString','search','136iQRPLy','6564HHNsbO','PickDto','__esModule','RULES_KEY','(((.+)+)+)+$','4155RKsOxT','defineProperty','28688ccLyXM'];a5_0x96e7=function(){return _0x181f7e;};return a5_0x96e7();}const a5_0x3ffc63=(function(){let _0x15e1a4=!![];return function(_0x2c7071,_0x70db25){const _0x6a07d=_0x15e1a4?function(){const _0x579e16=a5_0x1a14;if(_0x70db25){const _0x192620=_0x70db25[_0x579e16(0xf7)](_0x2c7071,arguments);return _0x70db25=null,_0x192620;}}:function(){};return _0x15e1a4=![],_0x6a07d;};}()),a5_0x663854=a5_0x3ffc63(this,function(){const _0x5bd6d0=a5_0x1a14;return a5_0x663854[_0x5bd6d0(0xea)]()['search'](_0x5bd6d0(0xf1))['toString']()['constructor'](a5_0x663854)[_0x5bd6d0(0xeb)]('(((.+)+)+)+$');});a5_0x663854();function a5_0x1a14(_0x1f9223,_0x38a9b2){const _0x406484=a5_0x96e7();return a5_0x1a14=function(_0x663854,_0x3ffc63){_0x663854=_0x663854-0xe9;let _0x96e747=_0x406484[_0x663854];return _0x96e747;},a5_0x1a14(_0x1f9223,_0x38a9b2);}'use strict';Object[a5_0x445626(0xf3)](exports,a5_0x445626(0xef),{'value':!![]}),exports[a5_0x445626(0xe9)]=exports[a5_0x445626(0xee)]=void 0x0;const core_1=require('@midwayjs/core'),interface_1=require(a5_0x445626(0xff));function PickDto(_0x3395c2,_0x35673b){const _0x4618f4=a5_0x445626,_0x12d846=function(){};_0x12d846[_0x4618f4(0xf6)]=_0x3395c2['prototype'];const _0x43373e=(0x0,core_1[_0x4618f4(0xfb)])(interface_1[_0x4618f4(0xf0)],_0x3395c2),_0x5454f4={};for(const _0x3bbce2 of _0x35673b){_0x43373e[_0x3bbce2]&&(_0x5454f4[_0x3bbce2]=_0x43373e[_0x3bbce2]);}return(0x0,core_1[_0x4618f4(0xfe)])(interface_1[_0x4618f4(0xf0)],_0x5454f4,_0x12d846),_0x12d846;}exports[a5_0x445626(0xee)]=PickDto;function OmitDto(_0x4dc188,_0x5accd4){const _0x48f030=a5_0x445626,_0x1af801=function(){};_0x1af801['prototype']=_0x4dc188[_0x48f030(0xf6)];const _0x51b577=(0x0,core_1[_0x48f030(0xfb)])(interface_1['RULES_KEY'],_0x4dc188),_0x2fda95=Object[_0x48f030(0xfa)]({},_0x51b577);for(const _0x4ed2ae of _0x5accd4){delete _0x2fda95[_0x4ed2ae];}return(0x0,core_1[_0x48f030(0xfe)])(interface_1[_0x48f030(0xf0)],_0x2fda95,_0x1af801),_0x1af801;}exports['OmitDto']=OmitDto;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a6_0x2bd1b7=a6_0x159b;(function(_0xb33021,_0x491f95){var _0x1b06d9=a6_0x159b,_0x43713e=_0xb33021();while(!![]){try{var _0x367c84=-parseInt(_0x1b06d9(0xfe))/0x1*(-parseInt(_0x1b06d9(0xf3))/0x2)+-parseInt(_0x1b06d9(0xef))/0x3*(parseInt(_0x1b06d9(0xed))/0x4)+parseInt(_0x1b06d9(0x102))/0x5*(-parseInt(_0x1b06d9(0x100))/0x6)+-parseInt(_0x1b06d9(0xe4))/0x7+parseInt(_0x1b06d9(0xe9))/0x8+-parseInt(_0x1b06d9(0xfa))/0x9+parseInt(_0x1b06d9(0xf2))/0xa;if(_0x367c84===_0x491f95)break;else _0x43713e['push'](_0x43713e['shift']());}catch(_0x45d962){_0x43713e['push'](_0x43713e['shift']());}}}(a6_0x2875,0x77def));function a6_0x2875(){var _0x34ec4d=['default','./helper/dtoHelper','Rule','Configuration','911664bejrjO','writable','prototype','./exception/ValidatorError','1492PDWpem','toString','1371mdfnuf','CustomConfiguration','Validator','16479570ntjaWu','146548XxcpQG','ValidatorError','__esModule','defineProperty','./decorator/Rule','ValidatorService','constructor','2212623Qtkrue','get','./decorator/Validator','hasOwnProperty','8dLfPJv','RuleType','766158VyYzrV','call','25BvQKQr','create','(((.+)+)+)+$','./interface','5616401EJAmdo'];a6_0x2875=function(){return _0x34ec4d;};return a6_0x2875();}var a6_0x16437e=(function(){var _0x372840=!![];return function(_0x420b9a,_0x4ab411){var _0x33822f=_0x372840?function(){if(_0x4ab411){var _0x142140=_0x4ab411['apply'](_0x420b9a,arguments);return _0x4ab411=null,_0x142140;}}:function(){};return _0x372840=![],_0x33822f;};}()),a6_0x38c9d8=a6_0x16437e(this,function(){var _0x149864=a6_0x159b;return a6_0x38c9d8[_0x149864(0xee)]()['search'](_0x149864(0xe2))['toString']()[_0x149864(0xf9)](a6_0x38c9d8)['search'](_0x149864(0xe2));});a6_0x38c9d8();'use strict';var __createBinding=this&&this['__createBinding']||(Object[a6_0x2bd1b7(0xe1)]?function(_0x421316,_0x1e454b,_0x45eaf2,_0x1eb211){var _0x21165c=a6_0x2bd1b7;if(_0x1eb211===undefined)_0x1eb211=_0x45eaf2;var _0x2482ad=Object['getOwnPropertyDescriptor'](_0x1e454b,_0x45eaf2);(!_0x2482ad||(_0x21165c(0xfb)in _0x2482ad?!_0x1e454b[_0x21165c(0xf5)]:_0x2482ad[_0x21165c(0xea)]||_0x2482ad['configurable']))&&(_0x2482ad={'enumerable':!![],'get':function(){return _0x1e454b[_0x45eaf2];}}),Object['defineProperty'](_0x421316,_0x1eb211,_0x2482ad);}:function(_0x254dd1,_0x8cf94,_0x5837e3,_0x6f0b65){if(_0x6f0b65===undefined)_0x6f0b65=_0x5837e3;_0x254dd1[_0x6f0b65]=_0x8cf94[_0x5837e3];}),__exportStar=this&&this['__exportStar']||function(_0x5601a2,_0x5dc999){var _0x364f79=a6_0x2bd1b7;for(var _0x48864e in _0x5601a2)if(_0x48864e!==_0x364f79(0xe5)&&!Object[_0x364f79(0xeb)][_0x364f79(0xfd)][_0x364f79(0x101)](_0x5dc999,_0x48864e))__createBinding(_0x5dc999,_0x5601a2,_0x48864e);};Object[a6_0x2bd1b7(0xf6)](exports,a6_0x2bd1b7(0xf5),{'value':!![]}),exports[a6_0x2bd1b7(0xe8)]=exports[a6_0x2bd1b7(0xf8)]=exports['ValidatorError']=exports[a6_0x2bd1b7(0xff)]=exports[a6_0x2bd1b7(0xe7)]=exports[a6_0x2bd1b7(0xf1)]=void 0x0,__exportStar(require(a6_0x2bd1b7(0xe3)),exports),__exportStar(require(a6_0x2bd1b7(0xe6)),exports);var Validator_1=require(a6_0x2bd1b7(0xfc));Object[a6_0x2bd1b7(0xf6)](exports,a6_0x2bd1b7(0xf1),{'enumerable':!![],'get':function(){var _0x20eac9=a6_0x2bd1b7;return Validator_1[_0x20eac9(0xf1)];}});var Rule_1=require(a6_0x2bd1b7(0xf7));Object['defineProperty'](exports,'Rule',{'enumerable':!![],'get':function(){var _0x2596ba=a6_0x2bd1b7;return Rule_1[_0x2596ba(0xe7)];}}),Object[a6_0x2bd1b7(0xf6)](exports,'RuleType',{'enumerable':!![],'get':function(){var _0x1d06e7=a6_0x2bd1b7;return Rule_1[_0x1d06e7(0xff)];}});var ValidatorError_1=require(a6_0x2bd1b7(0xec));Object['defineProperty'](exports,'ValidatorError',{'enumerable':!![],'get':function(){var _0x4f88af=a6_0x2bd1b7;return ValidatorError_1[_0x4f88af(0xf4)];}});var ValidatorService_1=require('./service/ValidatorService');Object[a6_0x2bd1b7(0xf6)](exports,a6_0x2bd1b7(0xf8),{'enumerable':!![],'get':function(){var _0x23b08e=a6_0x2bd1b7;return ValidatorService_1[_0x23b08e(0xf8)];}});var configuration_1=require('./configuration');function a6_0x159b(_0x500fbd,_0x5eef82){var _0x398879=a6_0x2875();return a6_0x159b=function(_0x38c9d8,_0x16437e){_0x38c9d8=_0x38c9d8-0xe1;var _0x2875d4=_0x398879[_0x38c9d8];return _0x2875d4;},a6_0x159b(_0x500fbd,_0x5eef82);}Object['defineProperty'](exports,a6_0x2bd1b7(0xe8),{'enumerable':!![],'get':function(){var _0x36930e=a6_0x2bd1b7;return configuration_1[_0x36930e(0xf0)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a7_0x1ae24f=a7_0x27da;(function(_0x41b7eb,_0x55a070){var _0x54f43f=a7_0x27da,_0x642bcd=_0x41b7eb();while(!![]){try{var _0x33cd28=-parseInt(_0x54f43f(0x11a))/0x1+parseInt(_0x54f43f(0x11d))/0x2+parseInt(_0x54f43f(0x12a))/0x3*(parseInt(_0x54f43f(0x120))/0x4)+-parseInt(_0x54f43f(0x128))/0x5+parseInt(_0x54f43f(0x125))/0x6*(parseInt(_0x54f43f(0x127))/0x7)+-parseInt(_0x54f43f(0x124))/0x8+parseInt(_0x54f43f(0x11c))/0x9*(-parseInt(_0x54f43f(0x11e))/0xa);if(_0x33cd28===_0x55a070)break;else _0x642bcd['push'](_0x642bcd['shift']());}catch(_0x305ded){_0x642bcd['push'](_0x642bcd['shift']());}}}(a7_0x571e,0xe9638));var a7_0x19f00f=(function(){var _0x4a7f16=!![];return function(_0x5496c6,_0x52f66d){var _0x4ddf15=_0x4a7f16?function(){var _0x291e6f=a7_0x27da;if(_0x52f66d){var _0x43f63f=_0x52f66d[_0x291e6f(0x126)](_0x5496c6,arguments);return _0x52f66d=null,_0x43f63f;}}:function(){};return _0x4a7f16=![],_0x4ddf15;};}()),a7_0x406fed=a7_0x19f00f(this,function(){var _0x41775e=a7_0x27da;return a7_0x406fed[_0x41775e(0x123)]()[_0x41775e(0x117)]('(((.+)+)+)+$')['toString']()[_0x41775e(0x122)](a7_0x406fed)[_0x41775e(0x117)](_0x41775e(0x129));});a7_0x406fed();function a7_0x27da(_0x123acc,_0x1d3521){var _0x48cd36=a7_0x571e();return a7_0x27da=function(_0x406fed,_0x19f00f){_0x406fed=_0x406fed-0x117;var _0x571e59=_0x48cd36[_0x406fed];return _0x571e59;},a7_0x27da(_0x123acc,_0x1d3521);}'use strict';function a7_0x571e(){var _0x5aaf47=['6797672WhVODf','2094BBdikw','apply','21602bUjzjR','4246750kWCAxD','(((.+)+)+)+$','1721199SqaeNC','search','RULES_KEY','anncic-api:validator:validator','352302SrfFTN','defineProperty','115074BOisaH','2866580iaqRxR','60Tsxcit','__esModule','4DjOgjs','VALIDATOR_KEY','constructor','toString'];a7_0x571e=function(){return _0x5aaf47;};return a7_0x571e();}Object[a7_0x1ae24f(0x11b)](exports,a7_0x1ae24f(0x11f),{'value':!![]}),exports[a7_0x1ae24f(0x121)]=exports[a7_0x1ae24f(0x118)]=void 0x0,exports['RULES_KEY']='anncic-api:validator:rules',exports[a7_0x1ae24f(0x121)]=a7_0x1ae24f(0x119);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a8_0x5356(_0x5d3b73,_0x4f4b81){const _0x58c3d1=a8_0x59ef();return a8_0x5356=function(_0x2aeeb0,_0x5f5483){_0x2aeeb0=_0x2aeeb0-0x127;let _0x59efb9=_0x58c3d1[_0x2aeeb0];return _0x59efb9;},a8_0x5356(_0x5d3b73,_0x4f4b81);}const a8_0x3309cd=a8_0x5356;(function(_0x1d7cbe,_0x16c2b1){const _0x2c9c11=a8_0x5356,_0x3fb354=_0x1d7cbe();while(!![]){try{const _0x2172f7=parseInt(_0x2c9c11(0x161))/0x1*(-parseInt(_0x2c9c11(0x148))/0x2)+parseInt(_0x2c9c11(0x155))/0x3+-parseInt(_0x2c9c11(0x141))/0x4+parseInt(_0x2c9c11(0x14d))/0x5*(parseInt(_0x2c9c11(0x13e))/0x6)+parseInt(_0x2c9c11(0x13c))/0x7+parseInt(_0x2c9c11(0x13a))/0x8+-parseInt(_0x2c9c11(0x154))/0x9;if(_0x2172f7===_0x16c2b1)break;else _0x3fb354['push'](_0x3fb354['shift']());}catch(_0x219237){_0x3fb354['push'](_0x3fb354['shift']());}}}(a8_0x59ef,0xb5fc9));const a8_0x5f5483=(function(){let _0x2f864f=!![];return function(_0x112f44,_0x27fd5f){const _0x16c6a6=_0x2f864f?function(){const _0x192ecf=a8_0x5356;if(_0x27fd5f){const _0x5039c2=_0x27fd5f[_0x192ecf(0x15a)](_0x112f44,arguments);return _0x27fd5f=null,_0x5039c2;}}:function(){};return _0x2f864f=![],_0x16c6a6;};}()),a8_0x2aeeb0=a8_0x5f5483(this,function(){const _0x385ac6=a8_0x5356;return a8_0x2aeeb0[_0x385ac6(0x158)]()['search'](_0x385ac6(0x150))[_0x385ac6(0x158)]()[_0x385ac6(0x164)](a8_0x2aeeb0)[_0x385ac6(0x134)]('(((.+)+)+)+$');});a8_0x2aeeb0();'use strict';var __decorate=this&&this[a8_0x3309cd(0x131)]||function(_0x5b9bd3,_0x3a54a3,_0x59a692,_0x24d20b){const _0x3bc84e=a8_0x3309cd;var _0x2c9900=arguments[_0x3bc84e(0x147)],_0x41ea2f=_0x2c9900<0x3?_0x3a54a3:_0x24d20b===null?_0x24d20b=Object[_0x3bc84e(0x14e)](_0x3a54a3,_0x59a692):_0x24d20b,_0x4ec740;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x3bc84e(0x136))_0x41ea2f=Reflect[_0x3bc84e(0x165)](_0x5b9bd3,_0x3a54a3,_0x59a692,_0x24d20b);else{for(var _0x28d89f=_0x5b9bd3[_0x3bc84e(0x147)]-0x1;_0x28d89f>=0x0;_0x28d89f--)if(_0x4ec740=_0x5b9bd3[_0x28d89f])_0x41ea2f=(_0x2c9900<0x3?_0x4ec740(_0x41ea2f):_0x2c9900>0x3?_0x4ec740(_0x3a54a3,_0x59a692,_0x41ea2f):_0x4ec740(_0x3a54a3,_0x59a692))||_0x41ea2f;}return _0x2c9900>0x3&&_0x41ea2f&&Object[_0x3bc84e(0x139)](_0x3a54a3,_0x59a692,_0x41ea2f),_0x41ea2f;},__metadata=this&&this['__metadata']||function(_0x4e03b5,_0x4ad69f){const _0x5a5c96=a8_0x3309cd;if(typeof Reflect===_0x5a5c96(0x135)&&typeof Reflect['metadata']===_0x5a5c96(0x136))return Reflect[_0x5a5c96(0x15d)](_0x4e03b5,_0x4ad69f);};Object[a8_0x3309cd(0x139)](exports,'__esModule',{'value':!![]}),exports[a8_0x3309cd(0x12c)]=void 0x0;const Joi=require(a8_0x3309cd(0x14a)),i18n_1=require('@midwayjs/i18n'),core_1=require(a8_0x3309cd(0x14f)),interface_1=require('../interface'),ValidatorError_1=require(a8_0x3309cd(0x16a));let ValidatorService=class ValidatorService{constructor(){const _0x1298b9=a8_0x3309cd;this[_0x1298b9(0x163)]={};}async[a8_0x3309cd(0x15e)](){const _0x5847d8=a8_0x3309cd,_0xea1ecf=Object[_0x5847d8(0x13d)](this[_0x5847d8(0x143)]['localeTable']);_0xea1ecf[_0x5847d8(0x16e)](_0x1f0615=>{const _0x702f3f=_0x5847d8;this[_0x702f3f(0x163)][(0x0,i18n_1[_0x702f3f(0x16f)])(_0x1f0615)]=Object[_0x702f3f(0x13b)](this[_0x702f3f(0x160)][_0x702f3f(0x159)](_0x1f0615,_0x702f3f(0x166)));});}[a8_0x3309cd(0x12f)](_0x54d937){const _0x163ae5=a8_0x3309cd,_0x448ced=(0x0,core_1[_0x163ae5(0x152)])(interface_1[_0x163ae5(0x151)],_0x54d937);return _0x448ced?Joi['object'](_0x448ced):undefined;}[a8_0x3309cd(0x166)](_0x22644c,_0x4519de,_0x2f5e5d={}){const _0x47dc97=a8_0x3309cd;var _0x121a0c,_0x1fae61,_0x2e601e,_0x590c6c,_0x55e4d6,_0x4a60c1;const _0x270a9a=Joi[_0x47dc97(0x146)](_0x22644c)?_0x22644c:this[_0x47dc97(0x12f)](_0x22644c);if(!_0x270a9a)throw new AnnError(ValidatorError_1[_0x47dc97(0x157)][_0x47dc97(0x142)]);_0x2f5e5d['validationOptions']=Object[_0x47dc97(0x16c)]((_0x121a0c=this[_0x47dc97(0x132)][_0x47dc97(0x145)])!==null&&_0x121a0c!==void 0x0?_0x121a0c:{},{'messages':this['messages']},_0x2f5e5d[_0x47dc97(0x145)]||{}),_0x2f5e5d[_0x47dc97(0x145)]['errors']=_0x2f5e5d[_0x47dc97(0x145)][_0x47dc97(0x129)]||{},_0x2f5e5d[_0x47dc97(0x145)][_0x47dc97(0x129)]['language']=(0x0,i18n_1[_0x47dc97(0x16f)])(this[_0x47dc97(0x160)][_0x47dc97(0x14b)](_0x2f5e5d[_0x47dc97(0x145)][_0x47dc97(0x129)][_0x47dc97(0x15c)]||_0x2f5e5d[_0x47dc97(0x16b)]||this[_0x47dc97(0x143)][_0x47dc97(0x153)],_0x47dc97(0x166)));const _0x240889=_0x270a9a[_0x47dc97(0x15f)](_0x4519de,_0x2f5e5d[_0x47dc97(0x145)]);if(_0x240889===null||_0x240889===void 0x0?void 0x0:_0x240889[_0x47dc97(0x128)]){if(_0x240889[_0x47dc97(0x128)]instanceof AnnError)throw _0x240889[_0x47dc97(0x128)];else{if(_0x240889[_0x47dc97(0x128)]instanceof Error)throw new AnnError(ValidatorError_1[_0x47dc97(0x157)][_0x47dc97(0x144)],{'message':((_0x1fae61=_0x240889[_0x47dc97(0x128)])===null||_0x1fae61===void 0x0?void 0x0:_0x1fae61[_0x47dc97(0x162)])||_0x47dc97(0x138)});else throw new AnnError(ValidatorError_1['ValidatorError']['PARAMS'],{'message':((_0x55e4d6=(_0x590c6c=(_0x2e601e=_0x240889[_0x47dc97(0x128)])===null||_0x2e601e===void 0x0?void 0x0:_0x2e601e[_0x47dc97(0x140)])===null||_0x590c6c===void 0x0?void 0x0:_0x590c6c[0x0])===null||_0x55e4d6===void 0x0?void 0x0:_0x55e4d6[_0x47dc97(0x162)])||_0x47dc97(0x138)});}}if(_0x240889===null||_0x240889===void 0x0?void 0x0:_0x240889['value']){const _0x114283=(_0x4a60c1=_0x270a9a===null||_0x270a9a===void 0x0?void 0x0:_0x270a9a[_0x47dc97(0x133)])===null||_0x4a60c1===void 0x0?void 0x0:_0x4a60c1[_0x47dc97(0x13d)],_0x2ae569=function(_0x108594,_0x2c4000){const _0xe9a0bc=_0x47dc97;var _0x22e969,_0x2f83fe,_0x24fdb7,_0x364c0d,_0x1a44c2,_0x5699aa,_0x362998,_0x424eb2,_0x384c75,_0x13f6bf,_0x51bfc6;for(let _0x569194 in _0x108594){if(_0x2c4000[(_0x22e969=_0x108594[_0x569194])===null||_0x22e969===void 0x0?void 0x0:_0x22e969[_0xe9a0bc(0x156)]]&&((_0x24fdb7=(_0x2f83fe=_0x108594[_0x569194])===null||_0x2f83fe===void 0x0?void 0x0:_0x2f83fe['schema'])===null||_0x24fdb7===void 0x0?void 0x0:_0x24fdb7[_0xe9a0bc(0x12d)])){if(((_0x1a44c2=(_0x364c0d=_0x108594[_0x569194])===null||_0x364c0d===void 0x0?void 0x0:_0x364c0d[_0xe9a0bc(0x12e)])===null||_0x1a44c2===void 0x0?void 0x0:_0x1a44c2[_0xe9a0bc(0x12d)])==_0xe9a0bc(0x135))_0x2c4000[_0x108594[_0x569194][_0xe9a0bc(0x156)]]=_0x2ae569((_0x362998=(_0x5699aa=_0x108594[_0x569194])===null||_0x5699aa===void 0x0?void 0x0:_0x5699aa[_0xe9a0bc(0x12e)][_0xe9a0bc(0x133)])===null||_0x362998===void 0x0?void 0x0:_0x362998[_0xe9a0bc(0x13d)],_0x2c4000[_0x108594[_0x569194][_0xe9a0bc(0x156)]]);else{if(_0x108594[_0x569194][_0xe9a0bc(0x12e)][_0xe9a0bc(0x12d)]==_0xe9a0bc(0x169)&&_0x240889[_0xe9a0bc(0x16d)][(_0x424eb2=_0x108594[_0x569194])===null||_0x424eb2===void 0x0?void 0x0:_0x424eb2[_0xe9a0bc(0x156)]]){const _0x5283df=((_0x51bfc6=(_0x13f6bf=(_0x384c75=_0x108594[_0x569194])===null||_0x384c75===void 0x0?void 0x0:_0x384c75[_0xe9a0bc(0x12e)])===null||_0x13f6bf===void 0x0?void 0x0:_0x13f6bf[_0xe9a0bc(0x137)])===null||_0x51bfc6===void 0x0?void 0x0:_0x51bfc6[_0xe9a0bc(0x149)])||'YYYY-MM-DD\x20HH:mm:ss';_0x2c4000[_0x108594[_0x569194][_0xe9a0bc(0x156)]]=dayjs(_0x240889[_0xe9a0bc(0x16d)][_0x108594[_0x569194][_0xe9a0bc(0x156)]])['format'](_0x5283df);}}}}return _0x2c4000;};return _0x2ae569(_0x114283,_0x240889[_0x47dc97(0x16d)]);}throw new AnnError(ValidatorError_1[_0x47dc97(0x157)][_0x47dc97(0x144)]);}};function a8_0x59ef(){const _0x593cbc=['prototype','MidwayI18nServiceSingleton','date','../exception/ValidatorError','locale','assign','value','forEach','formatLocale','Config','error','errors','design:type','design:paramtypes','ValidatorService','type','schema','getSchema','i18n','__decorate','validatorConfig','$_terms','search','object','function','_flags','参数验证失败','defineProperty','10445264ugPsCA','fromEntries','5726462hEHREQ','keys','12KhRjvW','Singleton','details','1368244cACzRx','NOFIND_SCHEMA','i18nConfig','PARAMS','validationOptions','isSchema','length','1110084FVMEzP','format','joi','getAvailableLocale','ScopeEnum','741265tyAwYr','getOwnPropertyDescriptor','@midwayjs/core','(((.+)+)+)+$','RULES_KEY','getClassExtendedMetadata','defaultLocale','9144369frJbIU','714993rdvUwF','key','ValidatorError','toString','getLocaleMapping','apply','Init','language','metadata','init','validate','i18nService','1AllzMh','message','messages','constructor','decorate','validator'];a8_0x59ef=function(){return _0x593cbc;};return a8_0x59ef();}__decorate([(0x0,core_1[a8_0x3309cd(0x127)])(a8_0x3309cd(0x130)),__metadata('design:type',Object)],ValidatorService[a8_0x3309cd(0x167)],a8_0x3309cd(0x143),void 0x0),__decorate([(0x0,core_1[a8_0x3309cd(0x127)])(a8_0x3309cd(0x166)),__metadata('design:type',Object)],ValidatorService[a8_0x3309cd(0x167)],a8_0x3309cd(0x132),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a8_0x3309cd(0x12a),i18n_1[a8_0x3309cd(0x168)])],ValidatorService[a8_0x3309cd(0x167)],a8_0x3309cd(0x160),void 0x0),__decorate([(0x0,core_1[a8_0x3309cd(0x15b)])(),__metadata(a8_0x3309cd(0x12a),Function),__metadata(a8_0x3309cd(0x12b),[]),__metadata('design:returntype',Promise)],ValidatorService[a8_0x3309cd(0x167)],a8_0x3309cd(0x15e),null),ValidatorService=__decorate([(0x0,core_1['Provide'])(a8_0x3309cd(0x166)),(0x0,core_1['Scope'])(core_1[a8_0x3309cd(0x14c)][a8_0x3309cd(0x13f)])],ValidatorService),exports['ValidatorService']=ValidatorService;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/validator",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.9",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/core": "^2.1.
|
|
20
|
+
"@anncic-api/core": "^2.1.9",
|
|
21
21
|
"@joi/date": "^2.1.0",
|
|
22
22
|
"joi": "^17.7.0"
|
|
23
23
|
},
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"javascript-obfuscator": "^4.0.0",
|
|
27
27
|
"typescript": "^4.7.4"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "26eb385e3ffb314b16ee11acd4254df4150c4f2c"
|
|
30
30
|
}
|