@anncic-api/validator 1.4.24 → 1.4.26
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
|
-
'use strict';
|
|
1
|
+
'use strict';const a0_0xc722d=a0_0x187b;function a0_0x187b(_0x30f80c,_0x5e05de){const _0x345710=a0_0x3457();return a0_0x187b=function(_0x187b7a,_0x1aad7f){_0x187b7a=_0x187b7a-0x1b2;let _0x25abb8=_0x345710[_0x187b7a];return _0x25abb8;},a0_0x187b(_0x30f80c,_0x5e05de);}(function(_0x41b993,_0x292a1f){const _0x3819ab=a0_0x187b,_0x9b3b16=_0x41b993();while(!![]){try{const _0x1480b5=-parseInt(_0x3819ab(0x1b4))/0x1+-parseInt(_0x3819ab(0x1bd))/0x2+-parseInt(_0x3819ab(0x1b2))/0x3+-parseInt(_0x3819ab(0x1bf))/0x4+-parseInt(_0x3819ab(0x1b7))/0x5+-parseInt(_0x3819ab(0x1bb))/0x6+parseInt(_0x3819ab(0x1ba))/0x7;if(_0x1480b5===_0x292a1f)break;else _0x9b3b16['push'](_0x9b3b16['shift']());}catch(_0x2a155f){_0x9b3b16['push'](_0x9b3b16['shift']());}}}(a0_0x3457,0xead3a));function a0_0x3457(){const _0x221922=['434943nOHqda','string','517267OZYeGu','default','../exception/ValidatorError','3640965hXmuhO','PARAMS','defineProperty','40412442ntDTeu','7145832GIlmsk','../../locales/en_US.json','1496822wJjqlA','../../locales/zh_CN.json','5926128hvVhVR'];a0_0x3457=function(){return _0x221922;};return a0_0x3457();}Object[a0_0xc722d(0x1b9)](exports,'__esModule',{'value':!![]});const ValidatorError_1=require(a0_0xc722d(0x1b6));exports[a0_0xc722d(0x1b5)]={'validator':{'errorStatus':ValidatorError_1['ValidatorError'][a0_0xc722d(0x1b8)],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':a0_0xc722d(0x1b3)}},'i18n':{'localeTable':{'en_US':{'validator':require(a0_0xc722d(0x1bc))},'zh_CN':{'validator':require(a0_0xc722d(0x1be))}}}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a1_0x7a7063=a1_0x6f9f;(function(_0xa76d47,_0x40ac5d){const _0x1f7e32=a1_0x6f9f,_0xc3ee28=_0xa76d47();while(!![]){try{const _0x57d721=parseInt(_0x1f7e32(0x1f7))/0x1*(parseInt(_0x1f7e32(0x1c8))/0x2)+-parseInt(_0x1f7e32(0x1d9))/0x3+parseInt(_0x1f7e32(0x1f2))/0x4*(parseInt(_0x1f7e32(0x1d3))/0x5)+parseInt(_0x1f7e32(0x1ca))/0x6+-parseInt(_0x1f7e32(0x1d8))/0x7+-parseInt(_0x1f7e32(0x1ed))/0x8*(-parseInt(_0x1f7e32(0x1e3))/0x9)+-parseInt(_0x1f7e32(0x1dd))/0xa;if(_0x57d721===_0x40ac5d)break;else _0xc3ee28['push'](_0xc3ee28['shift']());}catch(_0x15d7b8){_0xc3ee28['push'](_0xc3ee28['shift']());}}}(a1_0x486e,0xd2512));function a1_0x486e(){const _0xe9e5fc=['args','8258xPxoGz','target','__metadata','Inject','getSchema','@anncic-api/core','design:type','getClassMetadata','340MCHMEk','params','61182dGWOpT','anncic-api:validator','object','validator','prototype','VALIDATOR_KEY','metadata','method','req','35rezhsw','methodArgs','MidwayDecoratorService','getOwnPropertyDescriptor','locale','8227814ybUIUb','931206PDhzsT','@midwayjs/i18n','onReady','name','5666060jxztcl','param','decorator','./config/config.default','defineProperty','getMethodParamTypes','180TOwget','CustomConfiguration','function','@midwayjs/core','./interface','propertyName','length','decorate','assign','body','348392MgjbOx','find','request','I18N_ATTR_KEY','query','359332woKXAV','ValidatorService','undefined','getAttr'];a1_0x486e=function(){return _0xe9e5fc;};return a1_0x486e();}var __decorate=this&&this['__decorate']||function(_0x38933a,_0x2eebfe,_0x22a88e,_0x46f80d){const _0x4e19f9=a1_0x6f9f;var _0x20de87=arguments['length'],_0x1f98af=_0x20de87<0x3?_0x2eebfe:_0x46f80d===null?_0x46f80d=Object[_0x4e19f9(0x1d6)](_0x2eebfe,_0x22a88e):_0x46f80d,_0x1b3cdd;if(typeof Reflect==='object'&&typeof Reflect[_0x4e19f9(0x1ea)]==='function')_0x1f98af=Reflect[_0x4e19f9(0x1ea)](_0x38933a,_0x2eebfe,_0x22a88e,_0x46f80d);else{for(var _0x4c6ec5=_0x38933a['length']-0x1;_0x4c6ec5>=0x0;_0x4c6ec5--)if(_0x1b3cdd=_0x38933a[_0x4c6ec5])_0x1f98af=(_0x20de87<0x3?_0x1b3cdd(_0x1f98af):_0x20de87>0x3?_0x1b3cdd(_0x2eebfe,_0x22a88e,_0x1f98af):_0x1b3cdd(_0x2eebfe,_0x22a88e))||_0x1f98af;}return _0x20de87>0x3&&_0x1f98af&&Object['defineProperty'](_0x2eebfe,_0x22a88e,_0x1f98af),_0x1f98af;},__metadata=this&&this[a1_0x7a7063(0x1f9)]||function(_0x3fdaee,_0x56add0){const _0x8116d1=a1_0x7a7063;if(typeof Reflect===_0x8116d1(0x1cc)&&typeof Reflect['metadata']===_0x8116d1(0x1e5))return Reflect[_0x8116d1(0x1d0)](_0x3fdaee,_0x56add0);};Object[a1_0x7a7063(0x1e1)](exports,'__esModule',{'value':!![]}),exports['CustomConfiguration']=void 0x0;const i18n_1=require(a1_0x7a7063(0x1da)),core_1=require('@midwayjs/core'),core_2=require(a1_0x7a7063(0x1e6)),interface_1=require(a1_0x7a7063(0x1e7)),ValidatorService_1=require('./service/ValidatorService'),i18n=require(a1_0x7a7063(0x1da)),anncic=require(a1_0x7a7063(0x1c5)),ConfigDefault=require(a1_0x7a7063(0x1e0));function a1_0x6f9f(_0x24adb2,_0x171c4c){const _0x486e26=a1_0x486e();return a1_0x6f9f=function(_0x6f9f5c,_0x252adb){_0x6f9f5c=_0x6f9f5c-0x1c4;let _0x5c528b=_0x486e26[_0x6f9f5c];return _0x5c528b;},a1_0x6f9f(_0x24adb2,_0x171c4c);}let CustomConfiguration=class CustomConfiguration{async[a1_0x7a7063(0x1db)](){const _0x544533=a1_0x7a7063;this[_0x544533(0x1df)]['registerMethodHandler'](interface_1[_0x544533(0x1cf)],_0xda7f31=>{const _0x41aa24=_0x544533,_0x1735f9=_0xda7f31['metadata'],_0x42bce8=(0x0,core_2[_0x41aa24(0x1e2)])(_0xda7f31['target'],_0xda7f31[_0x41aa24(0x1e8)]);return{'before':_0x4f59f7=>{const _0x39abe6=_0x41aa24;var _0x214556,_0x59f169,_0x11d578,_0x5e0f9a,_0x1dd471,_0x428dca,_0x5bfe2f,_0x478bc2,_0x37c862,_0x216047,_0x403b17,_0x497595,_0xf4ac59;const _0x50a2c5=_0x4f59f7[_0x39abe6(0x1f8)][core_1['REQUEST_OBJ_CTX_KEY']],_0x1ae27c=Object[_0x39abe6(0x1eb)]({},((_0x214556=_0x50a2c5===null||_0x50a2c5===void 0x0?void 0x0:_0x50a2c5[_0x39abe6(0x1ef)])===null||_0x214556===void 0x0?void 0x0:_0x214556[_0x39abe6(0x1f1)])||{},((_0x59f169=_0x50a2c5===null||_0x50a2c5===void 0x0?void 0x0:_0x50a2c5[_0x39abe6(0x1ef)])===null||_0x59f169===void 0x0?void 0x0:_0x59f169[_0x39abe6(0x1ec)])||{}),_0x3421f3=((0x0,core_2[_0x39abe6(0x1c7)])(interface_1['VALIDATOR_KEY'],_0x4f59f7[_0x39abe6(0x1f8)])||[])[_0x39abe6(0x1ee)](_0x350cd7=>_0x350cd7[_0x39abe6(0x1d1)]==_0x4f59f7['methodName']);!(_0x1735f9===null||_0x1735f9===void 0x0?void 0x0:_0x1735f9[_0x39abe6(0x1d7)])&&_0x50a2c5&&_0x50a2c5['getAttr']&&(_0x1735f9[_0x39abe6(0x1d7)]=_0x50a2c5[_0x39abe6(0x1f5)](i18n_1[_0x39abe6(0x1f0)]));for(let _0x36fc4d=0x0;_0x36fc4d<_0x42bce8[_0x39abe6(0x1e9)];_0x36fc4d++){const _0x549417=_0x42bce8[_0x36fc4d],_0xfd3c59=this[_0x39abe6(0x1f3)][_0x39abe6(0x1c4)](_0x549417);if(_0xfd3c59){if(typeof _0x4f59f7[_0x39abe6(0x1f6)][_0x36fc4d]==_0x39abe6(0x1f4)||((_0x11d578=_0x4f59f7[_0x39abe6(0x1f6)][_0x36fc4d])===null||_0x11d578===void 0x0?void 0x0:_0x11d578[_0x39abe6(0x1ef)])&&((_0x5e0f9a=_0x4f59f7[_0x39abe6(0x1f6)][_0x36fc4d])===null||_0x5e0f9a===void 0x0?void 0x0:_0x5e0f9a['res'])&&((_0x1dd471=_0x4f59f7['args'][_0x36fc4d])===null||_0x1dd471===void 0x0?void 0x0:_0x1dd471[_0x39abe6(0x1d2)]))_0x4f59f7['args'][_0x36fc4d]=_0x1ae27c;else((_0x428dca=_0x4f59f7[_0x39abe6(0x1f6)][_0x36fc4d])===null||_0x428dca===void 0x0?void 0x0:_0x428dca[_0x39abe6(0x1dc)])=='bound\x20dispatch'&&_0x4f59f7[_0x39abe6(0x1f6)]['splice'](_0x36fc4d,0x0,_0x1ae27c);const _0x3f889e=this[_0x39abe6(0x1f3)][_0x39abe6(0x1cd)](_0xfd3c59,_0x4f59f7['args'][_0x36fc4d],_0x1735f9);_0x3f889e&&(_0x4f59f7[_0x39abe6(0x1f6)][_0x36fc4d]=_0x3f889e);}else{if((_0x3421f3===null||_0x3421f3===void 0x0?void 0x0:_0x3421f3[_0x39abe6(0x1d4)][_0x36fc4d])&&((_0x5bfe2f=_0x4f59f7[_0x39abe6(0x1f6)][_0x36fc4d])===null||_0x5bfe2f===void 0x0?void 0x0:_0x5bfe2f['params'])&&typeof _0x4f59f7[_0x39abe6(0x1f6)][_0x36fc4d][_0x39abe6(0x1de)]==_0x39abe6(0x1e5)&&((_0x478bc2=_0x50a2c5===null||_0x50a2c5===void 0x0?void 0x0:_0x50a2c5[_0x39abe6(0x1c9)])===null||_0x478bc2===void 0x0?void 0x0:_0x478bc2[_0x3421f3[_0x39abe6(0x1d4)][_0x36fc4d]]))_0x4f59f7[_0x39abe6(0x1f6)][_0x36fc4d]=_0x549417((_0x37c862=_0x50a2c5===null||_0x50a2c5===void 0x0?void 0x0:_0x50a2c5[_0x39abe6(0x1c9)])===null||_0x37c862===void 0x0?void 0x0:_0x37c862[_0x3421f3[_0x39abe6(0x1d4)][_0x36fc4d]]);else(_0x3421f3===null||_0x3421f3===void 0x0?void 0x0:_0x3421f3[_0x39abe6(0x1d4)][_0x36fc4d])&&((_0x403b17=(_0x216047=_0x4f59f7[_0x39abe6(0x1f6)][_0x36fc4d])===null||_0x216047===void 0x0?void 0x0:_0x216047[_0x39abe6(0x1c9)])===null||_0x403b17===void 0x0?void 0x0:_0x403b17[_0x3421f3[_0x39abe6(0x1d4)][_0x36fc4d]])&&(_0x4f59f7[_0x39abe6(0x1f6)][_0x36fc4d]=(_0xf4ac59=(_0x497595=_0x4f59f7[_0x39abe6(0x1f6)][_0x36fc4d])===null||_0x497595===void 0x0?void 0x0:_0x497595[_0x39abe6(0x1c9)])===null||_0xf4ac59===void 0x0?void 0x0:_0xf4ac59[_0x3421f3[_0x39abe6(0x1d4)][_0x36fc4d]]);}}},'afterThrow':(_0xac4c27,_0x483ce3)=>{throw _0x483ce3;}};});}};__decorate([(0x0,core_2[a1_0x7a7063(0x1fa)])(),__metadata(a1_0x7a7063(0x1c6),core_1[a1_0x7a7063(0x1d5)])],CustomConfiguration[a1_0x7a7063(0x1ce)],'decorator',void 0x0),__decorate([(0x0,core_2[a1_0x7a7063(0x1fa)])(),__metadata(a1_0x7a7063(0x1c6),ValidatorService_1[a1_0x7a7063(0x1f3)])],CustomConfiguration[a1_0x7a7063(0x1ce)],'ValidatorService',void 0x0),CustomConfiguration=__decorate([(0x0,core_2['Configuration'])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':a1_0x7a7063(0x1cb),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x7a7063(0x1e4)]=CustomConfiguration;
|
package/dist/decorator/Rule.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a2_0x29b000=a2_0x14cb;(function(_0x3f6761,_0x4fd4e8){const _0x7de6c5=a2_0x14cb,_0x352545=_0x3f6761();while(!![]){try{const _0x5b8cca=parseInt(_0x7de6c5(0xd5))/0x1+parseInt(_0x7de6c5(0xda))/0x2*(-parseInt(_0x7de6c5(0xe6))/0x3)+-parseInt(_0x7de6c5(0xf3))/0x4*(-parseInt(_0x7de6c5(0xd7))/0x5)+parseInt(_0x7de6c5(0xd9))/0x6*(parseInt(_0x7de6c5(0xeb))/0x7)+parseInt(_0x7de6c5(0xee))/0x8*(-parseInt(_0x7de6c5(0xd8))/0x9)+parseInt(_0x7de6c5(0xd1))/0xa+-parseInt(_0x7de6c5(0xdb))/0xb;if(_0x5b8cca===_0x4fd4e8)break;else _0x352545['push'](_0x352545['shift']());}catch(_0x1ed3ca){_0x352545['push'](_0x352545['shift']());}}}(a2_0x4ed3,0xce3b0));Object[a2_0x29b000(0xf2)](exports,a2_0x29b000(0xf1),{'value':!![]}),exports[a2_0x29b000(0xe8)]=exports[a2_0x29b000(0xea)]=void 0x0;function a2_0x14cb(_0x592a7d,_0x5b3a54){const _0x4ed3c6=a2_0x4ed3();return a2_0x14cb=function(_0x14cb48,_0xc8c904){_0x14cb48=_0x14cb48-0xd1;let _0x441f55=_0x4ed3c6[_0x14cb48];return _0x441f55;},a2_0x14cb(_0x592a7d,_0x5b3a54);}const joi=require(a2_0x29b000(0xe7)),date_1=require(a2_0x29b000(0xef)),core_1=require(a2_0x29b000(0xde)),interface_1=require('../interface');exports['RuleType']=joi[a2_0x29b000(0xe2)](date_1[a2_0x29b000(0xd3)]);function Rule(_0x180c76,_0x31c37a,_0x39f402=''){return(_0x423a32,_0x1f9359)=>{const _0x332241=a2_0x14cb;var _0x4a443b;if(_0x1f9359)!joi[_0x332241(0xe4)](_0x31c37a)&&(_0x31c37a===null||_0x31c37a===void 0x0?void 0x0:_0x31c37a['name'])&&(_0x31c37a=joi[_0x332241(0xdc)]((0x0,core_1[_0x332241(0xd4)])(interface_1[_0x332241(0xd2)],_0x31c37a))[_0x332241(0xf0)]({'id':_0x31c37a[_0x332241(0xdf)]}),(0x0,core_1['getPropertyType'])(_0x423a32,_0x1f9359)['name']===_0x332241(0xed)&&(_0x31c37a=joi[_0x332241(0xd6)]()[_0x332241(0xe5)](_0x31c37a))),joi[_0x332241(0xe4)](_0x31c37a)&&(_0x180c76&&typeof(_0x31c37a===null||_0x31c37a===void 0x0?void 0x0:_0x31c37a['label'])=='function'&&(_0x31c37a=_0x31c37a[_0x332241(0xdd)](_0x180c76)),_0x39f402&&typeof(_0x31c37a===null||_0x31c37a===void 0x0?void 0x0:_0x31c37a['description'])=='function'&&(_0x31c37a=_0x31c37a[_0x332241(0xe3)](_0x39f402)),(0x0,core_1[_0x332241(0xe9)])(interface_1[_0x332241(0xd2)],_0x31c37a,_0x423a32,_0x1f9359));else{const _0x338ad2=(0x0,core_1['getClassMetadata'])(interface_1['RULES_KEY'],_0x31c37a);if(_0x338ad2){let _0x3cf334=(_0x4a443b=(0x0,core_1['getClassMetadata'])(interface_1['RULES_KEY'],_0x423a32))!==null&&_0x4a443b!==void 0x0?_0x4a443b:{};Object[_0x332241(0xe0)](_0x338ad2)[_0x332241(0xe1)](_0x45df3a=>{!_0x3cf334[_0x45df3a]&&(_0x3cf334[_0x45df3a]=_0x338ad2[_0x45df3a]);}),(0x0,core_1[_0x332241(0xec)])(interface_1[_0x332241(0xd2)],_0x3cf334,_0x423a32);}}};}function a2_0x4ed3(){const _0x5596a7=['keys','map','extend','description','isSchema','items','261QJPZQw','joi','Rule','attachClassMetadata','RuleType','42vUDmRy','saveClassMetadata','Array','280424dFVhzu','@joi/date','meta','__esModule','defineProperty','128UdGKfo','14029780rUSXRG','RULES_KEY','default','getClassMetadata','47042EymwnI','array','197830iuPiVa','63QDvkkW','855192sXUMMB','2036rWzvCd','26319337VEmBnF','object','label','@midwayjs/core','name'];a2_0x4ed3=function(){return _0x5596a7;};return a2_0x4ed3();}exports[a2_0x29b000(0xe8)]=Rule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a3_0x16b709=a3_0x40c3;(function(_0x4bc056,_0x1084b6){const _0x12b33a=a3_0x40c3,_0x469ad1=_0x4bc056();while(!![]){try{const _0xa3bee8=parseInt(_0x12b33a(0x9f))/0x1+parseInt(_0x12b33a(0x9a))/0x2*(-parseInt(_0x12b33a(0xaf))/0x3)+-parseInt(_0x12b33a(0xa7))/0x4+-parseInt(_0x12b33a(0xa3))/0x5*(-parseInt(_0x12b33a(0xa1))/0x6)+parseInt(_0x12b33a(0x9d))/0x7+-parseInt(_0x12b33a(0x9c))/0x8*(-parseInt(_0x12b33a(0xae))/0x9)+-parseInt(_0x12b33a(0xa0))/0xa;if(_0xa3bee8===_0x1084b6)break;else _0x469ad1['push'](_0x469ad1['shift']());}catch(_0x5fce57){_0x469ad1['push'](_0x469ad1['shift']());}}}(a3_0x22ac,0xa74d4));function a3_0x22ac(){const _0x117e3b=['1238882QiKXqV','20854210dCkdPS','492AwpDPz','match','7555oRRjXj','__esModule','VALIDATOR_KEY','constructor','2289332zrRass','slice','indexOf','replace','prototype','getFuncArgs','Validator','63zzGRBf','246NiJkTt','11198nGsDGe','function','1375016oKBMQP','8653519mnFrNC','toString'];a3_0x22ac=function(){return _0x117e3b;};return a3_0x22ac();}Object['defineProperty'](exports,a3_0x16b709(0xa4),{'value':!![]}),exports[a3_0x16b709(0xac)]=exports[a3_0x16b709(0xad)]=void 0x0;function a3_0x40c3(_0x18bbd2,_0x205a9a){const _0x22ac26=a3_0x22ac();return a3_0x40c3=function(_0x40c3dc,_0x15132d){_0x40c3dc=_0x40c3dc-0x9a;let _0x547d04=_0x22ac26[_0x40c3dc];return _0x547d04;},a3_0x40c3(_0x18bbd2,_0x205a9a);}const core_1=require('@midwayjs/core'),interface_1=require('../interface');function Validator(_0x5f7ed2={}){return(_0x105542,_0x1da99d,_0x1e4c99)=>{const _0x5112f9=a3_0x40c3,_0x5f0a78=getFuncArgs(_0x105542[_0x1da99d]);(0x0,core_1['attachClassMetadata'])(interface_1[_0x5112f9(0xa5)],{'method':_0x1da99d,'methodArgs':_0x5f0a78},_0x105542),(0x0,core_1['createCustomMethodDecorator'])(interface_1[_0x5112f9(0xa5)],_0x5f7ed2)(_0x105542,_0x1da99d,_0x1e4c99);};}exports['Validator']=Validator;function getFuncArgs(_0x12451f){const _0xc5358b=a3_0x16b709;if(typeof _0x12451f==_0xc5358b(0x9b)){const _0x3f4876=/=>.*$/mg,_0x46a17a=/=[^,)]+/mg,_0x403ec0=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x38a38c=(_0x12451f[_0xc5358b(0xab)]?_0x12451f['prototype'][_0xc5358b(0xa6)][_0xc5358b(0x9e)]():_0x12451f['toString']())[_0xc5358b(0xaa)](_0x403ec0,'')[_0xc5358b(0xaa)](_0x3f4876,'')[_0xc5358b(0xaa)](_0x46a17a,''),_0x2bf5b2=_0x38a38c[_0xc5358b(0xa8)](_0x38a38c[_0xc5358b(0xa9)]('(')+0x1,_0x38a38c[_0xc5358b(0xa9)](')'))[_0xc5358b(0xa2)](/([^\s,]+)/g)||[];return _0x2bf5b2;}}exports[a3_0x16b709(0xac)]=getFuncArgs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a4_0x3e8241=a4_0x165c;(function(_0x163135,_0x1c029d){var _0x4fc77b=a4_0x165c,_0x4e74d0=_0x163135();while(!![]){try{var _0x127cbd=parseInt(_0x4fc77b(0x14f))/0x1*(parseInt(_0x4fc77b(0x138))/0x2)+parseInt(_0x4fc77b(0x149))/0x3*(-parseInt(_0x4fc77b(0x14a))/0x4)+-parseInt(_0x4fc77b(0x137))/0x5+parseInt(_0x4fc77b(0x139))/0x6*(parseInt(_0x4fc77b(0x14d))/0x7)+-parseInt(_0x4fc77b(0x145))/0x8*(parseInt(_0x4fc77b(0x14b))/0x9)+-parseInt(_0x4fc77b(0x14c))/0xa*(parseInt(_0x4fc77b(0x13a))/0xb)+-parseInt(_0x4fc77b(0x143))/0xc*(-parseInt(_0x4fc77b(0x142))/0xd);if(_0x127cbd===_0x1c029d)break;else _0x4e74d0['push'](_0x4e74d0['shift']());}catch(_0x2b58e2){_0x4e74d0['push'](_0x4e74d0['shift']());}}}(a4_0x2996,0xbc9c9));function a4_0x2996(){var _0xcb566f=['function','length','__decorate','ValidatorError','PARAMS','__esModule','NOFIND_SCHEMA','134524HTATkI','4236BztlQL','defineProperty','8hFZOBR','object','design:type','@anncic-api/core','1367958eCkKNd','4FcLMqE','13286223GECxLN','31140aNKeAM','1422974sNonjO','AnnErrorMsg','68711mGnpwh','metadata','decorate','参数验证失败','7654005plkKQe','14OqCdrw','36GaVJiy','3949nAmMBE'];a4_0x2996=function(){return _0xcb566f;};return a4_0x2996();}var __decorate=this&&this[a4_0x3e8241(0x13d)]||function(_0xe3f0e3,_0x20a4df,_0x57618a,_0x3b8e57){var _0x55ae56=a4_0x3e8241,_0x1ffabe=arguments[_0x55ae56(0x13c)],_0x11c9e6=_0x1ffabe<0x3?_0x20a4df:_0x3b8e57===null?_0x3b8e57=Object['getOwnPropertyDescriptor'](_0x20a4df,_0x57618a):_0x3b8e57,_0xc589ed;if(typeof Reflect===_0x55ae56(0x146)&&typeof Reflect[_0x55ae56(0x135)]===_0x55ae56(0x13b))_0x11c9e6=Reflect['decorate'](_0xe3f0e3,_0x20a4df,_0x57618a,_0x3b8e57);else{for(var _0x31e915=_0xe3f0e3['length']-0x1;_0x31e915>=0x0;_0x31e915--)if(_0xc589ed=_0xe3f0e3[_0x31e915])_0x11c9e6=(_0x1ffabe<0x3?_0xc589ed(_0x11c9e6):_0x1ffabe>0x3?_0xc589ed(_0x20a4df,_0x57618a,_0x11c9e6):_0xc589ed(_0x20a4df,_0x57618a))||_0x11c9e6;}return _0x1ffabe>0x3&&_0x11c9e6&&Object['defineProperty'](_0x20a4df,_0x57618a,_0x11c9e6),_0x11c9e6;},__metadata=this&&this['__metadata']||function(_0x13d565,_0x528630){var _0x3c27d4=a4_0x3e8241;if(typeof Reflect==='object'&&typeof Reflect[_0x3c27d4(0x134)]===_0x3c27d4(0x13b))return Reflect[_0x3c27d4(0x134)](_0x13d565,_0x528630);};Object[a4_0x3e8241(0x144)](exports,a4_0x3e8241(0x140),{'value':!![]}),exports[a4_0x3e8241(0x13e)]=void 0x0;function a4_0x165c(_0x4517d5,_0x4cc3e8){var _0x29964c=a4_0x2996();return a4_0x165c=function(_0x165c54,_0xe98111){_0x165c54=_0x165c54-0x134;var _0x1604df=_0x29964c[_0x165c54];return _0x1604df;},a4_0x165c(_0x4517d5,_0x4cc3e8);}const core_1=require(a4_0x3e8241(0x148));class ValidatorError{}ValidatorError[a4_0x3e8241(0x13f)]=0x3df374,ValidatorError[a4_0x3e8241(0x141)]=0x3df36a,__decorate([(0x0,core_1[a4_0x3e8241(0x14e)])('参数验证失败'),__metadata('design:type',Object)],ValidatorError,'PARAMS',void 0x0),__decorate([(0x0,core_1[a4_0x3e8241(0x14e)])(a4_0x3e8241(0x136)),__metadata(a4_0x3e8241(0x147),Object)],ValidatorError,a4_0x3e8241(0x141),void 0x0),exports[a4_0x3e8241(0x13e)]=ValidatorError;
|
package/dist/helper/dtoHelper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0x53b8bd=a5_0x35d2;(function(_0x246324,_0x5b9ace){const _0x55f6ca=a5_0x35d2,_0x77fe8e=_0x246324();while(!![]){try{const _0x1b1d0c=-parseInt(_0x55f6ca(0x11b))/0x1+-parseInt(_0x55f6ca(0x11f))/0x2+parseInt(_0x55f6ca(0x123))/0x3+parseInt(_0x55f6ca(0x11e))/0x4*(-parseInt(_0x55f6ca(0x122))/0x5)+parseInt(_0x55f6ca(0x128))/0x6+parseInt(_0x55f6ca(0x125))/0x7+-parseInt(_0x55f6ca(0x121))/0x8*(parseInt(_0x55f6ca(0x120))/0x9);if(_0x1b1d0c===_0x5b9ace)break;else _0x77fe8e['push'](_0x77fe8e['shift']());}catch(_0x35f180){_0x77fe8e['push'](_0x77fe8e['shift']());}}}(a5_0x3b68,0xe4e6f));Object[a5_0x53b8bd(0x11a)](exports,a5_0x53b8bd(0x11d),{'value':!![]}),exports[a5_0x53b8bd(0x118)]=exports[a5_0x53b8bd(0x129)]=void 0x0;const core_1=require(a5_0x53b8bd(0x11c)),interface_1=require(a5_0x53b8bd(0x126));function PickDto(_0x15fe84,_0x3e4460){const _0x217bb1=a5_0x53b8bd,_0x1ad3bc=function(){};_0x1ad3bc['prototype']=_0x15fe84[_0x217bb1(0x117)];const _0x1a6a02=(0x0,core_1[_0x217bb1(0x127)])(interface_1[_0x217bb1(0x119)],_0x15fe84),_0x156593={};for(const _0x1ae42e of _0x3e4460){_0x1a6a02[_0x1ae42e]&&(_0x156593[_0x1ae42e]=_0x1a6a02[_0x1ae42e]);}return(0x0,core_1['saveClassMetadata'])(interface_1[_0x217bb1(0x119)],_0x156593,_0x1ad3bc),_0x1ad3bc;}exports[a5_0x53b8bd(0x129)]=PickDto;function a5_0x35d2(_0x4c1c5b,_0x1ab773){const _0x3b6817=a5_0x3b68();return a5_0x35d2=function(_0x35d296,_0x475ea6){_0x35d296=_0x35d296-0x117;let _0x9c153f=_0x3b6817[_0x35d296];return _0x9c153f;},a5_0x35d2(_0x4c1c5b,_0x1ab773);}function OmitDto(_0x27c0d3,_0x16b76e){const _0x5952b=a5_0x53b8bd,_0x1bc244=function(){};_0x1bc244[_0x5952b(0x117)]=_0x27c0d3[_0x5952b(0x117)];const _0x1d0089=(0x0,core_1[_0x5952b(0x127)])(interface_1[_0x5952b(0x119)],_0x27c0d3),_0x2a0310=Object['assign']({},_0x1d0089);for(const _0x21cb66 of _0x16b76e){delete _0x2a0310[_0x21cb66];}return(0x0,core_1[_0x5952b(0x124)])(interface_1[_0x5952b(0x119)],_0x2a0310,_0x1bc244),_0x1bc244;}function a5_0x3b68(){const _0x1eee11=['PickDto','prototype','OmitDto','RULES_KEY','defineProperty','1550677kHLEnO','@midwayjs/core','__esModule','64PquHSA','429878nyWinw','1395CakuhU','20192dMBnie','311615uhxapg','5083410bTdUjV','saveClassMetadata','5875926avpntv','../interface','getClassExtendedMetadata','9346194oHxGvF'];a5_0x3b68=function(){return _0x1eee11;};return a5_0x3b68();}exports[a5_0x53b8bd(0x118)]=OmitDto;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a6_0x362bf4=a6_0x4049;(function(_0x51131c,_0xab33d2){var _0xd6436d=a6_0x4049,_0xb7a5c3=_0x51131c();while(!![]){try{var _0x4a88a2=-parseInt(_0xd6436d(0x1a8))/0x1*(parseInt(_0xd6436d(0x1a6))/0x2)+parseInt(_0xd6436d(0x1bf))/0x3*(-parseInt(_0xd6436d(0x1b8))/0x4)+parseInt(_0xd6436d(0x1b7))/0x5*(-parseInt(_0xd6436d(0x1c0))/0x6)+-parseInt(_0xd6436d(0x1b1))/0x7+parseInt(_0xd6436d(0x1ae))/0x8*(-parseInt(_0xd6436d(0x1c1))/0x9)+-parseInt(_0xd6436d(0x1c6))/0xa+-parseInt(_0xd6436d(0x1b9))/0xb*(-parseInt(_0xd6436d(0x1bc))/0xc);if(_0x4a88a2===_0xab33d2)break;else _0xb7a5c3['push'](_0xb7a5c3['shift']());}catch(_0x5c6e02){_0xb7a5c3['push'](_0xb7a5c3['shift']());}}}(a6_0x54fb,0x4f6de));var __createBinding=this&&this[a6_0x362bf4(0x1aa)]||(Object['create']?function(_0x165dfc,_0x34ba2f,_0x21bc47,_0x26ed4e){var _0xecb330=a6_0x362bf4;if(_0x26ed4e===undefined)_0x26ed4e=_0x21bc47;var _0xc30d56=Object[_0xecb330(0x1ad)](_0x34ba2f,_0x21bc47);(!_0xc30d56||(_0xecb330(0x1c3)in _0xc30d56?!_0x34ba2f[_0xecb330(0x1be)]:_0xc30d56[_0xecb330(0x1b6)]||_0xc30d56[_0xecb330(0x1bb)]))&&(_0xc30d56={'enumerable':!![],'get':function(){return _0x34ba2f[_0x21bc47];}}),Object[_0xecb330(0x1c4)](_0x165dfc,_0x26ed4e,_0xc30d56);}:function(_0x39cbfe,_0x4d1146,_0x169cce,_0x206c03){if(_0x206c03===undefined)_0x206c03=_0x169cce;_0x39cbfe[_0x206c03]=_0x4d1146[_0x169cce];}),__exportStar=this&&this['__exportStar']||function(_0x49d863,_0x1a3327){var _0x39169d=a6_0x362bf4;for(var _0x346f4b in _0x49d863)if(_0x346f4b!==_0x39169d(0x1c2)&&!Object[_0x39169d(0x1b2)][_0x39169d(0x1af)]['call'](_0x1a3327,_0x346f4b))__createBinding(_0x1a3327,_0x49d863,_0x346f4b);};function a6_0x54fb(){var _0x444edf=['ValidatorError','__esModule','6SnJPIw','24QfevcB','18UqVraZ','default','get','defineProperty','./service/ValidatorService','5688690wIlVxq','Rule','852922jkrxDG','./helper/dtoHelper','1giKOBH','Validator','__createBinding','./exception/ValidatorError','Configuration','getOwnPropertyDescriptor','206464TRlagn','hasOwnProperty','./decorator/Rule','4210493HeFgHW','prototype','./decorator/Validator','RuleType','./interface','writable','755520SmIVld','614324lmqzyE','77sXTNQT','ValidatorService','configurable','4946340GBPpZy'];a6_0x54fb=function(){return _0x444edf;};return a6_0x54fb();}Object[a6_0x362bf4(0x1c4)](exports,'__esModule',{'value':!![]}),exports[a6_0x362bf4(0x1ac)]=exports[a6_0x362bf4(0x1ba)]=exports[a6_0x362bf4(0x1bd)]=exports['RuleType']=exports[a6_0x362bf4(0x1a5)]=exports[a6_0x362bf4(0x1a9)]=void 0x0,__exportStar(require(a6_0x362bf4(0x1b5)),exports),__exportStar(require(a6_0x362bf4(0x1a7)),exports);var Validator_1=require(a6_0x362bf4(0x1b3));Object[a6_0x362bf4(0x1c4)](exports,a6_0x362bf4(0x1a9),{'enumerable':!![],'get':function(){var _0x1dfd6c=a6_0x362bf4;return Validator_1[_0x1dfd6c(0x1a9)];}});var Rule_1=require(a6_0x362bf4(0x1b0));Object[a6_0x362bf4(0x1c4)](exports,a6_0x362bf4(0x1a5),{'enumerable':!![],'get':function(){var _0xd30791=a6_0x362bf4;return Rule_1[_0xd30791(0x1a5)];}}),Object[a6_0x362bf4(0x1c4)](exports,a6_0x362bf4(0x1b4),{'enumerable':!![],'get':function(){return Rule_1['RuleType'];}});var ValidatorError_1=require(a6_0x362bf4(0x1ab));Object['defineProperty'](exports,a6_0x362bf4(0x1bd),{'enumerable':!![],'get':function(){var _0x2e59d7=a6_0x362bf4;return ValidatorError_1[_0x2e59d7(0x1bd)];}});var ValidatorService_1=require(a6_0x362bf4(0x1c5));function a6_0x4049(_0xf84bf2,_0xad1d55){var _0x54fbb0=a6_0x54fb();return a6_0x4049=function(_0x4049f7,_0x53a2d5){_0x4049f7=_0x4049f7-0x1a5;var _0x13b371=_0x54fbb0[_0x4049f7];return _0x13b371;},a6_0x4049(_0xf84bf2,_0xad1d55);}Object[a6_0x362bf4(0x1c4)](exports,'ValidatorService',{'enumerable':!![],'get':function(){var _0x3cc759=a6_0x362bf4;return ValidatorService_1[_0x3cc759(0x1ba)];}});var configuration_1=require('./configuration');Object[a6_0x362bf4(0x1c4)](exports,a6_0x362bf4(0x1ac),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a7_0x3a18(_0x510cd3,_0x3b53f6){var _0x312e61=a7_0x312e();return a7_0x3a18=function(_0x3a185c,_0x58e13e){_0x3a185c=_0x3a185c-0x1e7;var _0x3f2dc6=_0x312e61[_0x3a185c];return _0x3f2dc6;},a7_0x3a18(_0x510cd3,_0x3b53f6);}var a7_0x35c5c1=a7_0x3a18;(function(_0x2a718f,_0xecb2d7){var _0x836e4f=a7_0x3a18,_0x2cffe3=_0x2a718f();while(!![]){try{var _0x12dfb8=parseInt(_0x836e4f(0x1ed))/0x1+parseInt(_0x836e4f(0x1f1))/0x2*(parseInt(_0x836e4f(0x1eb))/0x3)+-parseInt(_0x836e4f(0x1e7))/0x4+parseInt(_0x836e4f(0x1ee))/0x5+parseInt(_0x836e4f(0x1f0))/0x6+parseInt(_0x836e4f(0x1ea))/0x7*(parseInt(_0x836e4f(0x1ec))/0x8)+parseInt(_0x836e4f(0x1ef))/0x9*(-parseInt(_0x836e4f(0x1e9))/0xa);if(_0x12dfb8===_0xecb2d7)break;else _0x2cffe3['push'](_0x2cffe3['shift']());}catch(_0x1bce25){_0x2cffe3['push'](_0x2cffe3['shift']());}}}(a7_0x312e,0x349f6));function a7_0x312e(){var _0x2e5e8a=['215528VYULaw','VALIDATOR_KEY','8770RJUUvg','35UQZafZ','8394DcSsxp','63272aMnyND','141150vraQpx','2124850vHnzEb','9504Zwbmbh','1910790bwRssQ','194GftJvx','RULES_KEY'];a7_0x312e=function(){return _0x2e5e8a;};return a7_0x312e();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a7_0x35c5c1(0x1e8)]=exports['RULES_KEY']=void 0x0,exports[a7_0x35c5c1(0x1f2)]='anncic-api:validator:rules',exports['VALIDATOR_KEY']='anncic-api:validator:validator';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a8_0x2870d5=a8_0x3669;(function(_0x26f6a1,_0x51c1b1){const _0x3a6636=a8_0x3669,_0xa609a7=_0x26f6a1();while(!![]){try{const _0x2f84ed=-parseInt(_0x3a6636(0x1c4))/0x1*(parseInt(_0x3a6636(0x1ca))/0x2)+parseInt(_0x3a6636(0x1bb))/0x3*(parseInt(_0x3a6636(0x1c7))/0x4)+parseInt(_0x3a6636(0x1e6))/0x5+parseInt(_0x3a6636(0x1e7))/0x6*(parseInt(_0x3a6636(0x1dc))/0x7)+parseInt(_0x3a6636(0x1e0))/0x8*(-parseInt(_0x3a6636(0x1e1))/0x9)+-parseInt(_0x3a6636(0x1d1))/0xa*(parseInt(_0x3a6636(0x1bc))/0xb)+-parseInt(_0x3a6636(0x1db))/0xc*(-parseInt(_0x3a6636(0x1c8))/0xd);if(_0x2f84ed===_0x51c1b1)break;else _0xa609a7['push'](_0xa609a7['shift']());}catch(_0x124fdf){_0xa609a7['push'](_0xa609a7['shift']());}}}(a8_0x2c9b,0xe6f36));var __decorate=this&&this['__decorate']||function(_0x315212,_0x28c7b6,_0x587306,_0x558ca3){const _0x15ba7c=a8_0x3669;var _0x20418f=arguments['length'],_0x300131=_0x20418f<0x3?_0x28c7b6:_0x558ca3===null?_0x558ca3=Object[_0x15ba7c(0x1b2)](_0x28c7b6,_0x587306):_0x558ca3,_0xcc7039;if(typeof Reflect===_0x15ba7c(0x1bd)&&typeof Reflect[_0x15ba7c(0x1a2)]===_0x15ba7c(0x1d3))_0x300131=Reflect[_0x15ba7c(0x1a2)](_0x315212,_0x28c7b6,_0x587306,_0x558ca3);else{for(var _0x2b0882=_0x315212['length']-0x1;_0x2b0882>=0x0;_0x2b0882--)if(_0xcc7039=_0x315212[_0x2b0882])_0x300131=(_0x20418f<0x3?_0xcc7039(_0x300131):_0x20418f>0x3?_0xcc7039(_0x28c7b6,_0x587306,_0x300131):_0xcc7039(_0x28c7b6,_0x587306))||_0x300131;}return _0x20418f>0x3&&_0x300131&&Object['defineProperty'](_0x28c7b6,_0x587306,_0x300131),_0x300131;},__metadata=this&&this[a8_0x2870d5(0x1e4)]||function(_0x4778bb,_0x4c4aee){const _0x15c6aa=a8_0x2870d5;if(typeof Reflect==='object'&&typeof Reflect[_0x15c6aa(0x1e2)]===_0x15c6aa(0x1d3))return Reflect[_0x15c6aa(0x1e2)](_0x4778bb,_0x4c4aee);};function a8_0x2c9b(){const _0x3f0d69=['__esModule','412HtUReq','13GEgxnM','ScopeEnum','3694AoKBsG','formatLocale','@midwayjs/i18n','Config','getAvailableLocale','i18nConfig','fromEntries','10magQxf','Inject','function','NOFIND_SCHEMA','../exception/ValidatorError','_flags','keys','init','getClassExtendedMetadata','../interface','21692316JbOmwk','63wHbaHv','localeTable','Provide','language','8qWoDKZ','8172513xaTJjR','metadata','getLocaleMapping','__metadata','validator','2212845jDnwXY','504318iuRZEH','prototype','i18nService','decorate','design:type','value','schema','i18n','joi','ValidatorService','RULES_KEY','$_terms','details','error','defaultLocale','validate','design:returntype','ValidatorError','@midwayjs/core','getOwnPropertyDescriptor','message','forEach','PARAMS','YYYY-MM-DD\x20HH:mm:ss','getSchema','messages','Scope','validationOptions','6285tRyHku','5585701fMcyQS','object','design:paramtypes','errors','validatorConfig','Init','format','key','466sAPjNF','type'];a8_0x2c9b=function(){return _0x3f0d69;};return a8_0x2c9b();}Object['defineProperty'](exports,a8_0x2870d5(0x1c6),{'value':!![]}),exports[a8_0x2870d5(0x1a8)]=void 0x0;function a8_0x3669(_0x4b8adf,_0x38ab4a){const _0x2c9b94=a8_0x2c9b();return a8_0x3669=function(_0x36695c,_0x2c5b76){_0x36695c=_0x36695c-0x1a1;let _0x4098e8=_0x2c9b94[_0x36695c];return _0x4098e8;},a8_0x3669(_0x4b8adf,_0x38ab4a);}const Joi=require(a8_0x2870d5(0x1a7)),i18n_1=require(a8_0x2870d5(0x1cc)),core_1=require(a8_0x2870d5(0x1b1)),interface_1=require(a8_0x2870d5(0x1da)),ValidatorError_1=require(a8_0x2870d5(0x1d5));let ValidatorService=class ValidatorService{constructor(){const _0x6d3bf0=a8_0x2870d5;this[_0x6d3bf0(0x1b8)]={};}async[a8_0x2870d5(0x1d8)](){const _0x23acb0=a8_0x2870d5,_0x5e34b2=Object[_0x23acb0(0x1d7)](this[_0x23acb0(0x1cf)][_0x23acb0(0x1dd)]);_0x5e34b2[_0x23acb0(0x1b4)](_0x3ed805=>{const _0x557037=_0x23acb0;this[_0x557037(0x1b8)][(0x0,i18n_1[_0x557037(0x1cb)])(_0x3ed805)]=Object[_0x557037(0x1d0)](this[_0x557037(0x1a1)][_0x557037(0x1e3)](_0x3ed805,_0x557037(0x1e5)));});}['getSchema'](_0x2bb60d){const _0x3d0921=a8_0x2870d5,_0x412ba9=(0x0,core_1[_0x3d0921(0x1d9)])(interface_1[_0x3d0921(0x1a9)],_0x2bb60d);return _0x412ba9?Joi[_0x3d0921(0x1bd)](_0x412ba9):undefined;}[a8_0x2870d5(0x1e5)](_0x5104fc,_0x2dc843,_0x2da50f={}){const _0x14294e=a8_0x2870d5;var _0x55fc81,_0x3de7ac,_0x2b0bc7,_0x5dfaa7,_0x37e0ce;const _0x191cf2=Joi['isSchema'](_0x5104fc)?_0x5104fc:this[_0x14294e(0x1b7)](_0x5104fc);if(!_0x191cf2)throw new AnnError(ValidatorError_1[_0x14294e(0x1b0)][_0x14294e(0x1d4)]);_0x2da50f[_0x14294e(0x1ba)]=Object['assign']((_0x55fc81=this[_0x14294e(0x1c0)][_0x14294e(0x1ba)])!==null&&_0x55fc81!==void 0x0?_0x55fc81:{},{'messages':this[_0x14294e(0x1b8)]},_0x2da50f['validationOptions']||{}),_0x2da50f[_0x14294e(0x1ba)]['errors']=_0x2da50f[_0x14294e(0x1ba)][_0x14294e(0x1bf)]||{},_0x2da50f[_0x14294e(0x1ba)][_0x14294e(0x1bf)]['language']=(0x0,i18n_1[_0x14294e(0x1cb)])(this['i18nService'][_0x14294e(0x1ce)](_0x2da50f[_0x14294e(0x1ba)]['errors'][_0x14294e(0x1df)]||_0x2da50f['locale']||this[_0x14294e(0x1cf)][_0x14294e(0x1ad)],'validator'));const _0x25ccd5=_0x191cf2[_0x14294e(0x1ae)](_0x2dc843,_0x2da50f['validationOptions']);if(_0x25ccd5===null||_0x25ccd5===void 0x0?void 0x0:_0x25ccd5['error'])throw new AnnError(ValidatorError_1['ValidatorError']['PARAMS'],{'message':((_0x5dfaa7=(_0x2b0bc7=(_0x3de7ac=_0x25ccd5[_0x14294e(0x1ac)])===null||_0x3de7ac===void 0x0?void 0x0:_0x3de7ac[_0x14294e(0x1ab)])===null||_0x2b0bc7===void 0x0?void 0x0:_0x2b0bc7[0x0])===null||_0x5dfaa7===void 0x0?void 0x0:_0x5dfaa7[_0x14294e(0x1b3)])||'参数验证失败'});if(_0x25ccd5===null||_0x25ccd5===void 0x0?void 0x0:_0x25ccd5[_0x14294e(0x1a4)]){const _0x18ff57=(_0x37e0ce=_0x191cf2===null||_0x191cf2===void 0x0?void 0x0:_0x191cf2[_0x14294e(0x1aa)])===null||_0x37e0ce===void 0x0?void 0x0:_0x37e0ce[_0x14294e(0x1d7)],_0x5d0484=function(_0x2ac1ec,_0x141e18){const _0x58e05c=_0x14294e;var _0xfb27a2,_0xd7928b,_0x371b87,_0x151f86,_0x17d08a,_0x320da3,_0x3c0d32,_0x51d366,_0xe4a0b5,_0x17ffc1,_0x4834b7;for(let _0x4a01a5 in _0x2ac1ec){if(_0x141e18[(_0xfb27a2=_0x2ac1ec[_0x4a01a5])===null||_0xfb27a2===void 0x0?void 0x0:_0xfb27a2[_0x58e05c(0x1c3)]]&&((_0x371b87=(_0xd7928b=_0x2ac1ec[_0x4a01a5])===null||_0xd7928b===void 0x0?void 0x0:_0xd7928b[_0x58e05c(0x1a5)])===null||_0x371b87===void 0x0?void 0x0:_0x371b87[_0x58e05c(0x1c5)])){if(((_0x17d08a=(_0x151f86=_0x2ac1ec[_0x4a01a5])===null||_0x151f86===void 0x0?void 0x0:_0x151f86[_0x58e05c(0x1a5)])===null||_0x17d08a===void 0x0?void 0x0:_0x17d08a[_0x58e05c(0x1c5)])=='object')_0x141e18[_0x2ac1ec[_0x4a01a5][_0x58e05c(0x1c3)]]=_0x5d0484((_0x3c0d32=(_0x320da3=_0x2ac1ec[_0x4a01a5])===null||_0x320da3===void 0x0?void 0x0:_0x320da3[_0x58e05c(0x1a5)][_0x58e05c(0x1aa)])===null||_0x3c0d32===void 0x0?void 0x0:_0x3c0d32['keys'],_0x141e18[_0x2ac1ec[_0x4a01a5][_0x58e05c(0x1c3)]]);else{if(_0x2ac1ec[_0x4a01a5][_0x58e05c(0x1a5)][_0x58e05c(0x1c5)]=='date'&&_0x25ccd5[_0x58e05c(0x1a4)][(_0x51d366=_0x2ac1ec[_0x4a01a5])===null||_0x51d366===void 0x0?void 0x0:_0x51d366[_0x58e05c(0x1c3)]]){const _0x580b4b=((_0x4834b7=(_0x17ffc1=(_0xe4a0b5=_0x2ac1ec[_0x4a01a5])===null||_0xe4a0b5===void 0x0?void 0x0:_0xe4a0b5[_0x58e05c(0x1a5)])===null||_0x17ffc1===void 0x0?void 0x0:_0x17ffc1[_0x58e05c(0x1d6)])===null||_0x4834b7===void 0x0?void 0x0:_0x4834b7[_0x58e05c(0x1c2)])||_0x58e05c(0x1b6);_0x141e18[_0x2ac1ec[_0x4a01a5]['key']]=dayjs(_0x25ccd5[_0x58e05c(0x1a4)][_0x2ac1ec[_0x4a01a5][_0x58e05c(0x1c3)]])['format'](_0x580b4b);}}}}return _0x141e18;};return _0x5d0484(_0x18ff57,_0x25ccd5[_0x14294e(0x1a4)]);}throw new AnnError(ValidatorError_1[_0x14294e(0x1b0)][_0x14294e(0x1b5)]);}};__decorate([(0x0,core_1[a8_0x2870d5(0x1cd)])(a8_0x2870d5(0x1a6)),__metadata(a8_0x2870d5(0x1a3),Object)],ValidatorService['prototype'],a8_0x2870d5(0x1cf),void 0x0),__decorate([(0x0,core_1['Config'])('validator'),__metadata(a8_0x2870d5(0x1a3),Object)],ValidatorService[a8_0x2870d5(0x1e8)],a8_0x2870d5(0x1c0),void 0x0),__decorate([(0x0,core_1[a8_0x2870d5(0x1d2)])(),__metadata('design:type',i18n_1['MidwayI18nServiceSingleton'])],ValidatorService[a8_0x2870d5(0x1e8)],'i18nService',void 0x0),__decorate([(0x0,core_1[a8_0x2870d5(0x1c1)])(),__metadata(a8_0x2870d5(0x1a3),Function),__metadata(a8_0x2870d5(0x1be),[]),__metadata(a8_0x2870d5(0x1af),Promise)],ValidatorService[a8_0x2870d5(0x1e8)],a8_0x2870d5(0x1d8),null),ValidatorService=__decorate([(0x0,core_1[a8_0x2870d5(0x1de)])('validator'),(0x0,core_1[a8_0x2870d5(0x1b9)])(core_1[a8_0x2870d5(0x1c9)]['Singleton'])],ValidatorService),exports['ValidatorService']=ValidatorService;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/validator",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.26",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/core": "^1.4.
|
|
20
|
+
"@anncic-api/core": "^1.4.26",
|
|
21
21
|
"@joi/date": "^2.1.0",
|
|
22
22
|
"joi": "^17.7.0"
|
|
23
23
|
},
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"javascript-obfuscator": "2.19.0",
|
|
27
27
|
"typescript": "^4.7.4"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "2b46646a074fc14c48509aa692a16a9f012616ef"
|
|
30
30
|
}
|