@anncic-api/validator 3.4.55 → 3.4.56
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_0x317381=a0_0x5b8d;(function(_0x5292f6,_0x5ca37f){const _0x53a35c=a0_0x5b8d,_0xcf011b=_0x5292f6();while(!![]){try{const _0x48b729=-parseInt(_0x53a35c(0x119))/0x1*(-parseInt(_0x53a35c(0x11e))/0x2)+-parseInt(_0x53a35c(0x117))/0x3+parseInt(_0x53a35c(0x121))/0x4*(-parseInt(_0x53a35c(0x118))/0x5)+parseInt(_0x53a35c(0x126))/0x6*(parseInt(_0x53a35c(0x114))/0x7)+parseInt(_0x53a35c(0x129))/0x8*(-parseInt(_0x53a35c(0x122))/0x9)+parseInt(_0x53a35c(0x11c))/0xa*(-parseInt(_0x53a35c(0x116))/0xb)+parseInt(_0x53a35c(0x125))/0xc;if(_0x48b729===_0x5ca37f)break;else _0xcf011b['push'](_0xcf011b['shift']());}catch(_0x5c76eb){_0xcf011b['push'](_0xcf011b['shift']());}}}(a0_0x57e8,0x3b8e4));const a0_0x14a930=(function(){let _0x1f96c0=!![];return function(_0x61ef42,_0x4eb950){const _0x43655f=_0x1f96c0?function(){if(_0x4eb950){const _0x3fa64c=_0x4eb950['apply'](_0x61ef42,arguments);return _0x4eb950=null,_0x3fa64c;}}:function(){};return _0x1f96c0=![],_0x43655f;};}()),a0_0x5bdf2b=a0_0x14a930(this,function(){const _0x54e064=a0_0x5b8d;return a0_0x5bdf2b[_0x54e064(0x11b)]()['search'](_0x54e064(0x11f))[_0x54e064(0x11b)]()[_0x54e064(0x127)](a0_0x5bdf2b)[_0x54e064(0x123)](_0x54e064(0x11f));});function a0_0x5b8d(_0x174689,_0x4405fe){const _0x3bd3e7=a0_0x57e8();return a0_0x5b8d=function(_0x5bdf2b,_0x14a930){_0x5bdf2b=_0x5bdf2b-0x114;let _0x57e8ee=_0x3bd3e7[_0x5bdf2b];return _0x57e8ee;},a0_0x5b8d(_0x174689,_0x4405fe);}a0_0x5bdf2b();'use strict';Object[a0_0x317381(0x128)](exports,a0_0x317381(0x11d),{'value':!![]});const ValidatorError_1=require(a0_0x317381(0x124));exports['default']={'validator':{'errorStatus':ValidatorError_1[a0_0x317381(0x11a)][a0_0x317381(0x115)],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':a0_0x317381(0x120)}},'i18n':{'localeTable':{'en_US':{'validator':require('../../locales/en_US.json')},'zh_CN':{'validator':require('../../locales/zh_CN.json')}}}};function a0_0x57e8(){const _0x3c13a3=['14EyLGZI','PARAMS','7887BSJkbh','332073BUpQNj','5JXEDHQ','31852zYJFVY','ValidatorError','toString','2450ybPffy','__esModule','22Luxcza','(((.+)+)+)+$','string','145708jiGTka','1476wLsKnO','search','../exception/ValidatorError','642900cWeAYb','1297176CLDiko','constructor','defineProperty','13152hWyVga'];a0_0x57e8=function(){return _0x3c13a3;};return a0_0x57e8();}
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a1_0x1cb389=a1_0x2fde;(function(_0x496f5e,_0x5b839c){const _0xc5c05f=a1_0x2fde,_0x3cc43d=_0x496f5e();while(!![]){try{const _0x293e7b=-parseInt(_0xc5c05f(0x1f5))/0x1+-parseInt(_0xc5c05f(0x20e))/0x2*(-parseInt(_0xc5c05f(0x1e4))/0x3)+-parseInt(_0xc5c05f(0x1f1))/0x4*(-parseInt(_0xc5c05f(0x209))/0x5)+-parseInt(_0xc5c05f(0x1eb))/0x6+-parseInt(_0xc5c05f(0x20a))/0x7+-parseInt(_0xc5c05f(0x1fa))/0x8+parseInt(_0xc5c05f(0x1f0))/0x9;if(_0x293e7b===_0x5b839c)break;else _0x3cc43d['push'](_0x3cc43d['shift']());}catch(_0x4cde1c){_0x3cc43d['push'](_0x3cc43d['shift']());}}}(a1_0x4559,0x4377a));const a1_0x478a03=(function(){let _0x3f3d8b=!![];return function(_0x332563,_0x2f7f24){const _0x1cf5ed=_0x3f3d8b?function(){const _0x4a9e09=a1_0x2fde;if(_0x2f7f24){const _0x2c1229=_0x2f7f24[_0x4a9e09(0x1fe)](_0x332563,arguments);return _0x2f7f24=null,_0x2c1229;}}:function(){};return _0x3f3d8b=![],_0x1cf5ed;};}()),a1_0x498961=a1_0x478a03(this,function(){const _0x3f6138=a1_0x2fde;return a1_0x498961[_0x3f6138(0x20d)]()[_0x3f6138(0x20b)]('(((.+)+)+)+$')[_0x3f6138(0x20d)]()['constructor'](a1_0x498961)[_0x3f6138(0x20b)](_0x3f6138(0x1f6));});a1_0x498961();'use strict';function a1_0x4559(){const _0x17fff2=['params','toString','23566wEDGqQ','methodArgs','ValidatorService','res','args','metadata','param','anncic-api:validator','splice','Inject','prototype','design:type','method','33fjeoTC','./config/config.default','find','decorator','getAttr','methodName','target','2120484BWFsbv','name','__decorate','@anncic-api/core','onReady','6383664hszigk','3116safFQS','CustomConfiguration','object','@midwayjs/core','172285TDYsfS','(((.+)+)+)+$','request','getOwnPropertyDescriptor','VALIDATOR_KEY','2789584QiCPrX','registerMethodHandler','defineProperty','getMethodParamTypes','apply','function','I18N_ATTR_KEY','Configuration','__esModule','getSchema','./service/ValidatorService','@midwayjs/i18n','req','decorate','length','3075oWovFk','1170757IqkacT','search'];a1_0x4559=function(){return _0x17fff2;};return a1_0x4559();}var __decorate=this&&this[a1_0x1cb389(0x1ed)]||function(_0x53ac5a,_0x35cb72,_0x2530f0,_0x17a94f){const _0x33f768=a1_0x1cb389;var _0x2fd44f=arguments['length'],_0xab119f=_0x2fd44f<0x3?_0x35cb72:_0x17a94f===null?_0x17a94f=Object[_0x33f768(0x1f8)](_0x35cb72,_0x2530f0):_0x17a94f,_0x5b9a55;if(typeof Reflect===_0x33f768(0x1f3)&&typeof Reflect['decorate']===_0x33f768(0x1ff))_0xab119f=Reflect[_0x33f768(0x207)](_0x53ac5a,_0x35cb72,_0x2530f0,_0x17a94f);else{for(var _0x47ab94=_0x53ac5a[_0x33f768(0x208)]-0x1;_0x47ab94>=0x0;_0x47ab94--)if(_0x5b9a55=_0x53ac5a[_0x47ab94])_0xab119f=(_0x2fd44f<0x3?_0x5b9a55(_0xab119f):_0x2fd44f>0x3?_0x5b9a55(_0x35cb72,_0x2530f0,_0xab119f):_0x5b9a55(_0x35cb72,_0x2530f0))||_0xab119f;}return _0x2fd44f>0x3&&_0xab119f&&Object[_0x33f768(0x1fc)](_0x35cb72,_0x2530f0,_0xab119f),_0xab119f;},__metadata=this&&this['__metadata']||function(_0x116ed6,_0x380de5){const _0x452466=a1_0x1cb389;if(typeof Reflect===_0x452466(0x1f3)&&typeof Reflect['metadata']===_0x452466(0x1ff))return Reflect[_0x452466(0x213)](_0x116ed6,_0x380de5);};Object[a1_0x1cb389(0x1fc)](exports,a1_0x1cb389(0x202),{'value':!![]}),exports[a1_0x1cb389(0x1f2)]=void 0x0;const i18n_1=require(a1_0x1cb389(0x205)),core_1=require('@midwayjs/core'),core_2=require(a1_0x1cb389(0x1f4)),interface_1=require('./interface'),ValidatorService_1=require(a1_0x1cb389(0x204)),i18n=require(a1_0x1cb389(0x205)),anncic=require(a1_0x1cb389(0x1ee)),ConfigDefault=require(a1_0x1cb389(0x1e5));let CustomConfiguration=class CustomConfiguration{async[a1_0x1cb389(0x1ef)](){const _0x444abe=a1_0x1cb389;this[_0x444abe(0x1e7)][_0x444abe(0x1fb)](interface_1[_0x444abe(0x1f9)],_0x9f19c0=>{const _0x39f556=_0x444abe,_0x112cd3=_0x9f19c0[_0x39f556(0x213)],_0x12808b=(0x0,core_2[_0x39f556(0x1fd)])(_0x9f19c0[_0x39f556(0x1ea)],_0x9f19c0['propertyName']);return{'before':_0x27c66e=>{const _0x410a17=_0x39f556;var _0x40b4b7,_0x47ea5c,_0x42e9d1,_0x23bd25,_0x24fa11,_0x734924,_0x5dd9c7,_0x7ed797,_0x4e7485,_0x1e1a0f,_0x3069e0,_0x2ee496,_0x4e259a;const _0x519f66=_0x27c66e[_0x410a17(0x1ea)][core_1['REQUEST_OBJ_CTX_KEY']],_0x4377d7=Object['assign']({},((_0x40b4b7=_0x519f66===null||_0x519f66===void 0x0?void 0x0:_0x519f66[_0x410a17(0x1f7)])===null||_0x40b4b7===void 0x0?void 0x0:_0x40b4b7['query'])||{},((_0x47ea5c=_0x519f66===null||_0x519f66===void 0x0?void 0x0:_0x519f66[_0x410a17(0x1f7)])===null||_0x47ea5c===void 0x0?void 0x0:_0x47ea5c['body'])||{}),_0x8487ac=((0x0,core_2['getClassMetadata'])(interface_1[_0x410a17(0x1f9)],_0x27c66e['target'])||[])[_0x410a17(0x1e6)](_0x51c10c=>_0x51c10c[_0x410a17(0x1e3)]==_0x27c66e[_0x410a17(0x1e9)]);!(_0x112cd3===null||_0x112cd3===void 0x0?void 0x0:_0x112cd3['locale'])&&_0x519f66&&_0x519f66[_0x410a17(0x1e8)]&&(_0x112cd3['locale']=_0x519f66[_0x410a17(0x1e8)](i18n_1[_0x410a17(0x200)]));for(let _0x4c8e50=0x0;_0x4c8e50<_0x12808b[_0x410a17(0x208)];_0x4c8e50++){const _0x2e1f25=_0x12808b[_0x4c8e50],_0x281b4c=this[_0x410a17(0x210)][_0x410a17(0x203)](_0x2e1f25);if(_0x281b4c){if(typeof _0x27c66e['args'][_0x4c8e50]=='undefined'||((_0x42e9d1=_0x27c66e[_0x410a17(0x212)][_0x4c8e50])===null||_0x42e9d1===void 0x0?void 0x0:_0x42e9d1[_0x410a17(0x1f7)])&&((_0x23bd25=_0x27c66e[_0x410a17(0x212)][_0x4c8e50])===null||_0x23bd25===void 0x0?void 0x0:_0x23bd25[_0x410a17(0x211)])&&((_0x24fa11=_0x27c66e[_0x410a17(0x212)][_0x4c8e50])===null||_0x24fa11===void 0x0?void 0x0:_0x24fa11[_0x410a17(0x206)]))_0x27c66e['args'][_0x4c8e50]=_0x4377d7;else((_0x734924=_0x27c66e[_0x410a17(0x212)][_0x4c8e50])===null||_0x734924===void 0x0?void 0x0:_0x734924[_0x410a17(0x1ec)])=='bound\x20dispatch'&&_0x27c66e[_0x410a17(0x212)][_0x410a17(0x216)](_0x4c8e50,0x0,_0x4377d7);const _0xe20c9b=this[_0x410a17(0x210)]['validator'](_0x281b4c,_0x27c66e[_0x410a17(0x212)][_0x4c8e50],_0x112cd3);_0xe20c9b&&(_0x27c66e[_0x410a17(0x212)][_0x4c8e50]=_0xe20c9b);}else{if((_0x8487ac===null||_0x8487ac===void 0x0?void 0x0:_0x8487ac['methodArgs'][_0x4c8e50])&&((_0x5dd9c7=_0x27c66e[_0x410a17(0x212)][_0x4c8e50])===null||_0x5dd9c7===void 0x0?void 0x0:_0x5dd9c7[_0x410a17(0x20c)])&&typeof _0x27c66e[_0x410a17(0x212)][_0x4c8e50][_0x410a17(0x214)]==_0x410a17(0x1ff)&&((_0x7ed797=_0x519f66===null||_0x519f66===void 0x0?void 0x0:_0x519f66[_0x410a17(0x20c)])===null||_0x7ed797===void 0x0?void 0x0:_0x7ed797[_0x8487ac[_0x410a17(0x20f)][_0x4c8e50]]))_0x27c66e[_0x410a17(0x212)][_0x4c8e50]=_0x2e1f25((_0x4e7485=_0x519f66===null||_0x519f66===void 0x0?void 0x0:_0x519f66[_0x410a17(0x20c)])===null||_0x4e7485===void 0x0?void 0x0:_0x4e7485[_0x8487ac[_0x410a17(0x20f)][_0x4c8e50]]);else(_0x8487ac===null||_0x8487ac===void 0x0?void 0x0:_0x8487ac[_0x410a17(0x20f)][_0x4c8e50])&&((_0x3069e0=(_0x1e1a0f=_0x27c66e['args'][_0x4c8e50])===null||_0x1e1a0f===void 0x0?void 0x0:_0x1e1a0f['params'])===null||_0x3069e0===void 0x0?void 0x0:_0x3069e0[_0x8487ac[_0x410a17(0x20f)][_0x4c8e50]])&&(_0x27c66e[_0x410a17(0x212)][_0x4c8e50]=(_0x4e259a=(_0x2ee496=_0x27c66e['args'][_0x4c8e50])===null||_0x2ee496===void 0x0?void 0x0:_0x2ee496[_0x410a17(0x20c)])===null||_0x4e259a===void 0x0?void 0x0:_0x4e259a[_0x8487ac[_0x410a17(0x20f)][_0x4c8e50]]);}}},'afterThrow':(_0x4f2ef0,_0x504ae9)=>{throw _0x504ae9;}};});}};function a1_0x2fde(_0x24859a,_0xadfe95){const _0x28083e=a1_0x4559();return a1_0x2fde=function(_0x498961,_0x478a03){_0x498961=_0x498961-0x1e1;let _0x4559a6=_0x28083e[_0x498961];return _0x4559a6;},a1_0x2fde(_0x24859a,_0xadfe95);}exports[a1_0x1cb389(0x1f2)]=CustomConfiguration,__decorate([(0x0,core_2['Inject'])(),__metadata(a1_0x1cb389(0x1e2),core_1['MidwayDecoratorService'])],CustomConfiguration[a1_0x1cb389(0x1e1)],'decorator',void 0x0),__decorate([(0x0,core_2[a1_0x1cb389(0x217)])(),__metadata('design:type',ValidatorService_1[a1_0x1cb389(0x210)])],CustomConfiguration[a1_0x1cb389(0x1e1)],'ValidatorService',void 0x0),exports['CustomConfiguration']=CustomConfiguration=__decorate([(0x0,core_2[a1_0x1cb389(0x201)])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':a1_0x1cb389(0x215),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
|
package/dist/decorator/Rule.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0x5c519f=a2_0x10a8;(function(_0x517574,_0x4a8b46){const _0x5497d1=a2_0x10a8,_0x307f7c=_0x517574();while(!![]){try{const _0x3e79bc=parseInt(_0x5497d1(0x1f0))/0x1*(-parseInt(_0x5497d1(0x207))/0x2)+-parseInt(_0x5497d1(0x209))/0x3+-parseInt(_0x5497d1(0x1ed))/0x4+parseInt(_0x5497d1(0x1fe))/0x5*(-parseInt(_0x5497d1(0x1f5))/0x6)+-parseInt(_0x5497d1(0x1ea))/0x7*(parseInt(_0x5497d1(0x20d))/0x8)+parseInt(_0x5497d1(0x1fb))/0x9*(parseInt(_0x5497d1(0x1ff))/0xa)+parseInt(_0x5497d1(0x1ec))/0xb;if(_0x3e79bc===_0x4a8b46)break;else _0x307f7c['push'](_0x307f7c['shift']());}catch(_0x4a7419){_0x307f7c['push'](_0x307f7c['shift']());}}}(a2_0x37a9,0x2a119));const a2_0x4b4740=(function(){let _0x2aadeb=!![];return function(_0x2cb24f,_0xcb69c3){const _0x92d88b=_0x2aadeb?function(){const _0x2aa74b=a2_0x10a8;if(_0xcb69c3){const _0x623aa4=_0xcb69c3[_0x2aa74b(0x1f7)](_0x2cb24f,arguments);return _0xcb69c3=null,_0x623aa4;}}:function(){};return _0x2aadeb=![],_0x92d88b;};}()),a2_0x56d570=a2_0x4b4740(this,function(){const _0x5c0bf7=a2_0x10a8;return a2_0x56d570[_0x5c0bf7(0x1fc)]()[_0x5c0bf7(0x1f4)](_0x5c0bf7(0x204))[_0x5c0bf7(0x1fc)]()[_0x5c0bf7(0x1eb)](a2_0x56d570)['search'](_0x5c0bf7(0x204));});a2_0x56d570();'use strict';function a2_0x10a8(_0xfce467,_0x44122e){const _0x2702ef=a2_0x37a9();return a2_0x10a8=function(_0x56d570,_0x4b4740){_0x56d570=_0x56d570-0x1ea;let _0x37a939=_0x2702ef[_0x56d570];return _0x37a939;},a2_0x10a8(_0xfce467,_0x44122e);}function a2_0x37a9(){const _0x14efc2=['181818IJEagB','name','meta','description','17328CWfRtB','__esModule','609HkXvVT','constructor','8493210ndEyeZ','1337032nWyWFA','../interface','isSchema','25457QiSNcu','label','RuleType','@midwayjs/core','search','114354QuxEzh','keys','apply','getClassMetadata','extend','function','36tpzttJ','toString','getPropertyType','10PnbMVd','117710vTOHoQ','RULES_KEY','defineProperty','saveClassMetadata','default','(((.+)+)+)+$','array','attachClassMetadata','2HqlSMx','map'];a2_0x37a9=function(){return _0x14efc2;};return a2_0x37a9();}Object[a2_0x5c519f(0x201)](exports,a2_0x5c519f(0x20e),{'value':!![]}),exports[a2_0x5c519f(0x1f2)]=void 0x0,exports['Rule']=Rule;const joi=require('joi'),date_1=require('@joi/date'),core_1=require(a2_0x5c519f(0x1f3)),interface_1=require(a2_0x5c519f(0x1ee));exports[a2_0x5c519f(0x1f2)]=joi[a2_0x5c519f(0x1f9)](date_1[a2_0x5c519f(0x203)]);function Rule(_0x240bae,_0x55e5d6,_0x25f842=''){return(_0x1823f7,_0x253f74)=>{const _0x1281a0=a2_0x10a8;var _0x59105c;if(_0x253f74)!joi[_0x1281a0(0x1ef)](_0x55e5d6)&&(_0x55e5d6===null||_0x55e5d6===void 0x0?void 0x0:_0x55e5d6[_0x1281a0(0x20a)])&&(_0x55e5d6=joi['object']((0x0,core_1['getClassMetadata'])(interface_1[_0x1281a0(0x200)],_0x55e5d6))[_0x1281a0(0x20b)]({'id':_0x55e5d6[_0x1281a0(0x20a)]}),(0x0,core_1[_0x1281a0(0x1fd)])(_0x1823f7,_0x253f74)[_0x1281a0(0x20a)]==='Array'&&(_0x55e5d6=joi[_0x1281a0(0x205)]()['items'](_0x55e5d6))),joi['isSchema'](_0x55e5d6)&&(_0x240bae&&typeof(_0x55e5d6===null||_0x55e5d6===void 0x0?void 0x0:_0x55e5d6[_0x1281a0(0x1f1)])==_0x1281a0(0x1fa)&&(_0x55e5d6=_0x55e5d6['label'](_0x240bae)),_0x25f842&&typeof(_0x55e5d6===null||_0x55e5d6===void 0x0?void 0x0:_0x55e5d6[_0x1281a0(0x20c)])==_0x1281a0(0x1fa)&&(_0x55e5d6=_0x55e5d6[_0x1281a0(0x20c)](_0x25f842)),(0x0,core_1[_0x1281a0(0x206)])(interface_1['RULES_KEY'],_0x55e5d6,_0x1823f7,_0x253f74));else{const _0x1a0e79=(0x0,core_1[_0x1281a0(0x1f8)])(interface_1[_0x1281a0(0x200)],_0x55e5d6);if(_0x1a0e79){let _0x1e4d7c=(_0x59105c=(0x0,core_1['getClassMetadata'])(interface_1[_0x1281a0(0x200)],_0x1823f7))!==null&&_0x59105c!==void 0x0?_0x59105c:{};Object[_0x1281a0(0x1f6)](_0x1a0e79)[_0x1281a0(0x208)](_0x1b13e2=>{!_0x1e4d7c[_0x1b13e2]&&(_0x1e4d7c[_0x1b13e2]=_0x1a0e79[_0x1b13e2]);}),(0x0,core_1[_0x1281a0(0x202)])(interface_1[_0x1281a0(0x200)],_0x1e4d7c,_0x1823f7);}}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x2e72d8=a3_0xd5d1;(function(_0x465ccf,_0x253d71){const _0x39cc2f=a3_0xd5d1,_0xfb060e=_0x465ccf();while(!![]){try{const _0x349a0a=-parseInt(_0x39cc2f(0xd3))/0x1*(parseInt(_0x39cc2f(0xd0))/0x2)+-parseInt(_0x39cc2f(0xc6))/0x3*(-parseInt(_0x39cc2f(0xd7))/0x4)+parseInt(_0x39cc2f(0xcf))/0x5+-parseInt(_0x39cc2f(0xbe))/0x6*(-parseInt(_0x39cc2f(0xc0))/0x7)+-parseInt(_0x39cc2f(0xbf))/0x8*(parseInt(_0x39cc2f(0xc5))/0x9)+-parseInt(_0x39cc2f(0xd5))/0xa*(-parseInt(_0x39cc2f(0xd1))/0xb)+-parseInt(_0x39cc2f(0xd4))/0xc;if(_0x349a0a===_0x253d71)break;else _0xfb060e['push'](_0xfb060e['shift']());}catch(_0x4281f7){_0xfb060e['push'](_0xfb060e['shift']());}}}(a3_0x15fb,0x2548d));const a3_0x1bf974=(function(){let _0x5955ab=!![];return function(_0x143125,_0x3b6227){const _0x401ac8=_0x5955ab?function(){const _0x5fb071=a3_0xd5d1;if(_0x3b6227){const _0x82e2ce=_0x3b6227[_0x5fb071(0xd2)](_0x143125,arguments);return _0x3b6227=null,_0x82e2ce;}}:function(){};return _0x5955ab=![],_0x401ac8;};}()),a3_0x49ed7e=a3_0x1bf974(this,function(){const _0x24c4cc=a3_0xd5d1;return a3_0x49ed7e[_0x24c4cc(0xc1)]()['search']('(((.+)+)+)+$')[_0x24c4cc(0xc1)]()[_0x24c4cc(0xc2)](a3_0x49ed7e)[_0x24c4cc(0xc8)](_0x24c4cc(0xca));});a3_0x49ed7e();'use strict';function a3_0xd5d1(_0x53747b,_0x5abe15){const _0x33f5ee=a3_0x15fb();return a3_0xd5d1=function(_0x49ed7e,_0x1bf974){_0x49ed7e=_0x49ed7e-0xbe;let _0x15fb2c=_0x33f5ee[_0x49ed7e];return _0x15fb2c;},a3_0xd5d1(_0x53747b,_0x5abe15);}Object[a3_0x2e72d8(0xc9)](exports,a3_0x2e72d8(0xda),{'value':!![]}),exports['Validator']=Validator,exports[a3_0x2e72d8(0xd6)]=getFuncArgs;const core_1=require(a3_0x2e72d8(0xc3)),interface_1=require(a3_0x2e72d8(0xd9));function Validator(_0x519604={}){return(_0x5c9ba3,_0x44068d,_0x472e19)=>{const _0x283b81=a3_0xd5d1,_0x5b585b=getFuncArgs(_0x5c9ba3[_0x44068d]);(0x0,core_1[_0x283b81(0xcd)])(interface_1['VALIDATOR_KEY'],{'method':_0x44068d,'methodArgs':_0x5b585b},_0x5c9ba3),(0x0,core_1[_0x283b81(0xcc)])(interface_1[_0x283b81(0xc7)],_0x519604)(_0x5c9ba3,_0x44068d,_0x472e19);};}function a3_0x15fb(){const _0x37b596=['58YTPeHm','3246300FNUJps','2616910KvKFQy','getFuncArgs','116MzqQig','replace','../interface','__esModule','slice','6MOTgyM','8pOPPTZ','1350209YOOapf','toString','constructor','@midwayjs/core','function','1956492dvbHuX','25857VAOQKz','VALIDATOR_KEY','search','defineProperty','(((.+)+)+)+$','indexOf','createCustomMethodDecorator','attachClassMetadata','match','733785CCapFI','7264UQSqjt','11Xijvds','apply'];a3_0x15fb=function(){return _0x37b596;};return a3_0x15fb();}function getFuncArgs(_0x282bb5){const _0x5ce8f2=a3_0x2e72d8;if(typeof _0x282bb5==_0x5ce8f2(0xc4)){const _0x5d6ce7=/=>.*$/mg,_0x2fa03b=/=[^,)]+/mg,_0x2e8338=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x357d23=(_0x282bb5['prototype']?_0x282bb5['prototype'][_0x5ce8f2(0xc2)][_0x5ce8f2(0xc1)]():_0x282bb5['toString']())[_0x5ce8f2(0xd8)](_0x2e8338,'')[_0x5ce8f2(0xd8)](_0x5d6ce7,'')[_0x5ce8f2(0xd8)](_0x2fa03b,''),_0x2d538b=_0x357d23[_0x5ce8f2(0xdb)](_0x357d23['indexOf']('(')+0x1,_0x357d23[_0x5ce8f2(0xcb)](')'))[_0x5ce8f2(0xce)](/([^\s,]+)/g)||[];return _0x2d538b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var a4_0x202112=a4_0x5e00;function a4_0x25d3(){var _0x4b89ae=['3180832kaBKhG','PARAMS','toString','12hLOnlL','10296258orkOoA','__metadata','ValidatorError','参数验证失败','__esModule','(((.+)+)+)+$','constructor','@anncic-api/core','27033170urODuj','NOFIND_SCHEMA','metadata','691724aeYWko','55347QpuSIF','62dFUUVE','search','9gIQQHW','object','function','2455112xrFVoj','defineProperty','length','design:type','decorate','1867825uFddWm'];a4_0x25d3=function(){return _0x4b89ae;};return a4_0x25d3();}(function(_0x507ab6,_0x84a86c){var _0x1c6dc4=a4_0x5e00,_0x340a24=_0x507ab6();while(!![]){try{var _0x21d08d=parseInt(_0x1c6dc4(0x145))/0x1+parseInt(_0x1c6dc4(0x147))/0x2*(-parseInt(_0x1c6dc4(0x146))/0x3)+parseInt(_0x1c6dc4(0x152))/0x4+parseInt(_0x1c6dc4(0x151))/0x5*(parseInt(_0x1c6dc4(0x139))/0x6)+parseInt(_0x1c6dc4(0x13a))/0x7+parseInt(_0x1c6dc4(0x14c))/0x8+-parseInt(_0x1c6dc4(0x149))/0x9*(parseInt(_0x1c6dc4(0x142))/0xa);if(_0x21d08d===_0x84a86c)break;else _0x340a24['push'](_0x340a24['shift']());}catch(_0x2be86d){_0x340a24['push'](_0x340a24['shift']());}}}(a4_0x25d3,0xb3d61));var a4_0x19ee76=(function(){var _0x208ecf=!![];return function(_0xffd3dd,_0x512a79){var _0x50a9eb=_0x208ecf?function(){if(_0x512a79){var _0x4b6d8c=_0x512a79['apply'](_0xffd3dd,arguments);return _0x512a79=null,_0x4b6d8c;}}:function(){};return _0x208ecf=![],_0x50a9eb;};}()),a4_0x14f9b7=a4_0x19ee76(this,function(){var _0x3b637a=a4_0x5e00;return a4_0x14f9b7[_0x3b637a(0x154)]()[_0x3b637a(0x148)](_0x3b637a(0x13f))[_0x3b637a(0x154)]()[_0x3b637a(0x140)](a4_0x14f9b7)[_0x3b637a(0x148)](_0x3b637a(0x13f));});a4_0x14f9b7();function a4_0x5e00(_0x4a9e94,_0x10833b){var _0x38d0d4=a4_0x25d3();return a4_0x5e00=function(_0x14f9b7,_0x19ee76){_0x14f9b7=_0x14f9b7-0x139;var _0x25d33c=_0x38d0d4[_0x14f9b7];return _0x25d33c;},a4_0x5e00(_0x4a9e94,_0x10833b);}'use strict';var __decorate=this&&this['__decorate']||function(_0x161d5c,_0x180b9b,_0x231b1f,_0x3ad734){var _0x3d7e76=a4_0x5e00,_0x19280c=arguments[_0x3d7e76(0x14e)],_0x1299a9=_0x19280c<0x3?_0x180b9b:_0x3ad734===null?_0x3ad734=Object['getOwnPropertyDescriptor'](_0x180b9b,_0x231b1f):_0x3ad734,_0x230896;if(typeof Reflect===_0x3d7e76(0x14a)&&typeof Reflect[_0x3d7e76(0x150)]===_0x3d7e76(0x14b))_0x1299a9=Reflect[_0x3d7e76(0x150)](_0x161d5c,_0x180b9b,_0x231b1f,_0x3ad734);else{for(var _0x35d41b=_0x161d5c[_0x3d7e76(0x14e)]-0x1;_0x35d41b>=0x0;_0x35d41b--)if(_0x230896=_0x161d5c[_0x35d41b])_0x1299a9=(_0x19280c<0x3?_0x230896(_0x1299a9):_0x19280c>0x3?_0x230896(_0x180b9b,_0x231b1f,_0x1299a9):_0x230896(_0x180b9b,_0x231b1f))||_0x1299a9;}return _0x19280c>0x3&&_0x1299a9&&Object['defineProperty'](_0x180b9b,_0x231b1f,_0x1299a9),_0x1299a9;},__metadata=this&&this[a4_0x202112(0x13b)]||function(_0x56cf5e,_0x383d5b){var _0x998d45=a4_0x202112;if(typeof Reflect===_0x998d45(0x14a)&&typeof Reflect[_0x998d45(0x144)]===_0x998d45(0x14b))return Reflect[_0x998d45(0x144)](_0x56cf5e,_0x383d5b);};Object[a4_0x202112(0x14d)](exports,a4_0x202112(0x13e),{'value':!![]}),exports[a4_0x202112(0x13c)]=void 0x0;const core_1=require(a4_0x202112(0x141));class ValidatorError extends AnnError{}exports[a4_0x202112(0x13c)]=ValidatorError,ValidatorError['PARAMS']=0x18c1e,ValidatorError[a4_0x202112(0x143)]=0x18c1c,__decorate([(0x0,core_1['AnnErrorMsg'])(a4_0x202112(0x13d)),__metadata('design:type',Object)],ValidatorError,a4_0x202112(0x153),void 0x0),__decorate([(0x0,core_1['AnnErrorMsg'])(a4_0x202112(0x13d)),__metadata(a4_0x202112(0x14f),Object)],ValidatorError,a4_0x202112(0x143),void 0x0);
|
package/dist/helper/dtoHelper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x1a11e4=a5_0x4721;(function(_0x16c13e,_0x4ade6a){const _0x57d059=a5_0x4721,_0xb9af40=_0x16c13e();while(!![]){try{const _0x3d4f1=-parseInt(_0x57d059(0x10f))/0x1+-parseInt(_0x57d059(0x10c))/0x2+-parseInt(_0x57d059(0x109))/0x3*(-parseInt(_0x57d059(0x112))/0x4)+-parseInt(_0x57d059(0x10e))/0x5*(-parseInt(_0x57d059(0x11b))/0x6)+parseInt(_0x57d059(0x11f))/0x7+-parseInt(_0x57d059(0x110))/0x8+parseInt(_0x57d059(0x111))/0x9*(parseInt(_0x57d059(0x118))/0xa);if(_0x3d4f1===_0x4ade6a)break;else _0xb9af40['push'](_0xb9af40['shift']());}catch(_0x2d76cb){_0xb9af40['push'](_0xb9af40['shift']());}}}(a5_0x5146,0x785b3));function a5_0x4721(_0x362bab,_0xd8921d){const _0x4e75b7=a5_0x5146();return a5_0x4721=function(_0x2e2708,_0xe2d99f){_0x2e2708=_0x2e2708-0x109;let _0x51464f=_0x4e75b7[_0x2e2708];return _0x51464f;},a5_0x4721(_0x362bab,_0xd8921d);}const a5_0xe2d99f=(function(){let _0x1f4494=!![];return function(_0x2bec98,_0x97740){const _0x596da5=_0x1f4494?function(){const _0xfacbe=a5_0x4721;if(_0x97740){const _0x329039=_0x97740[_0xfacbe(0x116)](_0x2bec98,arguments);return _0x97740=null,_0x329039;}}:function(){};return _0x1f4494=![],_0x596da5;};}()),a5_0x2e2708=a5_0xe2d99f(this,function(){const _0x1961bf=a5_0x4721;return a5_0x2e2708[_0x1961bf(0x11e)]()[_0x1961bf(0x114)](_0x1961bf(0x119))[_0x1961bf(0x11e)]()[_0x1961bf(0x10b)](a5_0x2e2708)[_0x1961bf(0x114)](_0x1961bf(0x119));});a5_0x2e2708();function a5_0x5146(){const _0x55ce64=['(((.+)+)+)+$','saveClassMetadata','274938IexaCF','defineProperty','prototype','toString','4428718AEZduW','assign','@midwayjs/core','3EAObvj','PickDto','constructor','1618424ZKvOty','getClassExtendedMetadata','75PMamfe','742587ywbFPJ','3367752BWPJHn','9YSDvKL','495932FZbMIs','__esModule','search','RULES_KEY','apply','OmitDto','10217450qVdwfD'];a5_0x5146=function(){return _0x55ce64;};return a5_0x5146();}'use strict';Object[a5_0x1a11e4(0x11c)](exports,a5_0x1a11e4(0x113),{'value':!![]}),exports[a5_0x1a11e4(0x10a)]=PickDto,exports[a5_0x1a11e4(0x117)]=OmitDto;const core_1=require(a5_0x1a11e4(0x121)),interface_1=require('../interface');function PickDto(_0x215fcb,_0x3a4edc){const _0x1bb731=a5_0x1a11e4,_0x524766=function(){};_0x524766['prototype']=_0x215fcb[_0x1bb731(0x11d)];const _0x555453=(0x0,core_1[_0x1bb731(0x10d)])(interface_1['RULES_KEY'],_0x215fcb),_0x1cc725={};for(const _0xae460c of _0x3a4edc){_0x555453[_0xae460c]&&(_0x1cc725[_0xae460c]=_0x555453[_0xae460c]);}return(0x0,core_1[_0x1bb731(0x11a)])(interface_1['RULES_KEY'],_0x1cc725,_0x524766),_0x524766;}function OmitDto(_0x29ea96,_0x9ec2b9){const _0x5ad47f=a5_0x1a11e4,_0x298038=function(){};_0x298038[_0x5ad47f(0x11d)]=_0x29ea96[_0x5ad47f(0x11d)];const _0x50edef=(0x0,core_1[_0x5ad47f(0x10d)])(interface_1[_0x5ad47f(0x115)],_0x29ea96),_0x12eb2f=Object[_0x5ad47f(0x120)]({},_0x50edef);for(const _0x422032 of _0x9ec2b9){delete _0x12eb2f[_0x422032];}return(0x0,core_1[_0x5ad47f(0x11a)])(interface_1[_0x5ad47f(0x115)],_0x12eb2f,_0x298038),_0x298038;}
|
package/dist/helper/getSchema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6_0xfffc7e=a6_0xc08d;function a6_0x4f05(){const _0x4b3803=['getSchema','@midwayjs/core','(((.+)+)+)+$','10qEyELj','22311047BxHiod','175RUMgKE','12ifaGEG','object','search','448461eTwCAW','toString','60634ONdrJv','199475oTBFAg','apply','getClassExtendedMetadata','12EFXYcR','../interface','4919360VTrVEA','75lfHahg','__esModule','joi','defineProperty','2308019ICUiAT','76900qSRFsw','RULES_KEY','constructor'];a6_0x4f05=function(){return _0x4b3803;};return a6_0x4f05();}(function(_0x20e9f7,_0x429f6d){const _0x166469=a6_0xc08d,_0x408e40=_0x20e9f7();while(!![]){try{const _0x299a1f=-parseInt(_0x166469(0xd0))/0x1+-parseInt(_0x166469(0xcf))/0x2*(parseInt(_0x166469(0xd6))/0x3)+parseInt(_0x166469(0xdb))/0x4*(parseInt(_0x166469(0xc9))/0x5)+-parseInt(_0x166469(0xd3))/0x6*(parseInt(_0x166469(0xda))/0x7)+-parseInt(_0x166469(0xd5))/0x8+-parseInt(_0x166469(0xcd))/0x9*(parseInt(_0x166469(0xc7))/0xa)+-parseInt(_0x166469(0xc8))/0xb*(-parseInt(_0x166469(0xca))/0xc);if(_0x299a1f===_0x429f6d)break;else _0x408e40['push'](_0x408e40['shift']());}catch(_0x266b48){_0x408e40['push'](_0x408e40['shift']());}}}(a6_0x4f05,0x666f1));const a6_0x51f852=(function(){let _0xc7b650=!![];return function(_0x32dd71,_0x20daa2){const _0x3544dd=_0xc7b650?function(){const _0x4d98fe=a6_0xc08d;if(_0x20daa2){const _0x28108d=_0x20daa2[_0x4d98fe(0xd1)](_0x32dd71,arguments);return _0x20daa2=null,_0x28108d;}}:function(){};return _0xc7b650=![],_0x3544dd;};}()),a6_0x2de431=a6_0x51f852(this,function(){const _0x3101db=a6_0xc08d;return a6_0x2de431[_0x3101db(0xce)]()['search']('(((.+)+)+)+$')[_0x3101db(0xce)]()[_0x3101db(0xdd)](a6_0x2de431)[_0x3101db(0xcc)](_0x3101db(0xc6));});a6_0x2de431();'use strict';Object[a6_0xfffc7e(0xd9)](exports,a6_0xfffc7e(0xd7),{'value':!![]}),exports[a6_0xfffc7e(0xde)]=getSchema;function a6_0xc08d(_0x3aafd7,_0x41d0a7){const _0x471142=a6_0x4f05();return a6_0xc08d=function(_0x2de431,_0x51f852){_0x2de431=_0x2de431-0xc6;let _0x4f05f6=_0x471142[_0x2de431];return _0x4f05f6;},a6_0xc08d(_0x3aafd7,_0x41d0a7);}const Joi=require(a6_0xfffc7e(0xd8)),core_1=require(a6_0xfffc7e(0xdf)),interface_1=require(a6_0xfffc7e(0xd4));function getSchema(_0xdaad14){const _0x39f201=a6_0xfffc7e,_0x57383b=(0x0,core_1[_0x39f201(0xd2)])(interface_1[_0x39f201(0xdc)],_0xdaad14);if(_0x57383b)return Joi[_0x39f201(0xcb)](_0x57383b);}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a7_0x38459b=a7_0x57f1;(function(_0xcbf997,_0x5aead0){var _0x119a4a=a7_0x57f1,_0x51de9c=_0xcbf997();while(!![]){try{var _0x3b0453=parseInt(_0x119a4a(0x133))/0x1*(parseInt(_0x119a4a(0x143))/0x2)+-parseInt(_0x119a4a(0x144))/0x3*(-parseInt(_0x119a4a(0x139))/0x4)+-parseInt(_0x119a4a(0x146))/0x5*(parseInt(_0x119a4a(0x14a))/0x6)+parseInt(_0x119a4a(0x142))/0x7+parseInt(_0x119a4a(0x14d))/0x8*(parseInt(_0x119a4a(0x140))/0x9)+-parseInt(_0x119a4a(0x145))/0xa*(-parseInt(_0x119a4a(0x13e))/0xb)+-parseInt(_0x119a4a(0x14f))/0xc*(parseInt(_0x119a4a(0x148))/0xd);if(_0x3b0453===_0x5aead0)break;else _0x51de9c['push'](_0x51de9c['shift']());}catch(_0x543558){_0x51de9c['push'](_0x51de9c['shift']());}}}(a7_0x19aa,0x2fde9));var a7_0x366e6a=(function(){var _0x2f4f12=!![];return function(_0x27bc69,_0x236967){var _0x3242c6=_0x2f4f12?function(){var _0x2bb6cf=a7_0x57f1;if(_0x236967){var _0x346e39=_0x236967[_0x2bb6cf(0x13a)](_0x27bc69,arguments);return _0x236967=null,_0x346e39;}}:function(){};return _0x2f4f12=![],_0x3242c6;};}()),a7_0x4680be=a7_0x366e6a(this,function(){var _0x494232=a7_0x57f1;return a7_0x4680be['toString']()[_0x494232(0x13f)](_0x494232(0x159))[_0x494232(0x138)]()[_0x494232(0x141)](a7_0x4680be)[_0x494232(0x13f)]('(((.+)+)+)+$');});a7_0x4680be();'use strict';var __createBinding=this&&this[a7_0x38459b(0x153)]||(Object[a7_0x38459b(0x13d)]?function(_0x581184,_0x4ba7cf,_0x4cde77,_0x47482b){var _0x471799=a7_0x38459b;if(_0x47482b===undefined)_0x47482b=_0x4cde77;var _0xa710a=Object['getOwnPropertyDescriptor'](_0x4ba7cf,_0x4cde77);(!_0xa710a||(_0x471799(0x149)in _0xa710a?!_0x4ba7cf[_0x471799(0x13c)]:_0xa710a['writable']||_0xa710a[_0x471799(0x152)]))&&(_0xa710a={'enumerable':!![],'get':function(){return _0x4ba7cf[_0x4cde77];}}),Object[_0x471799(0x147)](_0x581184,_0x47482b,_0xa710a);}:function(_0x40e849,_0x90f21d,_0x53be77,_0x32c987){if(_0x32c987===undefined)_0x32c987=_0x53be77;_0x40e849[_0x32c987]=_0x90f21d[_0x53be77];}),__exportStar=this&&this['__exportStar']||function(_0x5432fb,_0x1992fc){var _0x286dd4=a7_0x38459b;for(var _0x48b93d in _0x5432fb)if(_0x48b93d!=='default'&&!Object['prototype'][_0x286dd4(0x154)][_0x286dd4(0x137)](_0x1992fc,_0x48b93d))__createBinding(_0x1992fc,_0x5432fb,_0x48b93d);};Object[a7_0x38459b(0x147)](exports,a7_0x38459b(0x13c),{'value':!![]}),exports[a7_0x38459b(0x158)]=exports[a7_0x38459b(0x150)]=exports[a7_0x38459b(0x14e)]=exports[a7_0x38459b(0x157)]=exports[a7_0x38459b(0x151)]=exports['Validator']=void 0x0,__exportStar(require(a7_0x38459b(0x14b)),exports),__exportStar(require(a7_0x38459b(0x13b)),exports),__exportStar(require(a7_0x38459b(0x14c)),exports);var Validator_1=require('./decorator/Validator');Object[a7_0x38459b(0x147)](exports,a7_0x38459b(0x155),{'enumerable':!![],'get':function(){return Validator_1['Validator'];}});var Rule_1=require('./decorator/Rule');Object[a7_0x38459b(0x147)](exports,a7_0x38459b(0x151),{'enumerable':!![],'get':function(){var _0x26804e=a7_0x38459b;return Rule_1[_0x26804e(0x151)];}}),Object['defineProperty'](exports,a7_0x38459b(0x157),{'enumerable':!![],'get':function(){return Rule_1['RuleType'];}});var ValidatorError_1=require(a7_0x38459b(0x134));Object[a7_0x38459b(0x147)](exports,'ValidatorError',{'enumerable':!![],'get':function(){var _0x2123b0=a7_0x38459b;return ValidatorError_1[_0x2123b0(0x14e)];}});function a7_0x57f1(_0x4f0f42,_0x305ffe){var _0x4ab268=a7_0x19aa();return a7_0x57f1=function(_0x4680be,_0x366e6a){_0x4680be=_0x4680be-0x133;var _0x19aae1=_0x4ab268[_0x4680be];return _0x19aae1;},a7_0x57f1(_0x4f0f42,_0x305ffe);}var ValidatorService_1=require(a7_0x38459b(0x136));function a7_0x19aa(){var _0xad1516=['./helper/getSchema','96cuLFWu','ValidatorError','204jNmZLk','ValidatorService','Rule','configurable','__createBinding','hasOwnProperty','Validator','CustomConfiguration','RuleType','Configuration','(((.+)+)+)+$','3YRqmUQ','./exception/ValidatorError','./configuration','./service/ValidatorService','call','toString','7952GhweVu','apply','./helper/dtoHelper','__esModule','create','385KwtewI','search','185508RnxErT','constructor','2192505qHkOJf','140902HOnpdz','366KRrvad','40790VrhLSe','25FSpSki','defineProperty','695305sCNhQt','get','62274xbPKTO','./interface'];a7_0x19aa=function(){return _0xad1516;};return a7_0x19aa();}Object[a7_0x38459b(0x147)](exports,a7_0x38459b(0x150),{'enumerable':!![],'get':function(){var _0x401c1e=a7_0x38459b;return ValidatorService_1[_0x401c1e(0x150)];}});var configuration_1=require(a7_0x38459b(0x135));Object[a7_0x38459b(0x147)](exports,a7_0x38459b(0x158),{'enumerable':!![],'get':function(){var _0x3e906f=a7_0x38459b;return configuration_1[_0x3e906f(0x156)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a8_0x5a3aa4=a8_0x43b4;function a8_0x2879(){var _0x3d123d=['80008WtDGrI','345276MrMPJN','RULES_KEY','constructor','defineProperty','search','602hpaWyG','28026wWpJRf','72BnYDRv','(((.+)+)+)+$','319RSrobE','16398cVChix','toString','3242994bWxgxE','VALIDATOR_KEY','26EuGfHt','100685qjkwXc','4980vgQOgw','345432lDCBhU'];a8_0x2879=function(){return _0x3d123d;};return a8_0x2879();}(function(_0x48d808,_0x242400){var _0x4d6ea9=a8_0x43b4,_0x3d6469=_0x48d808();while(!![]){try{var _0x1bd135=-parseInt(_0x4d6ea9(0x114))/0x1*(-parseInt(_0x4d6ea9(0x109))/0x2)+-parseInt(_0x4d6ea9(0x107))/0x3+parseInt(_0x4d6ea9(0x10e))/0x4+-parseInt(_0x4d6ea9(0x10a))/0x5*(-parseInt(_0x4d6ea9(0x115))/0x6)+parseInt(_0x4d6ea9(0x113))/0x7*(parseInt(_0x4d6ea9(0x10d))/0x8)+-parseInt(_0x4d6ea9(0x118))/0x9*(-parseInt(_0x4d6ea9(0x10b))/0xa)+parseInt(_0x4d6ea9(0x117))/0xb*(-parseInt(_0x4d6ea9(0x10c))/0xc);if(_0x1bd135===_0x242400)break;else _0x3d6469['push'](_0x3d6469['shift']());}catch(_0x2d279c){_0x3d6469['push'](_0x3d6469['shift']());}}}(a8_0x2879,0x84ccf));var a8_0x2c0a72=(function(){var _0x23400f=!![];return function(_0x45abef,_0x1fdf29){var _0xe0daec=_0x23400f?function(){if(_0x1fdf29){var _0x288813=_0x1fdf29['apply'](_0x45abef,arguments);return _0x1fdf29=null,_0x288813;}}:function(){};return _0x23400f=![],_0xe0daec;};}()),a8_0x1a8508=a8_0x2c0a72(this,function(){var _0x2975d8=a8_0x43b4;return a8_0x1a8508[_0x2975d8(0x119)]()[_0x2975d8(0x112)]('(((.+)+)+)+$')[_0x2975d8(0x119)]()[_0x2975d8(0x110)](a8_0x1a8508)['search'](_0x2975d8(0x116));});a8_0x1a8508();'use strict';function a8_0x43b4(_0x48d4c4,_0x3b7ac8){var _0x103a6f=a8_0x2879();return a8_0x43b4=function(_0x1a8508,_0x2c0a72){_0x1a8508=_0x1a8508-0x107;var _0x287924=_0x103a6f[_0x1a8508];return _0x287924;},a8_0x43b4(_0x48d4c4,_0x3b7ac8);}Object[a8_0x5a3aa4(0x111)](exports,'__esModule',{'value':!![]}),exports['VALIDATOR_KEY']=exports['RULES_KEY']=void 0x0,exports[a8_0x5a3aa4(0x10f)]='anncic-api:validator:rules',exports[a8_0x5a3aa4(0x108)]='anncic-api:validator:validator';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a9_0x1cee89=a9_0x1c33;(function(_0x525588,_0x51eae7){const _0x53189f=a9_0x1c33,_0x1b662e=_0x525588();while(!![]){try{const _0x3989a1=parseInt(_0x53189f(0x1ad))/0x1+parseInt(_0x53189f(0x195))/0x2*(parseInt(_0x53189f(0x19e))/0x3)+-parseInt(_0x53189f(0x174))/0x4+-parseInt(_0x53189f(0x192))/0x5+-parseInt(_0x53189f(0x18a))/0x6+-parseInt(_0x53189f(0x172))/0x7*(-parseInt(_0x53189f(0x17b))/0x8)+parseInt(_0x53189f(0x16d))/0x9;if(_0x3989a1===_0x51eae7)break;else _0x1b662e['push'](_0x1b662e['shift']());}catch(_0x784e4b){_0x1b662e['push'](_0x1b662e['shift']());}}}(a9_0x501c,0x847f3));const a9_0x188787=(function(){let _0x4f7588=!![];return function(_0x3eea3c,_0x543ebe){const _0x3bb696=_0x4f7588?function(){const _0x55f5b9=a9_0x1c33;if(_0x543ebe){const _0x3f4b42=_0x543ebe[_0x55f5b9(0x1ae)](_0x3eea3c,arguments);return _0x543ebe=null,_0x3f4b42;}}:function(){};return _0x4f7588=![],_0x3bb696;};}()),a9_0x4fa40e=a9_0x188787(this,function(){const _0x3d1be8=a9_0x1c33;return a9_0x4fa40e[_0x3d1be8(0x18f)]()[_0x3d1be8(0x189)]('(((.+)+)+)+$')['toString']()['constructor'](a9_0x4fa40e)['search'](_0x3d1be8(0x1aa));});a9_0x4fa40e();'use strict';var __decorate=this&&this['__decorate']||function(_0x5bd83d,_0x5ac3a6,_0x51621d,_0x5a1cc7){const _0x1f8d91=a9_0x1c33;var _0x3931fe=arguments[_0x1f8d91(0x1a1)],_0x1ebcb0=_0x3931fe<0x3?_0x5ac3a6:_0x5a1cc7===null?_0x5a1cc7=Object[_0x1f8d91(0x196)](_0x5ac3a6,_0x51621d):_0x5a1cc7,_0x2ff36f;if(typeof Reflect===_0x1f8d91(0x198)&&typeof Reflect['decorate']===_0x1f8d91(0x197))_0x1ebcb0=Reflect[_0x1f8d91(0x1a7)](_0x5bd83d,_0x5ac3a6,_0x51621d,_0x5a1cc7);else{for(var _0x3655d6=_0x5bd83d['length']-0x1;_0x3655d6>=0x0;_0x3655d6--)if(_0x2ff36f=_0x5bd83d[_0x3655d6])_0x1ebcb0=(_0x3931fe<0x3?_0x2ff36f(_0x1ebcb0):_0x3931fe>0x3?_0x2ff36f(_0x5ac3a6,_0x51621d,_0x1ebcb0):_0x2ff36f(_0x5ac3a6,_0x51621d))||_0x1ebcb0;}return _0x3931fe>0x3&&_0x1ebcb0&&Object[_0x1f8d91(0x188)](_0x5ac3a6,_0x51621d,_0x1ebcb0),_0x1ebcb0;},__metadata=this&&this[a9_0x1cee89(0x17a)]||function(_0x386dd8,_0x3e43ea){const _0x78afe5=a9_0x1cee89;if(typeof Reflect===_0x78afe5(0x198)&&typeof Reflect[_0x78afe5(0x173)]===_0x78afe5(0x197))return Reflect[_0x78afe5(0x173)](_0x386dd8,_0x3e43ea);};Object[a9_0x1cee89(0x188)](exports,'__esModule',{'value':!![]}),exports['ValidatorService']=void 0x0;const Joi=require(a9_0x1cee89(0x19b)),i18n_1=require('@midwayjs/i18n'),core_1=require(a9_0x1cee89(0x19a)),interface_1=require('../interface'),ValidatorError_1=require(a9_0x1cee89(0x179));function a9_0x1c33(_0x3fc730,_0x58281){const _0x4da9a1=a9_0x501c();return a9_0x1c33=function(_0x4fa40e,_0x188787){_0x4fa40e=_0x4fa40e-0x16c;let _0x501c55=_0x4da9a1[_0x4fa40e];return _0x501c55;},a9_0x1c33(_0x3fc730,_0x58281);}let ValidatorService=class ValidatorService{constructor(){this['messages']={};}async[a9_0x1cee89(0x171)](){const _0x506b3f=a9_0x1cee89,_0x543f46=Object['keys'](this['i18nConfig'][_0x506b3f(0x1ab)]);_0x543f46[_0x506b3f(0x17c)](_0x292b0a=>{const _0x2a4f25=_0x506b3f;this[_0x2a4f25(0x190)][(0x0,i18n_1[_0x2a4f25(0x1a8)])(_0x292b0a)]=Object[_0x2a4f25(0x187)](this[_0x2a4f25(0x194)]['getLocaleMapping'](_0x292b0a,_0x2a4f25(0x183)));});}[a9_0x1cee89(0x1a5)](_0x256e60){const _0x502341=a9_0x1cee89,_0x49a147=(0x0,core_1[_0x502341(0x18c)])(interface_1[_0x502341(0x177)],_0x256e60);return _0x49a147?Joi[_0x502341(0x198)](_0x49a147):undefined;}[a9_0x1cee89(0x183)](_0x14c4f4,_0x322aad,_0x39e7de={}){const _0x213f46=a9_0x1cee89;var _0x5baec6,_0x1fb7be,_0x5f5d0c,_0x472ee7,_0x1ccea1,_0x17b6d0;const _0x502f1c=Joi['isSchema'](_0x14c4f4)?_0x14c4f4:this[_0x213f46(0x1a5)](_0x14c4f4);if(!_0x502f1c)throw new AnnError(ValidatorError_1[_0x213f46(0x1ac)][_0x213f46(0x16c)]);_0x39e7de[_0x213f46(0x180)]=Object[_0x213f46(0x170)]((_0x5baec6=this[_0x213f46(0x18b)]['validationOptions'])!==null&&_0x5baec6!==void 0x0?_0x5baec6:{},{'messages':this['messages']},_0x39e7de['validationOptions']||{}),_0x39e7de[_0x213f46(0x180)][_0x213f46(0x178)]=_0x39e7de[_0x213f46(0x180)][_0x213f46(0x178)]||{},_0x39e7de[_0x213f46(0x180)][_0x213f46(0x178)][_0x213f46(0x1a2)]=(0x0,i18n_1['formatLocale'])(this[_0x213f46(0x194)][_0x213f46(0x1af)](_0x39e7de[_0x213f46(0x180)]['errors'][_0x213f46(0x1a2)]||_0x39e7de[_0x213f46(0x1a0)]||this[_0x213f46(0x16f)][_0x213f46(0x19f)],'validator'));const _0x90b12c=_0x502f1c['validate'](_0x322aad,_0x39e7de[_0x213f46(0x180)]);if(_0x90b12c===null||_0x90b12c===void 0x0?void 0x0:_0x90b12c[_0x213f46(0x18d)]){if(_0x90b12c[_0x213f46(0x18d)]instanceof AnnError)throw _0x90b12c[_0x213f46(0x18d)];else{if(_0x90b12c[_0x213f46(0x18d)]instanceof Error)throw new AnnError(ValidatorError_1[_0x213f46(0x1ac)][_0x213f46(0x182)],{'message':((_0x1fb7be=_0x90b12c[_0x213f46(0x18d)])===null||_0x1fb7be===void 0x0?void 0x0:_0x1fb7be[_0x213f46(0x193)])||_0x213f46(0x19d)});else throw new AnnError(ValidatorError_1['ValidatorError'][_0x213f46(0x182)],{'message':((_0x1ccea1=(_0x472ee7=(_0x5f5d0c=_0x90b12c['error'])===null||_0x5f5d0c===void 0x0?void 0x0:_0x5f5d0c[_0x213f46(0x1b1)])===null||_0x472ee7===void 0x0?void 0x0:_0x472ee7[0x0])===null||_0x1ccea1===void 0x0?void 0x0:_0x1ccea1['message'])||_0x213f46(0x19d)});}}if(_0x90b12c===null||_0x90b12c===void 0x0?void 0x0:_0x90b12c['value']){const _0x3c2d7=(_0x17b6d0=_0x502f1c===null||_0x502f1c===void 0x0?void 0x0:_0x502f1c[_0x213f46(0x19c)])===null||_0x17b6d0===void 0x0?void 0x0:_0x17b6d0[_0x213f46(0x185)],_0x479c50=function(_0x5a7894,_0x2d4579){const _0xbea4f2=_0x213f46;var _0x6504e3,_0x2ce711,_0x471dc3,_0x182eb0,_0x1729bc,_0x2c0203,_0x1a6d70,_0x451367,_0x158a40,_0x24e953,_0x127ca8;for(let _0x5e8766 in _0x5a7894){if(_0x2d4579[(_0x6504e3=_0x5a7894[_0x5e8766])===null||_0x6504e3===void 0x0?void 0x0:_0x6504e3['key']]&&((_0x471dc3=(_0x2ce711=_0x5a7894[_0x5e8766])===null||_0x2ce711===void 0x0?void 0x0:_0x2ce711[_0xbea4f2(0x1a6)])===null||_0x471dc3===void 0x0?void 0x0:_0x471dc3[_0xbea4f2(0x18e)])){if(((_0x1729bc=(_0x182eb0=_0x5a7894[_0x5e8766])===null||_0x182eb0===void 0x0?void 0x0:_0x182eb0[_0xbea4f2(0x1a6)])===null||_0x1729bc===void 0x0?void 0x0:_0x1729bc[_0xbea4f2(0x18e)])==_0xbea4f2(0x198))_0x2d4579[_0x5a7894[_0x5e8766][_0xbea4f2(0x181)]]=_0x479c50((_0x1a6d70=(_0x2c0203=_0x5a7894[_0x5e8766])===null||_0x2c0203===void 0x0?void 0x0:_0x2c0203[_0xbea4f2(0x1a6)][_0xbea4f2(0x19c)])===null||_0x1a6d70===void 0x0?void 0x0:_0x1a6d70[_0xbea4f2(0x185)],_0x2d4579[_0x5a7894[_0x5e8766][_0xbea4f2(0x181)]]);else{if(_0x5a7894[_0x5e8766][_0xbea4f2(0x1a6)][_0xbea4f2(0x18e)]==_0xbea4f2(0x175)&&_0x90b12c[_0xbea4f2(0x1a9)][(_0x451367=_0x5a7894[_0x5e8766])===null||_0x451367===void 0x0?void 0x0:_0x451367[_0xbea4f2(0x181)]]){const _0x2e6e39=((_0x127ca8=(_0x24e953=(_0x158a40=_0x5a7894[_0x5e8766])===null||_0x158a40===void 0x0?void 0x0:_0x158a40['schema'])===null||_0x24e953===void 0x0?void 0x0:_0x24e953['_flags'])===null||_0x127ca8===void 0x0?void 0x0:_0x127ca8[_0xbea4f2(0x17f)])||'YYYY-MM-DD\x20HH:mm:ss';_0x2d4579[_0x5a7894[_0x5e8766][_0xbea4f2(0x181)]]=dayjs(_0x90b12c['value'][_0x5a7894[_0x5e8766][_0xbea4f2(0x181)]])[_0xbea4f2(0x17f)](_0x2e6e39);}}}}return _0x2d4579;};return _0x479c50(_0x3c2d7,_0x90b12c[_0x213f46(0x1a9)]);}throw new AnnError(ValidatorError_1[_0x213f46(0x1ac)][_0x213f46(0x182)]);}};exports['ValidatorService']=ValidatorService,__decorate([(0x0,core_1[a9_0x1cee89(0x184)])(a9_0x1cee89(0x176)),__metadata(a9_0x1cee89(0x186),Object)],ValidatorService[a9_0x1cee89(0x1a3)],a9_0x1cee89(0x16f),void 0x0),__decorate([(0x0,core_1[a9_0x1cee89(0x184)])('validator'),__metadata(a9_0x1cee89(0x186),Object)],ValidatorService[a9_0x1cee89(0x1a3)],'validatorConfig',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a9_0x1cee89(0x186),i18n_1[a9_0x1cee89(0x17e)])],ValidatorService[a9_0x1cee89(0x1a3)],'i18nService',void 0x0),__decorate([(0x0,core_1[a9_0x1cee89(0x199)])(),__metadata(a9_0x1cee89(0x186),Function),__metadata(a9_0x1cee89(0x191),[]),__metadata(a9_0x1cee89(0x1a4),Promise)],ValidatorService[a9_0x1cee89(0x1a3)],a9_0x1cee89(0x171),null),exports[a9_0x1cee89(0x16e)]=ValidatorService=__decorate([(0x0,core_1[a9_0x1cee89(0x17d)])(a9_0x1cee89(0x183)),(0x0,core_1['Scope'])(core_1['ScopeEnum'][a9_0x1cee89(0x1b0)])],ValidatorService);function a9_0x501c(){const _0x3bffb9=['prototype','design:returntype','getSchema','schema','decorate','formatLocale','value','(((.+)+)+)+$','localeTable','ValidatorError','668426lGmadQ','apply','getAvailableLocale','Singleton','details','NOFIND_SCHEMA','4927077rPvIuH','ValidatorService','i18nConfig','assign','init','7WpZKAR','metadata','231536NwpjFn','date','i18n','RULES_KEY','errors','../exception/ValidatorError','__metadata','2657504gwjUay','forEach','Provide','MidwayI18nServiceSingleton','format','validationOptions','key','PARAMS','validator','Config','keys','design:type','fromEntries','defineProperty','search','5955078fWAAdT','validatorConfig','getClassExtendedMetadata','error','type','toString','messages','design:paramtypes','5181560bZUYcj','message','i18nService','29626xeUJNV','getOwnPropertyDescriptor','function','object','Init','@midwayjs/core','joi','$_terms','参数验证失败','219DPOpcz','defaultLocale','locale','length','language'];a9_0x501c=function(){return _0x3bffb9;};return a9_0x501c();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/validator",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.56",
|
|
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.56",
|
|
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": "503359179681c9b69e55e055deaa9405d88e5332"
|
|
30
30
|
}
|