@anncic-api/validator 1.4.35 → 1.4.37
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
|
-
const
|
|
1
|
+
const a0_0x1034fa=a0_0x18fc;(function(_0x1a9129,_0x3e02c3){const _0x32fef7=a0_0x18fc,_0x371439=_0x1a9129();while(!![]){try{const _0x1475b3=-parseInt(_0x32fef7(0x13a))/0x1+-parseInt(_0x32fef7(0x133))/0x2+-parseInt(_0x32fef7(0x131))/0x3+-parseInt(_0x32fef7(0x132))/0x4*(-parseInt(_0x32fef7(0x134))/0x5)+parseInt(_0x32fef7(0x139))/0x6+-parseInt(_0x32fef7(0x12f))/0x7*(parseInt(_0x32fef7(0x135))/0x8)+parseInt(_0x32fef7(0x13b))/0x9;if(_0x1475b3===_0x3e02c3)break;else _0x371439['push'](_0x371439['shift']());}catch(_0x2e0355){_0x371439['push'](_0x371439['shift']());}}}(a0_0x1369,0x3817c));const a0_0x3efca4=(function(){let _0x5223ff=!![];return function(_0x23d2db,_0xf02d0f){const _0x104d14=_0x5223ff?function(){const _0x404b99=a0_0x18fc;if(_0xf02d0f){const _0x412848=_0xf02d0f[_0x404b99(0x138)](_0x23d2db,arguments);return _0xf02d0f=null,_0x412848;}}:function(){};return _0x5223ff=![],_0x104d14;};}()),a0_0x4bbc5e=a0_0x3efca4(this,function(){const _0x198b3=a0_0x18fc;return a0_0x4bbc5e['toString']()['search'](_0x198b3(0x12e))['toString']()['constructor'](a0_0x4bbc5e)[_0x198b3(0x12d)]('(((.+)+)+)+$');});function a0_0x18fc(_0x4d2ffe,_0x212727){const _0x2d5ab7=a0_0x1369();return a0_0x18fc=function(_0x4bbc5e,_0x3efca4){_0x4bbc5e=_0x4bbc5e-0x12d;let _0x1369a9=_0x2d5ab7[_0x4bbc5e];return _0x1369a9;},a0_0x18fc(_0x4d2ffe,_0x212727);}a0_0x4bbc5e();'use strict';function a0_0x1369(){const _0x5075a2=['__esModule','default','apply','1020582LhUTVM','441951ISjKtk','6663411HaFJGN','../../locales/zh_CN.json','../../locales/en_US.json','PARAMS','ValidatorError','search','(((.+)+)+)+$','395073IwFApJ','string','844164ddvitm','1369844SVFppt','373928aBaWbP','5KSxVbo','16muwSFs'];a0_0x1369=function(){return _0x5075a2;};return a0_0x1369();}Object['defineProperty'](exports,a0_0x1034fa(0x136),{'value':!![]});const ValidatorError_1=require('../exception/ValidatorError');exports[a0_0x1034fa(0x137)]={'validator':{'errorStatus':ValidatorError_1[a0_0x1034fa(0x13f)][a0_0x1034fa(0x13e)],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':a0_0x1034fa(0x130)}},'i18n':{'localeTable':{'en_US':{'validator':require(a0_0x1034fa(0x13d))},'zh_CN':{'validator':require(a0_0x1034fa(0x13c))}}}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a1_0x1ff2d6=a1_0x4c6b;function a1_0x4c6b(_0xb32831,_0x100e31){const _0x554186=a1_0x183e();return a1_0x4c6b=function(_0x4ac8a2,_0x1f8080){_0x4ac8a2=_0x4ac8a2-0xf5;let _0x183ede=_0x554186[_0x4ac8a2];return _0x183ede;},a1_0x4c6b(_0xb32831,_0x100e31);}(function(_0x54660b,_0x3a077a){const _0x3f8964=a1_0x4c6b,_0x4c377b=_0x54660b();while(!![]){try{const _0x159f53=-parseInt(_0x3f8964(0x11b))/0x1+parseInt(_0x3f8964(0x12f))/0x2*(parseInt(_0x3f8964(0x10e))/0x3)+-parseInt(_0x3f8964(0xf6))/0x4+-parseInt(_0x3f8964(0x119))/0x5+parseInt(_0x3f8964(0x10b))/0x6*(parseInt(_0x3f8964(0x12c))/0x7)+-parseInt(_0x3f8964(0x12d))/0x8+parseInt(_0x3f8964(0x111))/0x9;if(_0x159f53===_0x3a077a)break;else _0x4c377b['push'](_0x4c377b['shift']());}catch(_0x444562){_0x4c377b['push'](_0x4c377b['shift']());}}}(a1_0x183e,0xd451f));const a1_0x1f8080=(function(){let _0x33e7a6=!![];return function(_0x1a8272,_0x5735c8){const _0x187de7=_0x33e7a6?function(){const _0x34e840=a1_0x4c6b;if(_0x5735c8){const _0x29ec63=_0x5735c8[_0x34e840(0x112)](_0x1a8272,arguments);return _0x5735c8=null,_0x29ec63;}}:function(){};return _0x33e7a6=![],_0x187de7;};}()),a1_0x4ac8a2=a1_0x1f8080(this,function(){const _0x225cb9=a1_0x4c6b;return a1_0x4ac8a2[_0x225cb9(0xf8)]()[_0x225cb9(0x128)](_0x225cb9(0x105))['toString']()[_0x225cb9(0x107)](a1_0x4ac8a2)[_0x225cb9(0x128)](_0x225cb9(0x105));});a1_0x4ac8a2();'use strict';var __decorate=this&&this[a1_0x1ff2d6(0x110)]||function(_0x289dbb,_0x122d11,_0x189cb5,_0x3e8400){const _0x350c7c=a1_0x1ff2d6;var _0x106224=arguments[_0x350c7c(0x104)],_0x23c4c2=_0x106224<0x3?_0x122d11:_0x3e8400===null?_0x3e8400=Object[_0x350c7c(0x130)](_0x122d11,_0x189cb5):_0x3e8400,_0x102eea;if(typeof Reflect==='object'&&typeof Reflect[_0x350c7c(0x127)]==='function')_0x23c4c2=Reflect[_0x350c7c(0x127)](_0x289dbb,_0x122d11,_0x189cb5,_0x3e8400);else{for(var _0x4eaef4=_0x289dbb[_0x350c7c(0x104)]-0x1;_0x4eaef4>=0x0;_0x4eaef4--)if(_0x102eea=_0x289dbb[_0x4eaef4])_0x23c4c2=(_0x106224<0x3?_0x102eea(_0x23c4c2):_0x106224>0x3?_0x102eea(_0x122d11,_0x189cb5,_0x23c4c2):_0x102eea(_0x122d11,_0x189cb5))||_0x23c4c2;}return _0x106224>0x3&&_0x23c4c2&&Object[_0x350c7c(0x12b)](_0x122d11,_0x189cb5,_0x23c4c2),_0x23c4c2;},__metadata=this&&this['__metadata']||function(_0x5e073a,_0x6f4691){const _0x1b5da6=a1_0x1ff2d6;if(typeof Reflect===_0x1b5da6(0x10a)&&typeof Reflect[_0x1b5da6(0x11f)]===_0x1b5da6(0x11d))return Reflect[_0x1b5da6(0x11f)](_0x5e073a,_0x6f4691);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['CustomConfiguration']=void 0x0;const i18n_1=require(a1_0x1ff2d6(0x103)),core_1=require(a1_0x1ff2d6(0x108)),core_2=require(a1_0x1ff2d6(0x108)),interface_1=require(a1_0x1ff2d6(0x120)),ValidatorService_1=require('./service/ValidatorService'),i18n=require(a1_0x1ff2d6(0x103)),anncic=require('@anncic-api/core'),ConfigDefault=require(a1_0x1ff2d6(0xfa));function a1_0x183e(){const _0x25b490=['getSchema','Inject','3259820ScqNtw','ValidatorService','1327064bjjaCp','validator','function','name','metadata','./interface','Configuration','splice','I18N_ATTR_KEY','onReady','assign','undefined','decorate','search','getClassMetadata','param','defineProperty','2045561dQWsFq','565408ThiWdB','req','58QJyLls','getOwnPropertyDescriptor','decorator','prototype','1386592QdqlML','REQUEST_OBJ_CTX_KEY','toString','anncic-api:validator','./config/config.default','propertyName','params','registerMethodHandler','bound\x20dispatch','getMethodParamTypes','locale','MidwayDecoratorService','request','@midwayjs/i18n','length','(((.+)+)+)+$','target','constructor','@midwayjs/core','getAttr','object','30HICBKz','VALIDATOR_KEY','methodName','131892XZCdLG','CustomConfiguration','__decorate','4769496FHSLRJ','apply','res','methodArgs','design:type','args'];a1_0x183e=function(){return _0x25b490;};return a1_0x183e();}let CustomConfiguration=class CustomConfiguration{async[a1_0x1ff2d6(0x124)](){const _0x261214=a1_0x1ff2d6;this[_0x261214(0x131)][_0x261214(0xfd)](interface_1[_0x261214(0x10c)],_0x18ec97=>{const _0x4c00e4=_0x261214,_0x6e1b26=_0x18ec97['metadata'],_0x41c71f=(0x0,core_2[_0x4c00e4(0xff)])(_0x18ec97['target'],_0x18ec97[_0x4c00e4(0xfb)]);return{'before':_0x5f19f9=>{const _0x1de15c=_0x4c00e4;var _0x5209b9,_0x363f82,_0x5b850b,_0x25bf82,_0x49497b,_0x1d7e20,_0x4b3dbd,_0x7e2a40,_0xc83090,_0x270098,_0x200b86,_0x5d2624,_0x40f6ae;const _0x246968=_0x5f19f9[_0x1de15c(0x106)][core_1[_0x1de15c(0xf7)]],_0x58fcff=Object[_0x1de15c(0x125)]({},((_0x5209b9=_0x246968===null||_0x246968===void 0x0?void 0x0:_0x246968['request'])===null||_0x5209b9===void 0x0?void 0x0:_0x5209b9['query'])||{},((_0x363f82=_0x246968===null||_0x246968===void 0x0?void 0x0:_0x246968[_0x1de15c(0x102)])===null||_0x363f82===void 0x0?void 0x0:_0x363f82['body'])||{}),_0x4e3ddb=((0x0,core_2[_0x1de15c(0x129)])(interface_1['VALIDATOR_KEY'],_0x5f19f9['target'])||[])['find'](_0x3508f4=>_0x3508f4['method']==_0x5f19f9[_0x1de15c(0x10d)]);!(_0x6e1b26===null||_0x6e1b26===void 0x0?void 0x0:_0x6e1b26[_0x1de15c(0x100)])&&_0x246968&&_0x246968[_0x1de15c(0x109)]&&(_0x6e1b26[_0x1de15c(0x100)]=_0x246968['getAttr'](i18n_1[_0x1de15c(0x123)]));for(let _0x3a9ae7=0x0;_0x3a9ae7<_0x41c71f['length'];_0x3a9ae7++){const _0x39f0fd=_0x41c71f[_0x3a9ae7],_0x996c44=this[_0x1de15c(0x11a)][_0x1de15c(0x117)](_0x39f0fd);if(_0x996c44){if(typeof _0x5f19f9[_0x1de15c(0x116)][_0x3a9ae7]==_0x1de15c(0x126)||((_0x5b850b=_0x5f19f9[_0x1de15c(0x116)][_0x3a9ae7])===null||_0x5b850b===void 0x0?void 0x0:_0x5b850b[_0x1de15c(0x102)])&&((_0x25bf82=_0x5f19f9[_0x1de15c(0x116)][_0x3a9ae7])===null||_0x25bf82===void 0x0?void 0x0:_0x25bf82[_0x1de15c(0x113)])&&((_0x49497b=_0x5f19f9[_0x1de15c(0x116)][_0x3a9ae7])===null||_0x49497b===void 0x0?void 0x0:_0x49497b[_0x1de15c(0x12e)]))_0x5f19f9[_0x1de15c(0x116)][_0x3a9ae7]=_0x58fcff;else((_0x1d7e20=_0x5f19f9['args'][_0x3a9ae7])===null||_0x1d7e20===void 0x0?void 0x0:_0x1d7e20[_0x1de15c(0x11e)])==_0x1de15c(0xfe)&&_0x5f19f9['args'][_0x1de15c(0x122)](_0x3a9ae7,0x0,_0x58fcff);const _0x3b6405=this[_0x1de15c(0x11a)][_0x1de15c(0x11c)](_0x996c44,_0x5f19f9[_0x1de15c(0x116)][_0x3a9ae7],_0x6e1b26);_0x3b6405&&(_0x5f19f9['args'][_0x3a9ae7]=_0x3b6405);}else{if((_0x4e3ddb===null||_0x4e3ddb===void 0x0?void 0x0:_0x4e3ddb[_0x1de15c(0x114)][_0x3a9ae7])&&((_0x4b3dbd=_0x5f19f9[_0x1de15c(0x116)][_0x3a9ae7])===null||_0x4b3dbd===void 0x0?void 0x0:_0x4b3dbd[_0x1de15c(0xfc)])&&typeof _0x5f19f9[_0x1de15c(0x116)][_0x3a9ae7][_0x1de15c(0x12a)]==_0x1de15c(0x11d)&&((_0x7e2a40=_0x246968===null||_0x246968===void 0x0?void 0x0:_0x246968[_0x1de15c(0xfc)])===null||_0x7e2a40===void 0x0?void 0x0:_0x7e2a40[_0x4e3ddb['methodArgs'][_0x3a9ae7]]))_0x5f19f9[_0x1de15c(0x116)][_0x3a9ae7]=_0x39f0fd((_0xc83090=_0x246968===null||_0x246968===void 0x0?void 0x0:_0x246968['params'])===null||_0xc83090===void 0x0?void 0x0:_0xc83090[_0x4e3ddb[_0x1de15c(0x114)][_0x3a9ae7]]);else(_0x4e3ddb===null||_0x4e3ddb===void 0x0?void 0x0:_0x4e3ddb[_0x1de15c(0x114)][_0x3a9ae7])&&((_0x200b86=(_0x270098=_0x5f19f9[_0x1de15c(0x116)][_0x3a9ae7])===null||_0x270098===void 0x0?void 0x0:_0x270098[_0x1de15c(0xfc)])===null||_0x200b86===void 0x0?void 0x0:_0x200b86[_0x4e3ddb[_0x1de15c(0x114)][_0x3a9ae7]])&&(_0x5f19f9[_0x1de15c(0x116)][_0x3a9ae7]=(_0x40f6ae=(_0x5d2624=_0x5f19f9[_0x1de15c(0x116)][_0x3a9ae7])===null||_0x5d2624===void 0x0?void 0x0:_0x5d2624[_0x1de15c(0xfc)])===null||_0x40f6ae===void 0x0?void 0x0:_0x40f6ae[_0x4e3ddb[_0x1de15c(0x114)][_0x3a9ae7]]);}}},'afterThrow':(_0x46875a,_0x3fdb0f)=>{throw _0x3fdb0f;}};});}};__decorate([(0x0,core_2['Inject'])(),__metadata(a1_0x1ff2d6(0x115),core_1[a1_0x1ff2d6(0x101)])],CustomConfiguration[a1_0x1ff2d6(0xf5)],a1_0x1ff2d6(0x131),void 0x0),__decorate([(0x0,core_2[a1_0x1ff2d6(0x118)])(),__metadata('design:type',ValidatorService_1[a1_0x1ff2d6(0x11a)])],CustomConfiguration[a1_0x1ff2d6(0xf5)],a1_0x1ff2d6(0x11a),void 0x0),CustomConfiguration=__decorate([(0x0,core_2[a1_0x1ff2d6(0x121)])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':a1_0x1ff2d6(0xf9),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x1ff2d6(0x10f)]=CustomConfiguration;
|
package/dist/decorator/Rule.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0x1dc2ec=a2_0x3126;(function(_0x509a3e,_0x5c888f){const _0x39c2c5=a2_0x3126,_0x4227ef=_0x509a3e();while(!![]){try{const _0x3db1df=parseInt(_0x39c2c5(0xce))/0x1+-parseInt(_0x39c2c5(0xc6))/0x2*(parseInt(_0x39c2c5(0xc8))/0x3)+parseInt(_0x39c2c5(0xd3))/0x4+parseInt(_0x39c2c5(0xdf))/0x5*(parseInt(_0x39c2c5(0xd7))/0x6)+parseInt(_0x39c2c5(0xe4))/0x7+parseInt(_0x39c2c5(0xe1))/0x8+-parseInt(_0x39c2c5(0xc9))/0x9;if(_0x3db1df===_0x5c888f)break;else _0x4227ef['push'](_0x4227ef['shift']());}catch(_0x12bd43){_0x4227ef['push'](_0x4227ef['shift']());}}}(a2_0x58fe,0xe2de0));function a2_0x3126(_0x34322a,_0x485ab0){const _0x16b8a8=a2_0x58fe();return a2_0x3126=function(_0x455043,_0x829f11){_0x455043=_0x455043-0xc5;let _0x58fe89=_0x16b8a8[_0x455043];return _0x58fe89;},a2_0x3126(_0x34322a,_0x485ab0);}const a2_0x829f11=(function(){let _0x5054c3=!![];return function(_0x25a17e,_0xaabbf2){const _0x221546=_0x5054c3?function(){if(_0xaabbf2){const _0x2b35f6=_0xaabbf2['apply'](_0x25a17e,arguments);return _0xaabbf2=null,_0x2b35f6;}}:function(){};return _0x5054c3=![],_0x221546;};}()),a2_0x455043=a2_0x829f11(this,function(){const _0x55ace8=a2_0x3126;return a2_0x455043[_0x55ace8(0xe2)]()['search']('(((.+)+)+)+$')['toString']()[_0x55ace8(0xd6)](a2_0x455043)[_0x55ace8(0xd0)]('(((.+)+)+)+$');});a2_0x455043();'use strict';Object[a2_0x1dc2ec(0xcf)](exports,a2_0x1dc2ec(0xc7),{'value':!![]}),exports[a2_0x1dc2ec(0xd5)]=exports[a2_0x1dc2ec(0xcc)]=void 0x0;const joi=require('joi'),date_1=require(a2_0x1dc2ec(0xe6)),core_1=require(a2_0x1dc2ec(0xd4)),interface_1=require(a2_0x1dc2ec(0xdd));exports[a2_0x1dc2ec(0xcc)]=joi[a2_0x1dc2ec(0xdb)](date_1[a2_0x1dc2ec(0xcb)]);function Rule(_0x43b9de,_0x2570bc,_0x489435=''){return(_0x5e287e,_0x397cdd)=>{const _0x1b6158=a2_0x3126;var _0x2b1dd4;if(_0x397cdd)!joi[_0x1b6158(0xda)](_0x2570bc)&&(_0x2570bc===null||_0x2570bc===void 0x0?void 0x0:_0x2570bc['name'])&&(_0x2570bc=joi['object']((0x0,core_1['getClassMetadata'])(interface_1[_0x1b6158(0xd8)],_0x2570bc))[_0x1b6158(0xde)]({'id':_0x2570bc[_0x1b6158(0xe0)]}),(0x0,core_1[_0x1b6158(0xe8)])(_0x5e287e,_0x397cdd)[_0x1b6158(0xe0)]==='Array'&&(_0x2570bc=joi[_0x1b6158(0xc5)]()[_0x1b6158(0xca)](_0x2570bc))),joi[_0x1b6158(0xda)](_0x2570bc)&&(_0x43b9de&&typeof(_0x2570bc===null||_0x2570bc===void 0x0?void 0x0:_0x2570bc[_0x1b6158(0xd2)])=='function'&&(_0x2570bc=_0x2570bc[_0x1b6158(0xd2)](_0x43b9de)),_0x489435&&typeof(_0x2570bc===null||_0x2570bc===void 0x0?void 0x0:_0x2570bc[_0x1b6158(0xd9)])==_0x1b6158(0xe5)&&(_0x2570bc=_0x2570bc['description'](_0x489435)),(0x0,core_1[_0x1b6158(0xdc)])(interface_1[_0x1b6158(0xd8)],_0x2570bc,_0x5e287e,_0x397cdd));else{const _0x1862b1=(0x0,core_1['getClassMetadata'])(interface_1[_0x1b6158(0xd8)],_0x2570bc);if(_0x1862b1){let _0x143241=(_0x2b1dd4=(0x0,core_1[_0x1b6158(0xe7)])(interface_1['RULES_KEY'],_0x5e287e))!==null&&_0x2b1dd4!==void 0x0?_0x2b1dd4:{};Object[_0x1b6158(0xcd)](_0x1862b1)[_0x1b6158(0xe3)](_0x1ae42d=>{!_0x143241[_0x1ae42d]&&(_0x143241[_0x1ae42d]=_0x1862b1[_0x1ae42d]);}),(0x0,core_1[_0x1b6158(0xd1)])(interface_1[_0x1b6158(0xd8)],_0x143241,_0x5e287e);}}};}function a2_0x58fe(){const _0x1ff779=['toString','map','4829538FlcdQn','function','@joi/date','getClassMetadata','getPropertyType','array','2jNLuje','__esModule','4516347vWGiLG','4721850BzErpt','items','default','RuleType','keys','183421fhWKSB','defineProperty','search','saveClassMetadata','label','690288HRdlem','@midwayjs/core','Rule','constructor','144CFaqBe','RULES_KEY','description','isSchema','extend','attachClassMetadata','../interface','meta','340345NULQca','name','2238112PQMbya'];a2_0x58fe=function(){return _0x1ff779;};return a2_0x58fe();}exports[a2_0x1dc2ec(0xd5)]=Rule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x5c70e5=a3_0x5082;(function(_0x358bd0,_0x5d9b48){const _0x3e70b8=a3_0x5082,_0x6419a1=_0x358bd0();while(!![]){try{const _0x584039=parseInt(_0x3e70b8(0x12e))/0x1*(-parseInt(_0x3e70b8(0x134))/0x2)+parseInt(_0x3e70b8(0x127))/0x3*(parseInt(_0x3e70b8(0x124))/0x4)+-parseInt(_0x3e70b8(0x132))/0x5+parseInt(_0x3e70b8(0x12b))/0x6+-parseInt(_0x3e70b8(0x138))/0x7+parseInt(_0x3e70b8(0x13c))/0x8*(parseInt(_0x3e70b8(0x133))/0x9)+-parseInt(_0x3e70b8(0x12c))/0xa*(-parseInt(_0x3e70b8(0x12f))/0xb);if(_0x584039===_0x5d9b48)break;else _0x6419a1['push'](_0x6419a1['shift']());}catch(_0xf54dd2){_0x6419a1['push'](_0x6419a1['shift']());}}}(a3_0x5796,0xa9c05));const a3_0x2335cd=(function(){let _0x32e381=!![];return function(_0x42dafc,_0x133776){const _0x384b73=_0x32e381?function(){if(_0x133776){const _0x19ff6a=_0x133776['apply'](_0x42dafc,arguments);return _0x133776=null,_0x19ff6a;}}:function(){};return _0x32e381=![],_0x384b73;};}()),a3_0x125440=a3_0x2335cd(this,function(){const _0x40e814=a3_0x5082;return a3_0x125440[_0x40e814(0x130)]()[_0x40e814(0x125)]('(((.+)+)+)+$')['toString']()[_0x40e814(0x136)](a3_0x125440)[_0x40e814(0x125)](_0x40e814(0x13b));});a3_0x125440();function a3_0x5082(_0x1ed480,_0x1f8c65){const _0x190248=a3_0x5796();return a3_0x5082=function(_0x125440,_0x2335cd){_0x125440=_0x125440-0x123;let _0x5796f8=_0x190248[_0x125440];return _0x5796f8;},a3_0x5082(_0x1ed480,_0x1f8c65);}'use strict';Object[a3_0x5c70e5(0x13d)](exports,a3_0x5c70e5(0x139),{'value':!![]}),exports[a3_0x5c70e5(0x13a)]=exports[a3_0x5c70e5(0x137)]=void 0x0;const core_1=require(a3_0x5c70e5(0x135)),interface_1=require('../interface');function Validator(_0x14a3d0={}){return(_0x559f21,_0x2bb104,_0x33a174)=>{const _0x2ed2c9=a3_0x5082,_0x2d75ea=getFuncArgs(_0x559f21[_0x2bb104]);(0x0,core_1['attachClassMetadata'])(interface_1[_0x2ed2c9(0x12a)],{'method':_0x2bb104,'methodArgs':_0x2d75ea},_0x559f21),(0x0,core_1[_0x2ed2c9(0x126)])(interface_1[_0x2ed2c9(0x12a)],_0x14a3d0)(_0x559f21,_0x2bb104,_0x33a174);};}exports[a3_0x5c70e5(0x137)]=Validator;function a3_0x5796(){const _0x4012a6=['createCustomMethodDecorator','82317PKgCoy','match','indexOf','VALIDATOR_KEY','1501674JrcHNp','410150OyOFck','replace','22031RvVOMl','638aWgQeG','toString','function','6074505nqnrma','4188231XdHwrY','106Jffidm','@midwayjs/core','constructor','Validator','6639395JEjfma','__esModule','getFuncArgs','(((.+)+)+)+$','16EgFJxP','defineProperty','prototype','68MvHEqx','search'];a3_0x5796=function(){return _0x4012a6;};return a3_0x5796();}function getFuncArgs(_0x5d33e9){const _0x47139b=a3_0x5c70e5;if(typeof _0x5d33e9==_0x47139b(0x131)){const _0x51becd=/=>.*$/mg,_0x3a20f7=/=[^,)]+/mg,_0x38ada6=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x1d0cbe=(_0x5d33e9[_0x47139b(0x123)]?_0x5d33e9[_0x47139b(0x123)][_0x47139b(0x136)][_0x47139b(0x130)]():_0x5d33e9[_0x47139b(0x130)]())['replace'](_0x38ada6,'')[_0x47139b(0x12d)](_0x51becd,'')['replace'](_0x3a20f7,''),_0x51462e=_0x1d0cbe['slice'](_0x1d0cbe[_0x47139b(0x129)]('(')+0x1,_0x1d0cbe[_0x47139b(0x129)](')'))[_0x47139b(0x128)](/([^\s,]+)/g)||[];return _0x51462e;}}exports[a3_0x5c70e5(0x13a)]=getFuncArgs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a4_0x516d(_0x5ab45c,_0x113d52){var _0x4e7325=a4_0x1343();return a4_0x516d=function(_0x5cda07,_0x4b884a){_0x5cda07=_0x5cda07-0x11b;var _0x134367=_0x4e7325[_0x5cda07];return _0x134367;},a4_0x516d(_0x5ab45c,_0x113d52);}var a4_0x356d8d=a4_0x516d;(function(_0x5c1844,_0x4c0863){var _0xdf3812=a4_0x516d,_0x41ac31=_0x5c1844();while(!![]){try{var _0x408699=-parseInt(_0xdf3812(0x122))/0x1*(-parseInt(_0xdf3812(0x120))/0x2)+parseInt(_0xdf3812(0x12e))/0x3+-parseInt(_0xdf3812(0x12b))/0x4+-parseInt(_0xdf3812(0x12f))/0x5+parseInt(_0xdf3812(0x12a))/0x6+parseInt(_0xdf3812(0x12c))/0x7*(-parseInt(_0xdf3812(0x11f))/0x8)+parseInt(_0xdf3812(0x11b))/0x9;if(_0x408699===_0x4c0863)break;else _0x41ac31['push'](_0x41ac31['shift']());}catch(_0x356744){_0x41ac31['push'](_0x41ac31['shift']());}}}(a4_0x1343,0xaebfb));var a4_0x4b884a=(function(){var _0xa346ee=!![];return function(_0x3914f2,_0x30d180){var _0x42841d=_0xa346ee?function(){var _0x5a2ea2=a4_0x516d;if(_0x30d180){var _0x1ac4e5=_0x30d180[_0x5a2ea2(0x137)](_0x3914f2,arguments);return _0x30d180=null,_0x1ac4e5;}}:function(){};return _0xa346ee=![],_0x42841d;};}()),a4_0x5cda07=a4_0x4b884a(this,function(){var _0x15fdf2=a4_0x516d;return a4_0x5cda07[_0x15fdf2(0x124)]()[_0x15fdf2(0x11d)]('(((.+)+)+)+$')['toString']()[_0x15fdf2(0x131)](a4_0x5cda07)['search'](_0x15fdf2(0x127));});a4_0x5cda07();'use strict';var __decorate=this&&this[a4_0x356d8d(0x133)]||function(_0x18bae2,_0x192fc9,_0x3c192b,_0x1d889f){var _0x4a0103=a4_0x356d8d,_0x307208=arguments['length'],_0x27ed47=_0x307208<0x3?_0x192fc9:_0x1d889f===null?_0x1d889f=Object[_0x4a0103(0x11c)](_0x192fc9,_0x3c192b):_0x1d889f,_0x306254;if(typeof Reflect==='object'&&typeof Reflect[_0x4a0103(0x135)]==='function')_0x27ed47=Reflect['decorate'](_0x18bae2,_0x192fc9,_0x3c192b,_0x1d889f);else{for(var _0x37ba93=_0x18bae2[_0x4a0103(0x129)]-0x1;_0x37ba93>=0x0;_0x37ba93--)if(_0x306254=_0x18bae2[_0x37ba93])_0x27ed47=(_0x307208<0x3?_0x306254(_0x27ed47):_0x307208>0x3?_0x306254(_0x192fc9,_0x3c192b,_0x27ed47):_0x306254(_0x192fc9,_0x3c192b))||_0x27ed47;}return _0x307208>0x3&&_0x27ed47&&Object[_0x4a0103(0x128)](_0x192fc9,_0x3c192b,_0x27ed47),_0x27ed47;},__metadata=this&&this[a4_0x356d8d(0x123)]||function(_0x5af371,_0x40e95b){var _0x269392=a4_0x356d8d;if(typeof Reflect===_0x269392(0x121)&&typeof Reflect[_0x269392(0x130)]===_0x269392(0x125))return Reflect[_0x269392(0x130)](_0x5af371,_0x40e95b);};Object[a4_0x356d8d(0x128)](exports,a4_0x356d8d(0x132),{'value':!![]}),exports[a4_0x356d8d(0x136)]=void 0x0;const core_1=require('@anncic-api/core');class ValidatorError{}ValidatorError[a4_0x356d8d(0x12d)]=0x3df374,ValidatorError[a4_0x356d8d(0x126)]=0x3df36a,__decorate([(0x0,core_1['AnnErrorMsg'])(a4_0x356d8d(0x11e)),__metadata(a4_0x356d8d(0x134),Object)],ValidatorError,a4_0x356d8d(0x12d),void 0x0),__decorate([(0x0,core_1['AnnErrorMsg'])(a4_0x356d8d(0x11e)),__metadata(a4_0x356d8d(0x134),Object)],ValidatorError,'NOFIND_SCHEMA',void 0x0),exports['ValidatorError']=ValidatorError;function a4_0x1343(){var _0x316f86=['4883360EXjZEt','279762QhzgPn','PARAMS','1093491WLHmHk','4479955Xkfatt','metadata','constructor','__esModule','__decorate','design:type','decorate','ValidatorError','apply','23368095wwsSuz','getOwnPropertyDescriptor','search','参数验证失败','200UFsbvo','760SxOdlH','object','1148qPIGaN','__metadata','toString','function','NOFIND_SCHEMA','(((.+)+)+)+$','defineProperty','length','2607360lMnaGw'];a4_0x1343=function(){return _0x316f86;};return a4_0x1343();}
|
package/dist/helper/dtoHelper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x2f589c=a5_0x2c94;(function(_0x18f2ae,_0x52b8e6){const _0x1c11cb=a5_0x2c94,_0x444a64=_0x18f2ae();while(!![]){try{const _0x4a6c72=-parseInt(_0x1c11cb(0x1a6))/0x1*(-parseInt(_0x1c11cb(0x1a1))/0x2)+-parseInt(_0x1c11cb(0x19e))/0x3*(-parseInt(_0x1c11cb(0x1a5))/0x4)+-parseInt(_0x1c11cb(0x192))/0x5+parseInt(_0x1c11cb(0x191))/0x6+-parseInt(_0x1c11cb(0x193))/0x7*(parseInt(_0x1c11cb(0x1a0))/0x8)+-parseInt(_0x1c11cb(0x1a2))/0x9*(-parseInt(_0x1c11cb(0x198))/0xa)+-parseInt(_0x1c11cb(0x19d))/0xb;if(_0x4a6c72===_0x52b8e6)break;else _0x444a64['push'](_0x444a64['shift']());}catch(_0x1fad4a){_0x444a64['push'](_0x444a64['shift']());}}}(a5_0x333d,0x57062));const a5_0x4405ff=(function(){let _0x54721c=!![];return function(_0x145a47,_0x1c2b07){const _0x11d32d=_0x54721c?function(){const _0x67521a=a5_0x2c94;if(_0x1c2b07){const _0x28bf8d=_0x1c2b07[_0x67521a(0x1a4)](_0x145a47,arguments);return _0x1c2b07=null,_0x28bf8d;}}:function(){};return _0x54721c=![],_0x11d32d;};}()),a5_0x4e4a43=a5_0x4405ff(this,function(){const _0x56a9c7=a5_0x2c94;return a5_0x4e4a43['toString']()[_0x56a9c7(0x19a)](_0x56a9c7(0x19f))[_0x56a9c7(0x194)]()[_0x56a9c7(0x195)](a5_0x4e4a43)[_0x56a9c7(0x19a)](_0x56a9c7(0x19f));});a5_0x4e4a43();'use strict';function a5_0x2c94(_0x40e67b,_0x1f16fd){const _0x3bba85=a5_0x333d();return a5_0x2c94=function(_0x4e4a43,_0x4405ff){_0x4e4a43=_0x4e4a43-0x191;let _0x333d00=_0x3bba85[_0x4e4a43];return _0x333d00;},a5_0x2c94(_0x40e67b,_0x1f16fd);}Object[a5_0x2f589c(0x196)](exports,'__esModule',{'value':!![]}),exports[a5_0x2f589c(0x19c)]=exports[a5_0x2f589c(0x199)]=void 0x0;const core_1=require('@midwayjs/core'),interface_1=require(a5_0x2f589c(0x19b));function a5_0x333d(){const _0x119e55=['459agXsrf','(((.+)+)+)+$','1261536FbaYbv','193474XuRklP','388134oUVwfU','assign','apply','15188RezeBt','1FqGFGT','saveClassMetadata','2546046vhivLg','2109675WAkyUj','14owsqFV','toString','constructor','defineProperty','RULES_KEY','90ZSTVTe','PickDto','search','../interface','OmitDto','4360224POHNIt'];a5_0x333d=function(){return _0x119e55;};return a5_0x333d();}function PickDto(_0x32139e,_0x3f59e7){const _0x43973a=a5_0x2f589c,_0x40d300=function(){};_0x40d300['prototype']=_0x32139e['prototype'];const _0x3cc983=(0x0,core_1['getClassExtendedMetadata'])(interface_1[_0x43973a(0x197)],_0x32139e),_0x318916={};for(const _0x3de16e of _0x3f59e7){_0x3cc983[_0x3de16e]&&(_0x318916[_0x3de16e]=_0x3cc983[_0x3de16e]);}return(0x0,core_1[_0x43973a(0x1a7)])(interface_1[_0x43973a(0x197)],_0x318916,_0x40d300),_0x40d300;}exports[a5_0x2f589c(0x199)]=PickDto;function OmitDto(_0x2e3c61,_0x44f2c6){const _0x17cbdb=a5_0x2f589c,_0x2c278e=function(){};_0x2c278e['prototype']=_0x2e3c61['prototype'];const _0x45d4c9=(0x0,core_1['getClassExtendedMetadata'])(interface_1[_0x17cbdb(0x197)],_0x2e3c61),_0x559225=Object[_0x17cbdb(0x1a3)]({},_0x45d4c9);for(const _0x4c05b5 of _0x44f2c6){delete _0x559225[_0x4c05b5];}return(0x0,core_1['saveClassMetadata'])(interface_1[_0x17cbdb(0x197)],_0x559225,_0x2c278e),_0x2c278e;}exports[a5_0x2f589c(0x19c)]=OmitDto;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a6_0x351f17=a6_0x15a2;(function(_0x14712b,_0x36509a){var _0x5b2ca1=a6_0x15a2,_0x3602b5=_0x14712b();while(!![]){try{var _0x13cbf5=parseInt(_0x5b2ca1(0xff))/0x1*(parseInt(_0x5b2ca1(0x114))/0x2)+parseInt(_0x5b2ca1(0x110))/0x3*(-parseInt(_0x5b2ca1(0x101))/0x4)+parseInt(_0x5b2ca1(0xf9))/0x5*(-parseInt(_0x5b2ca1(0x11b))/0x6)+parseInt(_0x5b2ca1(0xf8))/0x7*(-parseInt(_0x5b2ca1(0x11a))/0x8)+-parseInt(_0x5b2ca1(0x109))/0x9*(parseInt(_0x5b2ca1(0x116))/0xa)+parseInt(_0x5b2ca1(0x10a))/0xb*(-parseInt(_0x5b2ca1(0x111))/0xc)+parseInt(_0x5b2ca1(0xfc))/0xd;if(_0x13cbf5===_0x36509a)break;else _0x3602b5['push'](_0x3602b5['shift']());}catch(_0x12dc9a){_0x3602b5['push'](_0x3602b5['shift']());}}}(a6_0x847c,0x4ef0c));var a6_0x484e99=(function(){var _0x4e2371=!![];return function(_0x5dad2c,_0x24afec){var _0x223bf2=_0x4e2371?function(){var _0x2ef2e1=a6_0x15a2;if(_0x24afec){var _0x21959d=_0x24afec[_0x2ef2e1(0x10d)](_0x5dad2c,arguments);return _0x24afec=null,_0x21959d;}}:function(){};return _0x4e2371=![],_0x223bf2;};}()),a6_0x5460b6=a6_0x484e99(this,function(){var _0xf2f6db=a6_0x15a2;return a6_0x5460b6[_0xf2f6db(0x106)]()[_0xf2f6db(0xf6)](_0xf2f6db(0x119))[_0xf2f6db(0x106)]()[_0xf2f6db(0x108)](a6_0x5460b6)['search'](_0xf2f6db(0x119));});a6_0x5460b6();function a6_0x15a2(_0x2bda6c,_0x2dd37a){var _0x1209c0=a6_0x847c();return a6_0x15a2=function(_0x5460b6,_0x484e99){_0x5460b6=_0x5460b6-0xf6;var _0x847c9e=_0x1209c0[_0x5460b6];return _0x847c9e;},a6_0x15a2(_0x2bda6c,_0x2dd37a);}function a6_0x847c(){var _0x307887=['constructor','1553913BAkHOn','39171eJvBFZ','./configuration','ValidatorError','apply','default','Configuration','79887CytnnI','1416svVcBD','ValidatorService','./interface','497246CAmeHy','__esModule','20rhqBRW','configurable','RuleType','(((.+)+)+)+$','3176xWbios','24mZtjPV','getOwnPropertyDescriptor','defineProperty','search','./helper/dtoHelper','1617uMaFrU','477315AntnkD','get','writable','21463039dKoDdR','create','__createBinding','2oaoMiX','prototype','88RakkAj','Validator','CustomConfiguration','./decorator/Rule','./exception/ValidatorError','toString','Rule'];a6_0x847c=function(){return _0x307887;};return a6_0x847c();}'use strict';var __createBinding=this&&this[a6_0x351f17(0xfe)]||(Object[a6_0x351f17(0xfd)]?function(_0x3fcdbc,_0x43b218,_0xb570c4,_0x5691ba){var _0x32fbca=a6_0x351f17;if(_0x5691ba===undefined)_0x5691ba=_0xb570c4;var _0xef9570=Object[_0x32fbca(0x11c)](_0x43b218,_0xb570c4);(!_0xef9570||(_0x32fbca(0xfa)in _0xef9570?!_0x43b218[_0x32fbca(0x115)]:_0xef9570[_0x32fbca(0xfb)]||_0xef9570[_0x32fbca(0x117)]))&&(_0xef9570={'enumerable':!![],'get':function(){return _0x43b218[_0xb570c4];}}),Object[_0x32fbca(0x11d)](_0x3fcdbc,_0x5691ba,_0xef9570);}:function(_0x4ff27e,_0x3ffdcb,_0x450e49,_0x5e3fa6){if(_0x5e3fa6===undefined)_0x5e3fa6=_0x450e49;_0x4ff27e[_0x5e3fa6]=_0x3ffdcb[_0x450e49];}),__exportStar=this&&this['__exportStar']||function(_0x32f15c,_0x5f4f3c){var _0x2a2903=a6_0x351f17;for(var _0x11b21d in _0x32f15c)if(_0x11b21d!==_0x2a2903(0x10e)&&!Object[_0x2a2903(0x100)]['hasOwnProperty']['call'](_0x5f4f3c,_0x11b21d))__createBinding(_0x5f4f3c,_0x32f15c,_0x11b21d);};Object[a6_0x351f17(0x11d)](exports,'__esModule',{'value':!![]}),exports[a6_0x351f17(0x10f)]=exports[a6_0x351f17(0x112)]=exports[a6_0x351f17(0x10c)]=exports['RuleType']=exports[a6_0x351f17(0x107)]=exports[a6_0x351f17(0x102)]=void 0x0,__exportStar(require(a6_0x351f17(0x113)),exports),__exportStar(require(a6_0x351f17(0xf7)),exports);var Validator_1=require('./decorator/Validator');Object[a6_0x351f17(0x11d)](exports,a6_0x351f17(0x102),{'enumerable':!![],'get':function(){var _0x5d1ef3=a6_0x351f17;return Validator_1[_0x5d1ef3(0x102)];}});var Rule_1=require(a6_0x351f17(0x104));Object[a6_0x351f17(0x11d)](exports,'Rule',{'enumerable':!![],'get':function(){return Rule_1['Rule'];}}),Object[a6_0x351f17(0x11d)](exports,a6_0x351f17(0x118),{'enumerable':!![],'get':function(){var _0x40119a=a6_0x351f17;return Rule_1[_0x40119a(0x118)];}});var ValidatorError_1=require(a6_0x351f17(0x105));Object['defineProperty'](exports,a6_0x351f17(0x10c),{'enumerable':!![],'get':function(){return ValidatorError_1['ValidatorError'];}});var ValidatorService_1=require('./service/ValidatorService');Object[a6_0x351f17(0x11d)](exports,a6_0x351f17(0x112),{'enumerable':!![],'get':function(){return ValidatorService_1['ValidatorService'];}});var configuration_1=require(a6_0x351f17(0x10b));Object[a6_0x351f17(0x11d)](exports,a6_0x351f17(0x10f),{'enumerable':!![],'get':function(){var _0x55ac1b=a6_0x351f17;return configuration_1[_0x55ac1b(0x103)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var a7_0x444182=a7_0x2dfd;function a7_0x42ea(){var _0x4c047a=['92aqVVOy','VALIDATOR_KEY','59268jqjPJm','RULES_KEY','7091049zKBkYJ','1553400ZVqXmR','apply','anncic-api:validator:validator','2nJlZJe','(((.+)+)+)+$','anncic-api:validator:rules','399197TvJIGv','search','11014872AXmwFo','2044330loleBW','toString','constructor','80xLWybT','defineProperty','__esModule','9612136vfUfuV'];a7_0x42ea=function(){return _0x4c047a;};return a7_0x42ea();}(function(_0x14fd88,_0x58f4b5){var _0x18ab17=a7_0x2dfd,_0x5e4b8d=_0x14fd88();while(!![]){try{var _0x681b77=parseInt(_0x18ab17(0x170))/0x1*(parseInt(_0x18ab17(0x16d))/0x2)+-parseInt(_0x18ab17(0x167))/0x3*(parseInt(_0x18ab17(0x165))/0x4)+parseInt(_0x18ab17(0x15e))/0x5+parseInt(_0x18ab17(0x15d))/0x6+-parseInt(_0x18ab17(0x169))/0x7+parseInt(_0x18ab17(0x164))/0x8+-parseInt(_0x18ab17(0x16a))/0x9*(parseInt(_0x18ab17(0x161))/0xa);if(_0x681b77===_0x58f4b5)break;else _0x5e4b8d['push'](_0x5e4b8d['shift']());}catch(_0x3a065b){_0x5e4b8d['push'](_0x5e4b8d['shift']());}}}(a7_0x42ea,0xf374d));var a7_0x507b45=(function(){var _0xfc793a=!![];return function(_0x2b706d,_0x5f41f2){var _0x1be53b=_0xfc793a?function(){var _0x26ca8e=a7_0x2dfd;if(_0x5f41f2){var _0x518026=_0x5f41f2[_0x26ca8e(0x16b)](_0x2b706d,arguments);return _0x5f41f2=null,_0x518026;}}:function(){};return _0xfc793a=![],_0x1be53b;};}()),a7_0xed02db=a7_0x507b45(this,function(){var _0x883fed=a7_0x2dfd;return a7_0xed02db[_0x883fed(0x15f)]()[_0x883fed(0x15c)](_0x883fed(0x16e))[_0x883fed(0x15f)]()[_0x883fed(0x160)](a7_0xed02db)[_0x883fed(0x15c)](_0x883fed(0x16e));});function a7_0x2dfd(_0x39eb9c,_0x4a3adc){var _0x1b6b2a=a7_0x42ea();return a7_0x2dfd=function(_0xed02db,_0x507b45){_0xed02db=_0xed02db-0x15c;var _0x42ea35=_0x1b6b2a[_0xed02db];return _0x42ea35;},a7_0x2dfd(_0x39eb9c,_0x4a3adc);}a7_0xed02db();'use strict';Object[a7_0x444182(0x162)](exports,a7_0x444182(0x163),{'value':!![]}),exports['VALIDATOR_KEY']=exports['RULES_KEY']=void 0x0,exports[a7_0x444182(0x168)]=a7_0x444182(0x16f),exports[a7_0x444182(0x166)]=a7_0x444182(0x16c);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a8_0x48b90c=a8_0x56cb;(function(_0x820961,_0x332b6e){const _0xd68ba0=a8_0x56cb,_0x471ac=_0x820961();while(!![]){try{const _0x3c6749=-parseInt(_0xd68ba0(0xa3))/0x1*(parseInt(_0xd68ba0(0xc3))/0x2)+parseInt(_0xd68ba0(0xb7))/0x3*(-parseInt(_0xd68ba0(0x97))/0x4)+-parseInt(_0xd68ba0(0xce))/0x5*(parseInt(_0xd68ba0(0xaa))/0x6)+parseInt(_0xd68ba0(0xbe))/0x7+parseInt(_0xd68ba0(0xa2))/0x8*(-parseInt(_0xd68ba0(0x8e))/0x9)+-parseInt(_0xd68ba0(0xcb))/0xa+-parseInt(_0xd68ba0(0x9b))/0xb*(-parseInt(_0xd68ba0(0xb6))/0xc);if(_0x3c6749===_0x332b6e)break;else _0x471ac['push'](_0x471ac['shift']());}catch(_0x56d671){_0x471ac['push'](_0x471ac['shift']());}}}(a8_0x5a39,0x49c3e));const a8_0x27cadf=(function(){let _0x56e6af=!![];return function(_0x46aa86,_0x4a329c){const _0x477918=_0x56e6af?function(){const _0x2274bc=a8_0x56cb;if(_0x4a329c){const _0x1ab837=_0x4a329c[_0x2274bc(0xd6)](_0x46aa86,arguments);return _0x4a329c=null,_0x1ab837;}}:function(){};return _0x56e6af=![],_0x477918;};}()),a8_0x52f0c4=a8_0x27cadf(this,function(){const _0x171e51=a8_0x56cb;return a8_0x52f0c4['toString']()[_0x171e51(0xbb)]('(((.+)+)+)+$')[_0x171e51(0xca)]()[_0x171e51(0x9c)](a8_0x52f0c4)['search'](_0x171e51(0xd0));});a8_0x52f0c4();function a8_0x56cb(_0x12d33b,_0x453164){const _0x420fd8=a8_0x5a39();return a8_0x56cb=function(_0x52f0c4,_0x27cadf){_0x52f0c4=_0x52f0c4-0x8e;let _0x5a39b3=_0x420fd8[_0x52f0c4];return _0x5a39b3;},a8_0x56cb(_0x12d33b,_0x453164);}'use strict';var __decorate=this&&this[a8_0x48b90c(0xa9)]||function(_0x613cff,_0x10fe07,_0x32ba11,_0x213ff2){const _0x4430cf=a8_0x48b90c;var _0x5dba09=arguments[_0x4430cf(0xa1)],_0x4f6694=_0x5dba09<0x3?_0x10fe07:_0x213ff2===null?_0x213ff2=Object[_0x4430cf(0x95)](_0x10fe07,_0x32ba11):_0x213ff2,_0x3a4f0b;if(typeof Reflect===_0x4430cf(0xa5)&&typeof Reflect[_0x4430cf(0xc8)]==='function')_0x4f6694=Reflect[_0x4430cf(0xc8)](_0x613cff,_0x10fe07,_0x32ba11,_0x213ff2);else{for(var _0x1f5c50=_0x613cff[_0x4430cf(0xa1)]-0x1;_0x1f5c50>=0x0;_0x1f5c50--)if(_0x3a4f0b=_0x613cff[_0x1f5c50])_0x4f6694=(_0x5dba09<0x3?_0x3a4f0b(_0x4f6694):_0x5dba09>0x3?_0x3a4f0b(_0x10fe07,_0x32ba11,_0x4f6694):_0x3a4f0b(_0x10fe07,_0x32ba11))||_0x4f6694;}return _0x5dba09>0x3&&_0x4f6694&&Object['defineProperty'](_0x10fe07,_0x32ba11,_0x4f6694),_0x4f6694;},__metadata=this&&this[a8_0x48b90c(0x90)]||function(_0x36052e,_0x3c72e3){const _0x117429=a8_0x48b90c;if(typeof Reflect===_0x117429(0xa5)&&typeof Reflect['metadata']===_0x117429(0xa4))return Reflect['metadata'](_0x36052e,_0x3c72e3);};Object[a8_0x48b90c(0xb0)](exports,a8_0x48b90c(0x9e),{'value':!![]}),exports[a8_0x48b90c(0xcc)]=void 0x0;const Joi=require(a8_0x48b90c(0xa8)),i18n_1=require('@midwayjs/i18n'),core_1=require(a8_0x48b90c(0xd5)),interface_1=require(a8_0x48b90c(0x98)),ValidatorError_1=require(a8_0x48b90c(0xbc));let ValidatorService=class ValidatorService{constructor(){const _0x321fe4=a8_0x48b90c;this[_0x321fe4(0xcd)]={};}async[a8_0x48b90c(0xad)](){const _0x3858b1=a8_0x48b90c,_0x240e6f=Object['keys'](this[_0x3858b1(0xb1)][_0x3858b1(0xd1)]);_0x240e6f[_0x3858b1(0xd8)](_0xbf7704=>{const _0xcbd39b=_0x3858b1;this[_0xcbd39b(0xcd)][(0x0,i18n_1['formatLocale'])(_0xbf7704)]=Object[_0xcbd39b(0x9f)](this[_0xcbd39b(0xa7)][_0xcbd39b(0x8f)](_0xbf7704,_0xcbd39b(0xda)));});}[a8_0x48b90c(0x96)](_0x417c66){const _0xcb58d0=a8_0x48b90c,_0x5210ba=(0x0,core_1[_0xcb58d0(0xc5)])(interface_1[_0xcb58d0(0xc9)],_0x417c66);return _0x5210ba?Joi['object'](_0x5210ba):undefined;}['validator'](_0x3dcd27,_0x48c801,_0x5d5049={}){const _0xa1c330=a8_0x48b90c;var _0x372905,_0xb4bf2,_0x39fb75,_0x1403f1,_0x288251;const _0x20b7d1=Joi['isSchema'](_0x3dcd27)?_0x3dcd27:this[_0xa1c330(0x96)](_0x3dcd27);if(!_0x20b7d1)throw new AnnError(ValidatorError_1[_0xa1c330(0x99)][_0xa1c330(0xb3)]);_0x5d5049[_0xa1c330(0xc4)]=Object['assign']((_0x372905=this['validatorConfig'][_0xa1c330(0xc4)])!==null&&_0x372905!==void 0x0?_0x372905:{},{'messages':this[_0xa1c330(0xcd)]},_0x5d5049[_0xa1c330(0xc4)]||{}),_0x5d5049[_0xa1c330(0xc4)][_0xa1c330(0x93)]=_0x5d5049['validationOptions'][_0xa1c330(0x93)]||{},_0x5d5049['validationOptions']['errors'][_0xa1c330(0xd2)]=(0x0,i18n_1[_0xa1c330(0xc6)])(this[_0xa1c330(0xa7)]['getAvailableLocale'](_0x5d5049[_0xa1c330(0xc4)][_0xa1c330(0x93)][_0xa1c330(0xd2)]||_0x5d5049['locale']||this[_0xa1c330(0xb1)][_0xa1c330(0xab)],_0xa1c330(0xda)));const _0x3e0be8=_0x20b7d1['validate'](_0x48c801,_0x5d5049[_0xa1c330(0xc4)]);if(_0x3e0be8===null||_0x3e0be8===void 0x0?void 0x0:_0x3e0be8[_0xa1c330(0xcf)])throw new AnnError(ValidatorError_1[_0xa1c330(0x99)][_0xa1c330(0xae)],{'message':((_0x1403f1=(_0x39fb75=(_0xb4bf2=_0x3e0be8[_0xa1c330(0xcf)])===null||_0xb4bf2===void 0x0?void 0x0:_0xb4bf2[_0xa1c330(0xd7)])===null||_0x39fb75===void 0x0?void 0x0:_0x39fb75[0x0])===null||_0x1403f1===void 0x0?void 0x0:_0x1403f1[_0xa1c330(0x92)])||_0xa1c330(0x9d)});if(_0x3e0be8===null||_0x3e0be8===void 0x0?void 0x0:_0x3e0be8[_0xa1c330(0xb9)]){const _0x5d2269=(_0x288251=_0x20b7d1===null||_0x20b7d1===void 0x0?void 0x0:_0x20b7d1[_0xa1c330(0xc2)])===null||_0x288251===void 0x0?void 0x0:_0x288251[_0xa1c330(0xb8)],_0x42de97=function(_0x5a05dd,_0x3fc2a9){const _0x464b0b=_0xa1c330;var _0x57e19a,_0x174e63,_0x124452,_0x288589,_0x12e2e5,_0x35747c,_0x224465,_0x5f5970,_0x526c71,_0x2203ee,_0x291588;for(let _0x197b73 in _0x5a05dd){if(_0x3fc2a9[(_0x57e19a=_0x5a05dd[_0x197b73])===null||_0x57e19a===void 0x0?void 0x0:_0x57e19a[_0x464b0b(0xbf)]]&&((_0x124452=(_0x174e63=_0x5a05dd[_0x197b73])===null||_0x174e63===void 0x0?void 0x0:_0x174e63[_0x464b0b(0xb2)])===null||_0x124452===void 0x0?void 0x0:_0x124452[_0x464b0b(0xbd)])){if(((_0x12e2e5=(_0x288589=_0x5a05dd[_0x197b73])===null||_0x288589===void 0x0?void 0x0:_0x288589['schema'])===null||_0x12e2e5===void 0x0?void 0x0:_0x12e2e5[_0x464b0b(0xbd)])==_0x464b0b(0xa5))_0x3fc2a9[_0x5a05dd[_0x197b73]['key']]=_0x42de97((_0x224465=(_0x35747c=_0x5a05dd[_0x197b73])===null||_0x35747c===void 0x0?void 0x0:_0x35747c[_0x464b0b(0xb2)][_0x464b0b(0xc2)])===null||_0x224465===void 0x0?void 0x0:_0x224465[_0x464b0b(0xb8)],_0x3fc2a9[_0x5a05dd[_0x197b73]['key']]);else{if(_0x5a05dd[_0x197b73]['schema']['type']=='date'&&_0x3e0be8['value'][(_0x5f5970=_0x5a05dd[_0x197b73])===null||_0x5f5970===void 0x0?void 0x0:_0x5f5970[_0x464b0b(0xbf)]]){const _0xc18613=((_0x291588=(_0x2203ee=(_0x526c71=_0x5a05dd[_0x197b73])===null||_0x526c71===void 0x0?void 0x0:_0x526c71[_0x464b0b(0xb2)])===null||_0x2203ee===void 0x0?void 0x0:_0x2203ee[_0x464b0b(0xba)])===null||_0x291588===void 0x0?void 0x0:_0x291588['format'])||_0x464b0b(0xd3);_0x3fc2a9[_0x5a05dd[_0x197b73][_0x464b0b(0xbf)]]=dayjs(_0x3e0be8[_0x464b0b(0xb9)][_0x5a05dd[_0x197b73][_0x464b0b(0xbf)]])[_0x464b0b(0xb5)](_0xc18613);}}}}return _0x3fc2a9;};return _0x42de97(_0x5d2269,_0x3e0be8[_0xa1c330(0xb9)]);}throw new AnnError(ValidatorError_1[_0xa1c330(0x99)][_0xa1c330(0xae)]);}};__decorate([(0x0,core_1['Config'])(a8_0x48b90c(0xa6)),__metadata(a8_0x48b90c(0x9a),Object)],ValidatorService['prototype'],a8_0x48b90c(0xb1),void 0x0),__decorate([(0x0,core_1[a8_0x48b90c(0xc1)])('validator'),__metadata(a8_0x48b90c(0x9a),Object)],ValidatorService[a8_0x48b90c(0x91)],a8_0x48b90c(0xd4),void 0x0),__decorate([(0x0,core_1[a8_0x48b90c(0xc7)])(),__metadata(a8_0x48b90c(0x9a),i18n_1[a8_0x48b90c(0xd9)])],ValidatorService[a8_0x48b90c(0x91)],a8_0x48b90c(0xa7),void 0x0),__decorate([(0x0,core_1[a8_0x48b90c(0xaf)])(),__metadata(a8_0x48b90c(0x9a),Function),__metadata(a8_0x48b90c(0x94),[]),__metadata(a8_0x48b90c(0xac),Promise)],ValidatorService[a8_0x48b90c(0x91)],'init',null),ValidatorService=__decorate([(0x0,core_1['Provide'])(a8_0x48b90c(0xda)),(0x0,core_1[a8_0x48b90c(0xb4)])(core_1[a8_0x48b90c(0xa0)][a8_0x48b90c(0xc0)])],ValidatorService),exports[a8_0x48b90c(0xcc)]=ValidatorService;function a8_0x5a39(){const _0x276397=['Inject','decorate','RULES_KEY','toString','1723840fvcMSp','ValidatorService','messages','5dGlDCC','error','(((.+)+)+)+$','localeTable','language','YYYY-MM-DD\x20HH:mm:ss','validatorConfig','@midwayjs/core','apply','details','forEach','MidwayI18nServiceSingleton','validator','7146pXdGVs','getLocaleMapping','__metadata','prototype','message','errors','design:paramtypes','getOwnPropertyDescriptor','getSchema','8HseLMP','../interface','ValidatorError','design:type','5017199mpXvpH','constructor','参数验证失败','__esModule','fromEntries','ScopeEnum','length','1784YAXHks','601147VbubFU','function','object','i18n','i18nService','joi','__decorate','3002250OpPXJN','defaultLocale','design:returntype','init','PARAMS','Init','defineProperty','i18nConfig','schema','NOFIND_SCHEMA','Scope','format','48DySQpu','240693fTLtND','keys','value','_flags','search','../exception/ValidatorError','type','623952sHVnnb','key','Singleton','Config','$_terms','2qUQcHr','validationOptions','getClassExtendedMetadata','formatLocale'];a8_0x5a39=function(){return _0x276397;};return a8_0x5a39();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/validator",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.37",
|
|
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": "^1.4.
|
|
20
|
+
"@anncic-api/core": "^1.4.37",
|
|
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": "6429f8a04af1f3ed7be9cd43a1932f15aaa62b4d"
|
|
30
30
|
}
|