@anncic-api/validator 1.5.5 → 1.5.7
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_0x19c348=a0_0x6860;(function(_0x4fc215,_0x34c4c2){const _0x228267=a0_0x6860,_0x2a9fc3=_0x4fc215();while(!![]){try{const _0xf47b39=-parseInt(_0x228267(0x105))/0x1+-parseInt(_0x228267(0x100))/0x2*(parseInt(_0x228267(0xfa))/0x3)+-parseInt(_0x228267(0x103))/0x4*(parseInt(_0x228267(0xf7))/0x5)+-parseInt(_0x228267(0xf8))/0x6*(-parseInt(_0x228267(0xff))/0x7)+parseInt(_0x228267(0x109))/0x8*(-parseInt(_0x228267(0x10a))/0x9)+parseInt(_0x228267(0xfe))/0xa+-parseInt(_0x228267(0xfc))/0xb*(-parseInt(_0x228267(0x106))/0xc);if(_0xf47b39===_0x34c4c2)break;else _0x2a9fc3['push'](_0x2a9fc3['shift']());}catch(_0x3d2d89){_0x2a9fc3['push'](_0x2a9fc3['shift']());}}}(a0_0x87f5,0x9e21e));const a0_0xbf0e7=(function(){let _0x31428b=!![];return function(_0x48b04f,_0x433a73){const _0x2ebdfb=_0x31428b?function(){if(_0x433a73){const _0x15f32f=_0x433a73['apply'](_0x48b04f,arguments);return _0x433a73=null,_0x15f32f;}}:function(){};return _0x31428b=![],_0x2ebdfb;};}()),a0_0x248770=a0_0xbf0e7(this,function(){const _0x24858d=a0_0x6860;return a0_0x248770[_0x24858d(0x107)]()[_0x24858d(0xfb)](_0x24858d(0xfd))[_0x24858d(0x107)]()['constructor'](a0_0x248770)['search'](_0x24858d(0xfd));});a0_0x248770();'use strict';Object[a0_0x19c348(0x101)](exports,a0_0x19c348(0xf6),{'value':!![]});function a0_0x87f5(){const _0x3fab4c=['../../locales/en_US.json','../exception/ValidatorError','__esModule','3025310PGXaNt','408NCHcuc','../../locales/zh_CN.json','3jxjXFY','search','341HTZVQy','(((.+)+)+)+$','11097010QacpKC','116018scNHVJ','192952HESyCq','defineProperty','default','8hbBixU','ValidatorError','1030461bPVZpW','512328Tqwgfe','toString','string','418528EsOvrQ','99bxtnAu'];a0_0x87f5=function(){return _0x3fab4c;};return a0_0x87f5();}const ValidatorError_1=require(a0_0x19c348(0xf5));function a0_0x6860(_0x476060,_0x460477){const _0x520c1d=a0_0x87f5();return a0_0x6860=function(_0x248770,_0xbf0e7){_0x248770=_0x248770-0xf4;let _0x87f516=_0x520c1d[_0x248770];return _0x87f516;},a0_0x6860(_0x476060,_0x460477);}exports[a0_0x19c348(0x102)]={'validator':{'errorStatus':ValidatorError_1[a0_0x19c348(0x104)]['PARAMS'],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':a0_0x19c348(0x108)}},'i18n':{'localeTable':{'en_US':{'validator':require(a0_0x19c348(0xf4))},'zh_CN':{'validator':require(a0_0x19c348(0xf9))}}}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a1_0x2a47(_0x2cc452,_0x59767a){const _0x2a6f63=a1_0x27a2();return a1_0x2a47=function(_0x39e1b0,_0x119fba){_0x39e1b0=_0x39e1b0-0x1d3;let _0x27a2d5=_0x2a6f63[_0x39e1b0];return _0x27a2d5;},a1_0x2a47(_0x2cc452,_0x59767a);}const a1_0x50b557=a1_0x2a47;function a1_0x27a2(){const _0x3d3922=['4077792dBtgcY','__metadata','(((.+)+)+)+$','getOwnPropertyDescriptor','onReady','undefined','object','args','registerMethodHandler','CustomConfiguration','constructor','REQUEST_OBJ_CTX_KEY','toString','splice','design:type','1814744puhKLE','length','__esModule','./service/ValidatorService','search','name','7736460ZKzVYx','apply','decorate','getAttr','72hvqRkM','@anncic-api/core','2621190PvAtXA','I18N_ATTR_KEY','Inject','7hzhgrW','8284RbAZXF','prototype','12093XKnYnG','VALIDATOR_KEY','11Luivnv','params','query','locale','645deEXfg','request','propertyName','anncic-api:validator','getSchema','decorator','1979100egrNuC','function','ValidatorService','res','methodArgs','bound\x20dispatch','./config/config.default','getClassMetadata','@midwayjs/core','getMethodParamTypes','defineProperty','target','param','Configuration','metadata'];a1_0x27a2=function(){return _0x3d3922;};return a1_0x27a2();}(function(_0x210c5f,_0x1662e4){const _0x50d705=a1_0x2a47,_0x174a1e=_0x210c5f();while(!![]){try{const _0x22c8b0=-parseInt(_0x50d705(0x1f8))/0x1*(parseInt(_0x50d705(0x1f0))/0x2)+-parseInt(_0x50d705(0x1fe))/0x3*(-parseInt(_0x50d705(0x1f6))/0x4)+parseInt(_0x50d705(0x204))/0x5+parseInt(_0x50d705(0x1f2))/0x6+-parseInt(_0x50d705(0x1f5))/0x7*(parseInt(_0x50d705(0x1e6))/0x8)+parseInt(_0x50d705(0x1d7))/0x9+-parseInt(_0x50d705(0x1ec))/0xa*(parseInt(_0x50d705(0x1fa))/0xb);if(_0x22c8b0===_0x1662e4)break;else _0x174a1e['push'](_0x174a1e['shift']());}catch(_0x5a2aaa){_0x174a1e['push'](_0x174a1e['shift']());}}}(a1_0x27a2,0x48121));const a1_0x119fba=(function(){let _0x4760df=!![];return function(_0x50ece9,_0x271010){const _0x8b462c=_0x4760df?function(){const _0x16b948=a1_0x2a47;if(_0x271010){const _0x2b9e1a=_0x271010[_0x16b948(0x1ed)](_0x50ece9,arguments);return _0x271010=null,_0x2b9e1a;}}:function(){};return _0x4760df=![],_0x8b462c;};}()),a1_0x39e1b0=a1_0x119fba(this,function(){const _0x17ad3c=a1_0x2a47;return a1_0x39e1b0[_0x17ad3c(0x1e3)]()[_0x17ad3c(0x1ea)](_0x17ad3c(0x1d9))[_0x17ad3c(0x1e3)]()[_0x17ad3c(0x1e1)](a1_0x39e1b0)['search'](_0x17ad3c(0x1d9));});a1_0x39e1b0();'use strict';var __decorate=this&&this['__decorate']||function(_0xf82ab,_0x4cb731,_0x3704cb,_0x406320){const _0x44dd37=a1_0x2a47;var _0x22f6df=arguments['length'],_0x5a1aa9=_0x22f6df<0x3?_0x4cb731:_0x406320===null?_0x406320=Object[_0x44dd37(0x1da)](_0x4cb731,_0x3704cb):_0x406320,_0x48325c;if(typeof Reflect===_0x44dd37(0x1dd)&&typeof Reflect[_0x44dd37(0x1ee)]===_0x44dd37(0x205))_0x5a1aa9=Reflect[_0x44dd37(0x1ee)](_0xf82ab,_0x4cb731,_0x3704cb,_0x406320);else{for(var _0x2889fe=_0xf82ab[_0x44dd37(0x1e7)]-0x1;_0x2889fe>=0x0;_0x2889fe--)if(_0x48325c=_0xf82ab[_0x2889fe])_0x5a1aa9=(_0x22f6df<0x3?_0x48325c(_0x5a1aa9):_0x22f6df>0x3?_0x48325c(_0x4cb731,_0x3704cb,_0x5a1aa9):_0x48325c(_0x4cb731,_0x3704cb))||_0x5a1aa9;}return _0x22f6df>0x3&&_0x5a1aa9&&Object[_0x44dd37(0x20e)](_0x4cb731,_0x3704cb,_0x5a1aa9),_0x5a1aa9;},__metadata=this&&this[a1_0x50b557(0x1d8)]||function(_0x182da6,_0x243a47){const _0x384627=a1_0x50b557;if(typeof Reflect===_0x384627(0x1dd)&&typeof Reflect[_0x384627(0x1d6)]===_0x384627(0x205))return Reflect['metadata'](_0x182da6,_0x243a47);};Object[a1_0x50b557(0x20e)](exports,a1_0x50b557(0x1e8),{'value':!![]}),exports[a1_0x50b557(0x1e0)]=void 0x0;const i18n_1=require('@midwayjs/i18n'),core_1=require('@midwayjs/core'),core_2=require(a1_0x50b557(0x20c)),interface_1=require('./interface'),ValidatorService_1=require(a1_0x50b557(0x1e9)),i18n=require('@midwayjs/i18n'),anncic=require(a1_0x50b557(0x1f1)),ConfigDefault=require(a1_0x50b557(0x20a));let CustomConfiguration=class CustomConfiguration{async[a1_0x50b557(0x1db)](){const _0x43c9f2=a1_0x50b557;this[_0x43c9f2(0x203)][_0x43c9f2(0x1df)](interface_1[_0x43c9f2(0x1f9)],_0x42e206=>{const _0x2024ec=_0x43c9f2,_0x57eb7a=_0x42e206[_0x2024ec(0x1d6)],_0x1937af=(0x0,core_2[_0x2024ec(0x20d)])(_0x42e206['target'],_0x42e206[_0x2024ec(0x200)]);return{'before':_0x30c769=>{const _0x5f7387=_0x2024ec;var _0x29a9ba,_0x3cbcbb,_0x4e1526,_0x1a15fd,_0x579154,_0x38e315,_0x2197cb,_0x33bf4b,_0x25ccab,_0xaa3743,_0x1863ce,_0x44ab87,_0x5e53a3;const _0x355443=_0x30c769[_0x5f7387(0x1d3)][core_1[_0x5f7387(0x1e2)]],_0x2a1e55=Object['assign']({},((_0x29a9ba=_0x355443===null||_0x355443===void 0x0?void 0x0:_0x355443[_0x5f7387(0x1ff)])===null||_0x29a9ba===void 0x0?void 0x0:_0x29a9ba[_0x5f7387(0x1fc)])||{},((_0x3cbcbb=_0x355443===null||_0x355443===void 0x0?void 0x0:_0x355443[_0x5f7387(0x1ff)])===null||_0x3cbcbb===void 0x0?void 0x0:_0x3cbcbb['body'])||{}),_0x369509=((0x0,core_2[_0x5f7387(0x20b)])(interface_1[_0x5f7387(0x1f9)],_0x30c769[_0x5f7387(0x1d3)])||[])['find'](_0x11ff4c=>_0x11ff4c['method']==_0x30c769['methodName']);!(_0x57eb7a===null||_0x57eb7a===void 0x0?void 0x0:_0x57eb7a['locale'])&&_0x355443&&_0x355443[_0x5f7387(0x1ef)]&&(_0x57eb7a[_0x5f7387(0x1fd)]=_0x355443[_0x5f7387(0x1ef)](i18n_1[_0x5f7387(0x1f3)]));for(let _0x4a294c=0x0;_0x4a294c<_0x1937af[_0x5f7387(0x1e7)];_0x4a294c++){const _0x2f6659=_0x1937af[_0x4a294c],_0x409299=this[_0x5f7387(0x206)][_0x5f7387(0x202)](_0x2f6659);if(_0x409299){if(typeof _0x30c769['args'][_0x4a294c]==_0x5f7387(0x1dc)||((_0x4e1526=_0x30c769[_0x5f7387(0x1de)][_0x4a294c])===null||_0x4e1526===void 0x0?void 0x0:_0x4e1526[_0x5f7387(0x1ff)])&&((_0x1a15fd=_0x30c769[_0x5f7387(0x1de)][_0x4a294c])===null||_0x1a15fd===void 0x0?void 0x0:_0x1a15fd[_0x5f7387(0x207)])&&((_0x579154=_0x30c769[_0x5f7387(0x1de)][_0x4a294c])===null||_0x579154===void 0x0?void 0x0:_0x579154['req']))_0x30c769[_0x5f7387(0x1de)][_0x4a294c]=_0x2a1e55;else((_0x38e315=_0x30c769[_0x5f7387(0x1de)][_0x4a294c])===null||_0x38e315===void 0x0?void 0x0:_0x38e315[_0x5f7387(0x1eb)])==_0x5f7387(0x209)&&_0x30c769[_0x5f7387(0x1de)][_0x5f7387(0x1e4)](_0x4a294c,0x0,_0x2a1e55);const _0x57b276=this[_0x5f7387(0x206)]['validator'](_0x409299,_0x30c769[_0x5f7387(0x1de)][_0x4a294c],_0x57eb7a);_0x57b276&&(_0x30c769[_0x5f7387(0x1de)][_0x4a294c]=_0x57b276);}else{if((_0x369509===null||_0x369509===void 0x0?void 0x0:_0x369509[_0x5f7387(0x208)][_0x4a294c])&&((_0x2197cb=_0x30c769[_0x5f7387(0x1de)][_0x4a294c])===null||_0x2197cb===void 0x0?void 0x0:_0x2197cb[_0x5f7387(0x1fb)])&&typeof _0x30c769['args'][_0x4a294c][_0x5f7387(0x1d4)]==_0x5f7387(0x205)&&((_0x33bf4b=_0x355443===null||_0x355443===void 0x0?void 0x0:_0x355443[_0x5f7387(0x1fb)])===null||_0x33bf4b===void 0x0?void 0x0:_0x33bf4b[_0x369509[_0x5f7387(0x208)][_0x4a294c]]))_0x30c769[_0x5f7387(0x1de)][_0x4a294c]=_0x2f6659((_0x25ccab=_0x355443===null||_0x355443===void 0x0?void 0x0:_0x355443[_0x5f7387(0x1fb)])===null||_0x25ccab===void 0x0?void 0x0:_0x25ccab[_0x369509['methodArgs'][_0x4a294c]]);else(_0x369509===null||_0x369509===void 0x0?void 0x0:_0x369509[_0x5f7387(0x208)][_0x4a294c])&&((_0x1863ce=(_0xaa3743=_0x30c769[_0x5f7387(0x1de)][_0x4a294c])===null||_0xaa3743===void 0x0?void 0x0:_0xaa3743[_0x5f7387(0x1fb)])===null||_0x1863ce===void 0x0?void 0x0:_0x1863ce[_0x369509['methodArgs'][_0x4a294c]])&&(_0x30c769[_0x5f7387(0x1de)][_0x4a294c]=(_0x5e53a3=(_0x44ab87=_0x30c769[_0x5f7387(0x1de)][_0x4a294c])===null||_0x44ab87===void 0x0?void 0x0:_0x44ab87[_0x5f7387(0x1fb)])===null||_0x5e53a3===void 0x0?void 0x0:_0x5e53a3[_0x369509[_0x5f7387(0x208)][_0x4a294c]]);}}},'afterThrow':(_0x20c0af,_0x4b4ac6)=>{throw _0x4b4ac6;}};});}};__decorate([(0x0,core_2[a1_0x50b557(0x1f4)])(),__metadata('design:type',core_1['MidwayDecoratorService'])],CustomConfiguration[a1_0x50b557(0x1f7)],a1_0x50b557(0x203),void 0x0),__decorate([(0x0,core_2[a1_0x50b557(0x1f4)])(),__metadata(a1_0x50b557(0x1e5),ValidatorService_1[a1_0x50b557(0x206)])],CustomConfiguration[a1_0x50b557(0x1f7)],a1_0x50b557(0x206),void 0x0),CustomConfiguration=__decorate([(0x0,core_2[a1_0x50b557(0x1d5)])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':a1_0x50b557(0x201),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x50b557(0x1e0)]=CustomConfiguration;
|
package/dist/decorator/Rule.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0x337126=a2_0x185d;(function(_0x3b00cc,_0x15bb44){const _0x5c32b9=a2_0x185d,_0x5c0813=_0x3b00cc();while(!![]){try{const _0x3b2de7=parseInt(_0x5c32b9(0x129))/0x1+-parseInt(_0x5c32b9(0x134))/0x2*(parseInt(_0x5c32b9(0x135))/0x3)+parseInt(_0x5c32b9(0x13b))/0x4*(-parseInt(_0x5c32b9(0x140))/0x5)+-parseInt(_0x5c32b9(0x120))/0x6+parseInt(_0x5c32b9(0x12e))/0x7+parseInt(_0x5c32b9(0x133))/0x8+-parseInt(_0x5c32b9(0x123))/0x9*(-parseInt(_0x5c32b9(0x12f))/0xa);if(_0x3b2de7===_0x15bb44)break;else _0x5c0813['push'](_0x5c0813['shift']());}catch(_0x534ba5){_0x5c0813['push'](_0x5c0813['shift']());}}}(a2_0x3019,0xb26ff));const a2_0x1bd004=(function(){let _0x4444cb=!![];return function(_0x38ae6c,_0x27e48c){const _0x81590a=_0x4444cb?function(){if(_0x27e48c){const _0xd09c35=_0x27e48c['apply'](_0x38ae6c,arguments);return _0x27e48c=null,_0xd09c35;}}:function(){};return _0x4444cb=![],_0x81590a;};}()),a2_0x4bcd6a=a2_0x1bd004(this,function(){const _0x400025=a2_0x185d;return a2_0x4bcd6a[_0x400025(0x13a)]()[_0x400025(0x13f)]('(((.+)+)+)+$')[_0x400025(0x13a)]()[_0x400025(0x138)](a2_0x4bcd6a)[_0x400025(0x13f)](_0x400025(0x139));});a2_0x4bcd6a();'use strict';Object[a2_0x337126(0x13d)](exports,a2_0x337126(0x136),{'value':!![]}),exports[a2_0x337126(0x11e)]=exports[a2_0x337126(0x127)]=void 0x0;function a2_0x3019(){const _0xca5eba=['meta','label','function','items','445235hPMLfA','280NhBWrl','joi','map','isSchema','4413144GUoOUb','2hzRkIL','457656NiamWu','__esModule','name','constructor','(((.+)+)+)+$','toString','892ljoaWH','default','defineProperty','getClassMetadata','search','2815PMeWQc','../interface','attachClassMetadata','Rule','saveClassMetadata','3012864eShbAG','@midwayjs/core','RULES_KEY','6237RYaAau','array','description','keys','RuleType','Array','876472erogGf'];a2_0x3019=function(){return _0xca5eba;};return a2_0x3019();}const joi=require(a2_0x337126(0x130)),date_1=require('@joi/date'),core_1=require(a2_0x337126(0x121)),interface_1=require(a2_0x337126(0x141));exports[a2_0x337126(0x127)]=joi['extend'](date_1[a2_0x337126(0x13c)]);function a2_0x185d(_0x44893c,_0x39ac4b){const _0x2f9a2e=a2_0x3019();return a2_0x185d=function(_0x4bcd6a,_0x1bd004){_0x4bcd6a=_0x4bcd6a-0x11d;let _0x3019b8=_0x2f9a2e[_0x4bcd6a];return _0x3019b8;},a2_0x185d(_0x44893c,_0x39ac4b);}function Rule(_0x22bc3e,_0x2843df,_0x2a710b=''){return(_0x5b6904,_0x410d16)=>{const _0x46b38c=a2_0x185d;var _0x21a06b;if(_0x410d16)!joi[_0x46b38c(0x132)](_0x2843df)&&(_0x2843df===null||_0x2843df===void 0x0?void 0x0:_0x2843df[_0x46b38c(0x137)])&&(_0x2843df=joi['object']((0x0,core_1[_0x46b38c(0x13e)])(interface_1[_0x46b38c(0x122)],_0x2843df))[_0x46b38c(0x12a)]({'id':_0x2843df['name']}),(0x0,core_1['getPropertyType'])(_0x5b6904,_0x410d16)[_0x46b38c(0x137)]===_0x46b38c(0x128)&&(_0x2843df=joi[_0x46b38c(0x124)]()[_0x46b38c(0x12d)](_0x2843df))),joi['isSchema'](_0x2843df)&&(_0x22bc3e&&typeof(_0x2843df===null||_0x2843df===void 0x0?void 0x0:_0x2843df[_0x46b38c(0x12b)])==_0x46b38c(0x12c)&&(_0x2843df=_0x2843df[_0x46b38c(0x12b)](_0x22bc3e)),_0x2a710b&&typeof(_0x2843df===null||_0x2843df===void 0x0?void 0x0:_0x2843df[_0x46b38c(0x125)])=='function'&&(_0x2843df=_0x2843df['description'](_0x2a710b)),(0x0,core_1[_0x46b38c(0x11d)])(interface_1[_0x46b38c(0x122)],_0x2843df,_0x5b6904,_0x410d16));else{const _0x72ab35=(0x0,core_1[_0x46b38c(0x13e)])(interface_1['RULES_KEY'],_0x2843df);if(_0x72ab35){let _0x290c38=(_0x21a06b=(0x0,core_1['getClassMetadata'])(interface_1[_0x46b38c(0x122)],_0x5b6904))!==null&&_0x21a06b!==void 0x0?_0x21a06b:{};Object[_0x46b38c(0x126)](_0x72ab35)[_0x46b38c(0x131)](_0x118adf=>{!_0x290c38[_0x118adf]&&(_0x290c38[_0x118adf]=_0x72ab35[_0x118adf]);}),(0x0,core_1[_0x46b38c(0x11f)])(interface_1[_0x46b38c(0x122)],_0x290c38,_0x5b6904);}}};}exports[a2_0x337126(0x11e)]=Rule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x306999=a3_0x1d54;(function(_0x2d7dbd,_0x54a443){const _0x38db48=a3_0x1d54,_0x1f1d43=_0x2d7dbd();while(!![]){try{const _0x178c28=-parseInt(_0x38db48(0x1b2))/0x1*(-parseInt(_0x38db48(0x1a1))/0x2)+-parseInt(_0x38db48(0x1a4))/0x3*(parseInt(_0x38db48(0x1ac))/0x4)+-parseInt(_0x38db48(0x1b7))/0x5+-parseInt(_0x38db48(0x1b0))/0x6+-parseInt(_0x38db48(0x1ae))/0x7+-parseInt(_0x38db48(0x1b3))/0x8*(parseInt(_0x38db48(0x1ad))/0x9)+-parseInt(_0x38db48(0x1a9))/0xa*(-parseInt(_0x38db48(0x1a3))/0xb);if(_0x178c28===_0x54a443)break;else _0x1f1d43['push'](_0x1f1d43['shift']());}catch(_0xdc9485){_0x1f1d43['push'](_0x1f1d43['shift']());}}}(a3_0x34b8,0x803b7));const a3_0x8d65c2=(function(){let _0x520d30=!![];return function(_0xf7be68,_0xa0ff64){const _0x14e2b1=_0x520d30?function(){if(_0xa0ff64){const _0x5595c4=_0xa0ff64['apply'](_0xf7be68,arguments);return _0xa0ff64=null,_0x5595c4;}}:function(){};return _0x520d30=![],_0x14e2b1;};}()),a3_0x3c9c58=a3_0x8d65c2(this,function(){const _0x4ccb5f=a3_0x1d54;return a3_0x3c9c58[_0x4ccb5f(0x19f)]()['search'](_0x4ccb5f(0x1af))[_0x4ccb5f(0x19f)]()[_0x4ccb5f(0x1a2)](a3_0x3c9c58)[_0x4ccb5f(0x1a8)](_0x4ccb5f(0x1af));});a3_0x3c9c58();'use strict';Object[a3_0x306999(0x1a7)](exports,'__esModule',{'value':!![]}),exports[a3_0x306999(0x1a6)]=exports[a3_0x306999(0x1b8)]=void 0x0;function a3_0x34b8(){const _0xa51fb0=['4262062zOiyVB','(((.+)+)+)+$','2243820loWFkk','prototype','44435zBvgJD','8oPwSbb','attachClassMetadata','replace','function','2056070esIpbK','Validator','createCustomMethodDecorator','toString','../interface','34COfyNn','constructor','26949549tnFfhc','28599AnkAQW','VALIDATOR_KEY','getFuncArgs','defineProperty','search','10IoGeoP','@midwayjs/core','indexOf','280Kjqeat','5568795oQMmrB'];a3_0x34b8=function(){return _0xa51fb0;};return a3_0x34b8();}const core_1=require(a3_0x306999(0x1aa)),interface_1=require(a3_0x306999(0x1a0));function Validator(_0x57221e={}){return(_0x10d554,_0x36f280,_0x27fc3f)=>{const _0x5492e0=a3_0x1d54,_0x5a2f18=getFuncArgs(_0x10d554[_0x36f280]);(0x0,core_1[_0x5492e0(0x1b4)])(interface_1[_0x5492e0(0x1a5)],{'method':_0x36f280,'methodArgs':_0x5a2f18},_0x10d554),(0x0,core_1[_0x5492e0(0x1b9)])(interface_1[_0x5492e0(0x1a5)],_0x57221e)(_0x10d554,_0x36f280,_0x27fc3f);};}exports['Validator']=Validator;function a3_0x1d54(_0x5eab73,_0xd357de){const _0x2d6c6e=a3_0x34b8();return a3_0x1d54=function(_0x3c9c58,_0x8d65c2){_0x3c9c58=_0x3c9c58-0x19f;let _0x34b836=_0x2d6c6e[_0x3c9c58];return _0x34b836;},a3_0x1d54(_0x5eab73,_0xd357de);}function getFuncArgs(_0x3c00ca){const _0x2a3f18=a3_0x306999;if(typeof _0x3c00ca==_0x2a3f18(0x1b6)){const _0x6b9936=/=>.*$/mg,_0x3fe378=/=[^,)]+/mg,_0x201fba=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x79c7ef=(_0x3c00ca[_0x2a3f18(0x1b1)]?_0x3c00ca[_0x2a3f18(0x1b1)][_0x2a3f18(0x1a2)][_0x2a3f18(0x19f)]():_0x3c00ca[_0x2a3f18(0x19f)]())[_0x2a3f18(0x1b5)](_0x201fba,'')[_0x2a3f18(0x1b5)](_0x6b9936,'')[_0x2a3f18(0x1b5)](_0x3fe378,''),_0x51c7b5=_0x79c7ef['slice'](_0x79c7ef['indexOf']('(')+0x1,_0x79c7ef[_0x2a3f18(0x1ab)](')'))['match'](/([^\s,]+)/g)||[];return _0x51c7b5;}}exports[a3_0x306999(0x1a6)]=getFuncArgs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a4_0x174b4f=a4_0x4479;(function(_0x339b80,_0x1debf6){var _0x307823=a4_0x4479,_0xcbfbdc=_0x339b80();while(!![]){try{var _0x3345d2=-parseInt(_0x307823(0x1a7))/0x1+parseInt(_0x307823(0x1b7))/0x2*(parseInt(_0x307823(0x1a2))/0x3)+-parseInt(_0x307823(0x1b4))/0x4*(parseInt(_0x307823(0x1ad))/0x5)+-parseInt(_0x307823(0x1b3))/0x6+-parseInt(_0x307823(0x1b0))/0x7+parseInt(_0x307823(0x1ab))/0x8*(parseInt(_0x307823(0x1a1))/0x9)+parseInt(_0x307823(0x1a3))/0xa;if(_0x3345d2===_0x1debf6)break;else _0xcbfbdc['push'](_0xcbfbdc['shift']());}catch(_0x4a459c){_0xcbfbdc['push'](_0xcbfbdc['shift']());}}}(a4_0x524a,0x68489));function a4_0x524a(){var _0x395758=['length','@anncic-api/core','4469584BBXpzD','(((.+)+)+)+$','ValidatorError','362178Vouqwr','17812ZZQTCN','function','apply','424142SMDrXW','__esModule','constructor','search','参数验证失败','defineProperty','toString','336987qIQAEG','3DwvUKr','16743920JNfHJw','design:type','AnnErrorMsg','NOFIND_SCHEMA','366949nBWAxP','metadata','decorate','getOwnPropertyDescriptor','32YFzUTV','object','610YeUgAX'];a4_0x524a=function(){return _0x395758;};return a4_0x524a();}var a4_0x57a506=(function(){var _0x312f05=!![];return function(_0x5754be,_0x2a8914){var _0x11b300=_0x312f05?function(){var _0x55bee6=a4_0x4479;if(_0x2a8914){var _0x4eda16=_0x2a8914[_0x55bee6(0x1b6)](_0x5754be,arguments);return _0x2a8914=null,_0x4eda16;}}:function(){};return _0x312f05=![],_0x11b300;};}()),a4_0x1862da=a4_0x57a506(this,function(){var _0x356c15=a4_0x4479;return a4_0x1862da['toString']()[_0x356c15(0x1ba)]('(((.+)+)+)+$')[_0x356c15(0x1a0)]()[_0x356c15(0x1b9)](a4_0x1862da)[_0x356c15(0x1ba)](_0x356c15(0x1b1));});a4_0x1862da();function a4_0x4479(_0x2741f4,_0x7ff6d8){var _0x1e61d7=a4_0x524a();return a4_0x4479=function(_0x1862da,_0x57a506){_0x1862da=_0x1862da-0x1a0;var _0x524ac6=_0x1e61d7[_0x1862da];return _0x524ac6;},a4_0x4479(_0x2741f4,_0x7ff6d8);}'use strict';var __decorate=this&&this['__decorate']||function(_0x34f28c,_0x19d55f,_0x20a456,_0x25a868){var _0x3f779b=a4_0x4479,_0x212d9a=arguments[_0x3f779b(0x1ae)],_0x2b6554=_0x212d9a<0x3?_0x19d55f:_0x25a868===null?_0x25a868=Object[_0x3f779b(0x1aa)](_0x19d55f,_0x20a456):_0x25a868,_0x3584aa;if(typeof Reflect===_0x3f779b(0x1ac)&&typeof Reflect[_0x3f779b(0x1a9)]===_0x3f779b(0x1b5))_0x2b6554=Reflect[_0x3f779b(0x1a9)](_0x34f28c,_0x19d55f,_0x20a456,_0x25a868);else{for(var _0x470819=_0x34f28c['length']-0x1;_0x470819>=0x0;_0x470819--)if(_0x3584aa=_0x34f28c[_0x470819])_0x2b6554=(_0x212d9a<0x3?_0x3584aa(_0x2b6554):_0x212d9a>0x3?_0x3584aa(_0x19d55f,_0x20a456,_0x2b6554):_0x3584aa(_0x19d55f,_0x20a456))||_0x2b6554;}return _0x212d9a>0x3&&_0x2b6554&&Object['defineProperty'](_0x19d55f,_0x20a456,_0x2b6554),_0x2b6554;},__metadata=this&&this['__metadata']||function(_0x421112,_0x15fe29){var _0x4f32b9=a4_0x4479;if(typeof Reflect===_0x4f32b9(0x1ac)&&typeof Reflect['metadata']===_0x4f32b9(0x1b5))return Reflect[_0x4f32b9(0x1a8)](_0x421112,_0x15fe29);};Object[a4_0x174b4f(0x1bc)](exports,a4_0x174b4f(0x1b8),{'value':!![]}),exports[a4_0x174b4f(0x1b2)]=void 0x0;const core_1=require(a4_0x174b4f(0x1af));class ValidatorError{}ValidatorError['PARAMS']=0x3df374,ValidatorError['NOFIND_SCHEMA']=0x3df36a,__decorate([(0x0,core_1[a4_0x174b4f(0x1a5)])(a4_0x174b4f(0x1bb)),__metadata('design:type',Object)],ValidatorError,'PARAMS',void 0x0),__decorate([(0x0,core_1[a4_0x174b4f(0x1a5)])(a4_0x174b4f(0x1bb)),__metadata(a4_0x174b4f(0x1a4),Object)],ValidatorError,a4_0x174b4f(0x1a6),void 0x0),exports[a4_0x174b4f(0x1b2)]=ValidatorError;
|
package/dist/helper/dtoHelper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x1bca5b=a5_0x28cd;function a5_0x28cd(_0x2b970d,_0x121ad0){const _0x24fdf1=a5_0x12a9();return a5_0x28cd=function(_0x3589ec,_0x306f78){_0x3589ec=_0x3589ec-0x1d9;let _0x12a9f3=_0x24fdf1[_0x3589ec];return _0x12a9f3;},a5_0x28cd(_0x2b970d,_0x121ad0);}(function(_0x39b2de,_0x437ae6){const _0x52be8a=a5_0x28cd,_0x28e012=_0x39b2de();while(!![]){try{const _0x538106=parseInt(_0x52be8a(0x1da))/0x1*(-parseInt(_0x52be8a(0x1ec))/0x2)+parseInt(_0x52be8a(0x1ea))/0x3+parseInt(_0x52be8a(0x1ed))/0x4*(parseInt(_0x52be8a(0x1dc))/0x5)+parseInt(_0x52be8a(0x1e2))/0x6*(parseInt(_0x52be8a(0x1f0))/0x7)+parseInt(_0x52be8a(0x1dd))/0x8*(-parseInt(_0x52be8a(0x1de))/0x9)+parseInt(_0x52be8a(0x1e1))/0xa+-parseInt(_0x52be8a(0x1ee))/0xb;if(_0x538106===_0x437ae6)break;else _0x28e012['push'](_0x28e012['shift']());}catch(_0x6d42df){_0x28e012['push'](_0x28e012['shift']());}}}(a5_0x12a9,0x67922));const a5_0x306f78=(function(){let _0x64a33c=!![];return function(_0x4e1caa,_0x314649){const _0x1520ac=_0x64a33c?function(){if(_0x314649){const _0x547389=_0x314649['apply'](_0x4e1caa,arguments);return _0x314649=null,_0x547389;}}:function(){};return _0x64a33c=![],_0x1520ac;};}()),a5_0x3589ec=a5_0x306f78(this,function(){const _0x310f4b=a5_0x28cd;return a5_0x3589ec[_0x310f4b(0x1eb)]()[_0x310f4b(0x1e0)](_0x310f4b(0x1ef))[_0x310f4b(0x1eb)]()['constructor'](a5_0x3589ec)[_0x310f4b(0x1e0)](_0x310f4b(0x1ef));});a5_0x3589ec();'use strict';Object[a5_0x1bca5b(0x1e4)](exports,a5_0x1bca5b(0x1e3),{'value':!![]}),exports[a5_0x1bca5b(0x1d9)]=exports[a5_0x1bca5b(0x1e5)]=void 0x0;const core_1=require(a5_0x1bca5b(0x1e6)),interface_1=require('../interface');function PickDto(_0x82c538,_0xab4d45){const _0x46a8ee=a5_0x1bca5b,_0x2c5fab=function(){};_0x2c5fab[_0x46a8ee(0x1df)]=_0x82c538['prototype'];const _0x3bac04=(0x0,core_1['getClassExtendedMetadata'])(interface_1[_0x46a8ee(0x1e7)],_0x82c538),_0x3b3a18={};for(const _0x2fd1b0 of _0xab4d45){_0x3bac04[_0x2fd1b0]&&(_0x3b3a18[_0x2fd1b0]=_0x3bac04[_0x2fd1b0]);}return(0x0,core_1[_0x46a8ee(0x1db)])(interface_1['RULES_KEY'],_0x3b3a18,_0x2c5fab),_0x2c5fab;}exports[a5_0x1bca5b(0x1e5)]=PickDto;function OmitDto(_0x43d8d1,_0x567cdd){const _0x51fc19=a5_0x1bca5b,_0x326a2d=function(){};_0x326a2d[_0x51fc19(0x1df)]=_0x43d8d1[_0x51fc19(0x1df)];const _0x269e29=(0x0,core_1[_0x51fc19(0x1e8)])(interface_1[_0x51fc19(0x1e7)],_0x43d8d1),_0x1e86d6=Object[_0x51fc19(0x1e9)]({},_0x269e29);for(const _0x494489 of _0x567cdd){delete _0x1e86d6[_0x494489];}return(0x0,core_1['saveClassMetadata'])(interface_1[_0x51fc19(0x1e7)],_0x1e86d6,_0x326a2d),_0x326a2d;}exports[a5_0x1bca5b(0x1d9)]=OmitDto;function a5_0x12a9(){const _0x521515=['search','1573460pCVlNy','2946SiwxYS','__esModule','defineProperty','PickDto','@midwayjs/core','RULES_KEY','getClassExtendedMetadata','assign','1182663TmkAcS','toString','704386GEyFfm','4CQCIes','1982101tVgWeW','(((.+)+)+)+$','5019gFXqho','OmitDto','1JzkiWY','saveClassMetadata','1215035HYnfwa','24veXFUz','570033AxtyFX','prototype'];a5_0x12a9=function(){return _0x521515;};return a5_0x12a9();}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a6_0x5eac89=a6_0x50e8;function a6_0x4269(){var _0x185b4e=['./decorator/Validator','__esModule','./exception/ValidatorError','77HDmOUr','call','defineProperty','./interface','617984rfHqIJ','122730IsznTL','ValidatorError','558153ruVdcG','search','__exportStar','hasOwnProperty','Rule','get','(((.+)+)+)+$','create','Validator','135677FPEReK','RuleType','./helper/dtoHelper','__createBinding','8hgqEHi','default','ValidatorService','75755Bxegah','17793iQclsx','constructor','configurable','getOwnPropertyDescriptor','CustomConfiguration','prototype','apply','42OTTQQk','60qgjrnk','writable','Configuration','./decorator/Rule','1082585lKQbTt'];a6_0x4269=function(){return _0x185b4e;};return a6_0x4269();}(function(_0x310a7e,_0x54e348){var _0x2601b8=a6_0x50e8,_0x946f0f=_0x310a7e();while(!![]){try{var _0x3bcdc9=parseInt(_0x2601b8(0x14a))/0x1+parseInt(_0x2601b8(0x15a))/0x2*(-parseInt(_0x2601b8(0x152))/0x3)+parseInt(_0x2601b8(0x13e))/0x4+-parseInt(_0x2601b8(0x151))/0x5*(parseInt(_0x2601b8(0x159))/0x6)+parseInt(_0x2601b8(0x15e))/0x7*(parseInt(_0x2601b8(0x14e))/0x8)+parseInt(_0x2601b8(0x141))/0x9+parseInt(_0x2601b8(0x13f))/0xa*(-parseInt(_0x2601b8(0x162))/0xb);if(_0x3bcdc9===_0x54e348)break;else _0x946f0f['push'](_0x946f0f['shift']());}catch(_0x395191){_0x946f0f['push'](_0x946f0f['shift']());}}}(a6_0x4269,0x216f3));var a6_0x25f3ba=(function(){var _0x5e8cb1=!![];return function(_0x1b2b7b,_0x50bf44){var _0x1c140d=_0x5e8cb1?function(){var _0x4f602e=a6_0x50e8;if(_0x50bf44){var _0x3f7f9f=_0x50bf44[_0x4f602e(0x158)](_0x1b2b7b,arguments);return _0x50bf44=null,_0x3f7f9f;}}:function(){};return _0x5e8cb1=![],_0x1c140d;};}()),a6_0xfb5c2a=a6_0x25f3ba(this,function(){var _0x4c2dba=a6_0x50e8;return a6_0xfb5c2a['toString']()[_0x4c2dba(0x142)](_0x4c2dba(0x147))['toString']()[_0x4c2dba(0x153)](a6_0xfb5c2a)['search'](_0x4c2dba(0x147));});a6_0xfb5c2a();'use strict';var __createBinding=this&&this[a6_0x5eac89(0x14d)]||(Object[a6_0x5eac89(0x148)]?function(_0x21e46d,_0x3d4d2d,_0x187753,_0x229286){var _0x4f9f28=a6_0x5eac89;if(_0x229286===undefined)_0x229286=_0x187753;var _0xaa8c5a=Object[_0x4f9f28(0x155)](_0x3d4d2d,_0x187753);(!_0xaa8c5a||(_0x4f9f28(0x146)in _0xaa8c5a?!_0x3d4d2d[_0x4f9f28(0x160)]:_0xaa8c5a[_0x4f9f28(0x15b)]||_0xaa8c5a[_0x4f9f28(0x154)]))&&(_0xaa8c5a={'enumerable':!![],'get':function(){return _0x3d4d2d[_0x187753];}}),Object[_0x4f9f28(0x13c)](_0x21e46d,_0x229286,_0xaa8c5a);}:function(_0x2bae0a,_0x3d7980,_0x3e32d9,_0x30d1aa){if(_0x30d1aa===undefined)_0x30d1aa=_0x3e32d9;_0x2bae0a[_0x30d1aa]=_0x3d7980[_0x3e32d9];}),__exportStar=this&&this[a6_0x5eac89(0x143)]||function(_0x15c5ca,_0x46f8e7){var _0x280e4a=a6_0x5eac89;for(var _0x50d840 in _0x15c5ca)if(_0x50d840!==_0x280e4a(0x14f)&&!Object[_0x280e4a(0x157)][_0x280e4a(0x144)][_0x280e4a(0x13b)](_0x46f8e7,_0x50d840))__createBinding(_0x46f8e7,_0x15c5ca,_0x50d840);};Object[a6_0x5eac89(0x13c)](exports,a6_0x5eac89(0x160),{'value':!![]}),exports[a6_0x5eac89(0x15c)]=exports[a6_0x5eac89(0x150)]=exports[a6_0x5eac89(0x140)]=exports[a6_0x5eac89(0x14b)]=exports[a6_0x5eac89(0x145)]=exports[a6_0x5eac89(0x149)]=void 0x0,__exportStar(require(a6_0x5eac89(0x13d)),exports),__exportStar(require(a6_0x5eac89(0x14c)),exports);var Validator_1=require(a6_0x5eac89(0x15f));function a6_0x50e8(_0x13ea60,_0xf8ccb2){var _0x30338a=a6_0x4269();return a6_0x50e8=function(_0xfb5c2a,_0x25f3ba){_0xfb5c2a=_0xfb5c2a-0x13b;var _0x42699a=_0x30338a[_0xfb5c2a];return _0x42699a;},a6_0x50e8(_0x13ea60,_0xf8ccb2);}Object[a6_0x5eac89(0x13c)](exports,'Validator',{'enumerable':!![],'get':function(){var _0x1053fd=a6_0x5eac89;return Validator_1[_0x1053fd(0x149)];}});var Rule_1=require(a6_0x5eac89(0x15d));Object[a6_0x5eac89(0x13c)](exports,a6_0x5eac89(0x145),{'enumerable':!![],'get':function(){return Rule_1['Rule'];}}),Object[a6_0x5eac89(0x13c)](exports,'RuleType',{'enumerable':!![],'get':function(){var _0x52685f=a6_0x5eac89;return Rule_1[_0x52685f(0x14b)];}});var ValidatorError_1=require(a6_0x5eac89(0x161));Object[a6_0x5eac89(0x13c)](exports,a6_0x5eac89(0x140),{'enumerable':!![],'get':function(){var _0x2ae25c=a6_0x5eac89;return ValidatorError_1[_0x2ae25c(0x140)];}});var ValidatorService_1=require('./service/ValidatorService');Object[a6_0x5eac89(0x13c)](exports,'ValidatorService',{'enumerable':!![],'get':function(){var _0x1eb6f5=a6_0x5eac89;return ValidatorService_1[_0x1eb6f5(0x150)];}});var configuration_1=require('./configuration');Object[a6_0x5eac89(0x13c)](exports,a6_0x5eac89(0x15c),{'enumerable':!![],'get':function(){var _0x393c7d=a6_0x5eac89;return configuration_1[_0x393c7d(0x156)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a7_0x308ac9=a7_0x596f;function a7_0x596f(_0x3a1444,_0x40640e){var _0x3d47f7=a7_0xe053();return a7_0x596f=function(_0x10c05e,_0x4b84cb){_0x10c05e=_0x10c05e-0xd8;var _0xe05396=_0x3d47f7[_0x10c05e];return _0xe05396;},a7_0x596f(_0x3a1444,_0x40640e);}(function(_0x166899,_0x34142c){var _0x30dfab=a7_0x596f,_0x82c91b=_0x166899();while(!![]){try{var _0x5264fa=parseInt(_0x30dfab(0xe8))/0x1*(-parseInt(_0x30dfab(0xdd))/0x2)+parseInt(_0x30dfab(0xe4))/0x3*(-parseInt(_0x30dfab(0xea))/0x4)+parseInt(_0x30dfab(0xdc))/0x5+-parseInt(_0x30dfab(0xe9))/0x6+-parseInt(_0x30dfab(0xe1))/0x7*(parseInt(_0x30dfab(0xe0))/0x8)+-parseInt(_0x30dfab(0xda))/0x9+parseInt(_0x30dfab(0xd8))/0xa;if(_0x5264fa===_0x34142c)break;else _0x82c91b['push'](_0x82c91b['shift']());}catch(_0x4c1c66){_0x82c91b['push'](_0x82c91b['shift']());}}}(a7_0xe053,0x83e55));var a7_0x4b84cb=(function(){var _0x5ac530=!![];return function(_0x292b2b,_0x3ebcd0){var _0x4693e=_0x5ac530?function(){var _0x372e3c=a7_0x596f;if(_0x3ebcd0){var _0x485762=_0x3ebcd0[_0x372e3c(0xd9)](_0x292b2b,arguments);return _0x3ebcd0=null,_0x485762;}}:function(){};return _0x5ac530=![],_0x4693e;};}()),a7_0x10c05e=a7_0x4b84cb(this,function(){var _0x515837=a7_0x596f;return a7_0x10c05e[_0x515837(0xe5)]()[_0x515837(0xde)](_0x515837(0xe3))[_0x515837(0xe5)]()[_0x515837(0xdb)](a7_0x10c05e)['search']('(((.+)+)+)+$');});function a7_0xe053(){var _0x556757=['8NcyuBd','5784730nuvmrE','anncic-api:validator:validator','(((.+)+)+)+$','84nFnwvT','toString','anncic-api:validator:rules','RULES_KEY','244OMdgpi','6184572bjNajC','126056AuHbAG','27086720TXSpJK','apply','471447pqqRha','constructor','5208580tfWJUB','3428jjPzcD','search','VALIDATOR_KEY'];a7_0xe053=function(){return _0x556757;};return a7_0xe053();}a7_0x10c05e();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a7_0x308ac9(0xdf)]=exports['RULES_KEY']=void 0x0,exports[a7_0x308ac9(0xe7)]=a7_0x308ac9(0xe6),exports[a7_0x308ac9(0xdf)]=a7_0x308ac9(0xe2);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a8_0x12d9a3=a8_0x762a;(function(_0x36bbd0,_0xa7dc98){const _0x5d2fc8=a8_0x762a,_0x12f00f=_0x36bbd0();while(!![]){try{const _0x5cdd64=-parseInt(_0x5d2fc8(0x216))/0x1*(parseInt(_0x5d2fc8(0x206))/0x2)+parseInt(_0x5d2fc8(0x1f4))/0x3*(-parseInt(_0x5d2fc8(0x232))/0x4)+parseInt(_0x5d2fc8(0x215))/0x5*(-parseInt(_0x5d2fc8(0x1ec))/0x6)+-parseInt(_0x5d2fc8(0x1f2))/0x7*(-parseInt(_0x5d2fc8(0x22d))/0x8)+-parseInt(_0x5d2fc8(0x226))/0x9+-parseInt(_0x5d2fc8(0x1fb))/0xa+-parseInt(_0x5d2fc8(0x203))/0xb*(-parseInt(_0x5d2fc8(0x20d))/0xc);if(_0x5cdd64===_0xa7dc98)break;else _0x12f00f['push'](_0x12f00f['shift']());}catch(_0x407b1f){_0x12f00f['push'](_0x12f00f['shift']());}}}(a8_0x1c36,0xc5b73));function a8_0x762a(_0xaa9a20,_0x334bf8){const _0xc5ce92=a8_0x1c36();return a8_0x762a=function(_0x18ccac,_0x58f57a){_0x18ccac=_0x18ccac-0x1e4;let _0x1c3694=_0xc5ce92[_0x18ccac];return _0x1c3694;},a8_0x762a(_0xaa9a20,_0x334bf8);}const a8_0x58f57a=(function(){let _0x3d4441=!![];return function(_0x42c3dd,_0x46d9de){const _0xe9b474=_0x3d4441?function(){const _0x39201d=a8_0x762a;if(_0x46d9de){const _0x2204c3=_0x46d9de[_0x39201d(0x227)](_0x42c3dd,arguments);return _0x46d9de=null,_0x2204c3;}}:function(){};return _0x3d4441=![],_0xe9b474;};}()),a8_0x18ccac=a8_0x58f57a(this,function(){const _0x41d607=a8_0x762a;return a8_0x18ccac[_0x41d607(0x228)]()[_0x41d607(0x20b)](_0x41d607(0x20f))[_0x41d607(0x228)]()[_0x41d607(0x230)](a8_0x18ccac)['search']('(((.+)+)+)+$');});function a8_0x1c36(){const _0x360e31=['PARAMS','@midwayjs/i18n','i18nService','fromEntries','error','ValidatorService','参数验证失败','getClassExtendedMetadata','value','message','schema','@midwayjs/core','getLocaleMapping','metadata','decorate','6792183TVYTyc','apply','toString','NOFIND_SCHEMA','../exception/ValidatorError','details','ValidatorError','8hpHrkx','locale','getOwnPropertyDescriptor','constructor','defaultLocale','1375124NNloDC','../interface','Provide','validator','messages','Scope','i18nConfig','i18n','design:paramtypes','1301802LsNVTj','__metadata','date','defineProperty','errors','design:type','3653069iFmVGZ','assign','9GxvUTK','design:returntype','validatorConfig','validate','_flags','RULES_KEY','key','685620jfhMwo','isSchema','validationOptions','type','formatLocale','Init','YYYY-MM-DD\x20HH:mm:ss','__esModule','33iDlMhc','format','getSchema','304614aDICNX','Config','length','localeTable','object','search','joi','14737296qICVwu','init','(((.+)+)+)+$','function','keys','prototype','$_terms','__decorate','25oNkEjQ','3xsFgMS'];a8_0x1c36=function(){return _0x360e31;};return a8_0x1c36();}a8_0x18ccac();'use strict';var __decorate=this&&this[a8_0x12d9a3(0x214)]||function(_0x655fdc,_0x44310b,_0x44f67d,_0x40f660){const _0x56c974=a8_0x12d9a3;var _0x246a4d=arguments[_0x56c974(0x208)],_0x5763c7=_0x246a4d<0x3?_0x44310b:_0x40f660===null?_0x40f660=Object[_0x56c974(0x22f)](_0x44310b,_0x44f67d):_0x40f660,_0x39ff72;if(typeof Reflect===_0x56c974(0x20a)&&typeof Reflect[_0x56c974(0x225)]==='function')_0x5763c7=Reflect[_0x56c974(0x225)](_0x655fdc,_0x44310b,_0x44f67d,_0x40f660);else{for(var _0x5dac92=_0x655fdc['length']-0x1;_0x5dac92>=0x0;_0x5dac92--)if(_0x39ff72=_0x655fdc[_0x5dac92])_0x5763c7=(_0x246a4d<0x3?_0x39ff72(_0x5763c7):_0x246a4d>0x3?_0x39ff72(_0x44310b,_0x44f67d,_0x5763c7):_0x39ff72(_0x44310b,_0x44f67d))||_0x5763c7;}return _0x246a4d>0x3&&_0x5763c7&&Object[_0x56c974(0x1ef)](_0x44310b,_0x44f67d,_0x5763c7),_0x5763c7;},__metadata=this&&this[a8_0x12d9a3(0x1ed)]||function(_0x5dbdbc,_0x594c0b){const _0x5dce91=a8_0x12d9a3;if(typeof Reflect===_0x5dce91(0x20a)&&typeof Reflect[_0x5dce91(0x224)]===_0x5dce91(0x210))return Reflect[_0x5dce91(0x224)](_0x5dbdbc,_0x594c0b);};Object[a8_0x12d9a3(0x1ef)](exports,a8_0x12d9a3(0x202),{'value':!![]}),exports[a8_0x12d9a3(0x21c)]=void 0x0;const Joi=require(a8_0x12d9a3(0x20c)),i18n_1=require(a8_0x12d9a3(0x218)),core_1=require(a8_0x12d9a3(0x222)),interface_1=require(a8_0x12d9a3(0x1e4)),ValidatorError_1=require(a8_0x12d9a3(0x22a));let ValidatorService=class ValidatorService{constructor(){const _0x3ae4b3=a8_0x12d9a3;this[_0x3ae4b3(0x1e7)]={};}async['init'](){const _0x241434=a8_0x12d9a3,_0x229f3a=Object[_0x241434(0x211)](this[_0x241434(0x1e9)][_0x241434(0x209)]);_0x229f3a['forEach'](_0x5457fd=>{const _0x4d92b2=_0x241434;this['messages'][(0x0,i18n_1[_0x4d92b2(0x1ff)])(_0x5457fd)]=Object[_0x4d92b2(0x21a)](this[_0x4d92b2(0x219)][_0x4d92b2(0x223)](_0x5457fd,_0x4d92b2(0x1e6)));});}[a8_0x12d9a3(0x205)](_0x4a1075){const _0x92c912=a8_0x12d9a3,_0x3fe1ef=(0x0,core_1[_0x92c912(0x21e)])(interface_1[_0x92c912(0x1f9)],_0x4a1075);return _0x3fe1ef?Joi['object'](_0x3fe1ef):undefined;}[a8_0x12d9a3(0x1e6)](_0x4abc22,_0x360634,_0x1fab51={}){const _0x5420ed=a8_0x12d9a3;var _0x3baeba,_0x895575,_0x1d30b9,_0x239711,_0x5d389c;const _0x298808=Joi[_0x5420ed(0x1fc)](_0x4abc22)?_0x4abc22:this[_0x5420ed(0x205)](_0x4abc22);if(!_0x298808)throw new AnnError(ValidatorError_1[_0x5420ed(0x22c)][_0x5420ed(0x229)]);_0x1fab51[_0x5420ed(0x1fd)]=Object[_0x5420ed(0x1f3)]((_0x3baeba=this[_0x5420ed(0x1f6)][_0x5420ed(0x1fd)])!==null&&_0x3baeba!==void 0x0?_0x3baeba:{},{'messages':this['messages']},_0x1fab51['validationOptions']||{}),_0x1fab51[_0x5420ed(0x1fd)][_0x5420ed(0x1f0)]=_0x1fab51[_0x5420ed(0x1fd)]['errors']||{},_0x1fab51[_0x5420ed(0x1fd)]['errors']['language']=(0x0,i18n_1['formatLocale'])(this[_0x5420ed(0x219)]['getAvailableLocale'](_0x1fab51[_0x5420ed(0x1fd)][_0x5420ed(0x1f0)]['language']||_0x1fab51[_0x5420ed(0x22e)]||this[_0x5420ed(0x1e9)][_0x5420ed(0x231)],_0x5420ed(0x1e6)));const _0xd1b07=_0x298808[_0x5420ed(0x1f7)](_0x360634,_0x1fab51['validationOptions']);if(_0xd1b07===null||_0xd1b07===void 0x0?void 0x0:_0xd1b07[_0x5420ed(0x21b)])throw new AnnError(ValidatorError_1[_0x5420ed(0x22c)][_0x5420ed(0x217)],{'message':((_0x239711=(_0x1d30b9=(_0x895575=_0xd1b07[_0x5420ed(0x21b)])===null||_0x895575===void 0x0?void 0x0:_0x895575[_0x5420ed(0x22b)])===null||_0x1d30b9===void 0x0?void 0x0:_0x1d30b9[0x0])===null||_0x239711===void 0x0?void 0x0:_0x239711[_0x5420ed(0x220)])||_0x5420ed(0x21d)});if(_0xd1b07===null||_0xd1b07===void 0x0?void 0x0:_0xd1b07[_0x5420ed(0x21f)]){const _0x9ad930=(_0x5d389c=_0x298808===null||_0x298808===void 0x0?void 0x0:_0x298808[_0x5420ed(0x213)])===null||_0x5d389c===void 0x0?void 0x0:_0x5d389c[_0x5420ed(0x211)],_0x29111c=function(_0x23e730,_0x593e66){const _0x1704fb=_0x5420ed;var _0x5bdf85,_0x1e3fa2,_0x5f23c4,_0x132f20,_0x1d678a,_0x2c60eb,_0x4430e6,_0x4e82c9,_0x212bdd,_0x489fca,_0x18c3a8;for(let _0x5a88a4 in _0x23e730){if(_0x593e66[(_0x5bdf85=_0x23e730[_0x5a88a4])===null||_0x5bdf85===void 0x0?void 0x0:_0x5bdf85[_0x1704fb(0x1fa)]]&&((_0x5f23c4=(_0x1e3fa2=_0x23e730[_0x5a88a4])===null||_0x1e3fa2===void 0x0?void 0x0:_0x1e3fa2[_0x1704fb(0x221)])===null||_0x5f23c4===void 0x0?void 0x0:_0x5f23c4['type'])){if(((_0x1d678a=(_0x132f20=_0x23e730[_0x5a88a4])===null||_0x132f20===void 0x0?void 0x0:_0x132f20['schema'])===null||_0x1d678a===void 0x0?void 0x0:_0x1d678a[_0x1704fb(0x1fe)])==_0x1704fb(0x20a))_0x593e66[_0x23e730[_0x5a88a4][_0x1704fb(0x1fa)]]=_0x29111c((_0x4430e6=(_0x2c60eb=_0x23e730[_0x5a88a4])===null||_0x2c60eb===void 0x0?void 0x0:_0x2c60eb['schema'][_0x1704fb(0x213)])===null||_0x4430e6===void 0x0?void 0x0:_0x4430e6['keys'],_0x593e66[_0x23e730[_0x5a88a4][_0x1704fb(0x1fa)]]);else{if(_0x23e730[_0x5a88a4]['schema']['type']==_0x1704fb(0x1ee)&&_0xd1b07[_0x1704fb(0x21f)][(_0x4e82c9=_0x23e730[_0x5a88a4])===null||_0x4e82c9===void 0x0?void 0x0:_0x4e82c9[_0x1704fb(0x1fa)]]){const _0x38023a=((_0x18c3a8=(_0x489fca=(_0x212bdd=_0x23e730[_0x5a88a4])===null||_0x212bdd===void 0x0?void 0x0:_0x212bdd[_0x1704fb(0x221)])===null||_0x489fca===void 0x0?void 0x0:_0x489fca[_0x1704fb(0x1f8)])===null||_0x18c3a8===void 0x0?void 0x0:_0x18c3a8[_0x1704fb(0x204)])||_0x1704fb(0x201);_0x593e66[_0x23e730[_0x5a88a4][_0x1704fb(0x1fa)]]=dayjs(_0xd1b07[_0x1704fb(0x21f)][_0x23e730[_0x5a88a4]['key']])[_0x1704fb(0x204)](_0x38023a);}}}}return _0x593e66;};return _0x29111c(_0x9ad930,_0xd1b07[_0x5420ed(0x21f)]);}throw new AnnError(ValidatorError_1['ValidatorError'][_0x5420ed(0x217)]);}};__decorate([(0x0,core_1[a8_0x12d9a3(0x207)])(a8_0x12d9a3(0x1ea)),__metadata(a8_0x12d9a3(0x1f1),Object)],ValidatorService[a8_0x12d9a3(0x212)],a8_0x12d9a3(0x1e9),void 0x0),__decorate([(0x0,core_1['Config'])('validator'),__metadata(a8_0x12d9a3(0x1f1),Object)],ValidatorService[a8_0x12d9a3(0x212)],'validatorConfig',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a8_0x12d9a3(0x1f1),i18n_1['MidwayI18nServiceSingleton'])],ValidatorService[a8_0x12d9a3(0x212)],'i18nService',void 0x0),__decorate([(0x0,core_1[a8_0x12d9a3(0x200)])(),__metadata(a8_0x12d9a3(0x1f1),Function),__metadata(a8_0x12d9a3(0x1eb),[]),__metadata(a8_0x12d9a3(0x1f5),Promise)],ValidatorService['prototype'],a8_0x12d9a3(0x20e),null),ValidatorService=__decorate([(0x0,core_1[a8_0x12d9a3(0x1e5)])('validator'),(0x0,core_1[a8_0x12d9a3(0x1e8)])(core_1['ScopeEnum']['Singleton'])],ValidatorService),exports['ValidatorService']=ValidatorService;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/validator",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.7",
|
|
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.5.
|
|
20
|
+
"@anncic-api/core": "^1.5.7",
|
|
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": "b4f53c7279b909c4f882370c7df315519242fe49"
|
|
30
30
|
}
|