@anncic-api/validator 3.7.9 → 3.7.10
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_0x1f13cd=a0_0x8b91;(function(_0x51011c,_0x2f49f5){const _0x5f0071=a0_0x8b91,_0x24a5e4=_0x51011c();while(!![]){try{const _0x47f43f=parseInt(_0x5f0071(0x169))/0x1*(parseInt(_0x5f0071(0x16c))/0x2)+-parseInt(_0x5f0071(0x172))/0x3*(parseInt(_0x5f0071(0x15e))/0x4)+-parseInt(_0x5f0071(0x173))/0x5+-parseInt(_0x5f0071(0x162))/0x6+-parseInt(_0x5f0071(0x171))/0x7+-parseInt(_0x5f0071(0x166))/0x8*(parseInt(_0x5f0071(0x161))/0x9)+parseInt(_0x5f0071(0x16a))/0xa;if(_0x47f43f===_0x2f49f5)break;else _0x24a5e4['push'](_0x24a5e4['shift']());}catch(_0x46deca){_0x24a5e4['push'](_0x24a5e4['shift']());}}}(a0_0x42ba,0x689c2));function a0_0x8b91(_0x2a3cbe,_0x294d59){const _0x3376fa=a0_0x42ba();return a0_0x8b91=function(_0x4aac53,_0x54177f){_0x4aac53=_0x4aac53-0x15d;let _0x42ba24=_0x3376fa[_0x4aac53];return _0x42ba24;},a0_0x8b91(_0x2a3cbe,_0x294d59);}const a0_0x54177f=(function(){let _0x350389=!![];return function(_0x49d30c,_0x4c5f35){const _0x5f342c=_0x350389?function(){const _0x48ab5a=a0_0x8b91;if(_0x4c5f35){const _0x247598=_0x4c5f35[_0x48ab5a(0x16e)](_0x49d30c,arguments);return _0x4c5f35=null,_0x247598;}}:function(){};return _0x350389=![],_0x5f342c;};}()),a0_0x4aac53=a0_0x54177f(this,function(){const _0x297b9c=a0_0x8b91;return a0_0x4aac53[_0x297b9c(0x16f)]()[_0x297b9c(0x15f)](_0x297b9c(0x167))[_0x297b9c(0x16f)]()[_0x297b9c(0x164)](a0_0x4aac53)[_0x297b9c(0x15f)]('(((.+)+)+)+$');});a0_0x4aac53();'use strict';Object[a0_0x1f13cd(0x168)](exports,'__esModule',{'value':!![]});function a0_0x42ba(){const _0x1175ae=['PARAMS','28kQiJvD','default','apply','toString','string','4061169csblqo','12BCBpKM','171475wMDYPR','ValidatorError','139176nuqnUf','search','../../locales/en_US.json','18HydvoW','1786260KWGsCw','../exception/ValidatorError','constructor','../../locales/zh_CN.json','1165448qNdPJs','(((.+)+)+)+$','defineProperty','29297CgDIeI','13610340PkvTBy'];a0_0x42ba=function(){return _0x1175ae;};return a0_0x42ba();}const ValidatorError_1=require(a0_0x1f13cd(0x163));exports[a0_0x1f13cd(0x16d)]={'validator':{'errorStatus':ValidatorError_1[a0_0x1f13cd(0x15d)][a0_0x1f13cd(0x16b)],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':a0_0x1f13cd(0x170)}},'i18n':{'localeTable':{'en_US':{'validator':require(a0_0x1f13cd(0x160))},'zh_CN':{'validator':require(a0_0x1f13cd(0x165))}}}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a1_0x57d7af=a1_0x5e7d;(function(_0x401909,_0x536002){const _0xfcc537=a1_0x5e7d,_0x37f7e5=_0x401909();while(!![]){try{const _0x5a08a3=parseInt(_0xfcc537(0xb1))/0x1+parseInt(_0xfcc537(0xb8))/0x2*(-parseInt(_0xfcc537(0xdc))/0x3)+-parseInt(_0xfcc537(0xd9))/0x4*(-parseInt(_0xfcc537(0xba))/0x5)+parseInt(_0xfcc537(0xa1))/0x6+-parseInt(_0xfcc537(0xc0))/0x7+parseInt(_0xfcc537(0xae))/0x8*(-parseInt(_0xfcc537(0xce))/0x9)+parseInt(_0xfcc537(0xb0))/0xa*(-parseInt(_0xfcc537(0xbc))/0xb);if(_0x5a08a3===_0x536002)break;else _0x37f7e5['push'](_0x37f7e5['shift']());}catch(_0xc62d7c){_0x37f7e5['push'](_0x37f7e5['shift']());}}}(a1_0x52dc,0x4592c));const a1_0xcc110e=(function(){let _0x1bae31=!![];return function(_0x6cc4cc,_0x34a100){const _0x495694=_0x1bae31?function(){const _0x3384a2=a1_0x5e7d;if(_0x34a100){const _0x74ed74=_0x34a100[_0x3384a2(0xa3)](_0x6cc4cc,arguments);return _0x34a100=null,_0x74ed74;}}:function(){};return _0x1bae31=![],_0x495694;};}()),a1_0x1e86b1=a1_0xcc110e(this,function(){const _0x544c86=a1_0x5e7d;return a1_0x1e86b1[_0x544c86(0xa9)]()[_0x544c86(0xd7)](_0x544c86(0xc4))[_0x544c86(0xa9)]()[_0x544c86(0xd2)](a1_0x1e86b1)[_0x544c86(0xd7)](_0x544c86(0xc4));});a1_0x1e86b1();'use strict';var __decorate=this&&this[a1_0x57d7af(0xd6)]||function(_0x3c34ac,_0x1e6f21,_0xa96953,_0x14caee){const _0x128a08=a1_0x57d7af;var _0x5963eb=arguments[_0x128a08(0xc2)],_0x22f592=_0x5963eb<0x3?_0x1e6f21:_0x14caee===null?_0x14caee=Object['getOwnPropertyDescriptor'](_0x1e6f21,_0xa96953):_0x14caee,_0x229854;if(typeof Reflect===_0x128a08(0xcd)&&typeof Reflect[_0x128a08(0xd5)]===_0x128a08(0xab))_0x22f592=Reflect[_0x128a08(0xd5)](_0x3c34ac,_0x1e6f21,_0xa96953,_0x14caee);else{for(var _0x3b6018=_0x3c34ac['length']-0x1;_0x3b6018>=0x0;_0x3b6018--)if(_0x229854=_0x3c34ac[_0x3b6018])_0x22f592=(_0x5963eb<0x3?_0x229854(_0x22f592):_0x5963eb>0x3?_0x229854(_0x1e6f21,_0xa96953,_0x22f592):_0x229854(_0x1e6f21,_0xa96953))||_0x22f592;}return _0x5963eb>0x3&&_0x22f592&&Object[_0x128a08(0xbe)](_0x1e6f21,_0xa96953,_0x22f592),_0x22f592;},__metadata=this&&this[a1_0x57d7af(0xa5)]||function(_0x4e71a1,_0x21e69e){const _0x2a35ee=a1_0x57d7af;if(typeof Reflect==='object'&&typeof Reflect[_0x2a35ee(0xd4)]===_0x2a35ee(0xab))return Reflect[_0x2a35ee(0xd4)](_0x4e71a1,_0x21e69e);};function a1_0x5e7d(_0x219b23,_0x4b6e0c){const _0x14f068=a1_0x52dc();return a1_0x5e7d=function(_0x1e86b1,_0xcc110e){_0x1e86b1=_0x1e86b1-0x9f;let _0x52dca0=_0x14f068[_0x1e86b1];return _0x52dca0;},a1_0x5e7d(_0x219b23,_0x4b6e0c);}function a1_0x52dc(){const _0x30ae5a=['__decorate','search','getMethodParamTypes','4LGyUIi','req','getAttr','12603FNpEyc','params','query','decorator','2934876rrySmH','bound\x20dispatch','apply','CustomConfiguration','__metadata','body','methodName','REQUEST_OBJ_CTX_KEY','toString','ValidatorService','function','request','res','8LnbjgX','assign','1320OTbSjz','158880rUfkjy','@anncic-api/core','I18N_ATTR_KEY','prototype','__esModule','design:type','splice','34APfujx','MidwayDecoratorService','1892395DklStk','args','13035dCOBZf','./interface','defineProperty','@midwayjs/core','1405173RsDBzu','method','length','target','(((.+)+)+)+$','getSchema','param','locale','validator','anncic-api:validator','onReady','name','methodArgs','object','2816613Ufqhnk','Inject','registerMethodHandler','@midwayjs/i18n','constructor','VALIDATOR_KEY','metadata','decorate'];a1_0x52dc=function(){return _0x30ae5a;};return a1_0x52dc();}Object[a1_0x57d7af(0xbe)](exports,a1_0x57d7af(0xb5),{'value':!![]}),exports[a1_0x57d7af(0xa4)]=void 0x0;const i18n_1=require(a1_0x57d7af(0xd1)),core_1=require('@midwayjs/core'),core_2=require(a1_0x57d7af(0xbf)),interface_1=require(a1_0x57d7af(0xbd)),ValidatorService_1=require('./service/ValidatorService'),i18n=require(a1_0x57d7af(0xd1)),anncic=require(a1_0x57d7af(0xb2)),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{async[a1_0x57d7af(0xca)](){const _0x4f0402=a1_0x57d7af;this[_0x4f0402(0xa0)][_0x4f0402(0xd0)](interface_1[_0x4f0402(0xd3)],_0x46373b=>{const _0x5d5008=_0x4f0402,_0x112daf=_0x46373b['metadata'],_0x9e1b4e=(0x0,core_2[_0x5d5008(0xd8)])(_0x46373b['target'],_0x46373b['propertyName']);return{'before':_0x1977ff=>{const _0x286749=_0x5d5008;var _0x1d5237,_0x273e76,_0x252550,_0x27e7d8,_0x434a9a,_0x28a06e,_0x348df0,_0x5dbafe,_0x8fe2f9,_0x318723,_0x3c4751,_0x5e1669,_0x4f16c9;const _0xf445cc=_0x1977ff[_0x286749(0xc3)][core_1[_0x286749(0xa8)]],_0x173dbd=Object[_0x286749(0xaf)]({},((_0x1d5237=_0xf445cc===null||_0xf445cc===void 0x0?void 0x0:_0xf445cc[_0x286749(0xac)])===null||_0x1d5237===void 0x0?void 0x0:_0x1d5237[_0x286749(0x9f)])||{},((_0x273e76=_0xf445cc===null||_0xf445cc===void 0x0?void 0x0:_0xf445cc['request'])===null||_0x273e76===void 0x0?void 0x0:_0x273e76[_0x286749(0xa6)])||{}),_0x508f79=((0x0,core_2['getClassMetadata'])(interface_1[_0x286749(0xd3)],_0x1977ff[_0x286749(0xc3)])||[])['find'](_0x26600f=>_0x26600f[_0x286749(0xc1)]==_0x1977ff[_0x286749(0xa7)]);!(_0x112daf===null||_0x112daf===void 0x0?void 0x0:_0x112daf['locale'])&&_0xf445cc&&_0xf445cc[_0x286749(0xdb)]&&(_0x112daf[_0x286749(0xc7)]=_0xf445cc[_0x286749(0xdb)](i18n_1[_0x286749(0xb3)]));for(let _0x5ee857=0x0;_0x5ee857<_0x9e1b4e[_0x286749(0xc2)];_0x5ee857++){const _0x9fd8fb=_0x9e1b4e[_0x5ee857],_0x57da81=this[_0x286749(0xaa)][_0x286749(0xc5)](_0x9fd8fb);if(_0x57da81){if(typeof _0x1977ff[_0x286749(0xbb)][_0x5ee857]=='undefined'||((_0x252550=_0x1977ff[_0x286749(0xbb)][_0x5ee857])===null||_0x252550===void 0x0?void 0x0:_0x252550[_0x286749(0xac)])&&((_0x27e7d8=_0x1977ff[_0x286749(0xbb)][_0x5ee857])===null||_0x27e7d8===void 0x0?void 0x0:_0x27e7d8[_0x286749(0xad)])&&((_0x434a9a=_0x1977ff[_0x286749(0xbb)][_0x5ee857])===null||_0x434a9a===void 0x0?void 0x0:_0x434a9a[_0x286749(0xda)]))_0x1977ff[_0x286749(0xbb)][_0x5ee857]=_0x173dbd;else((_0x28a06e=_0x1977ff[_0x286749(0xbb)][_0x5ee857])===null||_0x28a06e===void 0x0?void 0x0:_0x28a06e[_0x286749(0xcb)])==_0x286749(0xa2)&&_0x1977ff[_0x286749(0xbb)][_0x286749(0xb7)](_0x5ee857,0x0,_0x173dbd);const _0x45d050=this[_0x286749(0xaa)][_0x286749(0xc8)](_0x57da81,_0x1977ff[_0x286749(0xbb)][_0x5ee857],_0x112daf);_0x45d050&&(_0x1977ff['args'][_0x5ee857]=_0x45d050);}else{if((_0x508f79===null||_0x508f79===void 0x0?void 0x0:_0x508f79['methodArgs'][_0x5ee857])&&((_0x348df0=_0x1977ff[_0x286749(0xbb)][_0x5ee857])===null||_0x348df0===void 0x0?void 0x0:_0x348df0['params'])&&typeof _0x1977ff[_0x286749(0xbb)][_0x5ee857][_0x286749(0xc6)]==_0x286749(0xab)&&((_0x5dbafe=_0xf445cc===null||_0xf445cc===void 0x0?void 0x0:_0xf445cc[_0x286749(0xdd)])===null||_0x5dbafe===void 0x0?void 0x0:_0x5dbafe[_0x508f79[_0x286749(0xcc)][_0x5ee857]]))_0x1977ff[_0x286749(0xbb)][_0x5ee857]=_0x9fd8fb((_0x8fe2f9=_0xf445cc===null||_0xf445cc===void 0x0?void 0x0:_0xf445cc['params'])===null||_0x8fe2f9===void 0x0?void 0x0:_0x8fe2f9[_0x508f79[_0x286749(0xcc)][_0x5ee857]]);else(_0x508f79===null||_0x508f79===void 0x0?void 0x0:_0x508f79['methodArgs'][_0x5ee857])&&((_0x3c4751=(_0x318723=_0x1977ff[_0x286749(0xbb)][_0x5ee857])===null||_0x318723===void 0x0?void 0x0:_0x318723['params'])===null||_0x3c4751===void 0x0?void 0x0:_0x3c4751[_0x508f79['methodArgs'][_0x5ee857]])&&(_0x1977ff[_0x286749(0xbb)][_0x5ee857]=(_0x4f16c9=(_0x5e1669=_0x1977ff[_0x286749(0xbb)][_0x5ee857])===null||_0x5e1669===void 0x0?void 0x0:_0x5e1669[_0x286749(0xdd)])===null||_0x4f16c9===void 0x0?void 0x0:_0x4f16c9[_0x508f79[_0x286749(0xcc)][_0x5ee857]]);}}},'afterThrow':(_0x2a9441,_0x393982)=>{throw _0x393982;}};});}};exports[a1_0x57d7af(0xa4)]=CustomConfiguration,__decorate([(0x0,core_2[a1_0x57d7af(0xcf)])(),__metadata('design:type',core_1[a1_0x57d7af(0xb9)])],CustomConfiguration[a1_0x57d7af(0xb4)],a1_0x57d7af(0xa0),void 0x0),__decorate([(0x0,core_2[a1_0x57d7af(0xcf)])(),__metadata(a1_0x57d7af(0xb6),ValidatorService_1[a1_0x57d7af(0xaa)])],CustomConfiguration[a1_0x57d7af(0xb4)],'ValidatorService',void 0x0),exports[a1_0x57d7af(0xa4)]=CustomConfiguration=__decorate([(0x0,core_2['Configuration'])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':a1_0x57d7af(0xc9),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
|
package/dist/decorator/Rule.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a2_0x318055=a2_0x4bfd;(function(_0x2cf177,_0x2355c2){const _0xb02c95=a2_0x4bfd,_0x5b8cc6=_0x2cf177();while(!![]){try{const _0x19cfa4=parseInt(_0xb02c95(0x191))/0x1*(parseInt(_0xb02c95(0x19b))/0x2)+-parseInt(_0xb02c95(0x1a4))/0x3*(-parseInt(_0xb02c95(0x18f))/0x4)+parseInt(_0xb02c95(0x18c))/0x5+parseInt(_0xb02c95(0x18e))/0x6*(-parseInt(_0xb02c95(0x1a0))/0x7)+parseInt(_0xb02c95(0x192))/0x8*(parseInt(_0xb02c95(0x194))/0x9)+-parseInt(_0xb02c95(0x197))/0xa*(parseInt(_0xb02c95(0x19f))/0xb)+-parseInt(_0xb02c95(0x19e))/0xc;if(_0x19cfa4===_0x2355c2)break;else _0x5b8cc6['push'](_0x5b8cc6['shift']());}catch(_0x4de3bd){_0x5b8cc6['push'](_0x5b8cc6['shift']());}}}(a2_0x56a9,0x29a80));const a2_0xc6ceb8=(function(){let _0x2c749a=!![];return function(_0x13417a,_0x1156c6){const _0x17b4da=_0x2c749a?function(){const _0x55e536=a2_0x4bfd;if(_0x1156c6){const _0x4f8753=_0x1156c6[_0x55e536(0x18d)](_0x13417a,arguments);return _0x1156c6=null,_0x4f8753;}}:function(){};return _0x2c749a=![],_0x17b4da;};}()),a2_0x20d660=a2_0xc6ceb8(this,function(){const _0x44a639=a2_0x4bfd;return a2_0x20d660['toString']()[_0x44a639(0x193)](_0x44a639(0x1aa))[_0x44a639(0x19d)]()[_0x44a639(0x1a9)](a2_0x20d660)[_0x44a639(0x193)]('(((.+)+)+)+$');});a2_0x20d660();'use strict';Object[a2_0x318055(0x190)](exports,a2_0x318055(0x196),{'value':!![]}),exports['RuleType']=void 0x0,exports[a2_0x318055(0x19c)]=Rule;const joi=require(a2_0x318055(0x1a1)),date_1=require(a2_0x318055(0x1ab)),core_1=require(a2_0x318055(0x195)),interface_1=require('../interface');exports[a2_0x318055(0x199)]=joi[a2_0x318055(0x1a7)](date_1[a2_0x318055(0x18b)]);function a2_0x4bfd(_0x2bbf4c,_0x3b410e){const _0x3d796d=a2_0x56a9();return a2_0x4bfd=function(_0x20d660,_0xc6ceb8){_0x20d660=_0x20d660-0x188;let _0x56a920=_0x3d796d[_0x20d660];return _0x56a920;},a2_0x4bfd(_0x2bbf4c,_0x3b410e);}function Rule(_0x420b5d,_0x4d0d8d,_0xb9a5b=''){return(_0x4a1fcc,_0x54dd00)=>{const _0x2cd074=a2_0x4bfd;var _0x26fd6b;if(_0x54dd00)!joi[_0x2cd074(0x18a)](_0x4d0d8d)&&(_0x4d0d8d===null||_0x4d0d8d===void 0x0?void 0x0:_0x4d0d8d[_0x2cd074(0x1a6)])&&(_0x4d0d8d=joi['object']((0x0,core_1['getClassMetadata'])(interface_1[_0x2cd074(0x1a5)],_0x4d0d8d))['meta']({'id':_0x4d0d8d[_0x2cd074(0x1a6)]}),(0x0,core_1[_0x2cd074(0x188)])(_0x4a1fcc,_0x54dd00)[_0x2cd074(0x1a6)]===_0x2cd074(0x1a2)&&(_0x4d0d8d=joi['array']()['items'](_0x4d0d8d))),joi[_0x2cd074(0x18a)](_0x4d0d8d)&&(_0x420b5d&&typeof(_0x4d0d8d===null||_0x4d0d8d===void 0x0?void 0x0:_0x4d0d8d[_0x2cd074(0x1a3)])==_0x2cd074(0x189)&&(_0x4d0d8d=_0x4d0d8d[_0x2cd074(0x1a3)](_0x420b5d)),_0xb9a5b&&typeof(_0x4d0d8d===null||_0x4d0d8d===void 0x0?void 0x0:_0x4d0d8d[_0x2cd074(0x19a)])==_0x2cd074(0x189)&&(_0x4d0d8d=_0x4d0d8d[_0x2cd074(0x19a)](_0xb9a5b)),(0x0,core_1['attachClassMetadata'])(interface_1[_0x2cd074(0x1a5)],_0x4d0d8d,_0x4a1fcc,_0x54dd00));else{const _0x57221d=(0x0,core_1['getClassMetadata'])(interface_1[_0x2cd074(0x1a5)],_0x4d0d8d);if(_0x57221d){let _0x193951=(_0x26fd6b=(0x0,core_1['getClassMetadata'])(interface_1[_0x2cd074(0x1a5)],_0x4a1fcc))!==null&&_0x26fd6b!==void 0x0?_0x26fd6b:{};Object[_0x2cd074(0x198)](_0x57221d)['map'](_0x39c8dc=>{!_0x193951[_0x39c8dc]&&(_0x193951[_0x39c8dc]=_0x57221d[_0x39c8dc]);}),(0x0,core_1[_0x2cd074(0x1a8)])(interface_1[_0x2cd074(0x1a5)],_0x193951,_0x4a1fcc);}}};}function a2_0x56a9(){const _0x2913e6=['description','106OPXLkw','Rule','toString','2256948MIVvGb','484957WnUqGH','7ncXHtD','joi','Array','label','1521LpYgfc','RULES_KEY','name','extend','saveClassMetadata','constructor','(((.+)+)+)+$','@joi/date','getPropertyType','function','isSchema','default','484840CpDlCE','apply','523194HTfujh','1128qMLQLT','defineProperty','4019OkDCUJ','4072MUVqdn','search','2214EoBTel','@midwayjs/core','__esModule','30Ajaitl','keys','RuleType'];a2_0x56a9=function(){return _0x2913e6;};return a2_0x56a9();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x47e63d=a3_0x1bb0;(function(_0x25a63b,_0x2b7bf9){const _0x186cac=a3_0x1bb0,_0x4eb206=_0x25a63b();while(!![]){try{const _0x46d7bb=-parseInt(_0x186cac(0x111))/0x1*(parseInt(_0x186cac(0xf8))/0x2)+parseInt(_0x186cac(0xfa))/0x3*(parseInt(_0x186cac(0x110))/0x4)+parseInt(_0x186cac(0x10f))/0x5*(-parseInt(_0x186cac(0x10b))/0x6)+parseInt(_0x186cac(0xfe))/0x7+-parseInt(_0x186cac(0xf9))/0x8*(-parseInt(_0x186cac(0xfc))/0x9)+parseInt(_0x186cac(0xfd))/0xa+parseInt(_0x186cac(0x102))/0xb*(-parseInt(_0x186cac(0x10d))/0xc);if(_0x46d7bb===_0x2b7bf9)break;else _0x4eb206['push'](_0x4eb206['shift']());}catch(_0x95d74e){_0x4eb206['push'](_0x4eb206['shift']());}}}(a3_0x3e23,0xd6f59));function a3_0x1bb0(_0xb86400,_0x431fd6){const _0x20935a=a3_0x3e23();return a3_0x1bb0=function(_0x1b3c6d,_0x2a35b6){_0x1b3c6d=_0x1b3c6d-0xf7;let _0x3e2326=_0x20935a[_0x1b3c6d];return _0x3e2326;},a3_0x1bb0(_0xb86400,_0x431fd6);}const a3_0x2a35b6=(function(){let _0x230fa4=!![];return function(_0x22c899,_0x5aeda7){const _0x26b41c=_0x230fa4?function(){const _0x5b48c2=a3_0x1bb0;if(_0x5aeda7){const _0x3150f9=_0x5aeda7[_0x5b48c2(0xfb)](_0x22c899,arguments);return _0x5aeda7=null,_0x3150f9;}}:function(){};return _0x230fa4=![],_0x26b41c;};}()),a3_0x1b3c6d=a3_0x2a35b6(this,function(){const _0x4eaa15=a3_0x1bb0;return a3_0x1b3c6d[_0x4eaa15(0x113)]()[_0x4eaa15(0x105)](_0x4eaa15(0x112))['toString']()[_0x4eaa15(0x10c)](a3_0x1b3c6d)[_0x4eaa15(0x105)](_0x4eaa15(0x112));});a3_0x1b3c6d();'use strict';Object[a3_0x47e63d(0x114)](exports,a3_0x47e63d(0x109),{'value':!![]}),exports[a3_0x47e63d(0x10e)]=Validator,exports[a3_0x47e63d(0x106)]=getFuncArgs;const core_1=require('@midwayjs/core'),interface_1=require(a3_0x47e63d(0x107));function Validator(_0x312ebf={}){return(_0x5d6838,_0x3c1c1d,_0x309256)=>{const _0x5dc553=a3_0x1bb0,_0x1f110d=getFuncArgs(_0x5d6838[_0x3c1c1d]);(0x0,core_1['attachClassMetadata'])(interface_1[_0x5dc553(0x108)],{'method':_0x3c1c1d,'methodArgs':_0x1f110d},_0x5d6838),(0x0,core_1[_0x5dc553(0xff)])(interface_1[_0x5dc553(0x108)],_0x312ebf)(_0x5d6838,_0x3c1c1d,_0x309256);};}function a3_0x3e23(){const _0xddc93c=['1296274iUOeGy','createCustomMethodDecorator','replace','slice','781649eRAWpQ','prototype','indexOf','search','getFuncArgs','../interface','VALIDATOR_KEY','__esModule','function','3971220yIuXal','constructor','204KCdgfS','Validator','10UxzBGb','1704NKyalV','11QkyTUJ','(((.+)+)+)+$','toString','defineProperty','match','100498innzBb','1926088RvtENo','12303uoHcEj','apply','54vhPqsH','5881810brRypK'];a3_0x3e23=function(){return _0xddc93c;};return a3_0x3e23();}function getFuncArgs(_0x5bc65f){const _0x149b8e=a3_0x47e63d;if(typeof _0x5bc65f==_0x149b8e(0x10a)){const _0x261f69=/=>.*$/mg,_0x16b15b=/=[^,)]+/mg,_0x2784f5=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x4e3118=(_0x5bc65f[_0x149b8e(0x103)]?_0x5bc65f[_0x149b8e(0x103)]['constructor']['toString']():_0x5bc65f[_0x149b8e(0x113)]())['replace'](_0x2784f5,'')[_0x149b8e(0x100)](_0x261f69,'')[_0x149b8e(0x100)](_0x16b15b,''),_0xd995f3=_0x4e3118[_0x149b8e(0x101)](_0x4e3118[_0x149b8e(0x104)]('(')+0x1,_0x4e3118[_0x149b8e(0x104)](')'))[_0x149b8e(0xf7)](/([^\s,]+)/g)||[];return _0xd995f3;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a4_0x33e2fc=a4_0x2908;function a4_0x2908(_0x504acc,_0x163148){var _0x1714ed=a4_0x1183();return a4_0x2908=function(_0x1bd0e8,_0xb05f7b){_0x1bd0e8=_0x1bd0e8-0xeb;var _0x1183f1=_0x1714ed[_0x1bd0e8];return _0x1183f1;},a4_0x2908(_0x504acc,_0x163148);}(function(_0x4b28bb,_0xa5ef2b){var _0x1a89ee=a4_0x2908,_0x3db723=_0x4b28bb();while(!![]){try{var _0x15a453=parseInt(_0x1a89ee(0xee))/0x1+parseInt(_0x1a89ee(0x101))/0x2+parseInt(_0x1a89ee(0xfd))/0x3+parseInt(_0x1a89ee(0xf2))/0x4+parseInt(_0x1a89ee(0xff))/0x5*(parseInt(_0x1a89ee(0xf6))/0x6)+parseInt(_0x1a89ee(0xf9))/0x7+-parseInt(_0x1a89ee(0xfb))/0x8*(parseInt(_0x1a89ee(0x100))/0x9);if(_0x15a453===_0xa5ef2b)break;else _0x3db723['push'](_0x3db723['shift']());}catch(_0x4457af){_0x3db723['push'](_0x3db723['shift']());}}}(a4_0x1183,0xc7e39));var a4_0xb05f7b=(function(){var _0x44b5bd=!![];return function(_0x139a34,_0x295653){var _0x4d93c2=_0x44b5bd?function(){var _0x50fd5f=a4_0x2908;if(_0x295653){var _0x52c86a=_0x295653[_0x50fd5f(0xfc)](_0x139a34,arguments);return _0x295653=null,_0x52c86a;}}:function(){};return _0x44b5bd=![],_0x4d93c2;};}()),a4_0x1bd0e8=a4_0xb05f7b(this,function(){var _0x149545=a4_0x2908;return a4_0x1bd0e8['toString']()[_0x149545(0xfe)](_0x149545(0x104))[_0x149545(0x106)]()[_0x149545(0xfa)](a4_0x1bd0e8)[_0x149545(0xfe)](_0x149545(0x104));});a4_0x1bd0e8();'use strict';var __decorate=this&&this[a4_0x33e2fc(0xf7)]||function(_0x3ecc5b,_0x595188,_0x541575,_0x436d9c){var _0x150542=a4_0x33e2fc,_0x52399f=arguments[_0x150542(0xf1)],_0xc4630f=_0x52399f<0x3?_0x595188:_0x436d9c===null?_0x436d9c=Object[_0x150542(0xeb)](_0x595188,_0x541575):_0x436d9c,_0x1b114;if(typeof Reflect==='object'&&typeof Reflect[_0x150542(0xec)]===_0x150542(0xf5))_0xc4630f=Reflect[_0x150542(0xec)](_0x3ecc5b,_0x595188,_0x541575,_0x436d9c);else{for(var _0x5a5743=_0x3ecc5b[_0x150542(0xf1)]-0x1;_0x5a5743>=0x0;_0x5a5743--)if(_0x1b114=_0x3ecc5b[_0x5a5743])_0xc4630f=(_0x52399f<0x3?_0x1b114(_0xc4630f):_0x52399f>0x3?_0x1b114(_0x595188,_0x541575,_0xc4630f):_0x1b114(_0x595188,_0x541575))||_0xc4630f;}return _0x52399f>0x3&&_0xc4630f&&Object[_0x150542(0xf3)](_0x595188,_0x541575,_0xc4630f),_0xc4630f;},__metadata=this&&this[a4_0x33e2fc(0xf8)]||function(_0x196e64,_0x4d0403){var _0x5498e7=a4_0x33e2fc;if(typeof Reflect===_0x5498e7(0x103)&&typeof Reflect[_0x5498e7(0xf0)]===_0x5498e7(0xf5))return Reflect[_0x5498e7(0xf0)](_0x196e64,_0x4d0403);};Object[a4_0x33e2fc(0xf3)](exports,'__esModule',{'value':!![]}),exports[a4_0x33e2fc(0xef)]=void 0x0;const core_1=require('@anncic-api/core');function a4_0x1183(){var _0x5020c9=['__decorate','__metadata','5506704slzNyD','constructor','16tXnRPe','apply','3221187ayroww','search','341535cOGtHD','16276887vZQrBs','2788096KeAefR','AnnErrorMsg','object','(((.+)+)+)+$','参数验证失败','toString','NOFIND_SCHEMA','getOwnPropertyDescriptor','decorate','PARAMS','920464HTknic','ValidatorError','metadata','length','497216iuBrFt','defineProperty','design:type','function','12kUvoka'];a4_0x1183=function(){return _0x5020c9;};return a4_0x1183();}class ValidatorError extends AnnError{}exports[a4_0x33e2fc(0xef)]=ValidatorError,ValidatorError[a4_0x33e2fc(0xed)]=0x18c1e,ValidatorError[a4_0x33e2fc(0x107)]=0x18c1c,__decorate([(0x0,core_1[a4_0x33e2fc(0x102)])(a4_0x33e2fc(0x105)),__metadata('design:type',Object)],ValidatorError,'PARAMS',void 0x0),__decorate([(0x0,core_1[a4_0x33e2fc(0x102)])(a4_0x33e2fc(0x105)),__metadata(a4_0x33e2fc(0xf4),Object)],ValidatorError,a4_0x33e2fc(0x107),void 0x0);
|
package/dist/helper/dtoHelper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a5_0x3b6f(){const _0x420257=['3549144fsnJLT','prototype','@midwayjs/core','305421wMLRSK','3737489IJNWNa','5xFxvlu','380152YTLRLd','search','117JfpTTk','getClassExtendedMetadata','181660eerYLf','__esModule','10711470bnZqqW','../interface','apply','PickDto','assign','351759XGtnfA','2gwjGCK','OmitDto','RULES_KEY','saveClassMetadata','defineProperty'];a5_0x3b6f=function(){return _0x420257;};return a5_0x3b6f();}function a5_0x24a0(_0x236d88,_0x4fef75){const _0x209a30=a5_0x3b6f();return a5_0x24a0=function(_0x1963f8,_0x3fbac7){_0x1963f8=_0x1963f8-0x83;let _0x3b6f28=_0x209a30[_0x1963f8];return _0x3b6f28;},a5_0x24a0(_0x236d88,_0x4fef75);}const a5_0x1764c2=a5_0x24a0;(function(_0x2aa613,_0x23478f){const _0xc935b1=a5_0x24a0,_0x2484d9=_0x2aa613();while(!![]){try{const _0x55afb9=-parseInt(_0xc935b1(0x91))/0x1+-parseInt(_0xc935b1(0x89))/0x2*(-parseInt(_0xc935b1(0x88))/0x3)+-parseInt(_0xc935b1(0x98))/0x4*(-parseInt(_0xc935b1(0x93))/0x5)+parseInt(_0xc935b1(0x8e))/0x6+-parseInt(_0xc935b1(0x92))/0x7+-parseInt(_0xc935b1(0x94))/0x8*(parseInt(_0xc935b1(0x96))/0x9)+parseInt(_0xc935b1(0x83))/0xa;if(_0x55afb9===_0x23478f)break;else _0x2484d9['push'](_0x2484d9['shift']());}catch(_0x59c8e7){_0x2484d9['push'](_0x2484d9['shift']());}}}(a5_0x3b6f,0x59e74));const a5_0x3fbac7=(function(){let _0xa5a028=!![];return function(_0x20c875,_0x375ef3){const _0x2f2582=_0xa5a028?function(){const _0x1b419a=a5_0x24a0;if(_0x375ef3){const _0x10e59b=_0x375ef3[_0x1b419a(0x85)](_0x20c875,arguments);return _0x375ef3=null,_0x10e59b;}}:function(){};return _0xa5a028=![],_0x2f2582;};}()),a5_0x1963f8=a5_0x3fbac7(this,function(){const _0x4eac07=a5_0x24a0;return a5_0x1963f8['toString']()['search']('(((.+)+)+)+$')['toString']()['constructor'](a5_0x1963f8)[_0x4eac07(0x95)]('(((.+)+)+)+$');});a5_0x1963f8();'use strict';Object[a5_0x1764c2(0x8d)](exports,a5_0x1764c2(0x99),{'value':!![]}),exports[a5_0x1764c2(0x86)]=PickDto,exports[a5_0x1764c2(0x8a)]=OmitDto;const core_1=require(a5_0x1764c2(0x90)),interface_1=require(a5_0x1764c2(0x84));function PickDto(_0x4d0fa0,_0x3d7673){const _0x2028df=a5_0x1764c2,_0x569f68=function(){};_0x569f68['prototype']=_0x4d0fa0['prototype'];const _0x163a4c=(0x0,core_1[_0x2028df(0x97)])(interface_1['RULES_KEY'],_0x4d0fa0),_0x5a8f3d={};for(const _0x808bf3 of _0x3d7673){_0x163a4c[_0x808bf3]&&(_0x5a8f3d[_0x808bf3]=_0x163a4c[_0x808bf3]);}return(0x0,core_1[_0x2028df(0x8c)])(interface_1[_0x2028df(0x8b)],_0x5a8f3d,_0x569f68),_0x569f68;}function OmitDto(_0x24b535,_0x33479d){const _0x6e5dd3=a5_0x1764c2,_0x3352ac=function(){};_0x3352ac['prototype']=_0x24b535[_0x6e5dd3(0x8f)];const _0x411dad=(0x0,core_1[_0x6e5dd3(0x97)])(interface_1[_0x6e5dd3(0x8b)],_0x24b535),_0x2f15a9=Object[_0x6e5dd3(0x87)]({},_0x411dad);for(const _0x57a013 of _0x33479d){delete _0x2f15a9[_0x57a013];}return(0x0,core_1[_0x6e5dd3(0x8c)])(interface_1[_0x6e5dd3(0x8b)],_0x2f15a9,_0x3352ac),_0x3352ac;}
|
package/dist/helper/getSchema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a6_0x11df(){const _0x75dde8=['getClassExtendedMetadata','toString','getSchema','841274ZKhZnN','1891944xhyuos','37974PlrGIJ','RULES_KEY','apply','451023MiauKn','object','6031216dTOpyg','@midwayjs/core','19080612SKtoQV','14FeDjkv','joi','10258080gTkHXj','search','940qOAMOQ','defineProperty'];a6_0x11df=function(){return _0x75dde8;};return a6_0x11df();}const a6_0x51c3a2=a6_0x3ffd;(function(_0x1e7328,_0x534bef){const _0x11e627=a6_0x3ffd,_0x5133a6=_0x1e7328();while(!![]){try{const _0x191730=parseInt(_0x11e627(0x154))/0x1+-parseInt(_0x11e627(0x14b))/0x2*(parseInt(_0x11e627(0x159))/0x3)+-parseInt(_0x11e627(0x155))/0x4+-parseInt(_0x11e627(0x14f))/0x5*(parseInt(_0x11e627(0x156))/0x6)+parseInt(_0x11e627(0x14d))/0x7+-parseInt(_0x11e627(0x148))/0x8+parseInt(_0x11e627(0x14a))/0x9;if(_0x191730===_0x534bef)break;else _0x5133a6['push'](_0x5133a6['shift']());}catch(_0x1d80bd){_0x5133a6['push'](_0x5133a6['shift']());}}}(a6_0x11df,0xe9cd7));const a6_0x5f0485=(function(){let _0x4d34a7=!![];return function(_0x25b106,_0x1d1e31){const _0x39f57e=_0x4d34a7?function(){const _0x455bdc=a6_0x3ffd;if(_0x1d1e31){const _0x19539e=_0x1d1e31[_0x455bdc(0x158)](_0x25b106,arguments);return _0x1d1e31=null,_0x19539e;}}:function(){};return _0x4d34a7=![],_0x39f57e;};}()),a6_0x58bd8b=a6_0x5f0485(this,function(){const _0x23a213=a6_0x3ffd;return a6_0x58bd8b[_0x23a213(0x152)]()['search']('(((.+)+)+)+$')[_0x23a213(0x152)]()['constructor'](a6_0x58bd8b)[_0x23a213(0x14e)]('(((.+)+)+)+$');});a6_0x58bd8b();'use strict';Object[a6_0x51c3a2(0x150)](exports,'__esModule',{'value':!![]}),exports[a6_0x51c3a2(0x153)]=getSchema;const Joi=require(a6_0x51c3a2(0x14c)),core_1=require(a6_0x51c3a2(0x149)),interface_1=require('../interface');function a6_0x3ffd(_0x51afe0,_0x16619d){const _0x512ad7=a6_0x11df();return a6_0x3ffd=function(_0x58bd8b,_0x5f0485){_0x58bd8b=_0x58bd8b-0x147;let _0x11df62=_0x512ad7[_0x58bd8b];return _0x11df62;},a6_0x3ffd(_0x51afe0,_0x16619d);}function getSchema(_0x3fed10){const _0x416b9a=a6_0x51c3a2,_0x1dc884=(0x0,core_1[_0x416b9a(0x151)])(interface_1[_0x416b9a(0x157)],_0x3fed10);if(_0x1dc884)return Joi[_0x416b9a(0x147)](_0x1dc884);}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a7_0x24d336=a7_0xf303;(function(_0x34a08f,_0xc6fe9f){var _0xda33ba=a7_0xf303,_0x12d3d5=_0x34a08f();while(!![]){try{var _0x3cd8d6=-parseInt(_0xda33ba(0x8f))/0x1+-parseInt(_0xda33ba(0x84))/0x2+-parseInt(_0xda33ba(0x81))/0x3*(parseInt(_0xda33ba(0x77))/0x4)+-parseInt(_0xda33ba(0x7d))/0x5*(parseInt(_0xda33ba(0x79))/0x6)+parseInt(_0xda33ba(0x9e))/0x7*(-parseInt(_0xda33ba(0x95))/0x8)+-parseInt(_0xda33ba(0x9d))/0x9*(parseInt(_0xda33ba(0x99))/0xa)+parseInt(_0xda33ba(0x9b))/0xb*(parseInt(_0xda33ba(0x85))/0xc);if(_0x3cd8d6===_0xc6fe9f)break;else _0x12d3d5['push'](_0x12d3d5['shift']());}catch(_0x3a96d){_0x12d3d5['push'](_0x12d3d5['shift']());}}}(a7_0x2b78,0xe5542));var a7_0x340c92=(function(){var _0x266512=!![];return function(_0x58683f,_0x1fe005){var _0x36c1ab=_0x266512?function(){var _0x2a3de8=a7_0xf303;if(_0x1fe005){var _0x56f381=_0x1fe005[_0x2a3de8(0x9f)](_0x58683f,arguments);return _0x1fe005=null,_0x56f381;}}:function(){};return _0x266512=![],_0x36c1ab;};}()),a7_0x2e29cf=a7_0x340c92(this,function(){var _0x5ad8a7=a7_0xf303;return a7_0x2e29cf['toString']()[_0x5ad8a7(0x7e)]('(((.+)+)+)+$')[_0x5ad8a7(0x7a)]()['constructor'](a7_0x2e29cf)[_0x5ad8a7(0x7e)](_0x5ad8a7(0x8a));});function a7_0xf303(_0x217bd1,_0x284e83){var _0x412e65=a7_0x2b78();return a7_0xf303=function(_0x2e29cf,_0x340c92){_0x2e29cf=_0x2e29cf-0x76;var _0x2b787d=_0x412e65[_0x2e29cf];return _0x2b787d;},a7_0xf303(_0x217bd1,_0x284e83);}a7_0x2e29cf();'use strict';var __createBinding=this&&this['__createBinding']||(Object[a7_0x24d336(0x89)]?function(_0x5de891,_0x1aed17,_0x1bfe2c,_0x38c49d){var _0x32d2ef=a7_0x24d336;if(_0x38c49d===undefined)_0x38c49d=_0x1bfe2c;var _0x466e14=Object[_0x32d2ef(0x9a)](_0x1aed17,_0x1bfe2c);(!_0x466e14||(_0x32d2ef(0x82)in _0x466e14?!_0x1aed17[_0x32d2ef(0x7f)]:_0x466e14[_0x32d2ef(0x94)]||_0x466e14[_0x32d2ef(0x91)]))&&(_0x466e14={'enumerable':!![],'get':function(){return _0x1aed17[_0x1bfe2c];}}),Object[_0x32d2ef(0x83)](_0x5de891,_0x38c49d,_0x466e14);}:function(_0x330512,_0x32fcd3,_0x2cefda,_0x3b48c7){if(_0x3b48c7===undefined)_0x3b48c7=_0x2cefda;_0x330512[_0x3b48c7]=_0x32fcd3[_0x2cefda];}),__exportStar=this&&this[a7_0x24d336(0x76)]||function(_0x567ca5,_0x531a49){var _0x343a37=a7_0x24d336;for(var _0x322a01 in _0x567ca5)if(_0x322a01!==_0x343a37(0x88)&&!Object[_0x343a37(0x80)][_0x343a37(0x87)][_0x343a37(0x86)](_0x531a49,_0x322a01))__createBinding(_0x531a49,_0x567ca5,_0x322a01);};Object[a7_0x24d336(0x83)](exports,a7_0x24d336(0x7f),{'value':!![]}),exports[a7_0x24d336(0x9c)]=exports['ValidatorService']=exports[a7_0x24d336(0x7c)]=exports['RuleType']=exports['Rule']=exports[a7_0x24d336(0x7b)]=void 0x0,__exportStar(require(a7_0x24d336(0x93)),exports),__exportStar(require(a7_0x24d336(0x8c)),exports),__exportStar(require(a7_0x24d336(0x92)),exports);var Validator_1=require(a7_0x24d336(0x8d));Object['defineProperty'](exports,a7_0x24d336(0x7b),{'enumerable':!![],'get':function(){return Validator_1['Validator'];}});var Rule_1=require(a7_0x24d336(0x97));Object['defineProperty'](exports,'Rule',{'enumerable':!![],'get':function(){var _0x5de62b=a7_0x24d336;return Rule_1[_0x5de62b(0x98)];}}),Object[a7_0x24d336(0x83)](exports,a7_0x24d336(0x90),{'enumerable':!![],'get':function(){return Rule_1['RuleType'];}});var ValidatorError_1=require(a7_0x24d336(0x8b));Object[a7_0x24d336(0x83)](exports,a7_0x24d336(0x7c),{'enumerable':!![],'get':function(){var _0x2b893a=a7_0x24d336;return ValidatorError_1[_0x2b893a(0x7c)];}});function a7_0x2b78(){var _0x18a180=['Configuration','6039279LIAifS','200053azWMWX','apply','__exportStar','4itnbsh','ValidatorService','8958NXfnvT','toString','Validator','ValidatorError','3415XKTuBD','search','__esModule','prototype','1308372CwrMki','get','defineProperty','2673312LKgqJc','63191820qKuWYv','call','hasOwnProperty','default','create','(((.+)+)+)+$','./exception/ValidatorError','./helper/dtoHelper','./decorator/Validator','CustomConfiguration','748809lBJlVs','RuleType','configurable','./helper/getSchema','./interface','writable','32pGOhuO','./configuration','./decorator/Rule','Rule','10xlSUIZ','getOwnPropertyDescriptor','11ixMOhv'];a7_0x2b78=function(){return _0x18a180;};return a7_0x2b78();}var ValidatorService_1=require('./service/ValidatorService');Object[a7_0x24d336(0x83)](exports,a7_0x24d336(0x78),{'enumerable':!![],'get':function(){var _0x2e42d4=a7_0x24d336;return ValidatorService_1[_0x2e42d4(0x78)];}});var configuration_1=require(a7_0x24d336(0x96));Object[a7_0x24d336(0x83)](exports,a7_0x24d336(0x9c),{'enumerable':!![],'get':function(){var _0x460d5c=a7_0x24d336;return configuration_1[_0x460d5c(0x8e)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a8_0x29e27c=a8_0x44d4;(function(_0x16181a,_0x31323f){var _0x421d05=a8_0x44d4,_0x5b10fc=_0x16181a();while(!![]){try{var _0x2afbd4=-parseInt(_0x421d05(0x17c))/0x1+parseInt(_0x421d05(0x16e))/0x2*(-parseInt(_0x421d05(0x171))/0x3)+parseInt(_0x421d05(0x16c))/0x4+-parseInt(_0x421d05(0x172))/0x5*(-parseInt(_0x421d05(0x173))/0x6)+parseInt(_0x421d05(0x16a))/0x7*(-parseInt(_0x421d05(0x17b))/0x8)+-parseInt(_0x421d05(0x16b))/0x9*(parseInt(_0x421d05(0x178))/0xa)+parseInt(_0x421d05(0x176))/0xb;if(_0x2afbd4===_0x31323f)break;else _0x5b10fc['push'](_0x5b10fc['shift']());}catch(_0x57ab3c){_0x5b10fc['push'](_0x5b10fc['shift']());}}}(a8_0x551d,0x82e0d));var a8_0x28a377=(function(){var _0x2c9088=!![];return function(_0x2fc4c0,_0x3b4ede){var _0x388dfb=_0x2c9088?function(){var _0x2671e2=a8_0x44d4;if(_0x3b4ede){var _0x5af62c=_0x3b4ede[_0x2671e2(0x17d)](_0x2fc4c0,arguments);return _0x3b4ede=null,_0x5af62c;}}:function(){};return _0x2c9088=![],_0x388dfb;};}()),a8_0x40f5f5=a8_0x28a377(this,function(){var _0x6cecac=a8_0x44d4;return a8_0x40f5f5[_0x6cecac(0x17e)]()['search'](_0x6cecac(0x175))[_0x6cecac(0x17e)]()[_0x6cecac(0x16d)](a8_0x40f5f5)[_0x6cecac(0x17a)](_0x6cecac(0x175));});a8_0x40f5f5();function a8_0x44d4(_0x26ec42,_0x3ca2d2){var _0x2389e7=a8_0x551d();return a8_0x44d4=function(_0x40f5f5,_0x28a377){_0x40f5f5=_0x40f5f5-0x16a;var _0x551d2d=_0x2389e7[_0x40f5f5];return _0x551d2d;},a8_0x44d4(_0x26ec42,_0x3ca2d2);}function a8_0x551d(){var _0x31fc8f=['3790bdElSN','VALIDATOR_KEY','search','8MBIHdX','481246WATito','apply','toString','994735hiDeJu','23391BxHzgS','1319628XdTJAn','constructor','220oFJmbJ','__esModule','anncic-api:validator:rules','9777JUTGtR','159015VZhzLB','114XEYBpy','defineProperty','(((.+)+)+)+$','17256525krDoww','RULES_KEY'];a8_0x551d=function(){return _0x31fc8f;};return a8_0x551d();}'use strict';Object[a8_0x29e27c(0x174)](exports,a8_0x29e27c(0x16f),{'value':!![]}),exports[a8_0x29e27c(0x179)]=exports['RULES_KEY']=void 0x0,exports[a8_0x29e27c(0x177)]=a8_0x29e27c(0x170),exports['VALIDATOR_KEY']='anncic-api:validator:validator';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a9_0x55db(_0xd5f990,_0x596f99){const _0x38d9eb=a9_0x459f();return a9_0x55db=function(_0x380f26,_0x79aab0){_0x380f26=_0x380f26-0x151;let _0x459f30=_0x38d9eb[_0x380f26];return _0x459f30;},a9_0x55db(_0xd5f990,_0x596f99);}const a9_0x2775c7=a9_0x55db;(function(_0x30cefd,_0x244ae4){const _0x2cdf9e=a9_0x55db,_0x59cb30=_0x30cefd();while(!![]){try{const _0x11bb53=-parseInt(_0x2cdf9e(0x176))/0x1+-parseInt(_0x2cdf9e(0x162))/0x2+parseInt(_0x2cdf9e(0x17e))/0x3+-parseInt(_0x2cdf9e(0x18f))/0x4+-parseInt(_0x2cdf9e(0x178))/0x5*(parseInt(_0x2cdf9e(0x17b))/0x6)+parseInt(_0x2cdf9e(0x16f))/0x7*(-parseInt(_0x2cdf9e(0x15f))/0x8)+parseInt(_0x2cdf9e(0x18a))/0x9;if(_0x11bb53===_0x244ae4)break;else _0x59cb30['push'](_0x59cb30['shift']());}catch(_0x233e6d){_0x59cb30['push'](_0x59cb30['shift']());}}}(a9_0x459f,0x68fe3));const a9_0x79aab0=(function(){let _0x1bbad8=!![];return function(_0x57599c,_0x503d7e){const _0x13fe14=_0x1bbad8?function(){const _0xff7eab=a9_0x55db;if(_0x503d7e){const _0xf0198=_0x503d7e[_0xff7eab(0x156)](_0x57599c,arguments);return _0x503d7e=null,_0xf0198;}}:function(){};return _0x1bbad8=![],_0x13fe14;};}()),a9_0x380f26=a9_0x79aab0(this,function(){const _0x2405ec=a9_0x55db;return a9_0x380f26[_0x2405ec(0x173)]()['search'](_0x2405ec(0x159))[_0x2405ec(0x173)]()[_0x2405ec(0x18e)](a9_0x380f26)[_0x2405ec(0x158)](_0x2405ec(0x159));});a9_0x380f26();'use strict';var __decorate=this&&this[a9_0x2775c7(0x151)]||function(_0x7667fe,_0x34c80b,_0xfeff1c,_0x5ce6ca){const _0x122e49=a9_0x2775c7;var _0x4e4b0=arguments[_0x122e49(0x17c)],_0x29ae42=_0x4e4b0<0x3?_0x34c80b:_0x5ce6ca===null?_0x5ce6ca=Object[_0x122e49(0x15e)](_0x34c80b,_0xfeff1c):_0x5ce6ca,_0x3d3660;if(typeof Reflect===_0x122e49(0x190)&&typeof Reflect[_0x122e49(0x193)]==='function')_0x29ae42=Reflect[_0x122e49(0x193)](_0x7667fe,_0x34c80b,_0xfeff1c,_0x5ce6ca);else{for(var _0x2a4675=_0x7667fe[_0x122e49(0x17c)]-0x1;_0x2a4675>=0x0;_0x2a4675--)if(_0x3d3660=_0x7667fe[_0x2a4675])_0x29ae42=(_0x4e4b0<0x3?_0x3d3660(_0x29ae42):_0x4e4b0>0x3?_0x3d3660(_0x34c80b,_0xfeff1c,_0x29ae42):_0x3d3660(_0x34c80b,_0xfeff1c))||_0x29ae42;}return _0x4e4b0>0x3&&_0x29ae42&&Object['defineProperty'](_0x34c80b,_0xfeff1c,_0x29ae42),_0x29ae42;},__metadata=this&&this[a9_0x2775c7(0x177)]||function(_0x3cfd99,_0x4d5a5e){const _0x4c02ca=a9_0x2775c7;if(typeof Reflect==='object'&&typeof Reflect['metadata']==='function')return Reflect[_0x4c02ca(0x18c)](_0x3cfd99,_0x4d5a5e);};function a9_0x459f(){const _0x37cc84=['../exception/ValidatorError','ValidatorService','i18nConfig','toString','design:paramtypes','init','347559hLgJbK','__metadata','5fZXaNH','forEach','Provide','4317342OzFPic','length','ValidatorError','1492881ezFXJn','details','RULES_KEY','NOFIND_SCHEMA','message','Config','$_terms','formatLocale','Inject','../interface','fromEntries','date','25471701oaYMXi','validatorConfig','metadata','MidwayI18nServiceSingleton','constructor','980824bTYMAN','object','validationOptions','joi','decorate','design:type','__decorate','Init','type','key','error','apply','validator','search','(((.+)+)+)+$','@midwayjs/core','errors','i18n','messages','getOwnPropertyDescriptor','8qusuxS','PARAMS','参数验证失败','1488308lQgzpm','YYYY-MM-DD\x20HH:mm:ss','i18nService','__esModule','language','schema','value','prototype','isSchema','localeTable','assign','keys','@midwayjs/i18n','5889023hvHxPh'];a9_0x459f=function(){return _0x37cc84;};return a9_0x459f();}Object['defineProperty'](exports,a9_0x2775c7(0x165),{'value':!![]}),exports[a9_0x2775c7(0x171)]=void 0x0;const Joi=require(a9_0x2775c7(0x192)),i18n_1=require(a9_0x2775c7(0x16e)),core_1=require(a9_0x2775c7(0x15a)),interface_1=require(a9_0x2775c7(0x187)),ValidatorError_1=require(a9_0x2775c7(0x170));let ValidatorService=class ValidatorService{constructor(){this['messages']={};}async['init'](){const _0x15886c=a9_0x2775c7,_0x474ca7=Object[_0x15886c(0x16d)](this[_0x15886c(0x172)][_0x15886c(0x16b)]);_0x474ca7[_0x15886c(0x179)](_0x18a58f=>{const _0x5b7f9a=_0x15886c;this[_0x5b7f9a(0x15d)][(0x0,i18n_1['formatLocale'])(_0x18a58f)]=Object[_0x5b7f9a(0x188)](this[_0x5b7f9a(0x164)]['getLocaleMapping'](_0x18a58f,_0x5b7f9a(0x157)));});}['getSchema'](_0x159627){const _0x34df6a=a9_0x2775c7,_0xeabe3d=(0x0,core_1['getClassExtendedMetadata'])(interface_1[_0x34df6a(0x180)],_0x159627);return _0xeabe3d?Joi[_0x34df6a(0x190)](_0xeabe3d):undefined;}['validator'](_0x5dba78,_0x4994c1,_0x3b583f={}){const _0x313907=a9_0x2775c7;var _0x46c95b,_0x1dccb4,_0x31dc1f,_0x263b0f,_0x5f1473,_0x3cece2;const _0x56197e=Joi[_0x313907(0x16a)](_0x5dba78)?_0x5dba78:this['getSchema'](_0x5dba78);if(!_0x56197e)throw new AnnError(ValidatorError_1[_0x313907(0x17d)][_0x313907(0x181)]);_0x3b583f[_0x313907(0x191)]=Object[_0x313907(0x16c)]((_0x46c95b=this['validatorConfig'][_0x313907(0x191)])!==null&&_0x46c95b!==void 0x0?_0x46c95b:{},{'messages':this[_0x313907(0x15d)]},_0x3b583f['validationOptions']||{}),_0x3b583f['validationOptions'][_0x313907(0x15b)]=_0x3b583f[_0x313907(0x191)][_0x313907(0x15b)]||{},_0x3b583f[_0x313907(0x191)][_0x313907(0x15b)][_0x313907(0x166)]=(0x0,i18n_1[_0x313907(0x185)])(this[_0x313907(0x164)]['getAvailableLocale'](_0x3b583f['validationOptions'][_0x313907(0x15b)][_0x313907(0x166)]||_0x3b583f['locale']||this[_0x313907(0x172)]['defaultLocale'],_0x313907(0x157)));const _0x277250=_0x56197e['validate'](_0x4994c1,_0x3b583f['validationOptions']);if(_0x277250===null||_0x277250===void 0x0?void 0x0:_0x277250['error']){if(_0x277250[_0x313907(0x155)]instanceof AnnError)throw _0x277250[_0x313907(0x155)];else{if(_0x277250[_0x313907(0x155)]instanceof Error)throw new AnnError(ValidatorError_1[_0x313907(0x17d)]['PARAMS'],{'message':((_0x1dccb4=_0x277250['error'])===null||_0x1dccb4===void 0x0?void 0x0:_0x1dccb4[_0x313907(0x182)])||'参数验证失败'});else throw new AnnError(ValidatorError_1[_0x313907(0x17d)]['PARAMS'],{'message':((_0x5f1473=(_0x263b0f=(_0x31dc1f=_0x277250['error'])===null||_0x31dc1f===void 0x0?void 0x0:_0x31dc1f[_0x313907(0x17f)])===null||_0x263b0f===void 0x0?void 0x0:_0x263b0f[0x0])===null||_0x5f1473===void 0x0?void 0x0:_0x5f1473[_0x313907(0x182)])||_0x313907(0x161)});}}if(_0x277250===null||_0x277250===void 0x0?void 0x0:_0x277250['value']){const _0x33318c=(_0x3cece2=_0x56197e===null||_0x56197e===void 0x0?void 0x0:_0x56197e['$_terms'])===null||_0x3cece2===void 0x0?void 0x0:_0x3cece2[_0x313907(0x16d)],_0x4e1958=function(_0x297732,_0x8d1a61){const _0x583c90=_0x313907;var _0x50c4d6,_0x1873df,_0x5d0e51,_0x159510,_0x468fe9,_0x224c7d,_0x43ed85,_0x3dccfb,_0x3937e8,_0x4b0c82,_0xec3aa9;for(let _0x5e368c in _0x297732){if(_0x8d1a61[(_0x50c4d6=_0x297732[_0x5e368c])===null||_0x50c4d6===void 0x0?void 0x0:_0x50c4d6[_0x583c90(0x154)]]&&((_0x5d0e51=(_0x1873df=_0x297732[_0x5e368c])===null||_0x1873df===void 0x0?void 0x0:_0x1873df[_0x583c90(0x167)])===null||_0x5d0e51===void 0x0?void 0x0:_0x5d0e51[_0x583c90(0x153)])){if(((_0x468fe9=(_0x159510=_0x297732[_0x5e368c])===null||_0x159510===void 0x0?void 0x0:_0x159510[_0x583c90(0x167)])===null||_0x468fe9===void 0x0?void 0x0:_0x468fe9[_0x583c90(0x153)])==_0x583c90(0x190))_0x8d1a61[_0x297732[_0x5e368c]['key']]=_0x4e1958((_0x43ed85=(_0x224c7d=_0x297732[_0x5e368c])===null||_0x224c7d===void 0x0?void 0x0:_0x224c7d[_0x583c90(0x167)][_0x583c90(0x184)])===null||_0x43ed85===void 0x0?void 0x0:_0x43ed85[_0x583c90(0x16d)],_0x8d1a61[_0x297732[_0x5e368c]['key']]);else{if(_0x297732[_0x5e368c][_0x583c90(0x167)][_0x583c90(0x153)]==_0x583c90(0x189)&&_0x277250['value'][(_0x3dccfb=_0x297732[_0x5e368c])===null||_0x3dccfb===void 0x0?void 0x0:_0x3dccfb['key']]){const _0x4860fb=((_0xec3aa9=(_0x4b0c82=(_0x3937e8=_0x297732[_0x5e368c])===null||_0x3937e8===void 0x0?void 0x0:_0x3937e8['schema'])===null||_0x4b0c82===void 0x0?void 0x0:_0x4b0c82['_flags'])===null||_0xec3aa9===void 0x0?void 0x0:_0xec3aa9['format'])||_0x583c90(0x163);_0x8d1a61[_0x297732[_0x5e368c][_0x583c90(0x154)]]=dayjs(_0x277250[_0x583c90(0x168)][_0x297732[_0x5e368c][_0x583c90(0x154)]])['format'](_0x4860fb);}}}}return _0x8d1a61;};return _0x4e1958(_0x33318c,_0x277250[_0x313907(0x168)]);}throw new AnnError(ValidatorError_1['ValidatorError'][_0x313907(0x160)]);}};exports[a9_0x2775c7(0x171)]=ValidatorService,__decorate([(0x0,core_1[a9_0x2775c7(0x183)])(a9_0x2775c7(0x15c)),__metadata(a9_0x2775c7(0x194),Object)],ValidatorService[a9_0x2775c7(0x169)],'i18nConfig',void 0x0),__decorate([(0x0,core_1[a9_0x2775c7(0x183)])(a9_0x2775c7(0x157)),__metadata(a9_0x2775c7(0x194),Object)],ValidatorService[a9_0x2775c7(0x169)],a9_0x2775c7(0x18b),void 0x0),__decorate([(0x0,core_1[a9_0x2775c7(0x186)])(),__metadata('design:type',i18n_1[a9_0x2775c7(0x18d)])],ValidatorService[a9_0x2775c7(0x169)],a9_0x2775c7(0x164),void 0x0),__decorate([(0x0,core_1[a9_0x2775c7(0x152)])(),__metadata(a9_0x2775c7(0x194),Function),__metadata(a9_0x2775c7(0x174),[]),__metadata('design:returntype',Promise)],ValidatorService[a9_0x2775c7(0x169)],a9_0x2775c7(0x175),null),exports[a9_0x2775c7(0x171)]=ValidatorService=__decorate([(0x0,core_1[a9_0x2775c7(0x17a)])('validator'),(0x0,core_1['Scope'])(core_1['ScopeEnum']['Singleton'])],ValidatorService);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/validator",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.10",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@anncic-api/core": "^3.7.
|
|
21
|
+
"@anncic-api/core": "^3.7.10",
|
|
22
22
|
"@joi/date": "^2.1.0",
|
|
23
23
|
"joi": "^17.11.0"
|
|
24
24
|
},
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"javascript-obfuscator": "^4.0.2",
|
|
28
28
|
"typescript": "^5.5.4"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "b8dae3f92737b85f4f053f694d4ed019c30e3bdc"
|
|
31
31
|
}
|