@anncic-api/validator 3.4.53 → 3.4.55
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_0x55cc59=a0_0x5f5b;(function(_0x202e35,_0x1b6aed){const _0x5304f0=a0_0x5f5b,_0x5086ce=_0x202e35();while(!![]){try{const _0x10b5b1=parseInt(_0x5304f0(0x174))/0x1*(-parseInt(_0x5304f0(0x16f))/0x2)+parseInt(_0x5304f0(0x167))/0x3+parseInt(_0x5304f0(0x169))/0x4+parseInt(_0x5304f0(0x173))/0x5*(parseInt(_0x5304f0(0x178))/0x6)+-parseInt(_0x5304f0(0x16e))/0x7*(parseInt(_0x5304f0(0x176))/0x8)+-parseInt(_0x5304f0(0x179))/0x9+-parseInt(_0x5304f0(0x16b))/0xa*(-parseInt(_0x5304f0(0x16d))/0xb);if(_0x10b5b1===_0x1b6aed)break;else _0x5086ce['push'](_0x5086ce['shift']());}catch(_0x34557d){_0x5086ce['push'](_0x5086ce['shift']());}}}(a0_0x1f6c,0x37a1b));const a0_0x706e0a=(function(){let _0x288e80=!![];return function(_0x5a0713,_0x3341c8){const _0x24383e=_0x288e80?function(){if(_0x3341c8){const _0x35accd=_0x3341c8['apply'](_0x5a0713,arguments);return _0x3341c8=null,_0x35accd;}}:function(){};return _0x288e80=![],_0x24383e;};}()),a0_0x3fbdfd=a0_0x706e0a(this,function(){const _0x58d2ad=a0_0x5f5b;return a0_0x3fbdfd[_0x58d2ad(0x16c)]()[_0x58d2ad(0x16a)](_0x58d2ad(0x17a))[_0x58d2ad(0x16c)]()['constructor'](a0_0x3fbdfd)[_0x58d2ad(0x16a)](_0x58d2ad(0x17a));});function a0_0x5f5b(_0x83a823,_0x142aa3){const _0x1fa474=a0_0x1f6c();return a0_0x5f5b=function(_0x3fbdfd,_0x706e0a){_0x3fbdfd=_0x3fbdfd-0x167;let _0x1f6c33=_0x1fa474[_0x3fbdfd];return _0x1f6c33;},a0_0x5f5b(_0x83a823,_0x142aa3);}a0_0x3fbdfd();function a0_0x1f6c(){const _0x8fe53f=['../../locales/en_US.json','576180OoXlQP','search','750640ZbIoDc','toString','132JLtXeC','8155nfbnTO','404JPfsPd','PARAMS','__esModule','defineProperty','1146415rregWk','1478ooYfVL','../../locales/zh_CN.json','2744SLKLob','string','6OyOmhb','3389841DTfHFh','(((.+)+)+)+$','../exception/ValidatorError','ValidatorError','85713xpxlmz'];a0_0x1f6c=function(){return _0x8fe53f;};return a0_0x1f6c();}'use strict';Object[a0_0x55cc59(0x172)](exports,a0_0x55cc59(0x171),{'value':!![]});const ValidatorError_1=require(a0_0x55cc59(0x17b));exports['default']={'validator':{'errorStatus':ValidatorError_1[a0_0x55cc59(0x17c)][a0_0x55cc59(0x170)],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':a0_0x55cc59(0x177)}},'i18n':{'localeTable':{'en_US':{'validator':require(a0_0x55cc59(0x168))},'zh_CN':{'validator':require(a0_0x55cc59(0x175))}}}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a1_0x2acc(_0x10c679,_0x13bf7e){const _0x5a49ae=a1_0x2de8();return a1_0x2acc=function(_0x499abc,_0x51f5fc){_0x499abc=_0x499abc-0x16e;let _0x2de8aa=_0x5a49ae[_0x499abc];return _0x2de8aa;},a1_0x2acc(_0x10c679,_0x13bf7e);}function a1_0x2de8(){const _0x3a1f90=['bound\x20dispatch','334iMJEus','__decorate','res','decorator','constructor','getAttr','params','defineProperty','methodArgs','query','3TqYlFu','./service/ValidatorService','9367722OAJzWY','method','locale','273665OxiTco','VALIDATOR_KEY','object','prototype','Inject','27432WJcqQG','getClassMetadata','199768UIKBti','13LBsnJU','propertyName','getMethodParamTypes','request','toString','@midwayjs/i18n','name','36ilAOmD','splice','length','search','(((.+)+)+)+$','CustomConfiguration','ValidatorService','validator','function','undefined','./interface','7563zBtHPa','./config/config.default','66sEUvOn','__esModule','16727160NgvCRd','args','decorate','7041830NYMXIq','anncic-api:validator','registerMethodHandler','metadata','getOwnPropertyDescriptor','design:type','assign','22RjdwUi','apply','target','__metadata'];a1_0x2de8=function(){return _0x3a1f90;};return a1_0x2de8();}const a1_0x502075=a1_0x2acc;(function(_0x1f6f93,_0x1bdd67){const _0x5aa744=a1_0x2acc,_0x483b0c=_0x1f6f93();while(!![]){try{const _0x539b34=parseInt(_0x5aa744(0x17c))/0x1*(-parseInt(_0x5aa744(0x18f))/0x2)+parseInt(_0x5aa744(0x199))/0x3*(parseInt(_0x5aa744(0x1a3))/0x4)+-parseInt(_0x5aa744(0x19e))/0x5*(-parseInt(_0x5aa744(0x17e))/0x6)+-parseInt(_0x5aa744(0x19b))/0x7+parseInt(_0x5aa744(0x1a5))/0x8*(-parseInt(_0x5aa744(0x171))/0x9)+-parseInt(_0x5aa744(0x183))/0xa*(-parseInt(_0x5aa744(0x18a))/0xb)+-parseInt(_0x5aa744(0x180))/0xc*(-parseInt(_0x5aa744(0x1a6))/0xd);if(_0x539b34===_0x1bdd67)break;else _0x483b0c['push'](_0x483b0c['shift']());}catch(_0x166bb8){_0x483b0c['push'](_0x483b0c['shift']());}}}(a1_0x2de8,0xad5b2));const a1_0x51f5fc=(function(){let _0x362812=!![];return function(_0x341a81,_0x3cb529){const _0x138dee=_0x362812?function(){const _0x11e366=a1_0x2acc;if(_0x3cb529){const _0x2f80a7=_0x3cb529[_0x11e366(0x18b)](_0x341a81,arguments);return _0x3cb529=null,_0x2f80a7;}}:function(){};return _0x362812=![],_0x138dee;};}()),a1_0x499abc=a1_0x51f5fc(this,function(){const _0x2c9a78=a1_0x2acc;return a1_0x499abc[_0x2c9a78(0x16e)]()['search']('(((.+)+)+)+$')['toString']()[_0x2c9a78(0x193)](a1_0x499abc)[_0x2c9a78(0x174)](_0x2c9a78(0x175));});a1_0x499abc();'use strict';var __decorate=this&&this[a1_0x502075(0x190)]||function(_0x3509dd,_0x555c95,_0x3f1df5,_0x5339a8){const _0x3d3bfa=a1_0x502075;var _0x36a490=arguments[_0x3d3bfa(0x173)],_0x51e679=_0x36a490<0x3?_0x555c95:_0x5339a8===null?_0x5339a8=Object[_0x3d3bfa(0x187)](_0x555c95,_0x3f1df5):_0x5339a8,_0x3e59ce;if(typeof Reflect===_0x3d3bfa(0x1a0)&&typeof Reflect[_0x3d3bfa(0x182)]==='function')_0x51e679=Reflect[_0x3d3bfa(0x182)](_0x3509dd,_0x555c95,_0x3f1df5,_0x5339a8);else{for(var _0x4e627f=_0x3509dd[_0x3d3bfa(0x173)]-0x1;_0x4e627f>=0x0;_0x4e627f--)if(_0x3e59ce=_0x3509dd[_0x4e627f])_0x51e679=(_0x36a490<0x3?_0x3e59ce(_0x51e679):_0x36a490>0x3?_0x3e59ce(_0x555c95,_0x3f1df5,_0x51e679):_0x3e59ce(_0x555c95,_0x3f1df5))||_0x51e679;}return _0x36a490>0x3&&_0x51e679&&Object[_0x3d3bfa(0x196)](_0x555c95,_0x3f1df5,_0x51e679),_0x51e679;},__metadata=this&&this[a1_0x502075(0x18d)]||function(_0x40c0f0,_0x3a9ede){const _0x3deefc=a1_0x502075;if(typeof Reflect==='object'&&typeof Reflect['metadata']===_0x3deefc(0x179))return Reflect[_0x3deefc(0x186)](_0x40c0f0,_0x3a9ede);};Object[a1_0x502075(0x196)](exports,a1_0x502075(0x17f),{'value':!![]}),exports[a1_0x502075(0x176)]=void 0x0;const i18n_1=require(a1_0x502075(0x16f)),core_1=require('@midwayjs/core'),core_2=require('@midwayjs/core'),interface_1=require(a1_0x502075(0x17b)),ValidatorService_1=require(a1_0x502075(0x19a)),i18n=require(a1_0x502075(0x16f)),anncic=require('@anncic-api/core'),ConfigDefault=require(a1_0x502075(0x17d));let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x2470b7=a1_0x502075;this[_0x2470b7(0x192)][_0x2470b7(0x185)](interface_1[_0x2470b7(0x19f)],_0x1ec888=>{const _0x262022=_0x2470b7,_0x49a192=_0x1ec888[_0x262022(0x186)],_0x56774a=(0x0,core_2[_0x262022(0x1a8)])(_0x1ec888[_0x262022(0x18c)],_0x1ec888[_0x262022(0x1a7)]);return{'before':_0x42f10e=>{const _0x471778=_0x262022;var _0xcc559b,_0x29c92f,_0x34e8a6,_0x47a4c2,_0x5c39d8,_0x36be03,_0x20adaa,_0xa3ed46,_0x3a1552,_0x2f6c1c,_0x2cef73,_0x28bbb5,_0x2ff05d;const _0x4be20c=_0x42f10e[_0x471778(0x18c)][core_1['REQUEST_OBJ_CTX_KEY']],_0x5ea24b=Object[_0x471778(0x189)]({},((_0xcc559b=_0x4be20c===null||_0x4be20c===void 0x0?void 0x0:_0x4be20c[_0x471778(0x1a9)])===null||_0xcc559b===void 0x0?void 0x0:_0xcc559b[_0x471778(0x198)])||{},((_0x29c92f=_0x4be20c===null||_0x4be20c===void 0x0?void 0x0:_0x4be20c[_0x471778(0x1a9)])===null||_0x29c92f===void 0x0?void 0x0:_0x29c92f['body'])||{}),_0x2e15bf=((0x0,core_2[_0x471778(0x1a4)])(interface_1[_0x471778(0x19f)],_0x42f10e[_0x471778(0x18c)])||[])['find'](_0x2456e4=>_0x2456e4[_0x471778(0x19c)]==_0x42f10e['methodName']);!(_0x49a192===null||_0x49a192===void 0x0?void 0x0:_0x49a192[_0x471778(0x19d)])&&_0x4be20c&&_0x4be20c[_0x471778(0x194)]&&(_0x49a192[_0x471778(0x19d)]=_0x4be20c[_0x471778(0x194)](i18n_1['I18N_ATTR_KEY']));for(let _0x423558=0x0;_0x423558<_0x56774a['length'];_0x423558++){const _0x3d7433=_0x56774a[_0x423558],_0x4e1cb3=this[_0x471778(0x177)]['getSchema'](_0x3d7433);if(_0x4e1cb3){if(typeof _0x42f10e[_0x471778(0x181)][_0x423558]==_0x471778(0x17a)||((_0x34e8a6=_0x42f10e[_0x471778(0x181)][_0x423558])===null||_0x34e8a6===void 0x0?void 0x0:_0x34e8a6[_0x471778(0x1a9)])&&((_0x47a4c2=_0x42f10e[_0x471778(0x181)][_0x423558])===null||_0x47a4c2===void 0x0?void 0x0:_0x47a4c2[_0x471778(0x191)])&&((_0x5c39d8=_0x42f10e['args'][_0x423558])===null||_0x5c39d8===void 0x0?void 0x0:_0x5c39d8['req']))_0x42f10e[_0x471778(0x181)][_0x423558]=_0x5ea24b;else((_0x36be03=_0x42f10e['args'][_0x423558])===null||_0x36be03===void 0x0?void 0x0:_0x36be03[_0x471778(0x170)])==_0x471778(0x18e)&&_0x42f10e[_0x471778(0x181)][_0x471778(0x172)](_0x423558,0x0,_0x5ea24b);const _0x1ad107=this[_0x471778(0x177)][_0x471778(0x178)](_0x4e1cb3,_0x42f10e['args'][_0x423558],_0x49a192);_0x1ad107&&(_0x42f10e['args'][_0x423558]=_0x1ad107);}else{if((_0x2e15bf===null||_0x2e15bf===void 0x0?void 0x0:_0x2e15bf[_0x471778(0x197)][_0x423558])&&((_0x20adaa=_0x42f10e[_0x471778(0x181)][_0x423558])===null||_0x20adaa===void 0x0?void 0x0:_0x20adaa['params'])&&typeof _0x42f10e[_0x471778(0x181)][_0x423558]['param']==_0x471778(0x179)&&((_0xa3ed46=_0x4be20c===null||_0x4be20c===void 0x0?void 0x0:_0x4be20c['params'])===null||_0xa3ed46===void 0x0?void 0x0:_0xa3ed46[_0x2e15bf['methodArgs'][_0x423558]]))_0x42f10e[_0x471778(0x181)][_0x423558]=_0x3d7433((_0x3a1552=_0x4be20c===null||_0x4be20c===void 0x0?void 0x0:_0x4be20c[_0x471778(0x195)])===null||_0x3a1552===void 0x0?void 0x0:_0x3a1552[_0x2e15bf[_0x471778(0x197)][_0x423558]]);else(_0x2e15bf===null||_0x2e15bf===void 0x0?void 0x0:_0x2e15bf[_0x471778(0x197)][_0x423558])&&((_0x2cef73=(_0x2f6c1c=_0x42f10e[_0x471778(0x181)][_0x423558])===null||_0x2f6c1c===void 0x0?void 0x0:_0x2f6c1c[_0x471778(0x195)])===null||_0x2cef73===void 0x0?void 0x0:_0x2cef73[_0x2e15bf[_0x471778(0x197)][_0x423558]])&&(_0x42f10e['args'][_0x423558]=(_0x2ff05d=(_0x28bbb5=_0x42f10e['args'][_0x423558])===null||_0x28bbb5===void 0x0?void 0x0:_0x28bbb5[_0x471778(0x195)])===null||_0x2ff05d===void 0x0?void 0x0:_0x2ff05d[_0x2e15bf[_0x471778(0x197)][_0x423558]]);}}},'afterThrow':(_0xdb98e3,_0x1ad092)=>{throw _0x1ad092;}};});}};exports['CustomConfiguration']=CustomConfiguration,__decorate([(0x0,core_2['Inject'])(),__metadata(a1_0x502075(0x188),core_1['MidwayDecoratorService'])],CustomConfiguration['prototype'],'decorator',void 0x0),__decorate([(0x0,core_2[a1_0x502075(0x1a2)])(),__metadata(a1_0x502075(0x188),ValidatorService_1['ValidatorService'])],CustomConfiguration[a1_0x502075(0x1a1)],a1_0x502075(0x177),void 0x0),exports['CustomConfiguration']=CustomConfiguration=__decorate([(0x0,core_2['Configuration'])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':a1_0x502075(0x184),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
|
package/dist/decorator/Rule.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a2_0x5e4543=a2_0x47e3;(function(_0x41baaa,_0x56e741){const _0x6fcce0=a2_0x47e3,_0x3e8759=_0x41baaa();while(!![]){try{const _0x17400e=parseInt(_0x6fcce0(0x1ac))/0x1*(parseInt(_0x6fcce0(0x1b0))/0x2)+parseInt(_0x6fcce0(0x1bf))/0x3*(parseInt(_0x6fcce0(0x1b6))/0x4)+-parseInt(_0x6fcce0(0x1c2))/0x5*(-parseInt(_0x6fcce0(0x1bc))/0x6)+-parseInt(_0x6fcce0(0x1a6))/0x7+parseInt(_0x6fcce0(0x1c1))/0x8+-parseInt(_0x6fcce0(0x1ad))/0x9*(-parseInt(_0x6fcce0(0x1c5))/0xa)+-parseInt(_0x6fcce0(0x1b7))/0xb*(parseInt(_0x6fcce0(0x1c4))/0xc);if(_0x17400e===_0x56e741)break;else _0x3e8759['push'](_0x3e8759['shift']());}catch(_0x43ef50){_0x3e8759['push'](_0x3e8759['shift']());}}}(a2_0x2787,0xf2f0a));const a2_0x295b18=(function(){let _0x34608d=!![];return function(_0x503637,_0xe11c4){const _0x696043=_0x34608d?function(){const _0x55ec15=a2_0x47e3;if(_0xe11c4){const _0x4ee5c3=_0xe11c4[_0x55ec15(0x1be)](_0x503637,arguments);return _0xe11c4=null,_0x4ee5c3;}}:function(){};return _0x34608d=![],_0x696043;};}()),a2_0x3f20d9=a2_0x295b18(this,function(){const _0x202ffb=a2_0x47e3;return a2_0x3f20d9['toString']()[_0x202ffb(0x1b1)](_0x202ffb(0x1af))[_0x202ffb(0x1ab)]()[_0x202ffb(0x1b5)](a2_0x3f20d9)['search'](_0x202ffb(0x1af));});a2_0x3f20d9();'use strict';Object[a2_0x5e4543(0x1bb)](exports,a2_0x5e4543(0x1b8),{'value':!![]}),exports[a2_0x5e4543(0x1a5)]=void 0x0,exports[a2_0x5e4543(0x1a9)]=Rule;const joi=require(a2_0x5e4543(0x1b3)),date_1=require(a2_0x5e4543(0x19f)),core_1=require(a2_0x5e4543(0x1b2)),interface_1=require('../interface');function a2_0x2787(){const _0xae3594=['2588531lnOdkC','__esModule','name','extend','defineProperty','12378OlmxXf','label','apply','1029621DSrxOa','attachClassMetadata','4818696RKqKTG','1310lLpSaW','meta','120GsKpnL','79020fakGcb','@joi/date','function','default','object','RULES_KEY','isSchema','RuleType','333445WHZcCI','saveClassMetadata','getClassMetadata','Rule','getPropertyType','toString','5IELXHs','243WBmffT','map','(((.+)+)+)+$','129478BvRLvY','search','@midwayjs/core','joi','description','constructor','20CgZdSq'];a2_0x2787=function(){return _0xae3594;};return a2_0x2787();}function a2_0x47e3(_0x229cd3,_0x140ec1){const _0x30dbd9=a2_0x2787();return a2_0x47e3=function(_0x3f20d9,_0x295b18){_0x3f20d9=_0x3f20d9-0x19f;let _0x2787b7=_0x30dbd9[_0x3f20d9];return _0x2787b7;},a2_0x47e3(_0x229cd3,_0x140ec1);}exports['RuleType']=joi[a2_0x5e4543(0x1ba)](date_1[a2_0x5e4543(0x1a1)]);function Rule(_0x29f0e4,_0x168c06,_0xabecf2=''){return(_0x3711f6,_0x1c2857)=>{const _0x32c206=a2_0x47e3;var _0x4198cb;if(_0x1c2857)!joi[_0x32c206(0x1a4)](_0x168c06)&&(_0x168c06===null||_0x168c06===void 0x0?void 0x0:_0x168c06[_0x32c206(0x1b9)])&&(_0x168c06=joi[_0x32c206(0x1a2)]((0x0,core_1['getClassMetadata'])(interface_1[_0x32c206(0x1a3)],_0x168c06))[_0x32c206(0x1c3)]({'id':_0x168c06['name']}),(0x0,core_1[_0x32c206(0x1aa)])(_0x3711f6,_0x1c2857)[_0x32c206(0x1b9)]==='Array'&&(_0x168c06=joi['array']()['items'](_0x168c06))),joi[_0x32c206(0x1a4)](_0x168c06)&&(_0x29f0e4&&typeof(_0x168c06===null||_0x168c06===void 0x0?void 0x0:_0x168c06[_0x32c206(0x1bd)])==_0x32c206(0x1a0)&&(_0x168c06=_0x168c06['label'](_0x29f0e4)),_0xabecf2&&typeof(_0x168c06===null||_0x168c06===void 0x0?void 0x0:_0x168c06[_0x32c206(0x1b4)])==_0x32c206(0x1a0)&&(_0x168c06=_0x168c06['description'](_0xabecf2)),(0x0,core_1[_0x32c206(0x1c0)])(interface_1['RULES_KEY'],_0x168c06,_0x3711f6,_0x1c2857));else{const _0x1a3a6c=(0x0,core_1[_0x32c206(0x1a8)])(interface_1[_0x32c206(0x1a3)],_0x168c06);if(_0x1a3a6c){let _0x515566=(_0x4198cb=(0x0,core_1[_0x32c206(0x1a8)])(interface_1['RULES_KEY'],_0x3711f6))!==null&&_0x4198cb!==void 0x0?_0x4198cb:{};Object['keys'](_0x1a3a6c)[_0x32c206(0x1ae)](_0x43c0d0=>{!_0x515566[_0x43c0d0]&&(_0x515566[_0x43c0d0]=_0x1a3a6c[_0x43c0d0]);}),(0x0,core_1[_0x32c206(0x1a7)])(interface_1['RULES_KEY'],_0x515566,_0x3711f6);}}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x133104=a3_0x27c4;(function(_0x5c8e0a,_0x1edc42){const _0x4aca26=a3_0x27c4,_0x9c21ee=_0x5c8e0a();while(!![]){try{const _0x1f5454=parseInt(_0x4aca26(0x1bc))/0x1+parseInt(_0x4aca26(0x1c0))/0x2*(parseInt(_0x4aca26(0x1b1))/0x3)+parseInt(_0x4aca26(0x1c2))/0x4*(-parseInt(_0x4aca26(0x1b2))/0x5)+-parseInt(_0x4aca26(0x1c3))/0x6+parseInt(_0x4aca26(0x1c8))/0x7*(-parseInt(_0x4aca26(0x1b6))/0x8)+parseInt(_0x4aca26(0x1c5))/0x9*(parseInt(_0x4aca26(0x1b9))/0xa)+parseInt(_0x4aca26(0x1c9))/0xb*(parseInt(_0x4aca26(0x1cb))/0xc);if(_0x1f5454===_0x1edc42)break;else _0x9c21ee['push'](_0x9c21ee['shift']());}catch(_0x14f886){_0x9c21ee['push'](_0x9c21ee['shift']());}}}(a3_0x1e2b,0x1bdac));const a3_0x369329=(function(){let _0x32ed96=!![];return function(_0x10f81c,_0x3f76d3){const _0x5592cd=_0x32ed96?function(){const _0x47a9a2=a3_0x27c4;if(_0x3f76d3){const _0x58c8f4=_0x3f76d3[_0x47a9a2(0x1bd)](_0x10f81c,arguments);return _0x3f76d3=null,_0x58c8f4;}}:function(){};return _0x32ed96=![],_0x5592cd;};}()),a3_0x1c9889=a3_0x369329(this,function(){const _0x461fba=a3_0x27c4;return a3_0x1c9889[_0x461fba(0x1c4)]()[_0x461fba(0x1be)](_0x461fba(0x1ba))[_0x461fba(0x1c4)]()[_0x461fba(0x1cc)](a3_0x1c9889)[_0x461fba(0x1be)](_0x461fba(0x1ba));});a3_0x1c9889();function a3_0x1e2b(){const _0x425c0c=['defineProperty','2MBvBzA','slice','709484twxJBx','1327764kfTkwb','toString','639TQYRjr','replace','Validator','879683GsVkzN','340109XLMLWR','VALIDATOR_KEY','144RoDppS','constructor','@midwayjs/core','449139tjMpYX','5LWIHzU','match','__esModule','../interface','8tYcinL','getFuncArgs','indexOf','200grOBlW','(((.+)+)+)+$','attachClassMetadata','116265tozKlL','apply','search'];a3_0x1e2b=function(){return _0x425c0c;};return a3_0x1e2b();}function a3_0x27c4(_0x45e492,_0x5f5b45){const _0x2586b2=a3_0x1e2b();return a3_0x27c4=function(_0x1c9889,_0x369329){_0x1c9889=_0x1c9889-0x1b0;let _0x1e2bfe=_0x2586b2[_0x1c9889];return _0x1e2bfe;},a3_0x27c4(_0x45e492,_0x5f5b45);}'use strict';Object[a3_0x133104(0x1bf)](exports,a3_0x133104(0x1b4),{'value':!![]}),exports[a3_0x133104(0x1c7)]=Validator,exports[a3_0x133104(0x1b7)]=getFuncArgs;const core_1=require(a3_0x133104(0x1b0)),interface_1=require(a3_0x133104(0x1b5));function Validator(_0x2eaeaf={}){return(_0x503c90,_0x331320,_0x54ff38)=>{const _0x550268=a3_0x27c4,_0x17056e=getFuncArgs(_0x503c90[_0x331320]);(0x0,core_1[_0x550268(0x1bb)])(interface_1[_0x550268(0x1ca)],{'method':_0x331320,'methodArgs':_0x17056e},_0x503c90),(0x0,core_1['createCustomMethodDecorator'])(interface_1[_0x550268(0x1ca)],_0x2eaeaf)(_0x503c90,_0x331320,_0x54ff38);};}function getFuncArgs(_0x2ef9e9){const _0x5b84c2=a3_0x133104;if(typeof _0x2ef9e9=='function'){const _0x4e06f1=/=>.*$/mg,_0x22a843=/=[^,)]+/mg,_0x3a39b6=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x2ff035=(_0x2ef9e9['prototype']?_0x2ef9e9['prototype'][_0x5b84c2(0x1cc)][_0x5b84c2(0x1c4)]():_0x2ef9e9['toString']())[_0x5b84c2(0x1c6)](_0x3a39b6,'')['replace'](_0x4e06f1,'')['replace'](_0x22a843,''),_0x1c967d=_0x2ff035[_0x5b84c2(0x1c1)](_0x2ff035[_0x5b84c2(0x1b8)]('(')+0x1,_0x2ff035['indexOf'](')'))[_0x5b84c2(0x1b3)](/([^\s,]+)/g)||[];return _0x1c967d;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a4_0x2dbb(){var _0x16b6e7=['ValidatorError','object','PARAMS','search','decorate','defineProperty','16976720yHCRAg','2060043hsmGRk','15640KGIkNZ','(((.+)+)+)+$','apply','834446DMntqD','@anncic-api/core','NOFIND_SCHEMA','90lNJcio','getOwnPropertyDescriptor','1563864foFUSu','constructor','5630166uAxjFD','2870JwNGKd','参数验证失败','1Qwpmfh','design:type','AnnErrorMsg','function','length','5034nhualI','__decorate','metadata','__esModule'];a4_0x2dbb=function(){return _0x16b6e7;};return a4_0x2dbb();}var a4_0x29a7c1=a4_0x15a5;(function(_0x581715,_0xeeaa4c){var _0x5272cf=a4_0x15a5,_0xf77813=_0x581715();while(!![]){try{var _0x162a55=parseInt(_0x5272cf(0x155))/0x1*(parseInt(_0x5272cf(0x169))/0x2)+parseInt(_0x5272cf(0x165))/0x3+-parseInt(_0x5272cf(0x16e))/0x4+-parseInt(_0x5272cf(0x16c))/0x5*(parseInt(_0x5272cf(0x15a))/0x6)+-parseInt(_0x5272cf(0x171))/0x7*(-parseInt(_0x5272cf(0x166))/0x8)+parseInt(_0x5272cf(0x170))/0x9+-parseInt(_0x5272cf(0x164))/0xa;if(_0x162a55===_0xeeaa4c)break;else _0xf77813['push'](_0xf77813['shift']());}catch(_0x1ff84e){_0xf77813['push'](_0xf77813['shift']());}}}(a4_0x2dbb,0x68518));var a4_0x39caa1=(function(){var _0x1bc1b1=!![];return function(_0x577c30,_0x2701a7){var _0x1f4dc2=_0x1bc1b1?function(){var _0x5702be=a4_0x15a5;if(_0x2701a7){var _0x11ca72=_0x2701a7[_0x5702be(0x168)](_0x577c30,arguments);return _0x2701a7=null,_0x11ca72;}}:function(){};return _0x1bc1b1=![],_0x1f4dc2;};}()),a4_0xe3b3be=a4_0x39caa1(this,function(){var _0x24c53f=a4_0x15a5;return a4_0xe3b3be['toString']()[_0x24c53f(0x161)](_0x24c53f(0x167))['toString']()[_0x24c53f(0x16f)](a4_0xe3b3be)[_0x24c53f(0x161)]('(((.+)+)+)+$');});function a4_0x15a5(_0x1ec9a6,_0x5baa7c){var _0x5f1ecd=a4_0x2dbb();return a4_0x15a5=function(_0xe3b3be,_0x39caa1){_0xe3b3be=_0xe3b3be-0x154;var _0x2dbb5e=_0x5f1ecd[_0xe3b3be];return _0x2dbb5e;},a4_0x15a5(_0x1ec9a6,_0x5baa7c);}a4_0xe3b3be();'use strict';var __decorate=this&&this[a4_0x29a7c1(0x15b)]||function(_0x56996e,_0x282720,_0x4c7fba,_0x39cd46){var _0x153211=a4_0x29a7c1,_0x34c2dd=arguments[_0x153211(0x159)],_0x293e02=_0x34c2dd<0x3?_0x282720:_0x39cd46===null?_0x39cd46=Object[_0x153211(0x16d)](_0x282720,_0x4c7fba):_0x39cd46,_0x2a0cf4;if(typeof Reflect===_0x153211(0x15f)&&typeof Reflect[_0x153211(0x162)]===_0x153211(0x158))_0x293e02=Reflect[_0x153211(0x162)](_0x56996e,_0x282720,_0x4c7fba,_0x39cd46);else{for(var _0x7ce85a=_0x56996e[_0x153211(0x159)]-0x1;_0x7ce85a>=0x0;_0x7ce85a--)if(_0x2a0cf4=_0x56996e[_0x7ce85a])_0x293e02=(_0x34c2dd<0x3?_0x2a0cf4(_0x293e02):_0x34c2dd>0x3?_0x2a0cf4(_0x282720,_0x4c7fba,_0x293e02):_0x2a0cf4(_0x282720,_0x4c7fba))||_0x293e02;}return _0x34c2dd>0x3&&_0x293e02&&Object['defineProperty'](_0x282720,_0x4c7fba,_0x293e02),_0x293e02;},__metadata=this&&this['__metadata']||function(_0x5b9994,_0x162ab2){var _0x2738ad=a4_0x29a7c1;if(typeof Reflect===_0x2738ad(0x15f)&&typeof Reflect[_0x2738ad(0x15c)]==='function')return Reflect[_0x2738ad(0x15c)](_0x5b9994,_0x162ab2);};Object[a4_0x29a7c1(0x163)](exports,a4_0x29a7c1(0x15d),{'value':!![]}),exports[a4_0x29a7c1(0x15e)]=void 0x0;const core_1=require(a4_0x29a7c1(0x16a));class ValidatorError extends AnnError{}exports['ValidatorError']=ValidatorError,ValidatorError[a4_0x29a7c1(0x160)]=0x18c1e,ValidatorError[a4_0x29a7c1(0x16b)]=0x18c1c,__decorate([(0x0,core_1[a4_0x29a7c1(0x157)])(a4_0x29a7c1(0x154)),__metadata('design:type',Object)],ValidatorError,a4_0x29a7c1(0x160),void 0x0),__decorate([(0x0,core_1['AnnErrorMsg'])(a4_0x29a7c1(0x154)),__metadata(a4_0x29a7c1(0x156),Object)],ValidatorError,a4_0x29a7c1(0x16b),void 0x0);
|
package/dist/helper/dtoHelper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a5_0x1a88a6=a5_0x356e;(function(_0x5c7122,_0xf21dec){const _0x21e2ed=a5_0x356e,_0x5f7f16=_0x5c7122();while(!![]){try{const _0x1402e3=parseInt(_0x21e2ed(0xbd))/0x1+-parseInt(_0x21e2ed(0xb5))/0x2*(parseInt(_0x21e2ed(0xae))/0x3)+parseInt(_0x21e2ed(0xc1))/0x4+parseInt(_0x21e2ed(0xbc))/0x5+-parseInt(_0x21e2ed(0xc4))/0x6*(-parseInt(_0x21e2ed(0xc3))/0x7)+-parseInt(_0x21e2ed(0xbf))/0x8+-parseInt(_0x21e2ed(0xb7))/0x9;if(_0x1402e3===_0xf21dec)break;else _0x5f7f16['push'](_0x5f7f16['shift']());}catch(_0x3ec3a6){_0x5f7f16['push'](_0x5f7f16['shift']());}}}(a5_0x2d34,0x28fe9));const a5_0x5af329=(function(){let _0x3c78b1=!![];return function(_0x275d9e,_0x4f224b){const _0x3b2b04=_0x3c78b1?function(){if(_0x4f224b){const _0x317822=_0x4f224b['apply'](_0x275d9e,arguments);return _0x4f224b=null,_0x317822;}}:function(){};return _0x3c78b1=![],_0x3b2b04;};}()),a5_0x89518e=a5_0x5af329(this,function(){const _0x22d646=a5_0x356e;return a5_0x89518e[_0x22d646(0xb9)]()['search']('(((.+)+)+)+$')[_0x22d646(0xb9)]()[_0x22d646(0xbb)](a5_0x89518e)[_0x22d646(0xaf)](_0x22d646(0xb3));});a5_0x89518e();'use strict';Object['defineProperty'](exports,a5_0x1a88a6(0xb8),{'value':!![]}),exports[a5_0x1a88a6(0xb1)]=PickDto,exports[a5_0x1a88a6(0xb6)]=OmitDto;const core_1=require(a5_0x1a88a6(0xb4)),interface_1=require(a5_0x1a88a6(0xba));function PickDto(_0xd6b139,_0x5b40b4){const _0x5b0be8=a5_0x1a88a6,_0x49c609=function(){};_0x49c609['prototype']=_0xd6b139[_0x5b0be8(0xc2)];const _0x13cc4c=(0x0,core_1[_0x5b0be8(0xb0)])(interface_1[_0x5b0be8(0xc0)],_0xd6b139),_0x1515a9={};for(const _0xb2e5e3 of _0x5b40b4){_0x13cc4c[_0xb2e5e3]&&(_0x1515a9[_0xb2e5e3]=_0x13cc4c[_0xb2e5e3]);}return(0x0,core_1[_0x5b0be8(0xbe)])(interface_1['RULES_KEY'],_0x1515a9,_0x49c609),_0x49c609;}function a5_0x356e(_0x479df6,_0x3a379d){const _0xddfc71=a5_0x2d34();return a5_0x356e=function(_0x89518e,_0x5af329){_0x89518e=_0x89518e-0xae;let _0x2d34d3=_0xddfc71[_0x89518e];return _0x2d34d3;},a5_0x356e(_0x479df6,_0x3a379d);}function a5_0x2d34(){const _0x50d732=['search','getClassExtendedMetadata','PickDto','assign','(((.+)+)+)+$','@midwayjs/core','2PhQJDA','OmitDto','1729989QnPVea','__esModule','toString','../interface','constructor','328600NMIwot','249402kPqAKi','saveClassMetadata','922464rSehnY','RULES_KEY','1314196DkEwwN','prototype','41881CpNTHW','108PpEzGr','827769YrFMlg'];a5_0x2d34=function(){return _0x50d732;};return a5_0x2d34();}function OmitDto(_0x38d2bf,_0x2d7079){const _0x43fed6=a5_0x1a88a6,_0x59da90=function(){};_0x59da90[_0x43fed6(0xc2)]=_0x38d2bf[_0x43fed6(0xc2)];const _0x242acd=(0x0,core_1[_0x43fed6(0xb0)])(interface_1[_0x43fed6(0xc0)],_0x38d2bf),_0x48a867=Object[_0x43fed6(0xb2)]({},_0x242acd);for(const _0x3e326c of _0x2d7079){delete _0x48a867[_0x3e326c];}return(0x0,core_1[_0x43fed6(0xbe)])(interface_1['RULES_KEY'],_0x48a867,_0x59da90),_0x59da90;}
|
package/dist/helper/getSchema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6_0x260535=a6_0x1ebc;(function(_0x2487c1,_0x49893d){const _0x358f83=a6_0x1ebc,_0x4bead3=_0x2487c1();while(!![]){try{const _0x509a58=parseInt(_0x358f83(0x13b))/0x1*(parseInt(_0x358f83(0x13c))/0x2)+parseInt(_0x358f83(0x147))/0x3+-parseInt(_0x358f83(0x133))/0x4+-parseInt(_0x358f83(0x145))/0x5*(parseInt(_0x358f83(0x136))/0x6)+-parseInt(_0x358f83(0x130))/0x7*(parseInt(_0x358f83(0x144))/0x8)+-parseInt(_0x358f83(0x138))/0x9*(parseInt(_0x358f83(0x131))/0xa)+-parseInt(_0x358f83(0x137))/0xb*(-parseInt(_0x358f83(0x148))/0xc);if(_0x509a58===_0x49893d)break;else _0x4bead3['push'](_0x4bead3['shift']());}catch(_0x4fd095){_0x4bead3['push'](_0x4bead3['shift']());}}}(a6_0x3250,0x95bd9));const a6_0xea630d=(function(){let _0x1db721=!![];return function(_0x543f1c,_0x435723){const _0x35bdcf=_0x1db721?function(){const _0x4c4ea7=a6_0x1ebc;if(_0x435723){const _0x540761=_0x435723[_0x4c4ea7(0x139)](_0x543f1c,arguments);return _0x435723=null,_0x540761;}}:function(){};return _0x1db721=![],_0x35bdcf;};}()),a6_0x271d6e=a6_0xea630d(this,function(){const _0x4019cb=a6_0x1ebc;return a6_0x271d6e[_0x4019cb(0x146)]()[_0x4019cb(0x134)](_0x4019cb(0x13f))['toString']()[_0x4019cb(0x142)](a6_0x271d6e)[_0x4019cb(0x134)](_0x4019cb(0x13f));});a6_0x271d6e();'use strict';Object[a6_0x260535(0x13e)](exports,a6_0x260535(0x143),{'value':!![]}),exports[a6_0x260535(0x135)]=getSchema;function a6_0x3250(){const _0x5d9d46=['1142127bimXsq','51036bCGRhm','object','7tSPYZH','10ULoniw','@midwayjs/core','4824308fDUyVr','search','getSchema','1481586tKLnbC','6259nRQENL','2859903bILkai','apply','joi','7560MUDydl','280aMClGo','../interface','defineProperty','(((.+)+)+)+$','RULES_KEY','getClassExtendedMetadata','constructor','__esModule','5873288aTYcHC','20DlvcRA','toString'];a6_0x3250=function(){return _0x5d9d46;};return a6_0x3250();}function a6_0x1ebc(_0x9d5736,_0x10bb2e){const _0x17053a=a6_0x3250();return a6_0x1ebc=function(_0x271d6e,_0xea630d){_0x271d6e=_0x271d6e-0x12f;let _0x3250cd=_0x17053a[_0x271d6e];return _0x3250cd;},a6_0x1ebc(_0x9d5736,_0x10bb2e);}const Joi=require(a6_0x260535(0x13a)),core_1=require(a6_0x260535(0x132)),interface_1=require(a6_0x260535(0x13d));function getSchema(_0x3ce595){const _0x18fe30=a6_0x260535,_0x3c8eb3=(0x0,core_1[_0x18fe30(0x141)])(interface_1[_0x18fe30(0x140)],_0x3ce595);if(_0x3c8eb3)return Joi[_0x18fe30(0x12f)](_0x3c8eb3);}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a7_0x16a370=a7_0xe0e2;(function(_0x4a6830,_0x2112b3){var _0x4c7bf4=a7_0xe0e2,_0x5bc373=_0x4a6830();while(!![]){try{var _0x74c8d3=-parseInt(_0x4c7bf4(0x1c4))/0x1*(-parseInt(_0x4c7bf4(0x1c0))/0x2)+parseInt(_0x4c7bf4(0x1c1))/0x3+-parseInt(_0x4c7bf4(0x1af))/0x4+parseInt(_0x4c7bf4(0x1cc))/0x5+parseInt(_0x4c7bf4(0x1b2))/0x6+-parseInt(_0x4c7bf4(0x1b7))/0x7*(-parseInt(_0x4c7bf4(0x1c8))/0x8)+-parseInt(_0x4c7bf4(0x1ad))/0x9;if(_0x74c8d3===_0x2112b3)break;else _0x5bc373['push'](_0x5bc373['shift']());}catch(_0x236604){_0x5bc373['push'](_0x5bc373['shift']());}}}(a7_0x1891,0x55b12));var a7_0x348a94=(function(){var _0x192461=!![];return function(_0x5bdf0b,_0x3d706f){var _0x33c549=_0x192461?function(){var _0x56cc96=a7_0xe0e2;if(_0x3d706f){var _0x18ba2c=_0x3d706f[_0x56cc96(0x1b8)](_0x5bdf0b,arguments);return _0x3d706f=null,_0x18ba2c;}}:function(){};return _0x192461=![],_0x33c549;};}()),a7_0x4f93c0=a7_0x348a94(this,function(){var _0xd63003=a7_0xe0e2;return a7_0x4f93c0[_0xd63003(0x1c7)]()[_0xd63003(0x1cf)](_0xd63003(0x1c3))[_0xd63003(0x1c7)]()['constructor'](a7_0x4f93c0)[_0xd63003(0x1cf)](_0xd63003(0x1c3));});a7_0x4f93c0();'use strict';var __createBinding=this&&this[a7_0x16a370(0x1ba)]||(Object['create']?function(_0x5b89df,_0x3853b5,_0x709d1,_0x3cc8fd){var _0x4bb731=a7_0x16a370;if(_0x3cc8fd===undefined)_0x3cc8fd=_0x709d1;var _0x79e4d8=Object['getOwnPropertyDescriptor'](_0x3853b5,_0x709d1);(!_0x79e4d8||(_0x4bb731(0x1bf)in _0x79e4d8?!_0x3853b5[_0x4bb731(0x1bc)]:_0x79e4d8[_0x4bb731(0x1b4)]||_0x79e4d8[_0x4bb731(0x1cd)]))&&(_0x79e4d8={'enumerable':!![],'get':function(){return _0x3853b5[_0x709d1];}}),Object[_0x4bb731(0x1cb)](_0x5b89df,_0x3cc8fd,_0x79e4d8);}:function(_0x519797,_0x4fe2b5,_0x8d603f,_0x3fd194){if(_0x3fd194===undefined)_0x3fd194=_0x8d603f;_0x519797[_0x3fd194]=_0x4fe2b5[_0x8d603f];}),__exportStar=this&&this[a7_0x16a370(0x1ce)]||function(_0xc1ff95,_0x5d927e){var _0x40f14a=a7_0x16a370;for(var _0x53105c in _0xc1ff95)if(_0x53105c!==_0x40f14a(0x1ae)&&!Object[_0x40f14a(0x1b9)][_0x40f14a(0x1b5)][_0x40f14a(0x1c9)](_0x5d927e,_0x53105c))__createBinding(_0x5d927e,_0xc1ff95,_0x53105c);};Object[a7_0x16a370(0x1cb)](exports,'__esModule',{'value':!![]}),exports[a7_0x16a370(0x1b3)]=exports[a7_0x16a370(0x1ca)]=exports[a7_0x16a370(0x1c6)]=exports[a7_0x16a370(0x1b0)]=exports[a7_0x16a370(0x1be)]=exports[a7_0x16a370(0x1b6)]=void 0x0,__exportStar(require(a7_0x16a370(0x1b1)),exports),__exportStar(require(a7_0x16a370(0x1ac)),exports),__exportStar(require('./helper/getSchema'),exports);var Validator_1=require(a7_0x16a370(0x1c2));Object[a7_0x16a370(0x1cb)](exports,'Validator',{'enumerable':!![],'get':function(){var _0x5d9c3f=a7_0x16a370;return Validator_1[_0x5d9c3f(0x1b6)];}});var Rule_1=require(a7_0x16a370(0x1c5));Object[a7_0x16a370(0x1cb)](exports,a7_0x16a370(0x1be),{'enumerable':!![],'get':function(){var _0x4f3478=a7_0x16a370;return Rule_1[_0x4f3478(0x1be)];}}),Object[a7_0x16a370(0x1cb)](exports,'RuleType',{'enumerable':!![],'get':function(){var _0x3e9c95=a7_0x16a370;return Rule_1[_0x3e9c95(0x1b0)];}});function a7_0xe0e2(_0x3cd98b,_0x263f37){var _0x330e4e=a7_0x1891();return a7_0xe0e2=function(_0x4f93c0,_0x348a94){_0x4f93c0=_0x4f93c0-0x1ac;var _0x1891da=_0x330e4e[_0x4f93c0];return _0x1891da;},a7_0xe0e2(_0x3cd98b,_0x263f37);}function a7_0x1891(){var _0x19f7a4=['get','119056bOIKXL','423885bOGrPl','./decorator/Validator','(((.+)+)+)+$','5CvYEnY','./decorator/Rule','ValidatorError','toString','164072TcxaCp','call','ValidatorService','defineProperty','1995660SxlKBA','configurable','__exportStar','search','./helper/dtoHelper','4912578WqbAWU','default','1125724iTCPBL','RuleType','./interface','1056768wZikJE','Configuration','writable','hasOwnProperty','Validator','56OEwTMo','apply','prototype','__createBinding','./exception/ValidatorError','__esModule','./service/ValidatorService','Rule'];a7_0x1891=function(){return _0x19f7a4;};return a7_0x1891();}var ValidatorError_1=require(a7_0x16a370(0x1bb));Object[a7_0x16a370(0x1cb)](exports,a7_0x16a370(0x1c6),{'enumerable':!![],'get':function(){var _0x1e94da=a7_0x16a370;return ValidatorError_1[_0x1e94da(0x1c6)];}});var ValidatorService_1=require(a7_0x16a370(0x1bd));Object[a7_0x16a370(0x1cb)](exports,a7_0x16a370(0x1ca),{'enumerable':!![],'get':function(){return ValidatorService_1['ValidatorService'];}});var configuration_1=require('./configuration');Object[a7_0x16a370(0x1cb)](exports,a7_0x16a370(0x1b3),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a8_0x561a(_0x302817,_0x5b025a){var _0x8e0889=a8_0x5235();return a8_0x561a=function(_0xa22a9f,_0x507cb5){_0xa22a9f=_0xa22a9f-0x1b4;var _0x52354f=_0x8e0889[_0xa22a9f];return _0x52354f;},a8_0x561a(_0x302817,_0x5b025a);}var a8_0x20a2cb=a8_0x561a;function a8_0x5235(){var _0x209003=['apply','231ZLqIKq','8578950CyTAPs','525185PncAPg','VALIDATOR_KEY','RULES_KEY','constructor','300088JwMNPD','23064WFHdey','30VLTjiC','8013654VGOOdK','26313pLDJhG','anncic-api:validator:rules','__esModule','76XSCXIr','anncic-api:validator:validator','(((.+)+)+)+$','7417206lVuBcl','search','56uZfYiq'];a8_0x5235=function(){return _0x209003;};return a8_0x5235();}(function(_0x48ee82,_0x1d864d){var _0x3e35ed=a8_0x561a,_0x2a4969=_0x48ee82();while(!![]){try{var _0x439d47=parseInt(_0x3e35ed(0x1be))/0x1*(parseInt(_0x3e35ed(0x1c1))/0x2)+parseInt(_0x3e35ed(0x1b4))/0x3*(-parseInt(_0x3e35ed(0x1bb))/0x4)+-parseInt(_0x3e35ed(0x1b6))/0x5*(-parseInt(_0x3e35ed(0x1bc))/0x6)+-parseInt(_0x3e35ed(0x1c6))/0x7*(-parseInt(_0x3e35ed(0x1ba))/0x8)+-parseInt(_0x3e35ed(0x1c4))/0x9+parseInt(_0x3e35ed(0x1b5))/0xa+-parseInt(_0x3e35ed(0x1bd))/0xb;if(_0x439d47===_0x1d864d)break;else _0x2a4969['push'](_0x2a4969['shift']());}catch(_0x1ad516){_0x2a4969['push'](_0x2a4969['shift']());}}}(a8_0x5235,0xa7960));var a8_0x507cb5=(function(){var _0x3f5538=!![];return function(_0x24b142,_0x3de4bd){var _0x348295=_0x3f5538?function(){var _0x3cb123=a8_0x561a;if(_0x3de4bd){var _0x16a8d6=_0x3de4bd[_0x3cb123(0x1c7)](_0x24b142,arguments);return _0x3de4bd=null,_0x16a8d6;}}:function(){};return _0x3f5538=![],_0x348295;};}()),a8_0xa22a9f=a8_0x507cb5(this,function(){var _0x4844ad=a8_0x561a;return a8_0xa22a9f['toString']()[_0x4844ad(0x1c5)]('(((.+)+)+)+$')['toString']()[_0x4844ad(0x1b9)](a8_0xa22a9f)['search'](_0x4844ad(0x1c3));});a8_0xa22a9f();'use strict';Object['defineProperty'](exports,a8_0x20a2cb(0x1c0),{'value':!![]}),exports[a8_0x20a2cb(0x1b7)]=exports[a8_0x20a2cb(0x1b8)]=void 0x0,exports[a8_0x20a2cb(0x1b8)]=a8_0x20a2cb(0x1bf),exports[a8_0x20a2cb(0x1b7)]=a8_0x20a2cb(0x1c2);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a9_0x284fd2=a9_0xace0;(function(_0x507c5a,_0x49637a){const _0xfabf8d=a9_0xace0,_0x562ac3=_0x507c5a();while(!![]){try{const _0x447ec0=-parseInt(_0xfabf8d(0xed))/0x1*(-parseInt(_0xfabf8d(0x110))/0x2)+-parseInt(_0xfabf8d(0x10b))/0x3*(-parseInt(_0xfabf8d(0x124))/0x4)+-parseInt(_0xfabf8d(0xf9))/0x5+-parseInt(_0xfabf8d(0x11d))/0x6+parseInt(_0xfabf8d(0x10a))/0x7+parseInt(_0xfabf8d(0x111))/0x8*(-parseInt(_0xfabf8d(0xf2))/0x9)+parseInt(_0xfabf8d(0x107))/0xa*(parseInt(_0xfabf8d(0x10e))/0xb);if(_0x447ec0===_0x49637a)break;else _0x562ac3['push'](_0x562ac3['shift']());}catch(_0x52d649){_0x562ac3['push'](_0x562ac3['shift']());}}}(a9_0x7121,0x1da67));const a9_0x114214=(function(){let _0x48b0c1=!![];return function(_0x2a4282,_0x1359d7){const _0x42228b=_0x48b0c1?function(){if(_0x1359d7){const _0x5ef15f=_0x1359d7['apply'](_0x2a4282,arguments);return _0x1359d7=null,_0x5ef15f;}}:function(){};return _0x48b0c1=![],_0x42228b;};}()),a9_0x27553a=a9_0x114214(this,function(){const _0x31008e=a9_0xace0;return a9_0x27553a[_0x31008e(0xf3)]()[_0x31008e(0x138)](_0x31008e(0x122))[_0x31008e(0xf3)]()[_0x31008e(0xfa)](a9_0x27553a)[_0x31008e(0x138)](_0x31008e(0x122));});a9_0x27553a();'use strict';var __decorate=this&&this[a9_0x284fd2(0xf5)]||function(_0x2bc175,_0x550976,_0x8ec666,_0x5705db){const _0x5bcea6=a9_0x284fd2;var _0x2c5186=arguments[_0x5bcea6(0x12c)],_0x1cb170=_0x2c5186<0x3?_0x550976:_0x5705db===null?_0x5705db=Object[_0x5bcea6(0x109)](_0x550976,_0x8ec666):_0x5705db,_0x31b647;if(typeof Reflect===_0x5bcea6(0xf1)&&typeof Reflect[_0x5bcea6(0x121)]===_0x5bcea6(0xf6))_0x1cb170=Reflect[_0x5bcea6(0x121)](_0x2bc175,_0x550976,_0x8ec666,_0x5705db);else{for(var _0x2dd443=_0x2bc175[_0x5bcea6(0x12c)]-0x1;_0x2dd443>=0x0;_0x2dd443--)if(_0x31b647=_0x2bc175[_0x2dd443])_0x1cb170=(_0x2c5186<0x3?_0x31b647(_0x1cb170):_0x2c5186>0x3?_0x31b647(_0x550976,_0x8ec666,_0x1cb170):_0x31b647(_0x550976,_0x8ec666))||_0x1cb170;}return _0x2c5186>0x3&&_0x1cb170&&Object[_0x5bcea6(0xfb)](_0x550976,_0x8ec666,_0x1cb170),_0x1cb170;},__metadata=this&&this[a9_0x284fd2(0xf8)]||function(_0x262bc8,_0x4e147e){const _0x24ccdc=a9_0x284fd2;if(typeof Reflect===_0x24ccdc(0xf1)&&typeof Reflect[_0x24ccdc(0x139)]===_0x24ccdc(0xf6))return Reflect['metadata'](_0x262bc8,_0x4e147e);};function a9_0x7121(){const _0xfc7d2d=['defaultLocale','fromEntries','init','../exception/ValidatorError','validatorConfig','493392TIwxAP','Inject','keys','error','decorate','(((.+)+)+)+$','schema','14900tCjKrX','design:returntype','locale','YYYY-MM-DD\x20HH:mm:ss','ValidatorError','ScopeEnum','i18nService','../interface','length','format','NOFIND_SCHEMA','validationOptions','ValidatorService','getSchema','PARAMS','getLocaleMapping','details','assign','localeTable','isSchema','search','metadata','2yMOxCo','i18n','formatLocale','language','object','124263rIymsA','toString','$_terms','__decorate','function','value','__metadata','870495hjDUwo','constructor','defineProperty','date','Singleton','messages','validator','@midwayjs/i18n','Config','参数验证失败','message','joi','key','Scope','10NWVqGN','design:paramtypes','getOwnPropertyDescriptor','734622sMcCzA','150MrCQJz','_flags','validate','1256937WmOsnR','MidwayI18nServiceSingleton','13736NLfYpX','24pXCVYj','__esModule','type','design:type','prototype','getClassExtendedMetadata','errors'];a9_0x7121=function(){return _0xfc7d2d;};return a9_0x7121();}Object[a9_0x284fd2(0xfb)](exports,a9_0x284fd2(0x112),{'value':!![]}),exports[a9_0x284fd2(0x130)]=void 0x0;const Joi=require(a9_0x284fd2(0x104)),i18n_1=require(a9_0x284fd2(0x100)),core_1=require('@midwayjs/core'),interface_1=require(a9_0x284fd2(0x12b)),ValidatorError_1=require(a9_0x284fd2(0x11b));function a9_0xace0(_0x23d065,_0x11f5f6){const _0x2c8da2=a9_0x7121();return a9_0xace0=function(_0x27553a,_0x114214){_0x27553a=_0x27553a-0xed;let _0x71214f=_0x2c8da2[_0x27553a];return _0x71214f;},a9_0xace0(_0x23d065,_0x11f5f6);}let ValidatorService=class ValidatorService{constructor(){const _0x1164f8=a9_0x284fd2;this[_0x1164f8(0xfe)]={};}async['init'](){const _0xdcdc1c=a9_0x284fd2,_0x4c6540=Object[_0xdcdc1c(0x11f)](this['i18nConfig'][_0xdcdc1c(0x136)]);_0x4c6540['forEach'](_0xdf20f5=>{const _0x236147=_0xdcdc1c;this['messages'][(0x0,i18n_1[_0x236147(0xef)])(_0xdf20f5)]=Object[_0x236147(0x119)](this[_0x236147(0x12a)][_0x236147(0x133)](_0xdf20f5,'validator'));});}['getSchema'](_0x5f27e6){const _0x19b6ce=a9_0x284fd2,_0x2bca34=(0x0,core_1[_0x19b6ce(0x116)])(interface_1['RULES_KEY'],_0x5f27e6);return _0x2bca34?Joi[_0x19b6ce(0xf1)](_0x2bca34):undefined;}['validator'](_0x44cb1c,_0x553e1b,_0x204c0f={}){const _0x29e4c8=a9_0x284fd2;var _0x5906cc,_0xa0af5,_0x38cdad,_0x258afe,_0x256eb0,_0x546fed;const _0x131a3a=Joi[_0x29e4c8(0x137)](_0x44cb1c)?_0x44cb1c:this[_0x29e4c8(0x131)](_0x44cb1c);if(!_0x131a3a)throw new AnnError(ValidatorError_1[_0x29e4c8(0x128)][_0x29e4c8(0x12e)]);_0x204c0f[_0x29e4c8(0x12f)]=Object[_0x29e4c8(0x135)]((_0x5906cc=this[_0x29e4c8(0x11c)]['validationOptions'])!==null&&_0x5906cc!==void 0x0?_0x5906cc:{},{'messages':this[_0x29e4c8(0xfe)]},_0x204c0f[_0x29e4c8(0x12f)]||{}),_0x204c0f[_0x29e4c8(0x12f)][_0x29e4c8(0x117)]=_0x204c0f['validationOptions']['errors']||{},_0x204c0f[_0x29e4c8(0x12f)][_0x29e4c8(0x117)]['language']=(0x0,i18n_1[_0x29e4c8(0xef)])(this['i18nService']['getAvailableLocale'](_0x204c0f[_0x29e4c8(0x12f)][_0x29e4c8(0x117)][_0x29e4c8(0xf0)]||_0x204c0f[_0x29e4c8(0x126)]||this['i18nConfig'][_0x29e4c8(0x118)],_0x29e4c8(0xff)));const _0x3ce52d=_0x131a3a[_0x29e4c8(0x10d)](_0x553e1b,_0x204c0f['validationOptions']);if(_0x3ce52d===null||_0x3ce52d===void 0x0?void 0x0:_0x3ce52d['error']){if(_0x3ce52d['error']instanceof AnnError)throw _0x3ce52d[_0x29e4c8(0x120)];else{if(_0x3ce52d[_0x29e4c8(0x120)]instanceof Error)throw new AnnError(ValidatorError_1[_0x29e4c8(0x128)][_0x29e4c8(0x132)],{'message':((_0xa0af5=_0x3ce52d[_0x29e4c8(0x120)])===null||_0xa0af5===void 0x0?void 0x0:_0xa0af5[_0x29e4c8(0x103)])||_0x29e4c8(0x102)});else throw new AnnError(ValidatorError_1['ValidatorError'][_0x29e4c8(0x132)],{'message':((_0x256eb0=(_0x258afe=(_0x38cdad=_0x3ce52d[_0x29e4c8(0x120)])===null||_0x38cdad===void 0x0?void 0x0:_0x38cdad[_0x29e4c8(0x134)])===null||_0x258afe===void 0x0?void 0x0:_0x258afe[0x0])===null||_0x256eb0===void 0x0?void 0x0:_0x256eb0[_0x29e4c8(0x103)])||_0x29e4c8(0x102)});}}if(_0x3ce52d===null||_0x3ce52d===void 0x0?void 0x0:_0x3ce52d['value']){const _0x24a7ae=(_0x546fed=_0x131a3a===null||_0x131a3a===void 0x0?void 0x0:_0x131a3a['$_terms'])===null||_0x546fed===void 0x0?void 0x0:_0x546fed['keys'],_0x47e608=function(_0xdf11ba,_0x579f4b){const _0x138ae3=_0x29e4c8;var _0x390213,_0xfab267,_0x150520,_0x4a6c41,_0x3bc2a2,_0x40bd04,_0x3139ef,_0x1582b,_0x2ae4a2,_0x266755,_0x1a2b2e;for(let _0x540efb in _0xdf11ba){if(_0x579f4b[(_0x390213=_0xdf11ba[_0x540efb])===null||_0x390213===void 0x0?void 0x0:_0x390213[_0x138ae3(0x105)]]&&((_0x150520=(_0xfab267=_0xdf11ba[_0x540efb])===null||_0xfab267===void 0x0?void 0x0:_0xfab267[_0x138ae3(0x123)])===null||_0x150520===void 0x0?void 0x0:_0x150520['type'])){if(((_0x3bc2a2=(_0x4a6c41=_0xdf11ba[_0x540efb])===null||_0x4a6c41===void 0x0?void 0x0:_0x4a6c41[_0x138ae3(0x123)])===null||_0x3bc2a2===void 0x0?void 0x0:_0x3bc2a2[_0x138ae3(0x113)])==_0x138ae3(0xf1))_0x579f4b[_0xdf11ba[_0x540efb][_0x138ae3(0x105)]]=_0x47e608((_0x3139ef=(_0x40bd04=_0xdf11ba[_0x540efb])===null||_0x40bd04===void 0x0?void 0x0:_0x40bd04[_0x138ae3(0x123)][_0x138ae3(0xf4)])===null||_0x3139ef===void 0x0?void 0x0:_0x3139ef[_0x138ae3(0x11f)],_0x579f4b[_0xdf11ba[_0x540efb][_0x138ae3(0x105)]]);else{if(_0xdf11ba[_0x540efb][_0x138ae3(0x123)][_0x138ae3(0x113)]==_0x138ae3(0xfc)&&_0x3ce52d[_0x138ae3(0xf7)][(_0x1582b=_0xdf11ba[_0x540efb])===null||_0x1582b===void 0x0?void 0x0:_0x1582b[_0x138ae3(0x105)]]){const _0x253da0=((_0x1a2b2e=(_0x266755=(_0x2ae4a2=_0xdf11ba[_0x540efb])===null||_0x2ae4a2===void 0x0?void 0x0:_0x2ae4a2[_0x138ae3(0x123)])===null||_0x266755===void 0x0?void 0x0:_0x266755[_0x138ae3(0x10c)])===null||_0x1a2b2e===void 0x0?void 0x0:_0x1a2b2e[_0x138ae3(0x12d)])||_0x138ae3(0x127);_0x579f4b[_0xdf11ba[_0x540efb][_0x138ae3(0x105)]]=dayjs(_0x3ce52d[_0x138ae3(0xf7)][_0xdf11ba[_0x540efb][_0x138ae3(0x105)]])['format'](_0x253da0);}}}}return _0x579f4b;};return _0x47e608(_0x24a7ae,_0x3ce52d[_0x29e4c8(0xf7)]);}throw new AnnError(ValidatorError_1[_0x29e4c8(0x128)][_0x29e4c8(0x132)]);}};exports[a9_0x284fd2(0x130)]=ValidatorService,__decorate([(0x0,core_1[a9_0x284fd2(0x101)])(a9_0x284fd2(0xee)),__metadata(a9_0x284fd2(0x114),Object)],ValidatorService[a9_0x284fd2(0x115)],'i18nConfig',void 0x0),__decorate([(0x0,core_1[a9_0x284fd2(0x101)])('validator'),__metadata(a9_0x284fd2(0x114),Object)],ValidatorService['prototype'],a9_0x284fd2(0x11c),void 0x0),__decorate([(0x0,core_1[a9_0x284fd2(0x11e)])(),__metadata('design:type',i18n_1[a9_0x284fd2(0x10f)])],ValidatorService[a9_0x284fd2(0x115)],'i18nService',void 0x0),__decorate([(0x0,core_1['Init'])(),__metadata(a9_0x284fd2(0x114),Function),__metadata(a9_0x284fd2(0x108),[]),__metadata(a9_0x284fd2(0x125),Promise)],ValidatorService['prototype'],a9_0x284fd2(0x11a),null),exports['ValidatorService']=ValidatorService=__decorate([(0x0,core_1['Provide'])(a9_0x284fd2(0xff)),(0x0,core_1[a9_0x284fd2(0x106)])(core_1[a9_0x284fd2(0x129)][a9_0x284fd2(0xfd)])],ValidatorService);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/validator",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.55",
|
|
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.55",
|
|
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": "b2423470fe8628ab9a41d4579d59132162a95f15"
|
|
30
30
|
}
|