@anncic-api/validator 1.2.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Rule.js +1 -1
- package/dist/decorator/Validator.js +1 -1
- package/dist/exception/ValidatorError.js +1 -1
- package/dist/helper/dtoHelper.js +1 -1
- package/dist/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
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0xd6a14a=a0_0x138d;(function(_0x2f3871,_0x3a8faf){const _0x169748=a0_0x138d,_0x1e9db6=_0x2f3871();while(!![]){try{const _0x51680b=-parseInt(_0x169748(0x93))/0x1*(-parseInt(_0x169748(0x96))/0x2)+-parseInt(_0x169748(0x99))/0x3+parseInt(_0x169748(0x97))/0x4+parseInt(_0x169748(0x8e))/0x5*(parseInt(_0x169748(0x94))/0x6)+parseInt(_0x169748(0x8d))/0x7+parseInt(_0x169748(0x95))/0x8+-parseInt(_0x169748(0x8f))/0x9;if(_0x51680b===_0x3a8faf)break;else _0x1e9db6['push'](_0x1e9db6['shift']());}catch(_0x2f70bf){_0x1e9db6['push'](_0x1e9db6['shift']());}}}(a0_0x5ad2,0xeaef8));function a0_0x5ad2(){const _0x5a7939=['ValidatorError','1819860nehRpq','defineProperty','PARAMS','4742787eydTsQ','73690hXinpC','35081658bSczFy','__esModule','../../locales/en_US.json','../../locales/zh_CN.json','1QBAiPP','474MQbGQu','10101160qILFge','3775126qdPSAJ','1899308TEJOBH'];a0_0x5ad2=function(){return _0x5a7939;};return a0_0x5ad2();}Object[a0_0xd6a14a(0x9a)](exports,a0_0xd6a14a(0x90),{'value':!![]});function a0_0x138d(_0x1cc7b1,_0x26d8d9){const _0x5ad209=a0_0x5ad2();return a0_0x138d=function(_0x138dc6,_0x5100d1){_0x138dc6=_0x138dc6-0x8c;let _0x38c4f0=_0x5ad209[_0x138dc6];return _0x38c4f0;},a0_0x138d(_0x1cc7b1,_0x26d8d9);}const ValidatorError_1=require('../exception/ValidatorError');exports['default']={'validator':{'errorStatus':ValidatorError_1[a0_0xd6a14a(0x98)][a0_0xd6a14a(0x8c)],'validationOptions':{}},'i18n':{'localeTable':{'en_US':{'validator':require(a0_0xd6a14a(0x91))},'zh_CN':{'validator':require(a0_0xd6a14a(0x92))}}}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a1_0x3d9b(){const _0x41311f=['Inject','design:type','4070836hamazx','methodArgs','defineProperty','params','method','./interface','find','getMethodParamTypes','./config/config.default','@midwayjs/core','name','metadata','target','49290JRYMHA','@midwayjs/i18n','983214hzbikA','param','504kIhTol','1062868oJdKBB','length','prototype','__metadata','8308668emILxA','VALIDATOR_KEY','validator','function','locale','24DgiusT','methodName','body','args','bound\x20dispatch','278990RHzoUQ','3FMizFd','query','getClassMetadata','request','decorator','onReady','registerMethodHandler','req','res','3jrSPmm','CustomConfiguration','550xcKJJs','6185PEHxiw','./service/ValidatorService','object','getAttr','ValidatorService','getOwnPropertyDescriptor','MidwayDecoratorService'];a1_0x3d9b=function(){return _0x41311f;};return a1_0x3d9b();}const a1_0x46ac79=a1_0x15d9;(function(_0x2df430,_0x1afb38){const _0x3e2c41=a1_0x15d9,_0x3503b5=_0x2df430();while(!![]){try{const _0xbd1fa6=parseInt(_0x3e2c41(0x1b7))/0x1*(parseInt(_0x3e2c41(0x1ad))/0x2)+parseInt(_0x3e2c41(0x1ae))/0x3*(parseInt(_0x3e2c41(0x19f))/0x4)+parseInt(_0x3e2c41(0x1ba))/0x5*(-parseInt(_0x3e2c41(0x19e))/0x6)+parseInt(_0x3e2c41(0x1c3))/0x7+-parseInt(_0x3e2c41(0x1a8))/0x8*(parseInt(_0x3e2c41(0x19c))/0x9)+-parseInt(_0x3e2c41(0x19a))/0xa*(-parseInt(_0x3e2c41(0x1b9))/0xb)+-parseInt(_0x3e2c41(0x1a3))/0xc;if(_0xbd1fa6===_0x1afb38)break;else _0x3503b5['push'](_0x3503b5['shift']());}catch(_0xc00713){_0x3503b5['push'](_0x3503b5['shift']());}}}(a1_0x3d9b,0x5ec45));function a1_0x15d9(_0x59da1b,_0x4f56fa){const _0x3d9bb0=a1_0x3d9b();return a1_0x15d9=function(_0x15d9a5,_0x3a128f){_0x15d9a5=_0x15d9a5-0x198;let _0x174ec5=_0x3d9bb0[_0x15d9a5];return _0x174ec5;},a1_0x15d9(_0x59da1b,_0x4f56fa);}var __decorate=this&&this['__decorate']||function(_0x2971c9,_0x49a569,_0x306b3e,_0x4604dd){const _0x39a1c5=a1_0x15d9;var _0x39ae57=arguments['length'],_0x398e57=_0x39ae57<0x3?_0x49a569:_0x4604dd===null?_0x4604dd=Object[_0x39a1c5(0x1bf)](_0x49a569,_0x306b3e):_0x4604dd,_0x329a2f;if(typeof Reflect===_0x39a1c5(0x1bc)&&typeof Reflect['decorate']===_0x39a1c5(0x1a6))_0x398e57=Reflect['decorate'](_0x2971c9,_0x49a569,_0x306b3e,_0x4604dd);else{for(var _0x244a36=_0x2971c9['length']-0x1;_0x244a36>=0x0;_0x244a36--)if(_0x329a2f=_0x2971c9[_0x244a36])_0x398e57=(_0x39ae57<0x3?_0x329a2f(_0x398e57):_0x39ae57>0x3?_0x329a2f(_0x49a569,_0x306b3e,_0x398e57):_0x329a2f(_0x49a569,_0x306b3e))||_0x398e57;}return _0x39ae57>0x3&&_0x398e57&&Object['defineProperty'](_0x49a569,_0x306b3e,_0x398e57),_0x398e57;},__metadata=this&&this[a1_0x46ac79(0x1a2)]||function(_0x2cf070,_0x3a9fa1){const _0x3fd648=a1_0x46ac79;if(typeof Reflect===_0x3fd648(0x1bc)&&typeof Reflect[_0x3fd648(0x198)]===_0x3fd648(0x1a6))return Reflect['metadata'](_0x2cf070,_0x3a9fa1);};Object[a1_0x46ac79(0x1c5)](exports,'__esModule',{'value':!![]}),exports[a1_0x46ac79(0x1b8)]=void 0x0;const i18n_1=require(a1_0x46ac79(0x19b)),core_1=require(a1_0x46ac79(0x1cc)),core_2=require(a1_0x46ac79(0x1cc)),interface_1=require(a1_0x46ac79(0x1c8)),ValidatorService_1=require(a1_0x46ac79(0x1bb)),i18n=require(a1_0x46ac79(0x19b)),anncic=require('@anncic-api/core'),ConfigDefault=require(a1_0x46ac79(0x1cb));let CustomConfiguration=class CustomConfiguration{async[a1_0x46ac79(0x1b3)](){const _0x2b66a2=a1_0x46ac79;this[_0x2b66a2(0x1b2)][_0x2b66a2(0x1b4)](interface_1[_0x2b66a2(0x1a4)],_0x5b8b79=>{const _0x104b4f=_0x2b66a2,_0x28d564=_0x5b8b79[_0x104b4f(0x198)],_0x1f54f2=(0x0,core_2[_0x104b4f(0x1ca)])(_0x5b8b79[_0x104b4f(0x199)],_0x5b8b79['propertyName']);return{'before':_0x4a10e=>{const _0x4518ff=_0x104b4f;var _0x8e4c92,_0x53039a,_0x797d94,_0x18c7a7,_0x6cff52,_0xe24e8a,_0x4af869,_0x14256e,_0x223893,_0x8738df,_0x23d101,_0xfffab5,_0x499717;const _0x429d18=_0x4a10e[_0x4518ff(0x199)][core_1['REQUEST_OBJ_CTX_KEY']],_0x5f0369=Object['assign']({},((_0x8e4c92=_0x429d18===null||_0x429d18===void 0x0?void 0x0:_0x429d18[_0x4518ff(0x1b1)])===null||_0x8e4c92===void 0x0?void 0x0:_0x8e4c92[_0x4518ff(0x1af)])||{},((_0x53039a=_0x429d18===null||_0x429d18===void 0x0?void 0x0:_0x429d18[_0x4518ff(0x1b1)])===null||_0x53039a===void 0x0?void 0x0:_0x53039a[_0x4518ff(0x1aa)])||{}),_0x3d2f4d=((0x0,core_2[_0x4518ff(0x1b0)])(interface_1[_0x4518ff(0x1a4)],_0x4a10e[_0x4518ff(0x199)])||[])[_0x4518ff(0x1c9)](_0x5e189b=>_0x5e189b[_0x4518ff(0x1c7)]==_0x4a10e[_0x4518ff(0x1a9)]);!(_0x28d564===null||_0x28d564===void 0x0?void 0x0:_0x28d564['locale'])&&_0x429d18&&_0x429d18[_0x4518ff(0x1bd)]&&(_0x28d564[_0x4518ff(0x1a7)]=_0x429d18[_0x4518ff(0x1bd)](i18n_1['I18N_ATTR_KEY']));for(let _0x2c7c75=0x0;_0x2c7c75<_0x1f54f2[_0x4518ff(0x1a0)];_0x2c7c75++){const _0x5870a0=_0x1f54f2[_0x2c7c75],_0x3d3e25=this['ValidatorService']['getSchema'](_0x5870a0);if(_0x3d3e25){if(typeof _0x4a10e[_0x4518ff(0x1ab)][_0x2c7c75]=='undefined'||((_0x797d94=_0x4a10e['args'][_0x2c7c75])===null||_0x797d94===void 0x0?void 0x0:_0x797d94[_0x4518ff(0x1b1)])&&((_0x18c7a7=_0x4a10e['args'][_0x2c7c75])===null||_0x18c7a7===void 0x0?void 0x0:_0x18c7a7[_0x4518ff(0x1b6)])&&((_0x6cff52=_0x4a10e[_0x4518ff(0x1ab)][_0x2c7c75])===null||_0x6cff52===void 0x0?void 0x0:_0x6cff52[_0x4518ff(0x1b5)]))_0x4a10e[_0x4518ff(0x1ab)][_0x2c7c75]=_0x5f0369;else((_0xe24e8a=_0x4a10e[_0x4518ff(0x1ab)][_0x2c7c75])===null||_0xe24e8a===void 0x0?void 0x0:_0xe24e8a[_0x4518ff(0x1cd)])==_0x4518ff(0x1ac)&&_0x4a10e['args']['splice'](_0x2c7c75,0x0,_0x5f0369);const _0x3dd09e=this[_0x4518ff(0x1be)][_0x4518ff(0x1a5)](_0x3d3e25,_0x4a10e[_0x4518ff(0x1ab)][_0x2c7c75],_0x28d564);_0x3dd09e&&(_0x4a10e[_0x4518ff(0x1ab)][_0x2c7c75]=_0x3dd09e);}else{if((_0x3d2f4d===null||_0x3d2f4d===void 0x0?void 0x0:_0x3d2f4d[_0x4518ff(0x1c4)][_0x2c7c75])&&((_0x4af869=_0x4a10e[_0x4518ff(0x1ab)][_0x2c7c75])===null||_0x4af869===void 0x0?void 0x0:_0x4af869[_0x4518ff(0x1c6)])&&typeof _0x4a10e[_0x4518ff(0x1ab)][_0x2c7c75][_0x4518ff(0x19d)]=='function'&&((_0x14256e=_0x429d18===null||_0x429d18===void 0x0?void 0x0:_0x429d18[_0x4518ff(0x1c6)])===null||_0x14256e===void 0x0?void 0x0:_0x14256e[_0x3d2f4d[_0x4518ff(0x1c4)][_0x2c7c75]]))_0x4a10e['args'][_0x2c7c75]=_0x5870a0((_0x223893=_0x429d18===null||_0x429d18===void 0x0?void 0x0:_0x429d18[_0x4518ff(0x1c6)])===null||_0x223893===void 0x0?void 0x0:_0x223893[_0x3d2f4d[_0x4518ff(0x1c4)][_0x2c7c75]]);else(_0x3d2f4d===null||_0x3d2f4d===void 0x0?void 0x0:_0x3d2f4d[_0x4518ff(0x1c4)][_0x2c7c75])&&((_0x23d101=(_0x8738df=_0x4a10e[_0x4518ff(0x1ab)][_0x2c7c75])===null||_0x8738df===void 0x0?void 0x0:_0x8738df[_0x4518ff(0x1c6)])===null||_0x23d101===void 0x0?void 0x0:_0x23d101[_0x3d2f4d['methodArgs'][_0x2c7c75]])&&(_0x4a10e[_0x4518ff(0x1ab)][_0x2c7c75]=(_0x499717=(_0xfffab5=_0x4a10e['args'][_0x2c7c75])===null||_0xfffab5===void 0x0?void 0x0:_0xfffab5[_0x4518ff(0x1c6)])===null||_0x499717===void 0x0?void 0x0:_0x499717[_0x3d2f4d[_0x4518ff(0x1c4)][_0x2c7c75]]);}}},'afterThrow':(_0x1acf94,_0x19df1b)=>{throw _0x19df1b;}};});}};__decorate([(0x0,core_2['Inject'])(),__metadata(a1_0x46ac79(0x1c2),core_1[a1_0x46ac79(0x1c0)])],CustomConfiguration[a1_0x46ac79(0x1a1)],a1_0x46ac79(0x1b2),void 0x0),__decorate([(0x0,core_2[a1_0x46ac79(0x1c1)])(),__metadata(a1_0x46ac79(0x1c2),ValidatorService_1[a1_0x46ac79(0x1be)])],CustomConfiguration[a1_0x46ac79(0x1a1)],a1_0x46ac79(0x1be),void 0x0),CustomConfiguration=__decorate([(0x0,core_2['Configuration'])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':'anncic-api:validator','importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
package/dist/decorator/Rule.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a2_0x318922=a2_0xb30b;function a2_0x5cf2(){const _0x2df1de=['function','@joi/date','getClassMetadata','RULES_KEY','getPropertyType','keys','Rule','attachClassMetadata','../interface','Array','__esModule','saveClassMetadata','91828fElGYX','7533610nzDOub','default','map','meta','337826QkhHCh','14fwcpfd','869416xcWGtY','items','extend','255KRQXXN','object','@midwayjs/core','10920Bjbwgm','3207483ixbNaJ','joi','isSchema','label','array','name','3tdyYnK','RuleType','1829226IkwTmv'];a2_0x5cf2=function(){return _0x2df1de;};return a2_0x5cf2();}(function(_0xdb2a9d,_0x43638a){const _0x2caab8=a2_0xb30b,_0x54298d=_0xdb2a9d();while(!![]){try{const _0x58d33e=parseInt(_0x2caab8(0x1dd))/0x1+-parseInt(_0x2caab8(0x1bf))/0x2*(parseInt(_0x2caab8(0x1ce))/0x3)+parseInt(_0x2caab8(0x1c7))/0x4*(parseInt(_0x2caab8(0x1c4))/0x5)+parseInt(_0x2caab8(0x1d0))/0x6+-parseInt(_0x2caab8(0x1c0))/0x7*(-parseInt(_0x2caab8(0x1c1))/0x8)+parseInt(_0x2caab8(0x1c8))/0x9+-parseInt(_0x2caab8(0x1bb))/0xa;if(_0x58d33e===_0x43638a)break;else _0x54298d['push'](_0x54298d['shift']());}catch(_0x1f494b){_0x54298d['push'](_0x54298d['shift']());}}}(a2_0x5cf2,0x2dc04));Object['defineProperty'](exports,a2_0x318922(0x1db),{'value':!![]}),exports[a2_0x318922(0x1d7)]=exports[a2_0x318922(0x1cf)]=void 0x0;const joi=require(a2_0x318922(0x1c9)),date_1=require(a2_0x318922(0x1d2)),core_1=require(a2_0x318922(0x1c6)),interface_1=require(a2_0x318922(0x1d9));exports[a2_0x318922(0x1cf)]=joi[a2_0x318922(0x1c3)](date_1[a2_0x318922(0x1bc)]);function a2_0xb30b(_0x1e0edb,_0x16f5db){const _0x5cf210=a2_0x5cf2();return a2_0xb30b=function(_0xb30b3c,_0x399a21){_0xb30b3c=_0xb30b3c-0x1bb;let _0x3bcac8=_0x5cf210[_0xb30b3c];return _0x3bcac8;},a2_0xb30b(_0x1e0edb,_0x16f5db);}function Rule(_0x1897f1,_0x3c1b8a,_0x5a5f1a=''){return(_0x21e064,_0x247f84)=>{const _0xd7f85b=a2_0xb30b;var _0x12bf36;if(_0x247f84)!joi[_0xd7f85b(0x1ca)](_0x3c1b8a)&&(_0x3c1b8a===null||_0x3c1b8a===void 0x0?void 0x0:_0x3c1b8a[_0xd7f85b(0x1cd)])&&(_0x3c1b8a=joi[_0xd7f85b(0x1c5)]((0x0,core_1[_0xd7f85b(0x1d3)])(interface_1[_0xd7f85b(0x1d4)],_0x3c1b8a))[_0xd7f85b(0x1be)]({'id':_0x3c1b8a[_0xd7f85b(0x1cd)]}),(0x0,core_1[_0xd7f85b(0x1d5)])(_0x21e064,_0x247f84)[_0xd7f85b(0x1cd)]===_0xd7f85b(0x1da)&&(_0x3c1b8a=joi[_0xd7f85b(0x1cc)]()[_0xd7f85b(0x1c2)](_0x3c1b8a))),joi[_0xd7f85b(0x1ca)](_0x3c1b8a)&&(_0x1897f1&&typeof(_0x3c1b8a===null||_0x3c1b8a===void 0x0?void 0x0:_0x3c1b8a[_0xd7f85b(0x1cb)])==_0xd7f85b(0x1d1)&&(_0x3c1b8a=_0x3c1b8a['label'](_0x1897f1)),_0x5a5f1a&&typeof(_0x3c1b8a===null||_0x3c1b8a===void 0x0?void 0x0:_0x3c1b8a['description'])=='function'&&(_0x3c1b8a=_0x3c1b8a['description'](_0x5a5f1a)),(0x0,core_1[_0xd7f85b(0x1d8)])(interface_1[_0xd7f85b(0x1d4)],_0x3c1b8a,_0x21e064,_0x247f84));else{const _0x232e4c=(0x0,core_1[_0xd7f85b(0x1d3)])(interface_1[_0xd7f85b(0x1d4)],_0x3c1b8a);if(_0x232e4c){let _0x318a62=(_0x12bf36=(0x0,core_1[_0xd7f85b(0x1d3)])(interface_1[_0xd7f85b(0x1d4)],_0x21e064))!==null&&_0x12bf36!==void 0x0?_0x12bf36:{};Object[_0xd7f85b(0x1d6)](_0x232e4c)[_0xd7f85b(0x1bd)](_0x2fbe43=>{!_0x318a62[_0x2fbe43]&&(_0x318a62[_0x2fbe43]=_0x232e4c[_0x2fbe43]);}),(0x0,core_1[_0xd7f85b(0x1dc)])(interface_1[_0xd7f85b(0x1d4)],_0x318a62,_0x21e064);}}};}exports[a2_0x318922(0x1d7)]=Rule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a3_0xe0cf6a=a3_0x4973;(function(_0x177a7a,_0x2a4e41){const _0x489b14=a3_0x4973,_0x2d9394=_0x177a7a();while(!![]){try{const _0x5e84a3=-parseInt(_0x489b14(0x1ae))/0x1*(-parseInt(_0x489b14(0x1c2))/0x2)+parseInt(_0x489b14(0x1b5))/0x3*(-parseInt(_0x489b14(0x1b9))/0x4)+parseInt(_0x489b14(0x1b3))/0x5*(parseInt(_0x489b14(0x1c1))/0x6)+-parseInt(_0x489b14(0x1bb))/0x7+-parseInt(_0x489b14(0x1b6))/0x8*(-parseInt(_0x489b14(0x1bf))/0x9)+-parseInt(_0x489b14(0x1ad))/0xa*(parseInt(_0x489b14(0x1b4))/0xb)+parseInt(_0x489b14(0x1bd))/0xc*(parseInt(_0x489b14(0x1b7))/0xd);if(_0x5e84a3===_0x2a4e41)break;else _0x2d9394['push'](_0x2d9394['shift']());}catch(_0x40e53b){_0x2d9394['push'](_0x2d9394['shift']());}}}(a3_0x14f8,0x3ed48));Object[a3_0xe0cf6a(0x1af)](exports,'__esModule',{'value':!![]}),exports[a3_0xe0cf6a(0x1ba)]=exports[a3_0xe0cf6a(0x1b8)]=void 0x0;const core_1=require('@midwayjs/core'),interface_1=require(a3_0xe0cf6a(0x1c0));function a3_0x14f8(){const _0x4a3b14=['attachClassMetadata','indexOf','VALIDATOR_KEY','448200HUkBSu','385RXeaIH','49365QSIXSm','439160eRwVza','65dvbZMc','Validator','12PUlaPs','getFuncArgs','3113509RJrUOS','prototype','1282236UztpRZ','match','9NadCjF','../interface','12vJZOIm','4084BpTwhf','replace','toString','constructor','93520gLrvxX','152usMOao','defineProperty'];a3_0x14f8=function(){return _0x4a3b14;};return a3_0x14f8();}function Validator(_0x191ff6={}){return(_0x57b9d3,_0x4ca4d2,_0xbafbcf)=>{const _0x100e35=a3_0x4973,_0x2c0df7=getFuncArgs(_0x57b9d3[_0x4ca4d2]);(0x0,core_1[_0x100e35(0x1b0)])(interface_1['VALIDATOR_KEY'],{'method':_0x4ca4d2,'methodArgs':_0x2c0df7},_0x57b9d3),(0x0,core_1['createCustomMethodDecorator'])(interface_1[_0x100e35(0x1b2)],_0x191ff6)(_0x57b9d3,_0x4ca4d2,_0xbafbcf);};}exports[a3_0xe0cf6a(0x1b8)]=Validator;function getFuncArgs(_0xb0f228){const _0x5417df=a3_0xe0cf6a;if(typeof _0xb0f228=='function'){const _0x45ab6e=/=>.*$/mg,_0x1916e9=/=[^,)]+/mg,_0x5820d3=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x5232d4=(_0xb0f228[_0x5417df(0x1bc)]?_0xb0f228['prototype'][_0x5417df(0x1ac)][_0x5417df(0x1c4)]():_0xb0f228[_0x5417df(0x1c4)]())[_0x5417df(0x1c3)](_0x5820d3,'')[_0x5417df(0x1c3)](_0x45ab6e,'')[_0x5417df(0x1c3)](_0x1916e9,''),_0xb8a052=_0x5232d4['slice'](_0x5232d4[_0x5417df(0x1b1)]('(')+0x1,_0x5232d4[_0x5417df(0x1b1)](')'))[_0x5417df(0x1be)](/([^\s,]+)/g)||[];return _0xb8a052;}}function a3_0x4973(_0x19d6ff,_0x5eda12){const _0x14f8ae=a3_0x14f8();return a3_0x4973=function(_0x49735e,_0x4ebbd9){_0x49735e=_0x49735e-0x1ac;let _0x3ac074=_0x14f8ae[_0x49735e];return _0x3ac074;},a3_0x4973(_0x19d6ff,_0x5eda12);}exports['getFuncArgs']=getFuncArgs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a4_0x36b8ac=a4_0x1629;(function(_0x1e3890,_0x46ec2b){var _0xb0a65c=a4_0x1629,_0x29fc42=_0x1e3890();while(!![]){try{var _0x5d3275=parseInt(_0xb0a65c(0xfe))/0x1*(parseInt(_0xb0a65c(0xf0))/0x2)+parseInt(_0xb0a65c(0xf4))/0x3+-parseInt(_0xb0a65c(0xf2))/0x4+parseInt(_0xb0a65c(0xf5))/0x5+-parseInt(_0xb0a65c(0xf7))/0x6*(-parseInt(_0xb0a65c(0xf6))/0x7)+parseInt(_0xb0a65c(0xeb))/0x8*(parseInt(_0xb0a65c(0xf3))/0x9)+-parseInt(_0xb0a65c(0xed))/0xa;if(_0x5d3275===_0x46ec2b)break;else _0x29fc42['push'](_0x29fc42['shift']());}catch(_0x81d91e){_0x29fc42['push'](_0x29fc42['shift']());}}}(a4_0x89f8,0x95070));function a4_0x89f8(){var _0x109126=['decorate','514GZpxeJ','__esModule','1335444likiGy','981mEqQVK','197721pJeliU','475370txghZO','2067191krpFny','6KGnrfu','getOwnPropertyDescriptor','参数验证失败','@anncic-api/core','defineProperty','design:type','NOFIND_SCHEMA','1390cQNqDx','length','ValidatorError','metadata','PARAMS','53632weTbeb','AnnErrorMsg','5999830vPDHda','object'];a4_0x89f8=function(){return _0x109126;};return a4_0x89f8();}function a4_0x1629(_0xa93706,_0x499ac7){var _0x89f886=a4_0x89f8();return a4_0x1629=function(_0x162956,_0x27ab8c){_0x162956=_0x162956-0xe9;var _0x11f228=_0x89f886[_0x162956];return _0x11f228;},a4_0x1629(_0xa93706,_0x499ac7);}var __decorate=this&&this['__decorate']||function(_0xb9857,_0x205f78,_0x4318bf,_0x522929){var _0x20e955=a4_0x1629,_0x1795f8=arguments[_0x20e955(0xff)],_0x53378b=_0x1795f8<0x3?_0x205f78:_0x522929===null?_0x522929=Object[_0x20e955(0xf8)](_0x205f78,_0x4318bf):_0x522929,_0x33d5d1;if(typeof Reflect===_0x20e955(0xee)&&typeof Reflect[_0x20e955(0xef)]==='function')_0x53378b=Reflect[_0x20e955(0xef)](_0xb9857,_0x205f78,_0x4318bf,_0x522929);else{for(var _0x5310a0=_0xb9857['length']-0x1;_0x5310a0>=0x0;_0x5310a0--)if(_0x33d5d1=_0xb9857[_0x5310a0])_0x53378b=(_0x1795f8<0x3?_0x33d5d1(_0x53378b):_0x1795f8>0x3?_0x33d5d1(_0x205f78,_0x4318bf,_0x53378b):_0x33d5d1(_0x205f78,_0x4318bf))||_0x53378b;}return _0x1795f8>0x3&&_0x53378b&&Object[_0x20e955(0xfb)](_0x205f78,_0x4318bf,_0x53378b),_0x53378b;},__metadata=this&&this['__metadata']||function(_0x116855,_0x20b193){var _0x5bebef=a4_0x1629;if(typeof Reflect===_0x5bebef(0xee)&&typeof Reflect[_0x5bebef(0xe9)]==='function')return Reflect[_0x5bebef(0xe9)](_0x116855,_0x20b193);};Object['defineProperty'](exports,a4_0x36b8ac(0xf1),{'value':!![]}),exports[a4_0x36b8ac(0x100)]=void 0x0;const core_1=require(a4_0x36b8ac(0xfa));class ValidatorError{}ValidatorError[a4_0x36b8ac(0xea)]=0x3df374,ValidatorError[a4_0x36b8ac(0xfd)]=0x3df36a,__decorate([(0x0,core_1[a4_0x36b8ac(0xec)])(a4_0x36b8ac(0xf9)),__metadata(a4_0x36b8ac(0xfc),Object)],ValidatorError,a4_0x36b8ac(0xea),void 0x0),__decorate([(0x0,core_1[a4_0x36b8ac(0xec)])('参数验证失败'),__metadata(a4_0x36b8ac(0xfc),Object)],ValidatorError,a4_0x36b8ac(0xfd),void 0x0),exports[a4_0x36b8ac(0x100)]=ValidatorError;
|
package/dist/helper/dtoHelper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0x9c437=a5_0x58f6;(function(_0x3b67e0,_0x46983f){const _0x2cf4c4=a5_0x58f6,_0x12d4fa=_0x3b67e0();while(!![]){try{const _0x3d0c53=parseInt(_0x2cf4c4(0xee))/0x1*(parseInt(_0x2cf4c4(0xeb))/0x2)+-parseInt(_0x2cf4c4(0xe3))/0x3*(parseInt(_0x2cf4c4(0xe7))/0x4)+parseInt(_0x2cf4c4(0xe8))/0x5+-parseInt(_0x2cf4c4(0xf0))/0x6+-parseInt(_0x2cf4c4(0xed))/0x7+-parseInt(_0x2cf4c4(0xec))/0x8+parseInt(_0x2cf4c4(0xe2))/0x9;if(_0x3d0c53===_0x46983f)break;else _0x12d4fa['push'](_0x12d4fa['shift']());}catch(_0x71bf72){_0x12d4fa['push'](_0x12d4fa['shift']());}}}(a5_0x2459,0xaf53b));function a5_0x58f6(_0x325c8f,_0x150737){const _0x24592e=a5_0x2459();return a5_0x58f6=function(_0x58f63c,_0x56ba35){_0x58f63c=_0x58f63c-0xde;let _0x3da729=_0x24592e[_0x58f63c];return _0x3da729;},a5_0x58f6(_0x325c8f,_0x150737);}Object[a5_0x9c437(0xef)](exports,a5_0x9c437(0xde),{'value':!![]}),exports[a5_0x9c437(0xe0)]=exports['PickDto']=void 0x0;const core_1=require(a5_0x9c437(0xdf)),interface_1=require(a5_0x9c437(0xe6));function PickDto(_0x1e882c,_0x4b5f11){const _0x28baa0=a5_0x9c437,_0xf3dfe4=function(){};_0xf3dfe4[_0x28baa0(0xe9)]=_0x1e882c['prototype'];const _0x29b7ec=(0x0,core_1['getClassExtendedMetadata'])(interface_1[_0x28baa0(0xe1)],_0x1e882c),_0x581985={};for(const _0x42e77e of _0x4b5f11){_0x29b7ec[_0x42e77e]&&(_0x581985[_0x42e77e]=_0x29b7ec[_0x42e77e]);}return(0x0,core_1['saveClassMetadata'])(interface_1['RULES_KEY'],_0x581985,_0xf3dfe4),_0xf3dfe4;}exports[a5_0x9c437(0xe4)]=PickDto;function a5_0x2459(){const _0x471dd6=['@midwayjs/core','OmitDto','RULES_KEY','17476722gfJzXZ','33nUODNW','PickDto','assign','../interface','427436VuHiEu','592145RvFFtp','prototype','saveClassMetadata','2UMHtVC','665920niEfJg','1668702ZOTvab','1259033BQjgMq','defineProperty','6624636gUfYmr','__esModule'];a5_0x2459=function(){return _0x471dd6;};return a5_0x2459();}function OmitDto(_0x4d5da1,_0x41e964){const _0x58e399=a5_0x9c437,_0x21531b=function(){};_0x21531b[_0x58e399(0xe9)]=_0x4d5da1[_0x58e399(0xe9)];const _0x7600a=(0x0,core_1['getClassExtendedMetadata'])(interface_1['RULES_KEY'],_0x4d5da1),_0x128e4f=Object[_0x58e399(0xe5)]({},_0x7600a);for(const _0x1ba3ea of _0x41e964){delete _0x128e4f[_0x1ba3ea];}return(0x0,core_1[_0x58e399(0xea)])(interface_1[_0x58e399(0xe1)],_0x128e4f,_0x21531b),_0x21531b;}exports[a5_0x9c437(0xe0)]=OmitDto;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a6_0x3b0805=a6_0x2d69;(function(_0x732090,_0x470db3){var _0xf98ed8=a6_0x2d69,_0x5621c1=_0x732090();while(!![]){try{var _0x59335f=parseInt(_0xf98ed8(0x179))/0x1+parseInt(_0xf98ed8(0x182))/0x2*(parseInt(_0xf98ed8(0x17c))/0x3)+-parseInt(_0xf98ed8(0x186))/0x4*(parseInt(_0xf98ed8(0x180))/0x5)+-parseInt(_0xf98ed8(0x189))/0x6+parseInt(_0xf98ed8(0x175))/0x7*(-parseInt(_0xf98ed8(0x16f))/0x8)+parseInt(_0xf98ed8(0x17a))/0x9+parseInt(_0xf98ed8(0x187))/0xa*(parseInt(_0xf98ed8(0x172))/0xb);if(_0x59335f===_0x470db3)break;else _0x5621c1['push'](_0x5621c1['shift']());}catch(_0x351be7){_0x5621c1['push'](_0x5621c1['shift']());}}}(a6_0x569e,0x53aea));var __createBinding=this&&this[a6_0x3b0805(0x178)]||(Object[a6_0x3b0805(0x171)]?function(_0x3483b3,_0x40958f,_0x55d12b,_0x35f0a2){var _0x1f5a0f=a6_0x3b0805;if(_0x35f0a2===undefined)_0x35f0a2=_0x55d12b;var _0x54adf4=Object[_0x1f5a0f(0x16e)](_0x40958f,_0x55d12b);(!_0x54adf4||(_0x1f5a0f(0x17b)in _0x54adf4?!_0x40958f['__esModule']:_0x54adf4['writable']||_0x54adf4[_0x1f5a0f(0x17e)]))&&(_0x54adf4={'enumerable':!![],'get':function(){return _0x40958f[_0x55d12b];}}),Object[_0x1f5a0f(0x16c)](_0x3483b3,_0x35f0a2,_0x54adf4);}:function(_0x2917ce,_0x42b1a8,_0x3228b6,_0x528e6e){if(_0x528e6e===undefined)_0x528e6e=_0x3228b6;_0x2917ce[_0x528e6e]=_0x42b1a8[_0x3228b6];}),__exportStar=this&&this[a6_0x3b0805(0x188)]||function(_0x16fda1,_0x327a9d){var _0x103531=a6_0x3b0805;for(var _0x13fda2 in _0x16fda1)if(_0x13fda2!=='default'&&!Object[_0x103531(0x174)][_0x103531(0x177)][_0x103531(0x170)](_0x327a9d,_0x13fda2))__createBinding(_0x327a9d,_0x16fda1,_0x13fda2);};Object[a6_0x3b0805(0x16c)](exports,a6_0x3b0805(0x184),{'value':!![]}),exports[a6_0x3b0805(0x181)]=exports[a6_0x3b0805(0x176)]=exports[a6_0x3b0805(0x183)]=exports['RuleType']=exports[a6_0x3b0805(0x16b)]=exports[a6_0x3b0805(0x17f)]=void 0x0,__exportStar(require('./interface'),exports),__exportStar(require(a6_0x3b0805(0x185)),exports);function a6_0x2d69(_0x475dc2,_0x3becf9){var _0x569e1d=a6_0x569e();return a6_0x2d69=function(_0x2d6902,_0x3eef2e){_0x2d6902=_0x2d6902-0x169;var _0x41c424=_0x569e1d[_0x2d6902];return _0x41c424;},a6_0x2d69(_0x475dc2,_0x3becf9);}var Validator_1=require(a6_0x3b0805(0x16a));Object[a6_0x3b0805(0x16c)](exports,a6_0x3b0805(0x17f),{'enumerable':!![],'get':function(){var _0x3c19c0=a6_0x3b0805;return Validator_1[_0x3c19c0(0x17f)];}});var Rule_1=require('./decorator/Rule');Object[a6_0x3b0805(0x16c)](exports,a6_0x3b0805(0x16b),{'enumerable':!![],'get':function(){var _0x1a8675=a6_0x3b0805;return Rule_1[_0x1a8675(0x16b)];}}),Object[a6_0x3b0805(0x16c)](exports,a6_0x3b0805(0x17d),{'enumerable':!![],'get':function(){var _0x5cd068=a6_0x3b0805;return Rule_1[_0x5cd068(0x17d)];}});var ValidatorError_1=require('./exception/ValidatorError');Object[a6_0x3b0805(0x16c)](exports,a6_0x3b0805(0x183),{'enumerable':!![],'get':function(){return ValidatorError_1['ValidatorError'];}});var ValidatorService_1=require(a6_0x3b0805(0x173));function a6_0x569e(){var _0x340b48=['./helper/dtoHelper','17228uXLgVB','10rhnxCU','__exportStar','2518092ywyPWm','CustomConfiguration','./decorator/Validator','Rule','defineProperty','./configuration','getOwnPropertyDescriptor','96gXDdsz','call','create','2056439hTfwTt','./service/ValidatorService','prototype','224581KBvjrn','ValidatorService','hasOwnProperty','__createBinding','348195aYybEq','3327534XdkccJ','get','711JQkOcL','RuleType','configurable','Validator','130AdRlMl','Configuration','2992rBzITX','ValidatorError','__esModule'];a6_0x569e=function(){return _0x340b48;};return a6_0x569e();}Object[a6_0x3b0805(0x16c)](exports,a6_0x3b0805(0x176),{'enumerable':!![],'get':function(){var _0x1fc907=a6_0x3b0805;return ValidatorService_1[_0x1fc907(0x176)];}});var configuration_1=require(a6_0x3b0805(0x16d));Object[a6_0x3b0805(0x16c)](exports,a6_0x3b0805(0x181),{'enumerable':!![],'get':function(){var _0x2e4db2=a6_0x3b0805;return configuration_1[_0x2e4db2(0x169)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a7_0x2ebbbc=a7_0x4c4f;(function(_0x4ee8a6,_0x3675ec){var _0x59f8a3=a7_0x4c4f,_0x31afe8=_0x4ee8a6();while(!![]){try{var _0x1f2586=parseInt(_0x59f8a3(0x1bf))/0x1+-parseInt(_0x59f8a3(0x1be))/0x2*(parseInt(_0x59f8a3(0x1bc))/0x3)+-parseInt(_0x59f8a3(0x1b7))/0x4*(-parseInt(_0x59f8a3(0x1c1))/0x5)+-parseInt(_0x59f8a3(0x1b9))/0x6*(parseInt(_0x59f8a3(0x1bb))/0x7)+parseInt(_0x59f8a3(0x1ba))/0x8+-parseInt(_0x59f8a3(0x1c4))/0x9+-parseInt(_0x59f8a3(0x1b6))/0xa*(-parseInt(_0x59f8a3(0x1b8))/0xb);if(_0x1f2586===_0x3675ec)break;else _0x31afe8['push'](_0x31afe8['shift']());}catch(_0xc9d5f9){_0x31afe8['push'](_0x31afe8['shift']());}}}(a7_0x4364,0xd5a04));Object[a7_0x2ebbbc(0x1c3)](exports,'__esModule',{'value':!![]}),exports[a7_0x2ebbbc(0x1c0)]=exports[a7_0x2ebbbc(0x1c5)]=void 0x0,exports['RULES_KEY']=a7_0x2ebbbc(0x1bd),exports[a7_0x2ebbbc(0x1c0)]=a7_0x2ebbbc(0x1c2);function a7_0x4c4f(_0x2d308b,_0x1cb2a6){var _0x436421=a7_0x4364();return a7_0x4c4f=function(_0x4c4f13,_0x35dbb7){_0x4c4f13=_0x4c4f13-0x1b6;var _0x2dfdef=_0x436421[_0x4c4f13];return _0x2dfdef;},a7_0x4c4f(_0x2d308b,_0x1cb2a6);}function a7_0x4364(){var _0x1409a6=['572hixfJQ','26675xduWZa','189102GzTbQP','3583536GJUKPr','217rVGzRa','48yHqKBP','anncic-api:validator:rules','13376byuYrV','1339822hvWJdB','VALIDATOR_KEY','8440WlnMdq','anncic-api:validator:validator','defineProperty','4864959zxadvv','RULES_KEY','1940DQyhKg'];a7_0x4364=function(){return _0x1409a6;};return a7_0x4364();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a8_0x548f67=a8_0x1b27;(function(_0x356063,_0x2fe489){const _0x47cc87=a8_0x1b27,_0x36e4a9=_0x356063();while(!![]){try{const _0x59910d=-parseInt(_0x47cc87(0xed))/0x1+-parseInt(_0x47cc87(0xfc))/0x2*(parseInt(_0x47cc87(0xde))/0x3)+-parseInt(_0x47cc87(0x109))/0x4*(parseInt(_0x47cc87(0x112))/0x5)+-parseInt(_0x47cc87(0x115))/0x6*(parseInt(_0x47cc87(0xdb))/0x7)+-parseInt(_0x47cc87(0xf0))/0x8*(parseInt(_0x47cc87(0xd5))/0x9)+parseInt(_0x47cc87(0xf4))/0xa*(-parseInt(_0x47cc87(0xe9))/0xb)+parseInt(_0x47cc87(0xe0))/0xc;if(_0x59910d===_0x2fe489)break;else _0x36e4a9['push'](_0x36e4a9['shift']());}catch(_0xf672c2){_0x36e4a9['push'](_0x36e4a9['shift']());}}}(a8_0x1898,0xdc6f1));function a8_0x1b27(_0x26127c,_0x517fd9){const _0x1898bf=a8_0x1898();return a8_0x1b27=function(_0x1b2797,_0x589fcc){_0x1b2797=_0x1b2797-0xd0;let _0x3f379c=_0x1898bf[_0x1b2797];return _0x3f379c;},a8_0x1b27(_0x26127c,_0x517fd9);}var __decorate=this&&this[a8_0x548f67(0x111)]||function(_0x14b04b,_0x242af4,_0x3fb8fe,_0x65432f){const _0xd03276=a8_0x548f67;var _0x2f6493=arguments[_0xd03276(0xfb)],_0x246fd9=_0x2f6493<0x3?_0x242af4:_0x65432f===null?_0x65432f=Object[_0xd03276(0xda)](_0x242af4,_0x3fb8fe):_0x65432f,_0x473eeb;if(typeof Reflect==='object'&&typeof Reflect[_0xd03276(0xee)]===_0xd03276(0xe3))_0x246fd9=Reflect[_0xd03276(0xee)](_0x14b04b,_0x242af4,_0x3fb8fe,_0x65432f);else{for(var _0xa729cd=_0x14b04b[_0xd03276(0xfb)]-0x1;_0xa729cd>=0x0;_0xa729cd--)if(_0x473eeb=_0x14b04b[_0xa729cd])_0x246fd9=(_0x2f6493<0x3?_0x473eeb(_0x246fd9):_0x2f6493>0x3?_0x473eeb(_0x242af4,_0x3fb8fe,_0x246fd9):_0x473eeb(_0x242af4,_0x3fb8fe))||_0x246fd9;}return _0x2f6493>0x3&&_0x246fd9&&Object[_0xd03276(0xf3)](_0x242af4,_0x3fb8fe,_0x246fd9),_0x246fd9;},__metadata=this&&this['__metadata']||function(_0x1e6259,_0x51b92b){const _0x43cea9=a8_0x548f67;if(typeof Reflect===_0x43cea9(0xff)&&typeof Reflect['metadata']===_0x43cea9(0xe3))return Reflect['metadata'](_0x1e6259,_0x51b92b);};Object[a8_0x548f67(0xf3)](exports,a8_0x548f67(0xef),{'value':!![]}),exports[a8_0x548f67(0x104)]=void 0x0;function a8_0x1898(){const _0x3e7e81=['schema','defineProperty','10hCqjYU','message','Singleton','getLocaleMapping','getSchema','defaultLocale','MidwayI18nServiceSingleton','length','502252vGyQvR','NOFIND_SCHEMA','Provide','object','i18nConfig','prototype','ValidatorError','PARAMS','ValidatorService','language','Config','i18nService','RULES_KEY','4564tYKHHF','Inject','forEach','validatorConfig','getClassExtendedMetadata','error','validationOptions','$_terms','__decorate','6025YAsiNy','details','../exception/ValidatorError','373476FtzHnc','@midwayjs/core','@midwayjs/i18n','init','joi','ScopeEnum','173601udyNeJ','validator','formatLocale','value','YYYY-MM-DD\x20HH:mm:ss','getOwnPropertyDescriptor','196apFWNZ','type','fromEntries','21QIzmme','i18n','87522852OFAogj','../interface','keys','function','_flags','errors','format','messages','key','11687698nNXIPT','design:paramtypes','design:type','isSchema','85990TmgnXs','decorate','__esModule','152iMKTfX','locale'];a8_0x1898=function(){return _0x3e7e81;};return a8_0x1898();}const Joi=require(a8_0x548f67(0xd3)),i18n_1=require(a8_0x548f67(0xd1)),core_1=require(a8_0x548f67(0xd0)),interface_1=require(a8_0x548f67(0xe1)),ValidatorError_1=require(a8_0x548f67(0x114));let ValidatorService=class ValidatorService{constructor(){this['messages']={};}async[a8_0x548f67(0xd2)](){const _0x2c0b27=a8_0x548f67,_0x50ab3b=Object[_0x2c0b27(0xe2)](this['i18nConfig']['localeTable']);_0x50ab3b[_0x2c0b27(0x10b)](_0xc89d3=>{const _0x57c931=_0x2c0b27;this['messages'][(0x0,i18n_1[_0x57c931(0xd7)])(_0xc89d3)]=Object[_0x57c931(0xdd)](this[_0x57c931(0x107)][_0x57c931(0xf7)](_0xc89d3,'validator'));});}[a8_0x548f67(0xf8)](_0x7a8c53){const _0x302c63=a8_0x548f67,_0x36ff39=(0x0,core_1[_0x302c63(0x10d)])(interface_1[_0x302c63(0x108)],_0x7a8c53);return _0x36ff39?Joi[_0x302c63(0xff)](_0x36ff39):undefined;}['validator'](_0x431043,_0x4df98f,_0x4ac3c1={}){const _0x13674e=a8_0x548f67;var _0x1882b2,_0x4096a6,_0x435814,_0x587250,_0x5be183;const _0xedda23=Joi[_0x13674e(0xec)](_0x431043)?_0x431043:this[_0x13674e(0xf8)](_0x431043);if(!_0xedda23)throw new AnnError(ValidatorError_1[_0x13674e(0x102)][_0x13674e(0xfd)]);_0x4ac3c1[_0x13674e(0x10f)]=Object['assign']((_0x1882b2=this['validatorConfig'][_0x13674e(0x10f)])!==null&&_0x1882b2!==void 0x0?_0x1882b2:{},{'messages':this[_0x13674e(0xe7)]},_0x4ac3c1['validationOptions']||{}),_0x4ac3c1[_0x13674e(0x10f)][_0x13674e(0xe5)]=_0x4ac3c1['validationOptions'][_0x13674e(0xe5)]||{},_0x4ac3c1[_0x13674e(0x10f)][_0x13674e(0xe5)][_0x13674e(0x105)]=(0x0,i18n_1[_0x13674e(0xd7)])(this[_0x13674e(0x107)]['getAvailableLocale'](_0x4ac3c1[_0x13674e(0x10f)][_0x13674e(0xe5)]['language']||_0x4ac3c1[_0x13674e(0xf1)]||this[_0x13674e(0x100)][_0x13674e(0xf9)],_0x13674e(0xd6)));const _0x44dc99=_0xedda23['validate'](_0x4df98f,_0x4ac3c1['validationOptions']);if(_0x44dc99===null||_0x44dc99===void 0x0?void 0x0:_0x44dc99[_0x13674e(0x10e)])throw new AnnError(ValidatorError_1[_0x13674e(0x102)]['PARAMS'],{'message':((_0x587250=(_0x435814=(_0x4096a6=_0x44dc99['error'])===null||_0x4096a6===void 0x0?void 0x0:_0x4096a6[_0x13674e(0x113)])===null||_0x435814===void 0x0?void 0x0:_0x435814[0x0])===null||_0x587250===void 0x0?void 0x0:_0x587250[_0x13674e(0xf5)])||'参数验证失败'});if(_0x44dc99===null||_0x44dc99===void 0x0?void 0x0:_0x44dc99['value']){const _0x6b20dc=(_0x5be183=_0xedda23===null||_0xedda23===void 0x0?void 0x0:_0xedda23['$_terms'])===null||_0x5be183===void 0x0?void 0x0:_0x5be183['keys'],_0x13c676=function(_0xb31022,_0x25d347){const _0x342b17=_0x13674e;var _0x41f586,_0x1f3a0a,_0x4d82d4,_0x59e7bb,_0xcb79ce,_0x55db8d,_0x2f887b,_0x1fd856,_0x56623a,_0x3c786e,_0x6bfc7;for(let _0x23c70d in _0xb31022){if(_0x25d347[(_0x41f586=_0xb31022[_0x23c70d])===null||_0x41f586===void 0x0?void 0x0:_0x41f586[_0x342b17(0xe8)]]&&((_0x4d82d4=(_0x1f3a0a=_0xb31022[_0x23c70d])===null||_0x1f3a0a===void 0x0?void 0x0:_0x1f3a0a[_0x342b17(0xf2)])===null||_0x4d82d4===void 0x0?void 0x0:_0x4d82d4['type'])){if(((_0xcb79ce=(_0x59e7bb=_0xb31022[_0x23c70d])===null||_0x59e7bb===void 0x0?void 0x0:_0x59e7bb[_0x342b17(0xf2)])===null||_0xcb79ce===void 0x0?void 0x0:_0xcb79ce[_0x342b17(0xdc)])==_0x342b17(0xff))_0x25d347[_0xb31022[_0x23c70d][_0x342b17(0xe8)]]=_0x13c676((_0x2f887b=(_0x55db8d=_0xb31022[_0x23c70d])===null||_0x55db8d===void 0x0?void 0x0:_0x55db8d[_0x342b17(0xf2)][_0x342b17(0x110)])===null||_0x2f887b===void 0x0?void 0x0:_0x2f887b['keys'],_0x25d347[_0xb31022[_0x23c70d][_0x342b17(0xe8)]]);else{if(_0xb31022[_0x23c70d][_0x342b17(0xf2)]['type']=='date'&&_0x44dc99[_0x342b17(0xd8)][(_0x1fd856=_0xb31022[_0x23c70d])===null||_0x1fd856===void 0x0?void 0x0:_0x1fd856[_0x342b17(0xe8)]]){const _0x188abc=((_0x6bfc7=(_0x3c786e=(_0x56623a=_0xb31022[_0x23c70d])===null||_0x56623a===void 0x0?void 0x0:_0x56623a[_0x342b17(0xf2)])===null||_0x3c786e===void 0x0?void 0x0:_0x3c786e[_0x342b17(0xe4)])===null||_0x6bfc7===void 0x0?void 0x0:_0x6bfc7[_0x342b17(0xe6)])||_0x342b17(0xd9);_0x25d347[_0xb31022[_0x23c70d]['key']]=dayjs(_0x44dc99[_0x342b17(0xd8)][_0xb31022[_0x23c70d][_0x342b17(0xe8)]])[_0x342b17(0xe6)](_0x188abc);}}}}return _0x25d347;};return _0x13c676(_0x6b20dc,_0x44dc99[_0x13674e(0xd8)]);}throw new AnnError(ValidatorError_1[_0x13674e(0x102)][_0x13674e(0x103)]);}};__decorate([(0x0,core_1[a8_0x548f67(0x106)])(a8_0x548f67(0xdf)),__metadata(a8_0x548f67(0xeb),Object)],ValidatorService[a8_0x548f67(0x101)],'i18nConfig',void 0x0),__decorate([(0x0,core_1[a8_0x548f67(0x106)])(a8_0x548f67(0xd6)),__metadata(a8_0x548f67(0xeb),Object)],ValidatorService[a8_0x548f67(0x101)],a8_0x548f67(0x10c),void 0x0),__decorate([(0x0,core_1[a8_0x548f67(0x10a)])(),__metadata(a8_0x548f67(0xeb),i18n_1[a8_0x548f67(0xfa)])],ValidatorService[a8_0x548f67(0x101)],a8_0x548f67(0x107),void 0x0),__decorate([(0x0,core_1['Init'])(),__metadata(a8_0x548f67(0xeb),Function),__metadata(a8_0x548f67(0xea),[]),__metadata('design:returntype',Promise)],ValidatorService[a8_0x548f67(0x101)],a8_0x548f67(0xd2),null),ValidatorService=__decorate([(0x0,core_1[a8_0x548f67(0xfe)])(a8_0x548f67(0xd6)),(0x0,core_1['Scope'])(core_1[a8_0x548f67(0xd4)][a8_0x548f67(0xf6)])],ValidatorService),exports[a8_0x548f67(0x104)]=ValidatorService;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/validator",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@anncic-api/core": "^1.2.
|
|
18
|
+
"@anncic-api/core": "^1.2.2",
|
|
19
19
|
"@joi/date": "^2.1.0",
|
|
20
20
|
"joi": "^17.6.0"
|
|
21
21
|
},
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"javascript-obfuscator": "2.19.0",
|
|
25
25
|
"typescript": "^4.7.4"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "95eaacf979d91710cc71f68236cace152e3fd9ef"
|
|
28
28
|
}
|