@anncic-api/validator 3.4.79 → 3.4.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Rule.js +1 -1
- package/dist/decorator/Validator.js +1 -1
- package/dist/exception/ValidatorError.js +1 -1
- package/dist/helper/dtoHelper.js +1 -1
- package/dist/helper/getSchema.js +1 -1
- package/dist/index.js +1 -1
- package/dist/interface.js +1 -1
- package/dist/service/ValidatorService.js +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x20e30f=a0_0x3bf3;(function(_0x98b697,_0xc04e96){const _0x5f3d1c=a0_0x3bf3,_0xa34efa=_0x98b697();while(!![]){try{const _0x3beb57=-parseInt(_0x5f3d1c(0x1ab))/0x1*(-parseInt(_0x5f3d1c(0x1c1))/0x2)+-parseInt(_0x5f3d1c(0x1b4))/0x3*(-parseInt(_0x5f3d1c(0x1b6))/0x4)+parseInt(_0x5f3d1c(0x1bb))/0x5*(parseInt(_0x5f3d1c(0x1ac))/0x6)+parseInt(_0x5f3d1c(0x1b5))/0x7*(parseInt(_0x5f3d1c(0x1b2))/0x8)+-parseInt(_0x5f3d1c(0x1c4))/0x9*(parseInt(_0x5f3d1c(0x1ba))/0xa)+parseInt(_0x5f3d1c(0x1b0))/0xb+-parseInt(_0x5f3d1c(0x1c0))/0xc;if(_0x3beb57===_0xc04e96)break;else _0xa34efa['push'](_0xa34efa['shift']());}catch(_0x8042dc){_0xa34efa['push'](_0xa34efa['shift']());}}}(a0_0x5757,0xb78bb));const a0_0x392f0e=(function(){let _0x52ae6b=!![];return function(_0x56f18c,_0x4f0ead){const _0x4edd61=_0x52ae6b?function(){const _0x33c772=a0_0x3bf3;if(_0x4f0ead){const _0x2498fd=_0x4f0ead[_0x33c772(0x1c3)](_0x56f18c,arguments);return _0x4f0ead=null,_0x2498fd;}}:function(){};return _0x52ae6b=![],_0x4edd61;};}()),a0_0x161fff=a0_0x392f0e(this,function(){const _0x562085=a0_0x3bf3;return a0_0x161fff['toString']()[_0x562085(0x1ad)]('(((.+)+)+)+$')[_0x562085(0x1b1)]()[_0x562085(0x1bd)](a0_0x161fff)[_0x562085(0x1ad)](_0x562085(0x1b3));});a0_0x161fff();function a0_0x5757(){const _0x1320df=['(((.+)+)+)+$','64716WqSrOB','7nEWCxc','4QXeWWD','string','PARAMS','../../locales/zh_CN.json','13101870dkQRmZ','15ibuCOd','defineProperty','constructor','default','ValidatorError','19860264AzCoav','374CFGVgV','__esModule','apply','9DLyVGz','3765JqTnpg','1953234XVynPj','search','../../locales/en_US.json','../exception/ValidatorError','14685704XFrDBs','toString','5437632zKPQeb'];a0_0x5757=function(){return _0x1320df;};return a0_0x5757();}function a0_0x3bf3(_0x40af5e,_0x25e3d1){const _0x44ca96=a0_0x5757();return a0_0x3bf3=function(_0x161fff,_0x392f0e){_0x161fff=_0x161fff-0x1ab;let _0x575763=_0x44ca96[_0x161fff];return _0x575763;},a0_0x3bf3(_0x40af5e,_0x25e3d1);}'use strict';Object[a0_0x20e30f(0x1bc)](exports,a0_0x20e30f(0x1c2),{'value':!![]});const ValidatorError_1=require(a0_0x20e30f(0x1af));exports[a0_0x20e30f(0x1be)]={'validator':{'errorStatus':ValidatorError_1[a0_0x20e30f(0x1bf)][a0_0x20e30f(0x1b8)],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':a0_0x20e30f(0x1b7)}},'i18n':{'localeTable':{'en_US':{'validator':require(a0_0x20e30f(0x1ae))},'zh_CN':{'validator':require(a0_0x20e30f(0x1b9))}}}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a1_0x223dbc=a1_0x585c;(function(_0x13469f,_0x53fbd5){const _0xb6cba6=a1_0x585c,_0x187d39=_0x13469f();while(!![]){try{const _0x5c37d9=parseInt(_0xb6cba6(0xf0))/0x1*(-parseInt(_0xb6cba6(0xfe))/0x2)+-parseInt(_0xb6cba6(0xdc))/0x3+parseInt(_0xb6cba6(0xda))/0x4+parseInt(_0xb6cba6(0xfc))/0x5*(parseInt(_0xb6cba6(0xf8))/0x6)+parseInt(_0xb6cba6(0xdf))/0x7+parseInt(_0xb6cba6(0xe7))/0x8*(-parseInt(_0xb6cba6(0xd4))/0x9)+parseInt(_0xb6cba6(0xee))/0xa;if(_0x5c37d9===_0x53fbd5)break;else _0x187d39['push'](_0x187d39['shift']());}catch(_0x5e9980){_0x187d39['push'](_0x187d39['shift']());}}}(a1_0x5f02,0xbe6de));const a1_0x500637=(function(){let _0x48c736=!![];return function(_0x466e90,_0xae7d67){const _0x17ff8a=_0x48c736?function(){const _0x33a918=a1_0x585c;if(_0xae7d67){const _0x223f10=_0xae7d67[_0x33a918(0xd8)](_0x466e90,arguments);return _0xae7d67=null,_0x223f10;}}:function(){};return _0x48c736=![],_0x17ff8a;};}()),a1_0x283217=a1_0x500637(this,function(){const _0x2c3ccd=a1_0x585c;return a1_0x283217[_0x2c3ccd(0xe1)]()[_0x2c3ccd(0xe2)]('(((.+)+)+)+$')[_0x2c3ccd(0xe1)]()[_0x2c3ccd(0xf7)](a1_0x283217)[_0x2c3ccd(0xe2)](_0x2c3ccd(0xca));});a1_0x283217();'use strict';var __decorate=this&&this['__decorate']||function(_0x3cb307,_0x3fbdfe,_0x24950a,_0x22b94c){const _0x3dbd20=a1_0x585c;var _0x96940a=arguments[_0x3dbd20(0xd0)],_0x4302d3=_0x96940a<0x3?_0x3fbdfe:_0x22b94c===null?_0x22b94c=Object[_0x3dbd20(0x108)](_0x3fbdfe,_0x24950a):_0x22b94c,_0xfe2d47;if(typeof Reflect===_0x3dbd20(0xdb)&&typeof Reflect[_0x3dbd20(0xfd)]===_0x3dbd20(0xe8))_0x4302d3=Reflect[_0x3dbd20(0xfd)](_0x3cb307,_0x3fbdfe,_0x24950a,_0x22b94c);else{for(var _0x643c84=_0x3cb307[_0x3dbd20(0xd0)]-0x1;_0x643c84>=0x0;_0x643c84--)if(_0xfe2d47=_0x3cb307[_0x643c84])_0x4302d3=(_0x96940a<0x3?_0xfe2d47(_0x4302d3):_0x96940a>0x3?_0xfe2d47(_0x3fbdfe,_0x24950a,_0x4302d3):_0xfe2d47(_0x3fbdfe,_0x24950a))||_0x4302d3;}return _0x96940a>0x3&&_0x4302d3&&Object['defineProperty'](_0x3fbdfe,_0x24950a,_0x4302d3),_0x4302d3;},__metadata=this&&this[a1_0x223dbc(0x104)]||function(_0x1047bf,_0x239d0c){const _0x50fce3=a1_0x223dbc;if(typeof Reflect===_0x50fce3(0xdb)&&typeof Reflect[_0x50fce3(0x103)]===_0x50fce3(0xe8))return Reflect[_0x50fce3(0x103)](_0x1047bf,_0x239d0c);};Object[a1_0x223dbc(0xf1)](exports,'__esModule',{'value':!![]}),exports['CustomConfiguration']=void 0x0;const i18n_1=require('@midwayjs/i18n'),core_1=require('@midwayjs/core'),core_2=require(a1_0x223dbc(0xf2)),interface_1=require(a1_0x223dbc(0xd6)),ValidatorService_1=require(a1_0x223dbc(0xcc)),i18n=require(a1_0x223dbc(0xeb)),anncic=require(a1_0x223dbc(0xe4)),ConfigDefault=require(a1_0x223dbc(0x107));let CustomConfiguration=class CustomConfiguration{async[a1_0x223dbc(0xd5)](){const _0x31d7e1=a1_0x223dbc;this['decorator'][_0x31d7e1(0xea)](interface_1['VALIDATOR_KEY'],_0x43be4f=>{const _0xc6f6cb=_0x31d7e1,_0x3f1261=_0x43be4f['metadata'],_0x443e39=(0x0,core_2[_0xc6f6cb(0xd2)])(_0x43be4f['target'],_0x43be4f[_0xc6f6cb(0xe3)]);return{'before':_0x5bcf78=>{const _0x14612a=_0xc6f6cb;var _0x74d052,_0x16687f,_0x25ccff,_0x4158c0,_0x2e1a68,_0xba4c17,_0x30253f,_0x28c199,_0x1123ae,_0x574f28,_0xc5f3c3,_0x45515b,_0x10fb02;const _0x4fe909=_0x5bcf78[_0x14612a(0xc9)][core_1['REQUEST_OBJ_CTX_KEY']],_0x2aea43=Object[_0x14612a(0xde)]({},((_0x74d052=_0x4fe909===null||_0x4fe909===void 0x0?void 0x0:_0x4fe909[_0x14612a(0xf3)])===null||_0x74d052===void 0x0?void 0x0:_0x74d052[_0x14612a(0xd9)])||{},((_0x16687f=_0x4fe909===null||_0x4fe909===void 0x0?void 0x0:_0x4fe909['request'])===null||_0x16687f===void 0x0?void 0x0:_0x16687f[_0x14612a(0xd7)])||{}),_0x4f20fb=((0x0,core_2[_0x14612a(0xce)])(interface_1[_0x14612a(0xe0)],_0x5bcf78[_0x14612a(0xc9)])||[])[_0x14612a(0xe6)](_0x5e12e0=>_0x5e12e0['method']==_0x5bcf78[_0x14612a(0xfa)]);!(_0x3f1261===null||_0x3f1261===void 0x0?void 0x0:_0x3f1261[_0x14612a(0xef)])&&_0x4fe909&&_0x4fe909['getAttr']&&(_0x3f1261[_0x14612a(0xef)]=_0x4fe909[_0x14612a(0xdd)](i18n_1[_0x14612a(0xcd)]));for(let _0xe35057=0x0;_0xe35057<_0x443e39[_0x14612a(0xd0)];_0xe35057++){const _0x244bfc=_0x443e39[_0xe35057],_0x1f1057=this[_0x14612a(0xed)][_0x14612a(0x105)](_0x244bfc);if(_0x1f1057){if(typeof _0x5bcf78[_0x14612a(0xcb)][_0xe35057]==_0x14612a(0xe5)||((_0x25ccff=_0x5bcf78[_0x14612a(0xcb)][_0xe35057])===null||_0x25ccff===void 0x0?void 0x0:_0x25ccff['request'])&&((_0x4158c0=_0x5bcf78[_0x14612a(0xcb)][_0xe35057])===null||_0x4158c0===void 0x0?void 0x0:_0x4158c0[_0x14612a(0xfb)])&&((_0x2e1a68=_0x5bcf78[_0x14612a(0xcb)][_0xe35057])===null||_0x2e1a68===void 0x0?void 0x0:_0x2e1a68[_0x14612a(0x106)]))_0x5bcf78[_0x14612a(0xcb)][_0xe35057]=_0x2aea43;else((_0xba4c17=_0x5bcf78[_0x14612a(0xcb)][_0xe35057])===null||_0xba4c17===void 0x0?void 0x0:_0xba4c17[_0x14612a(0x102)])==_0x14612a(0xe9)&&_0x5bcf78[_0x14612a(0xcb)]['splice'](_0xe35057,0x0,_0x2aea43);const _0x59d072=this['ValidatorService'][_0x14612a(0xf6)](_0x1f1057,_0x5bcf78[_0x14612a(0xcb)][_0xe35057],_0x3f1261);_0x59d072&&(_0x5bcf78['args'][_0xe35057]=_0x59d072);}else{if((_0x4f20fb===null||_0x4f20fb===void 0x0?void 0x0:_0x4f20fb[_0x14612a(0xd1)][_0xe35057])&&((_0x30253f=_0x5bcf78[_0x14612a(0xcb)][_0xe35057])===null||_0x30253f===void 0x0?void 0x0:_0x30253f[_0x14612a(0xff)])&&typeof _0x5bcf78[_0x14612a(0xcb)][_0xe35057][_0x14612a(0xf5)]=='function'&&((_0x28c199=_0x4fe909===null||_0x4fe909===void 0x0?void 0x0:_0x4fe909[_0x14612a(0xff)])===null||_0x28c199===void 0x0?void 0x0:_0x28c199[_0x4f20fb[_0x14612a(0xd1)][_0xe35057]]))_0x5bcf78['args'][_0xe35057]=_0x244bfc((_0x1123ae=_0x4fe909===null||_0x4fe909===void 0x0?void 0x0:_0x4fe909[_0x14612a(0xff)])===null||_0x1123ae===void 0x0?void 0x0:_0x1123ae[_0x4f20fb[_0x14612a(0xd1)][_0xe35057]]);else(_0x4f20fb===null||_0x4f20fb===void 0x0?void 0x0:_0x4f20fb[_0x14612a(0xd1)][_0xe35057])&&((_0xc5f3c3=(_0x574f28=_0x5bcf78[_0x14612a(0xcb)][_0xe35057])===null||_0x574f28===void 0x0?void 0x0:_0x574f28[_0x14612a(0xff)])===null||_0xc5f3c3===void 0x0?void 0x0:_0xc5f3c3[_0x4f20fb[_0x14612a(0xd1)][_0xe35057]])&&(_0x5bcf78[_0x14612a(0xcb)][_0xe35057]=(_0x10fb02=(_0x45515b=_0x5bcf78[_0x14612a(0xcb)][_0xe35057])===null||_0x45515b===void 0x0?void 0x0:_0x45515b['params'])===null||_0x10fb02===void 0x0?void 0x0:_0x10fb02[_0x4f20fb[_0x14612a(0xd1)][_0xe35057]]);}}},'afterThrow':(_0x39d8de,_0xcb94f0)=>{throw _0xcb94f0;}};});}};function a1_0x585c(_0x12c6eb,_0x51e264){const _0x4e4f6d=a1_0x5f02();return a1_0x585c=function(_0x283217,_0x500637){_0x283217=_0x283217-0xc9;let _0x5f0227=_0x4e4f6d[_0x283217];return _0x5f0227;},a1_0x585c(_0x12c6eb,_0x51e264);}exports[a1_0x223dbc(0xf9)]=CustomConfiguration,__decorate([(0x0,core_2[a1_0x223dbc(0xec)])(),__metadata(a1_0x223dbc(0x101),core_1[a1_0x223dbc(0xf4)])],CustomConfiguration['prototype'],a1_0x223dbc(0xcf),void 0x0),__decorate([(0x0,core_2[a1_0x223dbc(0xec)])(),__metadata(a1_0x223dbc(0x101),ValidatorService_1[a1_0x223dbc(0xed)])],CustomConfiguration['prototype'],a1_0x223dbc(0xed),void 0x0),exports[a1_0x223dbc(0xf9)]=CustomConfiguration=__decorate([(0x0,core_2[a1_0x223dbc(0x100)])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':a1_0x223dbc(0xd3),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);function a1_0x5f02(){const _0x56cde4=['306KraEXr','onReady','./interface','body','apply','query','824200RpPGSV','object','4033152zSkbVj','getAttr','assign','9814007hVbbGC','VALIDATOR_KEY','toString','search','propertyName','@anncic-api/core','undefined','find','244576SilnmM','function','bound\x20dispatch','registerMethodHandler','@midwayjs/i18n','Inject','ValidatorService','23702240aXIAEZ','locale','103sZtoYv','defineProperty','@midwayjs/core','request','MidwayDecoratorService','param','validator','constructor','213366DjHvYC','CustomConfiguration','methodName','res','35CJDJFt','decorate','20648yLshZR','params','Configuration','design:type','name','metadata','__metadata','getSchema','req','./config/config.default','getOwnPropertyDescriptor','target','(((.+)+)+)+$','args','./service/ValidatorService','I18N_ATTR_KEY','getClassMetadata','decorator','length','methodArgs','getMethodParamTypes','anncic-api:validator'];a1_0x5f02=function(){return _0x56cde4;};return a1_0x5f02();}
|
package/dist/decorator/Rule.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0x397eea=a2_0x48af;(function(_0x47efe2,_0x1c9377){const _0x15a3d2=a2_0x48af,_0x47fb96=_0x47efe2();while(!![]){try{const _0xf52e44=parseInt(_0x15a3d2(0x153))/0x1*(parseInt(_0x15a3d2(0x154))/0x2)+-parseInt(_0x15a3d2(0x142))/0x3+parseInt(_0x15a3d2(0x148))/0x4+parseInt(_0x15a3d2(0x143))/0x5+parseInt(_0x15a3d2(0x14c))/0x6*(parseInt(_0x15a3d2(0x150))/0x7)+parseInt(_0x15a3d2(0x149))/0x8+-parseInt(_0x15a3d2(0x147))/0x9*(parseInt(_0x15a3d2(0x151))/0xa);if(_0xf52e44===_0x1c9377)break;else _0x47fb96['push'](_0x47fb96['shift']());}catch(_0x2d2729){_0x47fb96['push'](_0x47fb96['shift']());}}}(a2_0x15a6,0xcee2f));const a2_0x4a5897=(function(){let _0x2a0fcd=!![];return function(_0x54d954,_0x4f7f69){const _0x40959b=_0x2a0fcd?function(){const _0x316d36=a2_0x48af;if(_0x4f7f69){const _0x151d97=_0x4f7f69[_0x316d36(0x14f)](_0x54d954,arguments);return _0x4f7f69=null,_0x151d97;}}:function(){};return _0x2a0fcd=![],_0x40959b;};}()),a2_0x2bbd64=a2_0x4a5897(this,function(){const _0x37acc7=a2_0x48af;return a2_0x2bbd64[_0x37acc7(0x156)]()[_0x37acc7(0x13f)](_0x37acc7(0x14a))[_0x37acc7(0x156)]()[_0x37acc7(0x141)](a2_0x2bbd64)['search'](_0x37acc7(0x14a));});function a2_0x15a6(){const _0xc6fc28=['getPropertyType','@midwayjs/core','description','extend','keys','map','Array','../interface','attachClassMetadata','search','name','constructor','699834rndbce','5690150mlFZzz','getClassMetadata','saveClassMetadata','__esModule','1231425JRIUJK','514860mpHhFd','5820856RQiIPy','(((.+)+)+)+$','isSchema','36HZTSYC','RuleType','default','apply','363986IYXirc','210wDgNFC','array','164767Qmnaml','20ozPGDR','@joi/date','toString','RULES_KEY','Rule','label'];a2_0x15a6=function(){return _0xc6fc28;};return a2_0x15a6();}a2_0x2bbd64();'use strict';Object['defineProperty'](exports,a2_0x397eea(0x146),{'value':!![]}),exports[a2_0x397eea(0x14d)]=void 0x0,exports[a2_0x397eea(0x158)]=Rule;const joi=require('joi'),date_1=require(a2_0x397eea(0x155)),core_1=require(a2_0x397eea(0x137)),interface_1=require(a2_0x397eea(0x13d));function a2_0x48af(_0x56a820,_0x4f7e65){const _0x2d8176=a2_0x15a6();return a2_0x48af=function(_0x2bbd64,_0x4a5897){_0x2bbd64=_0x2bbd64-0x136;let _0x15a65f=_0x2d8176[_0x2bbd64];return _0x15a65f;},a2_0x48af(_0x56a820,_0x4f7e65);}exports[a2_0x397eea(0x14d)]=joi[a2_0x397eea(0x139)](date_1[a2_0x397eea(0x14e)]);function Rule(_0x36e7e2,_0x5c28e5,_0x5df576=''){return(_0x10901c,_0x2d7565)=>{const _0x1f859a=a2_0x48af;var _0x3ad907;if(_0x2d7565)!joi[_0x1f859a(0x14b)](_0x5c28e5)&&(_0x5c28e5===null||_0x5c28e5===void 0x0?void 0x0:_0x5c28e5[_0x1f859a(0x140)])&&(_0x5c28e5=joi['object']((0x0,core_1['getClassMetadata'])(interface_1[_0x1f859a(0x157)],_0x5c28e5))['meta']({'id':_0x5c28e5['name']}),(0x0,core_1[_0x1f859a(0x136)])(_0x10901c,_0x2d7565)[_0x1f859a(0x140)]===_0x1f859a(0x13c)&&(_0x5c28e5=joi[_0x1f859a(0x152)]()['items'](_0x5c28e5))),joi['isSchema'](_0x5c28e5)&&(_0x36e7e2&&typeof(_0x5c28e5===null||_0x5c28e5===void 0x0?void 0x0:_0x5c28e5[_0x1f859a(0x159)])=='function'&&(_0x5c28e5=_0x5c28e5[_0x1f859a(0x159)](_0x36e7e2)),_0x5df576&&typeof(_0x5c28e5===null||_0x5c28e5===void 0x0?void 0x0:_0x5c28e5['description'])=='function'&&(_0x5c28e5=_0x5c28e5[_0x1f859a(0x138)](_0x5df576)),(0x0,core_1[_0x1f859a(0x13e)])(interface_1[_0x1f859a(0x157)],_0x5c28e5,_0x10901c,_0x2d7565));else{const _0x5e143c=(0x0,core_1[_0x1f859a(0x144)])(interface_1[_0x1f859a(0x157)],_0x5c28e5);if(_0x5e143c){let _0x595988=(_0x3ad907=(0x0,core_1[_0x1f859a(0x144)])(interface_1['RULES_KEY'],_0x10901c))!==null&&_0x3ad907!==void 0x0?_0x3ad907:{};Object[_0x1f859a(0x13a)](_0x5e143c)[_0x1f859a(0x13b)](_0x53500b=>{!_0x595988[_0x53500b]&&(_0x595988[_0x53500b]=_0x5e143c[_0x53500b]);}),(0x0,core_1[_0x1f859a(0x145)])(interface_1[_0x1f859a(0x157)],_0x595988,_0x10901c);}}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a3_0x390d85=a3_0x478f;(function(_0x424b36,_0x117c91){const _0x334e5e=a3_0x478f,_0x4ff5ee=_0x424b36();while(!![]){try{const _0x510911=-parseInt(_0x334e5e(0x10c))/0x1*(parseInt(_0x334e5e(0x115))/0x2)+parseInt(_0x334e5e(0x111))/0x3*(-parseInt(_0x334e5e(0x103))/0x4)+parseInt(_0x334e5e(0x101))/0x5+parseInt(_0x334e5e(0x108))/0x6*(parseInt(_0x334e5e(0x10e))/0x7)+parseInt(_0x334e5e(0x116))/0x8+-parseInt(_0x334e5e(0x113))/0x9+parseInt(_0x334e5e(0x10f))/0xa*(parseInt(_0x334e5e(0x10a))/0xb);if(_0x510911===_0x117c91)break;else _0x4ff5ee['push'](_0x4ff5ee['shift']());}catch(_0x36d595){_0x4ff5ee['push'](_0x4ff5ee['shift']());}}}(a3_0x3689,0xe872f));const a3_0x469b44=(function(){let _0xa01a76=!![];return function(_0x5c2d06,_0x4d4932){const _0x238606=_0xa01a76?function(){const _0x2c3c96=a3_0x478f;if(_0x4d4932){const _0x2c14a7=_0x4d4932[_0x2c3c96(0x109)](_0x5c2d06,arguments);return _0x4d4932=null,_0x2c14a7;}}:function(){};return _0xa01a76=![],_0x238606;};}()),a3_0x282bbb=a3_0x469b44(this,function(){const _0x1df5fc=a3_0x478f;return a3_0x282bbb[_0x1df5fc(0x10d)]()[_0x1df5fc(0x10b)]('(((.+)+)+)+$')['toString']()[_0x1df5fc(0x114)](a3_0x282bbb)[_0x1df5fc(0x10b)]('(((.+)+)+)+$');});a3_0x282bbb();function a3_0x478f(_0x258ced,_0x3e0afc){const _0x40a588=a3_0x3689();return a3_0x478f=function(_0x282bbb,_0x469b44){_0x282bbb=_0x282bbb-0x100;let _0x3689a2=_0x40a588[_0x282bbb];return _0x3689a2;},a3_0x478f(_0x258ced,_0x3e0afc);}'use strict';Object[a3_0x390d85(0x106)](exports,a3_0x390d85(0x102),{'value':!![]}),exports['Validator']=Validator,exports[a3_0x390d85(0x110)]=getFuncArgs;const core_1=require('@midwayjs/core'),interface_1=require('../interface');function Validator(_0x3d5da1={}){return(_0x32cb76,_0x5eed5a,_0x31f1f9)=>{const _0x3c3462=a3_0x478f,_0xe29407=getFuncArgs(_0x32cb76[_0x5eed5a]);(0x0,core_1['attachClassMetadata'])(interface_1[_0x3c3462(0x112)],{'method':_0x5eed5a,'methodArgs':_0xe29407},_0x32cb76),(0x0,core_1['createCustomMethodDecorator'])(interface_1['VALIDATOR_KEY'],_0x3d5da1)(_0x32cb76,_0x5eed5a,_0x31f1f9);};}function getFuncArgs(_0x6fa675){const _0x40844d=a3_0x390d85;if(typeof _0x6fa675==_0x40844d(0x104)){const _0x5eae06=/=>.*$/mg,_0x5e2ace=/=[^,)]+/mg,_0x35824d=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x19ec66=(_0x6fa675[_0x40844d(0x107)]?_0x6fa675['prototype'][_0x40844d(0x114)][_0x40844d(0x10d)]():_0x6fa675['toString']())[_0x40844d(0x117)](_0x35824d,'')[_0x40844d(0x117)](_0x5eae06,'')[_0x40844d(0x117)](_0x5e2ace,''),_0x1c6535=_0x19ec66['slice'](_0x19ec66[_0x40844d(0x100)]('(')+0x1,_0x19ec66[_0x40844d(0x100)](')'))[_0x40844d(0x105)](/([^\s,]+)/g)||[];return _0x1c6535;}}function a3_0x3689(){const _0x2db266=['4202400WlEJvR','__esModule','332SgAgvF','function','match','defineProperty','prototype','4338hGgSvP','apply','2608078AXejhb','search','262ukYsUY','toString','11249lKcPPh','90NKfVaT','getFuncArgs','46689TSzXef','VALIDATOR_KEY','8532657BDwrqj','constructor','7224ySiTLp','16272vrZCyB','replace','indexOf'];a3_0x3689=function(){return _0x2db266;};return a3_0x3689();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a4_0x19f490=a4_0x33f7;(function(_0x562ec3,_0x5630e5){var _0x18b563=a4_0x33f7,_0x3f0b0d=_0x562ec3();while(!![]){try{var _0x423837=-parseInt(_0x18b563(0x119))/0x1*(-parseInt(_0x18b563(0x12a))/0x2)+parseInt(_0x18b563(0x116))/0x3+parseInt(_0x18b563(0x127))/0x4*(-parseInt(_0x18b563(0x121))/0x5)+-parseInt(_0x18b563(0x115))/0x6+-parseInt(_0x18b563(0x11f))/0x7+-parseInt(_0x18b563(0x126))/0x8*(-parseInt(_0x18b563(0x125))/0x9)+parseInt(_0x18b563(0x12f))/0xa*(parseInt(_0x18b563(0x12c))/0xb);if(_0x423837===_0x5630e5)break;else _0x3f0b0d['push'](_0x3f0b0d['shift']());}catch(_0x5313d9){_0x3f0b0d['push'](_0x3f0b0d['shift']());}}}(a4_0x27ef,0x48776));var a4_0x35dc25=(function(){var _0x2a2c05=!![];return function(_0x13b5ff,_0xfbcd35){var _0x2f00f0=_0x2a2c05?function(){var _0x5553c2=a4_0x33f7;if(_0xfbcd35){var _0x702708=_0xfbcd35[_0x5553c2(0x120)](_0x13b5ff,arguments);return _0xfbcd35=null,_0x702708;}}:function(){};return _0x2a2c05=![],_0x2f00f0;};}()),a4_0x145193=a4_0x35dc25(this,function(){var _0x5d5ae0=a4_0x33f7;return a4_0x145193['toString']()['search']('(((.+)+)+)+$')[_0x5d5ae0(0x12d)]()[_0x5d5ae0(0x11b)](a4_0x145193)[_0x5d5ae0(0x11c)](_0x5d5ae0(0x11e));});function a4_0x27ef(){var _0x55902a=['ValidatorError','273836KxTKLF','@anncic-api/core','1306657rJxRma','toString','decorate','20RlyuPv','__decorate','PARAMS','NOFIND_SCHEMA','length','345882ptwosw','1386654tufTho','参数验证失败','AnnErrorMsg','1pwsPOA','getOwnPropertyDescriptor','constructor','search','function','(((.+)+)+)+$','294497tzgCrz','apply','3805CssyXQ','object','design:type','defineProperty','36423GqhHhu','40ShkvFx','2420ejRcsp','metadata'];a4_0x27ef=function(){return _0x55902a;};return a4_0x27ef();}a4_0x145193();'use strict';var __decorate=this&&this[a4_0x19f490(0x130)]||function(_0x5549a2,_0x5b893d,_0x3e0f24,_0x1875fa){var _0x9354a6=a4_0x19f490,_0x14815c=arguments[_0x9354a6(0x114)],_0x5e730f=_0x14815c<0x3?_0x5b893d:_0x1875fa===null?_0x1875fa=Object[_0x9354a6(0x11a)](_0x5b893d,_0x3e0f24):_0x1875fa,_0x251c56;if(typeof Reflect==='object'&&typeof Reflect[_0x9354a6(0x12e)]===_0x9354a6(0x11d))_0x5e730f=Reflect[_0x9354a6(0x12e)](_0x5549a2,_0x5b893d,_0x3e0f24,_0x1875fa);else{for(var _0x38b101=_0x5549a2[_0x9354a6(0x114)]-0x1;_0x38b101>=0x0;_0x38b101--)if(_0x251c56=_0x5549a2[_0x38b101])_0x5e730f=(_0x14815c<0x3?_0x251c56(_0x5e730f):_0x14815c>0x3?_0x251c56(_0x5b893d,_0x3e0f24,_0x5e730f):_0x251c56(_0x5b893d,_0x3e0f24))||_0x5e730f;}return _0x14815c>0x3&&_0x5e730f&&Object[_0x9354a6(0x124)](_0x5b893d,_0x3e0f24,_0x5e730f),_0x5e730f;},__metadata=this&&this['__metadata']||function(_0x25e36f,_0x44d770){var _0xf4cf7c=a4_0x19f490;if(typeof Reflect===_0xf4cf7c(0x122)&&typeof Reflect['metadata']==='function')return Reflect[_0xf4cf7c(0x128)](_0x25e36f,_0x44d770);};Object[a4_0x19f490(0x124)](exports,'__esModule',{'value':!![]}),exports[a4_0x19f490(0x129)]=void 0x0;const core_1=require(a4_0x19f490(0x12b));function a4_0x33f7(_0x483bcb,_0x33272b){var _0x163339=a4_0x27ef();return a4_0x33f7=function(_0x145193,_0x35dc25){_0x145193=_0x145193-0x112;var _0x27ef8f=_0x163339[_0x145193];return _0x27ef8f;},a4_0x33f7(_0x483bcb,_0x33272b);}class ValidatorError extends AnnError{}exports[a4_0x19f490(0x129)]=ValidatorError,ValidatorError[a4_0x19f490(0x112)]=0x18c1e,ValidatorError['NOFIND_SCHEMA']=0x18c1c,__decorate([(0x0,core_1['AnnErrorMsg'])('参数验证失败'),__metadata(a4_0x19f490(0x123),Object)],ValidatorError,'PARAMS',void 0x0),__decorate([(0x0,core_1[a4_0x19f490(0x118)])(a4_0x19f490(0x117)),__metadata(a4_0x19f490(0x123),Object)],ValidatorError,a4_0x19f490(0x113),void 0x0);
|
package/dist/helper/dtoHelper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x3af3f7=a5_0x25d9;(function(_0x584876,_0x25351e){const _0x2170ce=a5_0x25d9,_0x3b8743=_0x584876();while(!![]){try{const _0xc0f402=parseInt(_0x2170ce(0x99))/0x1*(parseInt(_0x2170ce(0x98))/0x2)+parseInt(_0x2170ce(0x9c))/0x3+-parseInt(_0x2170ce(0x9d))/0x4*(parseInt(_0x2170ce(0xa8))/0x5)+parseInt(_0x2170ce(0xaa))/0x6+parseInt(_0x2170ce(0xa0))/0x7+parseInt(_0x2170ce(0x9e))/0x8+parseInt(_0x2170ce(0x97))/0x9*(-parseInt(_0x2170ce(0xac))/0xa);if(_0xc0f402===_0x25351e)break;else _0x3b8743['push'](_0x3b8743['shift']());}catch(_0x55b673){_0x3b8743['push'](_0x3b8743['shift']());}}}(a5_0x2f0b,0xc5a19));function a5_0x25d9(_0x4dd80c,_0x141869){const _0x4cc1dd=a5_0x2f0b();return a5_0x25d9=function(_0x391c3f,_0x1bdf1d){_0x391c3f=_0x391c3f-0x95;let _0x2f0b2c=_0x4cc1dd[_0x391c3f];return _0x2f0b2c;},a5_0x25d9(_0x4dd80c,_0x141869);}const a5_0x1bdf1d=(function(){let _0x3aec0d=!![];return function(_0x39d352,_0x539a9f){const _0x256a44=_0x3aec0d?function(){const _0x1df69f=a5_0x25d9;if(_0x539a9f){const _0x1ba63f=_0x539a9f[_0x1df69f(0xab)](_0x39d352,arguments);return _0x539a9f=null,_0x1ba63f;}}:function(){};return _0x3aec0d=![],_0x256a44;};}()),a5_0x391c3f=a5_0x1bdf1d(this,function(){const _0x4b5b4f=a5_0x25d9;return a5_0x391c3f['toString']()[_0x4b5b4f(0xa2)](_0x4b5b4f(0xa5))['toString']()[_0x4b5b4f(0xa3)](a5_0x391c3f)[_0x4b5b4f(0xa2)]('(((.+)+)+)+$');});a5_0x391c3f();'use strict';Object[a5_0x3af3f7(0xa6)](exports,a5_0x3af3f7(0x96),{'value':!![]}),exports[a5_0x3af3f7(0xa9)]=PickDto,exports[a5_0x3af3f7(0x95)]=OmitDto;const core_1=require(a5_0x3af3f7(0x9f)),interface_1=require(a5_0x3af3f7(0xa7));function PickDto(_0x4da4be,_0x84bee6){const _0x1a3016=a5_0x3af3f7,_0x3eeaa7=function(){};_0x3eeaa7['prototype']=_0x4da4be[_0x1a3016(0xa4)];const _0x30a777=(0x0,core_1[_0x1a3016(0x9a)])(interface_1['RULES_KEY'],_0x4da4be),_0x54705b={};for(const _0x59a396 of _0x84bee6){_0x30a777[_0x59a396]&&(_0x54705b[_0x59a396]=_0x30a777[_0x59a396]);}return(0x0,core_1[_0x1a3016(0xad)])(interface_1['RULES_KEY'],_0x54705b,_0x3eeaa7),_0x3eeaa7;}function OmitDto(_0x2dc76f,_0x575c82){const _0x429947=a5_0x3af3f7,_0x34616c=function(){};_0x34616c[_0x429947(0xa4)]=_0x2dc76f['prototype'];const _0x18b090=(0x0,core_1[_0x429947(0x9a)])(interface_1[_0x429947(0xa1)],_0x2dc76f),_0x45b21f=Object[_0x429947(0x9b)]({},_0x18b090);for(const _0x2cf1a1 of _0x575c82){delete _0x45b21f[_0x2cf1a1];}return(0x0,core_1[_0x429947(0xad)])(interface_1[_0x429947(0xa1)],_0x45b21f,_0x34616c),_0x34616c;}function a5_0x2f0b(){const _0x2f36a6=['defineProperty','../interface','5dcqVcU','PickDto','5863848gBfMKi','apply','710niyJJa','saveClassMetadata','OmitDto','__esModule','236169gPHtgA','4iRapma','383993bgnTNp','getClassExtendedMetadata','assign','1674627dAusLh','5237912baKmeP','12823120UxUHti','@midwayjs/core','529851KlOryT','RULES_KEY','search','constructor','prototype','(((.+)+)+)+$'];a5_0x2f0b=function(){return _0x2f36a6;};return a5_0x2f0b();}
|
package/dist/helper/getSchema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6_0x55c674=a6_0xf677;(function(_0x3d1a89,_0x5ec1ac){const _0xfe9f9f=a6_0xf677,_0x4d08a1=_0x3d1a89();while(!![]){try{const _0x2aaf1f=-parseInt(_0xfe9f9f(0x7a))/0x1+parseInt(_0xfe9f9f(0x78))/0x2*(-parseInt(_0xfe9f9f(0x72))/0x3)+parseInt(_0xfe9f9f(0x73))/0x4*(parseInt(_0xfe9f9f(0x71))/0x5)+parseInt(_0xfe9f9f(0x79))/0x6*(-parseInt(_0xfe9f9f(0x7d))/0x7)+parseInt(_0xfe9f9f(0x70))/0x8+-parseInt(_0xfe9f9f(0x80))/0x9+parseInt(_0xfe9f9f(0x7c))/0xa;if(_0x2aaf1f===_0x5ec1ac)break;else _0x4d08a1['push'](_0x4d08a1['shift']());}catch(_0x339c3d){_0x4d08a1['push'](_0x4d08a1['shift']());}}}(a6_0x1709,0xda4a8));const a6_0x3274cc=(function(){let _0x47e94b=!![];return function(_0x22d665,_0x16cf8e){const _0x31fc92=_0x47e94b?function(){const _0x5dea0d=a6_0xf677;if(_0x16cf8e){const _0x53c212=_0x16cf8e[_0x5dea0d(0x7f)](_0x22d665,arguments);return _0x16cf8e=null,_0x53c212;}}:function(){};return _0x47e94b=![],_0x31fc92;};}()),a6_0x4df6ec=a6_0x3274cc(this,function(){const _0x4e720e=a6_0xf677;return a6_0x4df6ec[_0x4e720e(0x83)]()[_0x4e720e(0x7b)](_0x4e720e(0x81))[_0x4e720e(0x83)]()[_0x4e720e(0x75)](a6_0x4df6ec)[_0x4e720e(0x7b)](_0x4e720e(0x81));});function a6_0x1709(){const _0xa9ab9f=['__esModule','constructor','../interface','object','176yVtkej','6DYvDAU','125778LdhRMc','search','40473760HbIPQN','11340392acnwcB','getClassExtendedMetadata','apply','7759080CgWGCl','(((.+)+)+)+$','@midwayjs/core','toString','joi','1400856fRsKRZ','13625reOTfg','53079EzHBrE','1228tIzzZU'];a6_0x1709=function(){return _0xa9ab9f;};return a6_0x1709();}a6_0x4df6ec();'use strict';Object['defineProperty'](exports,a6_0x55c674(0x74),{'value':!![]}),exports['getSchema']=getSchema;const Joi=require(a6_0x55c674(0x6f)),core_1=require(a6_0x55c674(0x82)),interface_1=require(a6_0x55c674(0x76));function a6_0xf677(_0x4203ba,_0x47b346){const _0x2b41d1=a6_0x1709();return a6_0xf677=function(_0x4df6ec,_0x3274cc){_0x4df6ec=_0x4df6ec-0x6f;let _0x170958=_0x2b41d1[_0x4df6ec];return _0x170958;},a6_0xf677(_0x4203ba,_0x47b346);}function getSchema(_0x48b8f1){const _0x39730f=a6_0x55c674,_0x27662b=(0x0,core_1[_0x39730f(0x7e)])(interface_1['RULES_KEY'],_0x48b8f1);if(_0x27662b)return Joi[_0x39730f(0x77)](_0x27662b);}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var a7_0x5135c3=a7_0x5969;function a7_0x335f(){var _0x3d291c=['./interface','5016515bGTfFJ','6268674odclQX','ValidatorService','ValidatorError','search','Configuration','get','13358691jdcblw','./configuration','1868766CVvYeY','getOwnPropertyDescriptor','__exportStar','apply','toString','(((.+)+)+)+$','create','./decorator/Validator','constructor','__createBinding','8acIHjf','__esModule','1MRdRfI','Rule','configurable','prototype','Validator','defineProperty','782169uPwdqH','default','call','./helper/dtoHelper','./helper/getSchema','5bvvZkj','2941736YUXFyZ','RuleType','hasOwnProperty','./exception/ValidatorError','19627820CmoFbr','./decorator/Rule'];a7_0x335f=function(){return _0x3d291c;};return a7_0x335f();}(function(_0x3c82d9,_0x33b33f){var _0x37c5b1=a7_0x5969,_0x310ed8=_0x3c82d9();while(!![]){try{var _0x74ddc3=parseInt(_0x37c5b1(0x1a4))/0x1*(-parseInt(_0x37c5b1(0x198))/0x2)+-parseInt(_0x37c5b1(0x182))/0x3+parseInt(_0x37c5b1(0x188))/0x4+parseInt(_0x37c5b1(0x187))/0x5*(parseInt(_0x37c5b1(0x190))/0x6)+parseInt(_0x37c5b1(0x18f))/0x7*(parseInt(_0x37c5b1(0x1a2))/0x8)+parseInt(_0x37c5b1(0x196))/0x9+-parseInt(_0x37c5b1(0x18c))/0xa;if(_0x74ddc3===_0x33b33f)break;else _0x310ed8['push'](_0x310ed8['shift']());}catch(_0x4f888c){_0x310ed8['push'](_0x310ed8['shift']());}}}(a7_0x335f,0xc8fe5));var a7_0x1acde8=(function(){var _0x2d1c98=!![];return function(_0x246aec,_0x35f01d){var _0x14bdb2=_0x2d1c98?function(){var _0x3e2c59=a7_0x5969;if(_0x35f01d){var _0x1d0dfc=_0x35f01d[_0x3e2c59(0x19b)](_0x246aec,arguments);return _0x35f01d=null,_0x1d0dfc;}}:function(){};return _0x2d1c98=![],_0x14bdb2;};}()),a7_0x73f233=a7_0x1acde8(this,function(){var _0x271ce6=a7_0x5969;return a7_0x73f233[_0x271ce6(0x19c)]()[_0x271ce6(0x193)](_0x271ce6(0x19d))[_0x271ce6(0x19c)]()[_0x271ce6(0x1a0)](a7_0x73f233)[_0x271ce6(0x193)](_0x271ce6(0x19d));});a7_0x73f233();'use strict';var __createBinding=this&&this[a7_0x5135c3(0x1a1)]||(Object[a7_0x5135c3(0x19e)]?function(_0x784fc1,_0x35090e,_0x2dd07c,_0x60c20){var _0x2c70c2=a7_0x5135c3;if(_0x60c20===undefined)_0x60c20=_0x2dd07c;var _0x30d978=Object[_0x2c70c2(0x199)](_0x35090e,_0x2dd07c);(!_0x30d978||(_0x2c70c2(0x195)in _0x30d978?!_0x35090e[_0x2c70c2(0x1a3)]:_0x30d978['writable']||_0x30d978[_0x2c70c2(0x1a6)]))&&(_0x30d978={'enumerable':!![],'get':function(){return _0x35090e[_0x2dd07c];}}),Object[_0x2c70c2(0x181)](_0x784fc1,_0x60c20,_0x30d978);}:function(_0x120a03,_0x18ac94,_0x18deb6,_0x598c9c){if(_0x598c9c===undefined)_0x598c9c=_0x18deb6;_0x120a03[_0x598c9c]=_0x18ac94[_0x18deb6];}),__exportStar=this&&this[a7_0x5135c3(0x19a)]||function(_0x5f0fa1,_0x27a746){var _0x27e125=a7_0x5135c3;for(var _0xea1d11 in _0x5f0fa1)if(_0xea1d11!==_0x27e125(0x183)&&!Object[_0x27e125(0x17f)][_0x27e125(0x18a)][_0x27e125(0x184)](_0x27a746,_0xea1d11))__createBinding(_0x27a746,_0x5f0fa1,_0xea1d11);};Object[a7_0x5135c3(0x181)](exports,'__esModule',{'value':!![]}),exports['Configuration']=exports[a7_0x5135c3(0x191)]=exports[a7_0x5135c3(0x192)]=exports[a7_0x5135c3(0x189)]=exports[a7_0x5135c3(0x1a5)]=exports['Validator']=void 0x0,__exportStar(require(a7_0x5135c3(0x18e)),exports),__exportStar(require(a7_0x5135c3(0x185)),exports),__exportStar(require(a7_0x5135c3(0x186)),exports);function a7_0x5969(_0x8c1c5c,_0x562215){var _0x108986=a7_0x335f();return a7_0x5969=function(_0x73f233,_0x1acde8){_0x73f233=_0x73f233-0x17f;var _0x335f12=_0x108986[_0x73f233];return _0x335f12;},a7_0x5969(_0x8c1c5c,_0x562215);}var Validator_1=require(a7_0x5135c3(0x19f));Object[a7_0x5135c3(0x181)](exports,a7_0x5135c3(0x180),{'enumerable':!![],'get':function(){var _0x4267ee=a7_0x5135c3;return Validator_1[_0x4267ee(0x180)];}});var Rule_1=require(a7_0x5135c3(0x18d));Object[a7_0x5135c3(0x181)](exports,a7_0x5135c3(0x1a5),{'enumerable':!![],'get':function(){var _0x16467d=a7_0x5135c3;return Rule_1[_0x16467d(0x1a5)];}}),Object[a7_0x5135c3(0x181)](exports,'RuleType',{'enumerable':!![],'get':function(){var _0xc6eec5=a7_0x5135c3;return Rule_1[_0xc6eec5(0x189)];}});var ValidatorError_1=require(a7_0x5135c3(0x18b));Object[a7_0x5135c3(0x181)](exports,a7_0x5135c3(0x192),{'enumerable':!![],'get':function(){return ValidatorError_1['ValidatorError'];}});var ValidatorService_1=require('./service/ValidatorService');Object['defineProperty'](exports,a7_0x5135c3(0x191),{'enumerable':!![],'get':function(){return ValidatorService_1['ValidatorService'];}});var configuration_1=require(a7_0x5135c3(0x197));Object[a7_0x5135c3(0x181)](exports,a7_0x5135c3(0x194),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a8_0x4c6b83=a8_0x3ab7;(function(_0x2486b0,_0x4f6282){var _0x508562=a8_0x3ab7,_0x28a35b=_0x2486b0();while(!![]){try{var _0x3542eb=-parseInt(_0x508562(0x8e))/0x1+parseInt(_0x508562(0x92))/0x2*(parseInt(_0x508562(0x88))/0x3)+-parseInt(_0x508562(0x85))/0x4+-parseInt(_0x508562(0x95))/0x5*(parseInt(_0x508562(0x8a))/0x6)+parseInt(_0x508562(0x83))/0x7+parseInt(_0x508562(0x90))/0x8*(parseInt(_0x508562(0x8d))/0x9)+parseInt(_0x508562(0x8c))/0xa*(parseInt(_0x508562(0x94))/0xb);if(_0x3542eb===_0x4f6282)break;else _0x28a35b['push'](_0x28a35b['shift']());}catch(_0x1afe73){_0x28a35b['push'](_0x28a35b['shift']());}}}(a8_0x8c0d,0xd149c));function a8_0x8c0d(){var _0x53bbd2=['1178208HbKKjo','anncic-api:validator:validator','78694IiXBAb','5OaUxRL','search','VALIDATOR_KEY','11280556rGNygO','RULES_KEY','3201636mnazKY','defineProperty','(((.+)+)+)+$','6jEmXSj','anncic-api:validator:rules','9510222tUXqQf','apply','980zzPwvU','1278rAnrak','878740WNOtZT','constructor','35528jhtRsw','toString'];a8_0x8c0d=function(){return _0x53bbd2;};return a8_0x8c0d();}var a8_0x3a1666=(function(){var _0x25d7be=!![];return function(_0x427b35,_0x24c831){var _0x18601b=_0x25d7be?function(){var _0x405080=a8_0x3ab7;if(_0x24c831){var _0x519b35=_0x24c831[_0x405080(0x8b)](_0x427b35,arguments);return _0x24c831=null,_0x519b35;}}:function(){};return _0x25d7be=![],_0x18601b;};}()),a8_0x3ffaed=a8_0x3a1666(this,function(){var _0x323806=a8_0x3ab7;return a8_0x3ffaed[_0x323806(0x91)]()[_0x323806(0x81)](_0x323806(0x87))[_0x323806(0x91)]()[_0x323806(0x8f)](a8_0x3ffaed)['search'](_0x323806(0x87));});a8_0x3ffaed();function a8_0x3ab7(_0x28f137,_0x244369){var _0xd6e3fd=a8_0x8c0d();return a8_0x3ab7=function(_0x3ffaed,_0x3a1666){_0x3ffaed=_0x3ffaed-0x81;var _0x8c0d65=_0xd6e3fd[_0x3ffaed];return _0x8c0d65;},a8_0x3ab7(_0x28f137,_0x244369);}'use strict';Object[a8_0x4c6b83(0x86)](exports,'__esModule',{'value':!![]}),exports[a8_0x4c6b83(0x82)]=exports[a8_0x4c6b83(0x84)]=void 0x0,exports[a8_0x4c6b83(0x84)]=a8_0x4c6b83(0x89),exports[a8_0x4c6b83(0x82)]=a8_0x4c6b83(0x93);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a9_0x32bf87=a9_0x29d8;(function(_0xdcca22,_0x14a29c){const _0x29ecae=a9_0x29d8,_0x46cb72=_0xdcca22();while(!![]){try{const _0x59f892=parseInt(_0x29ecae(0x111))/0x1*(-parseInt(_0x29ecae(0xdc))/0x2)+parseInt(_0x29ecae(0x104))/0x3*(parseInt(_0x29ecae(0x107))/0x4)+parseInt(_0x29ecae(0xca))/0x5*(parseInt(_0x29ecae(0xf8))/0x6)+parseInt(_0x29ecae(0xec))/0x7+-parseInt(_0x29ecae(0x103))/0x8*(-parseInt(_0x29ecae(0xf2))/0x9)+-parseInt(_0x29ecae(0xd5))/0xa+parseInt(_0x29ecae(0xee))/0xb*(-parseInt(_0x29ecae(0xf0))/0xc);if(_0x59f892===_0x14a29c)break;else _0x46cb72['push'](_0x46cb72['shift']());}catch(_0x5903b2){_0x46cb72['push'](_0x46cb72['shift']());}}}(a9_0x7ab6,0x40970));const a9_0x354cef=(function(){let _0x5b00a0=!![];return function(_0x17ff0f,_0x112406){const _0x225d46=_0x5b00a0?function(){const _0x8b2463=a9_0x29d8;if(_0x112406){const _0x3643f0=_0x112406[_0x8b2463(0xfa)](_0x17ff0f,arguments);return _0x112406=null,_0x3643f0;}}:function(){};return _0x5b00a0=![],_0x225d46;};}()),a9_0x112af5=a9_0x354cef(this,function(){const _0x59fb9f=a9_0x29d8;return a9_0x112af5[_0x59fb9f(0xdb)]()[_0x59fb9f(0xc4)](_0x59fb9f(0x10b))['toString']()[_0x59fb9f(0xd2)](a9_0x112af5)[_0x59fb9f(0xc4)](_0x59fb9f(0x10b));});a9_0x112af5();'use strict';function a9_0x7ab6(){const _0x23baf5=['22dyTTfp','search','__metadata','decorate','design:type','Singleton','length','16845SohSPo','messages','error','_flags','init','message','@midwayjs/core','key','constructor','getOwnPropertyDescriptor','PARAMS','3677040HxvNYW','Scope','RULES_KEY','getClassExtendedMetadata','value','getSchema','toString','35836vkSXVu','defineProperty','NOFIND_SCHEMA','design:paramtypes','Init','details','YYYY-MM-DD\x20HH:mm:ss','@midwayjs/i18n','design:returntype','Inject','ValidatorService','errors','joi','localeTable','ValidatorError','keys','869666xOavEi','validator','88308GbvCdi','formatLocale','96yxlUsc','validationOptions','374589mlEJTb','forEach','isSchema','type','validatorConfig','fromEntries','804bKxPfz','schema','apply','参数验证失败','defaultLocale','$_terms','format','metadata','language','date','function','8VsEuKz','3hmfmSG','MidwayI18nServiceSingleton','Config','1893516vDeGEA','i18nService','object','prototype','(((.+)+)+)+$','getAvailableLocale','locale','assign','i18nConfig','Provide'];a9_0x7ab6=function(){return _0x23baf5;};return a9_0x7ab6();}var __decorate=this&&this['__decorate']||function(_0x1f1182,_0x3afa78,_0x3a0d46,_0x38e761){const _0x55d73c=a9_0x29d8;var _0x1d3996=arguments[_0x55d73c(0xc9)],_0x214873=_0x1d3996<0x3?_0x3afa78:_0x38e761===null?_0x38e761=Object[_0x55d73c(0xd3)](_0x3afa78,_0x3a0d46):_0x38e761,_0x3bf036;if(typeof Reflect===_0x55d73c(0x109)&&typeof Reflect[_0x55d73c(0xc6)]===_0x55d73c(0x102))_0x214873=Reflect[_0x55d73c(0xc6)](_0x1f1182,_0x3afa78,_0x3a0d46,_0x38e761);else{for(var _0x3d268b=_0x1f1182['length']-0x1;_0x3d268b>=0x0;_0x3d268b--)if(_0x3bf036=_0x1f1182[_0x3d268b])_0x214873=(_0x1d3996<0x3?_0x3bf036(_0x214873):_0x1d3996>0x3?_0x3bf036(_0x3afa78,_0x3a0d46,_0x214873):_0x3bf036(_0x3afa78,_0x3a0d46))||_0x214873;}return _0x1d3996>0x3&&_0x214873&&Object[_0x55d73c(0xdd)](_0x3afa78,_0x3a0d46,_0x214873),_0x214873;},__metadata=this&&this[a9_0x32bf87(0xc5)]||function(_0x11e65b,_0x161685){const _0x2c3e72=a9_0x32bf87;if(typeof Reflect===_0x2c3e72(0x109)&&typeof Reflect[_0x2c3e72(0xff)]==='function')return Reflect['metadata'](_0x11e65b,_0x161685);};Object[a9_0x32bf87(0xdd)](exports,'__esModule',{'value':!![]}),exports[a9_0x32bf87(0xe6)]=void 0x0;const Joi=require(a9_0x32bf87(0xe8)),i18n_1=require(a9_0x32bf87(0xe3)),core_1=require(a9_0x32bf87(0xd0)),interface_1=require('../interface'),ValidatorError_1=require('../exception/ValidatorError');let ValidatorService=class ValidatorService{constructor(){const _0x3d4f15=a9_0x32bf87;this[_0x3d4f15(0xcb)]={};}async[a9_0x32bf87(0xce)](){const _0x4e2fe1=a9_0x32bf87,_0x1eb054=Object[_0x4e2fe1(0xeb)](this['i18nConfig'][_0x4e2fe1(0xe9)]);_0x1eb054[_0x4e2fe1(0xf3)](_0x379668=>{const _0x1bb3f8=_0x4e2fe1;this['messages'][(0x0,i18n_1[_0x1bb3f8(0xef)])(_0x379668)]=Object[_0x1bb3f8(0xf7)](this[_0x1bb3f8(0x108)]['getLocaleMapping'](_0x379668,'validator'));});}[a9_0x32bf87(0xda)](_0x44d428){const _0x37f9e2=a9_0x32bf87,_0x1c4b3c=(0x0,core_1[_0x37f9e2(0xd8)])(interface_1[_0x37f9e2(0xd7)],_0x44d428);return _0x1c4b3c?Joi['object'](_0x1c4b3c):undefined;}[a9_0x32bf87(0xed)](_0x5c984e,_0x137a4b,_0x307d76={}){const _0x420153=a9_0x32bf87;var _0x5d9ca2,_0x219e50,_0x191755,_0x1cc907,_0x24689c,_0x17294e;const _0x1d8c50=Joi[_0x420153(0xf4)](_0x5c984e)?_0x5c984e:this[_0x420153(0xda)](_0x5c984e);if(!_0x1d8c50)throw new AnnError(ValidatorError_1[_0x420153(0xea)][_0x420153(0xde)]);_0x307d76[_0x420153(0xf1)]=Object[_0x420153(0x10e)]((_0x5d9ca2=this['validatorConfig']['validationOptions'])!==null&&_0x5d9ca2!==void 0x0?_0x5d9ca2:{},{'messages':this[_0x420153(0xcb)]},_0x307d76[_0x420153(0xf1)]||{}),_0x307d76[_0x420153(0xf1)][_0x420153(0xe7)]=_0x307d76['validationOptions'][_0x420153(0xe7)]||{},_0x307d76[_0x420153(0xf1)][_0x420153(0xe7)]['language']=(0x0,i18n_1[_0x420153(0xef)])(this[_0x420153(0x108)][_0x420153(0x10c)](_0x307d76['validationOptions'][_0x420153(0xe7)][_0x420153(0x100)]||_0x307d76[_0x420153(0x10d)]||this[_0x420153(0x10f)][_0x420153(0xfc)],_0x420153(0xed)));const _0x328665=_0x1d8c50['validate'](_0x137a4b,_0x307d76['validationOptions']);if(_0x328665===null||_0x328665===void 0x0?void 0x0:_0x328665[_0x420153(0xcc)]){if(_0x328665[_0x420153(0xcc)]instanceof AnnError)throw _0x328665['error'];else{if(_0x328665[_0x420153(0xcc)]instanceof Error)throw new AnnError(ValidatorError_1['ValidatorError']['PARAMS'],{'message':((_0x219e50=_0x328665[_0x420153(0xcc)])===null||_0x219e50===void 0x0?void 0x0:_0x219e50[_0x420153(0xcf)])||_0x420153(0xfb)});else throw new AnnError(ValidatorError_1['ValidatorError']['PARAMS'],{'message':((_0x24689c=(_0x1cc907=(_0x191755=_0x328665[_0x420153(0xcc)])===null||_0x191755===void 0x0?void 0x0:_0x191755[_0x420153(0xe1)])===null||_0x1cc907===void 0x0?void 0x0:_0x1cc907[0x0])===null||_0x24689c===void 0x0?void 0x0:_0x24689c[_0x420153(0xcf)])||_0x420153(0xfb)});}}if(_0x328665===null||_0x328665===void 0x0?void 0x0:_0x328665[_0x420153(0xd9)]){const _0x2f556b=(_0x17294e=_0x1d8c50===null||_0x1d8c50===void 0x0?void 0x0:_0x1d8c50[_0x420153(0xfd)])===null||_0x17294e===void 0x0?void 0x0:_0x17294e[_0x420153(0xeb)],_0x18cc35=function(_0xc58ef9,_0x3e3ac8){const _0x14b6de=_0x420153;var _0x2f6507,_0x4f7c6c,_0x33d2f9,_0x1fdb5c,_0x2e94bc,_0x1dfc1a,_0x1226d4,_0x3ebef4,_0x1195ad,_0x1714d3,_0x1e88a6;for(let _0x7e66be in _0xc58ef9){if(_0x3e3ac8[(_0x2f6507=_0xc58ef9[_0x7e66be])===null||_0x2f6507===void 0x0?void 0x0:_0x2f6507[_0x14b6de(0xd1)]]&&((_0x33d2f9=(_0x4f7c6c=_0xc58ef9[_0x7e66be])===null||_0x4f7c6c===void 0x0?void 0x0:_0x4f7c6c[_0x14b6de(0xf9)])===null||_0x33d2f9===void 0x0?void 0x0:_0x33d2f9[_0x14b6de(0xf5)])){if(((_0x2e94bc=(_0x1fdb5c=_0xc58ef9[_0x7e66be])===null||_0x1fdb5c===void 0x0?void 0x0:_0x1fdb5c[_0x14b6de(0xf9)])===null||_0x2e94bc===void 0x0?void 0x0:_0x2e94bc[_0x14b6de(0xf5)])=='object')_0x3e3ac8[_0xc58ef9[_0x7e66be][_0x14b6de(0xd1)]]=_0x18cc35((_0x1226d4=(_0x1dfc1a=_0xc58ef9[_0x7e66be])===null||_0x1dfc1a===void 0x0?void 0x0:_0x1dfc1a[_0x14b6de(0xf9)][_0x14b6de(0xfd)])===null||_0x1226d4===void 0x0?void 0x0:_0x1226d4['keys'],_0x3e3ac8[_0xc58ef9[_0x7e66be][_0x14b6de(0xd1)]]);else{if(_0xc58ef9[_0x7e66be]['schema'][_0x14b6de(0xf5)]==_0x14b6de(0x101)&&_0x328665[_0x14b6de(0xd9)][(_0x3ebef4=_0xc58ef9[_0x7e66be])===null||_0x3ebef4===void 0x0?void 0x0:_0x3ebef4[_0x14b6de(0xd1)]]){const _0x12f92e=((_0x1e88a6=(_0x1714d3=(_0x1195ad=_0xc58ef9[_0x7e66be])===null||_0x1195ad===void 0x0?void 0x0:_0x1195ad['schema'])===null||_0x1714d3===void 0x0?void 0x0:_0x1714d3[_0x14b6de(0xcd)])===null||_0x1e88a6===void 0x0?void 0x0:_0x1e88a6['format'])||_0x14b6de(0xe2);_0x3e3ac8[_0xc58ef9[_0x7e66be][_0x14b6de(0xd1)]]=dayjs(_0x328665[_0x14b6de(0xd9)][_0xc58ef9[_0x7e66be][_0x14b6de(0xd1)]])[_0x14b6de(0xfe)](_0x12f92e);}}}}return _0x3e3ac8;};return _0x18cc35(_0x2f556b,_0x328665['value']);}throw new AnnError(ValidatorError_1[_0x420153(0xea)][_0x420153(0xd4)]);}};function a9_0x29d8(_0x2dd05a,_0x3899e2){const _0x5e65f6=a9_0x7ab6();return a9_0x29d8=function(_0x112af5,_0x354cef){_0x112af5=_0x112af5-0xc4;let _0x7ab6ec=_0x5e65f6[_0x112af5];return _0x7ab6ec;},a9_0x29d8(_0x2dd05a,_0x3899e2);}exports[a9_0x32bf87(0xe6)]=ValidatorService,__decorate([(0x0,core_1[a9_0x32bf87(0x106)])('i18n'),__metadata('design:type',Object)],ValidatorService[a9_0x32bf87(0x10a)],a9_0x32bf87(0x10f),void 0x0),__decorate([(0x0,core_1[a9_0x32bf87(0x106)])('validator'),__metadata('design:type',Object)],ValidatorService[a9_0x32bf87(0x10a)],a9_0x32bf87(0xf6),void 0x0),__decorate([(0x0,core_1[a9_0x32bf87(0xe5)])(),__metadata(a9_0x32bf87(0xc7),i18n_1[a9_0x32bf87(0x105)])],ValidatorService[a9_0x32bf87(0x10a)],a9_0x32bf87(0x108),void 0x0),__decorate([(0x0,core_1[a9_0x32bf87(0xe0)])(),__metadata(a9_0x32bf87(0xc7),Function),__metadata(a9_0x32bf87(0xdf),[]),__metadata(a9_0x32bf87(0xe4),Promise)],ValidatorService[a9_0x32bf87(0x10a)],a9_0x32bf87(0xce),null),exports[a9_0x32bf87(0xe6)]=ValidatorService=__decorate([(0x0,core_1[a9_0x32bf87(0x110)])(a9_0x32bf87(0xed)),(0x0,core_1[a9_0x32bf87(0xd6)])(core_1['ScopeEnum'][a9_0x32bf87(0xc8)])],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.80",
|
|
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.80",
|
|
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": "a24d658b65084f1b3db2ce48e1fdc06d9b5b1541"
|
|
30
30
|
}
|