@anncic-api/validator 3.4.24 → 3.4.33

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.
@@ -1,21 +1,21 @@
1
- declare const _default: {
2
- validator: {
3
- errorStatus: number;
4
- validationOptions: {
5
- allowUnknown: boolean;
6
- stripUnknown: boolean;
7
- dateFormat: string;
8
- };
9
- };
10
- i18n: {
11
- localeTable: {
12
- en_US: {
13
- validator: any;
14
- };
15
- zh_CN: {
16
- validator: any;
17
- };
18
- };
19
- };
20
- };
21
- export default _default;
1
+ declare const _default: {
2
+ validator: {
3
+ errorStatus: number;
4
+ validationOptions: {
5
+ allowUnknown: boolean;
6
+ stripUnknown: boolean;
7
+ dateFormat: string;
8
+ };
9
+ };
10
+ i18n: {
11
+ localeTable: {
12
+ en_US: {
13
+ validator: any;
14
+ };
15
+ zh_CN: {
16
+ validator: any;
17
+ };
18
+ };
19
+ };
20
+ };
21
+ export default _default;
@@ -1 +1 @@
1
- function a0_0x4f8f(_0x144fe0,_0x219bc8){const _0x1e1e2d=a0_0x4ecb();return a0_0x4f8f=function(_0x204524,_0x2e9997){_0x204524=_0x204524-0xdc;let _0x4ecb65=_0x1e1e2d[_0x204524];return _0x4ecb65;},a0_0x4f8f(_0x144fe0,_0x219bc8);}function a0_0x4ecb(){const _0x16a6e8=['12hIAMMY','34318PDRnbE','apply','8mduZCV','5228ASpoHi','default','../../locales/zh_CN.json','constructor','1165967RJfnUC','9qlcXRm','defineProperty','(((.+)+)+)+$','12wGzzop','toString','1877930tSzrqa','search','924880LAOwcn','603YWGQwX','3294584sfssXq','PARAMS','267099jWQsir'];a0_0x4ecb=function(){return _0x16a6e8;};return a0_0x4ecb();}const a0_0x445204=a0_0x4f8f;(function(_0x5cf1f8,_0x2a1919){const _0x41f775=a0_0x4f8f,_0x1d9a31=_0x5cf1f8();while(!![]){try{const _0x1ebe2d=parseInt(_0x41f775(0xe8))/0x1*(parseInt(_0x41f775(0xea))/0x2)+parseInt(_0x41f775(0xe3))/0x3*(parseInt(_0x41f775(0xeb))/0x4)+-parseInt(_0x41f775(0xe0))/0x5+parseInt(_0x41f775(0xde))/0x6*(-parseInt(_0x41f775(0xe6))/0x7)+-parseInt(_0x41f775(0xe4))/0x8*(-parseInt(_0x41f775(0xf0))/0x9)+parseInt(_0x41f775(0xe2))/0xa+parseInt(_0x41f775(0xef))/0xb*(-parseInt(_0x41f775(0xe7))/0xc);if(_0x1ebe2d===_0x2a1919)break;else _0x1d9a31['push'](_0x1d9a31['shift']());}catch(_0x5bc5d6){_0x1d9a31['push'](_0x1d9a31['shift']());}}}(a0_0x4ecb,0x54919));const a0_0x2e9997=(function(){let _0xd740c9=!![];return function(_0x5a7663,_0x613675){const _0x499483=_0xd740c9?function(){const _0x561afa=a0_0x4f8f;if(_0x613675){const _0x282334=_0x613675[_0x561afa(0xe9)](_0x5a7663,arguments);return _0x613675=null,_0x282334;}}:function(){};return _0xd740c9=![],_0x499483;};}()),a0_0x204524=a0_0x2e9997(this,function(){const _0x19d390=a0_0x4f8f;return a0_0x204524[_0x19d390(0xdf)]()[_0x19d390(0xe1)](_0x19d390(0xdd))['toString']()[_0x19d390(0xee)](a0_0x204524)[_0x19d390(0xe1)](_0x19d390(0xdd));});a0_0x204524();'use strict';Object[a0_0x445204(0xdc)](exports,'__esModule',{'value':!![]});const ValidatorError_1=require('../exception/ValidatorError');exports[a0_0x445204(0xec)]={'validator':{'errorStatus':ValidatorError_1['ValidatorError'][a0_0x445204(0xe5)],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':'string'}},'i18n':{'localeTable':{'en_US':{'validator':require('../../locales/en_US.json')},'zh_CN':{'validator':require(a0_0x445204(0xed))}}}};
1
+ const a0_0x475188=a0_0x14ee;(function(_0x20ee30,_0x253fcc){const _0x41eccb=a0_0x14ee,_0x5e9dad=_0x20ee30();while(!![]){try{const _0x45f919=-parseInt(_0x41eccb(0x1d6))/0x1*(-parseInt(_0x41eccb(0x1e1))/0x2)+-parseInt(_0x41eccb(0x1df))/0x3*(-parseInt(_0x41eccb(0x1ca))/0x4)+-parseInt(_0x41eccb(0x1d0))/0x5*(parseInt(_0x41eccb(0x1db))/0x6)+-parseInt(_0x41eccb(0x1ce))/0x7+parseInt(_0x41eccb(0x1d5))/0x8*(-parseInt(_0x41eccb(0x1d1))/0x9)+parseInt(_0x41eccb(0x1cd))/0xa+-parseInt(_0x41eccb(0x1d9))/0xb*(parseInt(_0x41eccb(0x1d7))/0xc);if(_0x45f919===_0x253fcc)break;else _0x5e9dad['push'](_0x5e9dad['shift']());}catch(_0x4f0988){_0x5e9dad['push'](_0x5e9dad['shift']());}}}(a0_0x3d64,0x1a980));const a0_0x57d084=(function(){let _0x37c74c=!![];return function(_0x43fa39,_0x5253e0){const _0x367b66=_0x37c74c?function(){const _0x4800b4=a0_0x14ee;if(_0x5253e0){const _0x27cef0=_0x5253e0[_0x4800b4(0x1d4)](_0x43fa39,arguments);return _0x5253e0=null,_0x27cef0;}}:function(){};return _0x37c74c=![],_0x367b66;};}()),a0_0x505248=a0_0x57d084(this,function(){const _0x1e243b=a0_0x14ee;return a0_0x505248[_0x1e243b(0x1d3)]()[_0x1e243b(0x1dd)](_0x1e243b(0x1da))[_0x1e243b(0x1d3)]()[_0x1e243b(0x1dc)](a0_0x505248)[_0x1e243b(0x1dd)](_0x1e243b(0x1da));});a0_0x505248();function a0_0x14ee(_0x35afac,_0xe77ee9){const _0x289828=a0_0x3d64();return a0_0x14ee=function(_0x505248,_0x57d084){_0x505248=_0x505248-0x1ca;let _0x3d643b=_0x289828[_0x505248];return _0x3d643b;},a0_0x14ee(_0x35afac,_0xe77ee9);}'use strict';function a0_0x3d64(){const _0x16fa96=['defineProperty','toString','apply','248GsNCSE','127067DNcbst','36ekZBUB','__esModule','588687Egrzoo','(((.+)+)+)+$','930PKGlKS','constructor','search','PARAMS','191409BcyJgf','default','2hABdMe','12LWoyeI','string','../../locales/en_US.json','1213480yZUEKp','220472nGgxlq','../exception/ValidatorError','1400PvlxYs','27711eqstJs'];a0_0x3d64=function(){return _0x16fa96;};return a0_0x3d64();}Object[a0_0x475188(0x1d2)](exports,a0_0x475188(0x1d8),{'value':!![]});const ValidatorError_1=require(a0_0x475188(0x1cf));exports[a0_0x475188(0x1e0)]={'validator':{'errorStatus':ValidatorError_1['ValidatorError'][a0_0x475188(0x1de)],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':a0_0x475188(0x1cb)}},'i18n':{'localeTable':{'en_US':{'validator':require(a0_0x475188(0x1cc))},'zh_CN':{'validator':require('../../locales/zh_CN.json')}}}};
@@ -1,7 +1,7 @@
1
- import { MidwayDecoratorService } from '@midwayjs/core';
2
- import { ValidatorService } from './service/ValidatorService';
3
- export declare class CustomConfiguration {
4
- decorator: MidwayDecoratorService;
5
- ValidatorService: ValidatorService;
6
- onReady(): Promise<void>;
7
- }
1
+ import { MidwayDecoratorService } from '@midwayjs/core';
2
+ import { ValidatorService } from './service/ValidatorService';
3
+ export declare class CustomConfiguration {
4
+ decorator: MidwayDecoratorService;
5
+ ValidatorService: ValidatorService;
6
+ onReady(): Promise<void>;
7
+ }
@@ -1 +1 @@
1
- const a1_0xf2cd94=a1_0x447d;function a1_0x447d(_0x3abc16,_0x3d3ced){const _0x35aafd=a1_0x1051();return a1_0x447d=function(_0x4cd66a,_0x3c13b0){_0x4cd66a=_0x4cd66a-0x1a7;let _0x105103=_0x35aafd[_0x4cd66a];return _0x105103;},a1_0x447d(_0x3abc16,_0x3d3ced);}(function(_0xd1e581,_0x19ee0b){const _0x578308=a1_0x447d,_0x57386e=_0xd1e581();while(!![]){try{const _0x2348c6=parseInt(_0x578308(0x1d5))/0x1*(parseInt(_0x578308(0x1cd))/0x2)+-parseInt(_0x578308(0x1c2))/0x3*(parseInt(_0x578308(0x1bf))/0x4)+parseInt(_0x578308(0x1aa))/0x5+parseInt(_0x578308(0x1e5))/0x6+parseInt(_0x578308(0x1e1))/0x7+parseInt(_0x578308(0x1e6))/0x8*(-parseInt(_0x578308(0x1d1))/0x9)+-parseInt(_0x578308(0x1c0))/0xa*(parseInt(_0x578308(0x1ab))/0xb);if(_0x2348c6===_0x19ee0b)break;else _0x57386e['push'](_0x57386e['shift']());}catch(_0x3911b1){_0x57386e['push'](_0x57386e['shift']());}}}(a1_0x1051,0x55e61));const a1_0x3c13b0=(function(){let _0x591837=!![];return function(_0x1cf3ee,_0x27544e){const _0x2e6cf4=_0x591837?function(){const _0x3d7ef6=a1_0x447d;if(_0x27544e){const _0x287b08=_0x27544e[_0x3d7ef6(0x1bc)](_0x1cf3ee,arguments);return _0x27544e=null,_0x287b08;}}:function(){};return _0x591837=![],_0x2e6cf4;};}()),a1_0x4cd66a=a1_0x3c13b0(this,function(){const _0x5be226=a1_0x447d;return a1_0x4cd66a['toString']()[_0x5be226(0x1de)](_0x5be226(0x1cb))[_0x5be226(0x1c5)]()[_0x5be226(0x1a7)](a1_0x4cd66a)[_0x5be226(0x1de)]('(((.+)+)+)+$');});a1_0x4cd66a();'use strict';var __decorate=this&&this[a1_0xf2cd94(0x1df)]||function(_0x4fce79,_0x30e99f,_0x36e466,_0x1cc311){const _0x1c9477=a1_0xf2cd94;var _0x1abcef=arguments[_0x1c9477(0x1ba)],_0x42feaa=_0x1abcef<0x3?_0x30e99f:_0x1cc311===null?_0x1cc311=Object[_0x1c9477(0x1b7)](_0x30e99f,_0x36e466):_0x1cc311,_0x59d10d;if(typeof Reflect==='object'&&typeof Reflect[_0x1c9477(0x1e9)]===_0x1c9477(0x1c6))_0x42feaa=Reflect[_0x1c9477(0x1e9)](_0x4fce79,_0x30e99f,_0x36e466,_0x1cc311);else{for(var _0x48d592=_0x4fce79[_0x1c9477(0x1ba)]-0x1;_0x48d592>=0x0;_0x48d592--)if(_0x59d10d=_0x4fce79[_0x48d592])_0x42feaa=(_0x1abcef<0x3?_0x59d10d(_0x42feaa):_0x1abcef>0x3?_0x59d10d(_0x30e99f,_0x36e466,_0x42feaa):_0x59d10d(_0x30e99f,_0x36e466))||_0x42feaa;}return _0x1abcef>0x3&&_0x42feaa&&Object[_0x1c9477(0x1b9)](_0x30e99f,_0x36e466,_0x42feaa),_0x42feaa;},__metadata=this&&this['__metadata']||function(_0x49407c,_0x250f05){const _0x5ec36d=a1_0xf2cd94;if(typeof Reflect===_0x5ec36d(0x1e2)&&typeof Reflect[_0x5ec36d(0x1c7)]===_0x5ec36d(0x1c6))return Reflect[_0x5ec36d(0x1c7)](_0x49407c,_0x250f05);};Object[a1_0xf2cd94(0x1b9)](exports,a1_0xf2cd94(0x1bd),{'value':!![]}),exports[a1_0xf2cd94(0x1d2)]=void 0x0;function a1_0x1051(){const _0x28d6e2=['apply','__esModule','splice','601376WkNuiV','10WZFJpd','getSchema','3gvECNK','getClassMetadata','MidwayDecoratorService','toString','function','metadata','methodArgs','name','undefined','(((.+)+)+)+$','@anncic-api/core','326974EkQJSU','methodName','design:type','./interface','18hAJuaK','CustomConfiguration','getMethodParamTypes','prototype','1faGnrR','I18N_ATTR_KEY','REQUEST_OBJ_CTX_KEY','method','registerMethodHandler','args','onReady','@midwayjs/i18n','request','search','__decorate','params','3746113FlQRID','object','ValidatorService','VALIDATOR_KEY','1163544wYimog','1500072PtuYza','body','getAttr','decorate','constructor','./service/ValidatorService','locale','3303200umGxQB','7436077siPrdD','query','decorator','param','target','@midwayjs/core','find','validator','Inject','req','bound\x20dispatch','res','getOwnPropertyDescriptor','assign','defineProperty','length','anncic-api:validator'];a1_0x1051=function(){return _0x28d6e2;};return a1_0x1051();}const i18n_1=require(a1_0xf2cd94(0x1dc)),core_1=require(a1_0xf2cd94(0x1b0)),core_2=require(a1_0xf2cd94(0x1b0)),interface_1=require(a1_0xf2cd94(0x1d0)),ValidatorService_1=require(a1_0xf2cd94(0x1a8)),i18n=require('@midwayjs/i18n'),anncic=require(a1_0xf2cd94(0x1cc)),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{async[a1_0xf2cd94(0x1db)](){const _0x4fcb01=a1_0xf2cd94;this[_0x4fcb01(0x1ad)][_0x4fcb01(0x1d9)](interface_1[_0x4fcb01(0x1e4)],_0x431074=>{const _0x5ba233=_0x4fcb01,_0x5adef9=_0x431074[_0x5ba233(0x1c7)],_0x279047=(0x0,core_2[_0x5ba233(0x1d3)])(_0x431074[_0x5ba233(0x1af)],_0x431074['propertyName']);return{'before':_0x1762ca=>{const _0x534954=_0x5ba233;var _0x43f99c,_0x5334db,_0x40bd74,_0x215627,_0x55db06,_0x1115ce,_0x44c9f7,_0x1b6a54,_0x5b7eb7,_0x516649,_0x29bd96,_0x44c33d,_0x56070f;const _0x580d98=_0x1762ca[_0x534954(0x1af)][core_1[_0x534954(0x1d7)]],_0x4ae430=Object[_0x534954(0x1b8)]({},((_0x43f99c=_0x580d98===null||_0x580d98===void 0x0?void 0x0:_0x580d98[_0x534954(0x1dd)])===null||_0x43f99c===void 0x0?void 0x0:_0x43f99c[_0x534954(0x1ac)])||{},((_0x5334db=_0x580d98===null||_0x580d98===void 0x0?void 0x0:_0x580d98['request'])===null||_0x5334db===void 0x0?void 0x0:_0x5334db[_0x534954(0x1e7)])||{}),_0x1904dd=((0x0,core_2[_0x534954(0x1c3)])(interface_1[_0x534954(0x1e4)],_0x1762ca[_0x534954(0x1af)])||[])[_0x534954(0x1b1)](_0x22874b=>_0x22874b[_0x534954(0x1d8)]==_0x1762ca[_0x534954(0x1ce)]);!(_0x5adef9===null||_0x5adef9===void 0x0?void 0x0:_0x5adef9['locale'])&&_0x580d98&&_0x580d98[_0x534954(0x1e8)]&&(_0x5adef9[_0x534954(0x1a9)]=_0x580d98[_0x534954(0x1e8)](i18n_1[_0x534954(0x1d6)]));for(let _0x271a0b=0x0;_0x271a0b<_0x279047['length'];_0x271a0b++){const _0x3fb339=_0x279047[_0x271a0b],_0x54ae08=this[_0x534954(0x1e3)][_0x534954(0x1c1)](_0x3fb339);if(_0x54ae08){if(typeof _0x1762ca['args'][_0x271a0b]==_0x534954(0x1ca)||((_0x40bd74=_0x1762ca[_0x534954(0x1da)][_0x271a0b])===null||_0x40bd74===void 0x0?void 0x0:_0x40bd74[_0x534954(0x1dd)])&&((_0x215627=_0x1762ca[_0x534954(0x1da)][_0x271a0b])===null||_0x215627===void 0x0?void 0x0:_0x215627[_0x534954(0x1b6)])&&((_0x55db06=_0x1762ca['args'][_0x271a0b])===null||_0x55db06===void 0x0?void 0x0:_0x55db06[_0x534954(0x1b4)]))_0x1762ca['args'][_0x271a0b]=_0x4ae430;else((_0x1115ce=_0x1762ca[_0x534954(0x1da)][_0x271a0b])===null||_0x1115ce===void 0x0?void 0x0:_0x1115ce[_0x534954(0x1c9)])==_0x534954(0x1b5)&&_0x1762ca['args'][_0x534954(0x1be)](_0x271a0b,0x0,_0x4ae430);const _0x4c9942=this[_0x534954(0x1e3)][_0x534954(0x1b2)](_0x54ae08,_0x1762ca[_0x534954(0x1da)][_0x271a0b],_0x5adef9);_0x4c9942&&(_0x1762ca['args'][_0x271a0b]=_0x4c9942);}else{if((_0x1904dd===null||_0x1904dd===void 0x0?void 0x0:_0x1904dd[_0x534954(0x1c8)][_0x271a0b])&&((_0x44c9f7=_0x1762ca[_0x534954(0x1da)][_0x271a0b])===null||_0x44c9f7===void 0x0?void 0x0:_0x44c9f7[_0x534954(0x1e0)])&&typeof _0x1762ca[_0x534954(0x1da)][_0x271a0b][_0x534954(0x1ae)]=='function'&&((_0x1b6a54=_0x580d98===null||_0x580d98===void 0x0?void 0x0:_0x580d98[_0x534954(0x1e0)])===null||_0x1b6a54===void 0x0?void 0x0:_0x1b6a54[_0x1904dd[_0x534954(0x1c8)][_0x271a0b]]))_0x1762ca[_0x534954(0x1da)][_0x271a0b]=_0x3fb339((_0x5b7eb7=_0x580d98===null||_0x580d98===void 0x0?void 0x0:_0x580d98[_0x534954(0x1e0)])===null||_0x5b7eb7===void 0x0?void 0x0:_0x5b7eb7[_0x1904dd['methodArgs'][_0x271a0b]]);else(_0x1904dd===null||_0x1904dd===void 0x0?void 0x0:_0x1904dd[_0x534954(0x1c8)][_0x271a0b])&&((_0x29bd96=(_0x516649=_0x1762ca['args'][_0x271a0b])===null||_0x516649===void 0x0?void 0x0:_0x516649[_0x534954(0x1e0)])===null||_0x29bd96===void 0x0?void 0x0:_0x29bd96[_0x1904dd[_0x534954(0x1c8)][_0x271a0b]])&&(_0x1762ca[_0x534954(0x1da)][_0x271a0b]=(_0x56070f=(_0x44c33d=_0x1762ca[_0x534954(0x1da)][_0x271a0b])===null||_0x44c33d===void 0x0?void 0x0:_0x44c33d['params'])===null||_0x56070f===void 0x0?void 0x0:_0x56070f[_0x1904dd['methodArgs'][_0x271a0b]]);}}},'afterThrow':(_0x136381,_0x507186)=>{throw _0x507186;}};});}};exports[a1_0xf2cd94(0x1d2)]=CustomConfiguration,__decorate([(0x0,core_2[a1_0xf2cd94(0x1b3)])(),__metadata(a1_0xf2cd94(0x1cf),core_1[a1_0xf2cd94(0x1c4)])],CustomConfiguration[a1_0xf2cd94(0x1d4)],a1_0xf2cd94(0x1ad),void 0x0),__decorate([(0x0,core_2[a1_0xf2cd94(0x1b3)])(),__metadata(a1_0xf2cd94(0x1cf),ValidatorService_1[a1_0xf2cd94(0x1e3)])],CustomConfiguration['prototype'],a1_0xf2cd94(0x1e3),void 0x0),exports['CustomConfiguration']=CustomConfiguration=__decorate([(0x0,core_2['Configuration'])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':a1_0xf2cd94(0x1bb),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
1
+ const a1_0x268cae=a1_0x10d0;(function(_0x4901f8,_0x5a88f6){const _0x28c277=a1_0x10d0,_0x40514f=_0x4901f8();while(!![]){try{const _0x52647b=parseInt(_0x28c277(0xfd))/0x1+parseInt(_0x28c277(0x10d))/0x2*(-parseInt(_0x28c277(0x105))/0x3)+-parseInt(_0x28c277(0x113))/0x4+-parseInt(_0x28c277(0x121))/0x5*(-parseInt(_0x28c277(0x125))/0x6)+parseInt(_0x28c277(0x124))/0x7*(parseInt(_0x28c277(0x135))/0x8)+-parseInt(_0x28c277(0x100))/0x9*(-parseInt(_0x28c277(0x12b))/0xa)+-parseInt(_0x28c277(0x10a))/0xb;if(_0x52647b===_0x5a88f6)break;else _0x40514f['push'](_0x40514f['shift']());}catch(_0x5d4ac1){_0x40514f['push'](_0x40514f['shift']());}}}(a1_0x7af9,0xd6f14));function a1_0x7af9(){const _0x54ed92=['methodName','target','object','__esModule','18595XeUDeK','decorator','VALIDATOR_KEY','49IvXmCi','570lMYpWB','toString','./service/ValidatorService','metadata','request','defineProperty','220lolZSk','prototype','req','args','bound\x20dispatch','__metadata','ValidatorService','function','methodArgs','REQUEST_OBJ_CTX_KEY','1243688QoKgiV','params','getMethodParamTypes','@midwayjs/core','propertyName','1662994wsHrEc','splice','search','210420NEALvr','validator','locale','@anncic-api/core','apply','5190213vBJIBx','assign','res','getOwnPropertyDescriptor','getSchema','1249633NLObXH','constructor','./interface','2peoNzi','CustomConfiguration','decorate','body','anncic-api:validator','registerMethodHandler','3579232pOWmFl','__decorate','query','design:type','Inject','@midwayjs/i18n','./config/config.default','getAttr','method','(((.+)+)+)+$'];a1_0x7af9=function(){return _0x54ed92;};return a1_0x7af9();}const a1_0x32dc53=(function(){let _0x350c77=!![];return function(_0x4c4f92,_0x357d4e){const _0x40c7d1=_0x350c77?function(){const _0x5dac97=a1_0x10d0;if(_0x357d4e){const _0x4ac204=_0x357d4e[_0x5dac97(0x104)](_0x4c4f92,arguments);return _0x357d4e=null,_0x4ac204;}}:function(){};return _0x350c77=![],_0x40c7d1;};}()),a1_0x43e85c=a1_0x32dc53(this,function(){const _0x95a9ea=a1_0x10d0;return a1_0x43e85c['toString']()[_0x95a9ea(0xff)](_0x95a9ea(0x11c))[_0x95a9ea(0x126)]()[_0x95a9ea(0x10b)](a1_0x43e85c)[_0x95a9ea(0xff)](_0x95a9ea(0x11c));});a1_0x43e85c();'use strict';var __decorate=this&&this[a1_0x268cae(0x114)]||function(_0x548bab,_0x4285ee,_0x23c602,_0x1577a2){const _0x4fc104=a1_0x268cae;var _0x3958dc=arguments['length'],_0x516f82=_0x3958dc<0x3?_0x4285ee:_0x1577a2===null?_0x1577a2=Object[_0x4fc104(0x108)](_0x4285ee,_0x23c602):_0x1577a2,_0x5bc7a8;if(typeof Reflect===_0x4fc104(0x11f)&&typeof Reflect[_0x4fc104(0x10f)]===_0x4fc104(0x132))_0x516f82=Reflect[_0x4fc104(0x10f)](_0x548bab,_0x4285ee,_0x23c602,_0x1577a2);else{for(var _0x577df9=_0x548bab['length']-0x1;_0x577df9>=0x0;_0x577df9--)if(_0x5bc7a8=_0x548bab[_0x577df9])_0x516f82=(_0x3958dc<0x3?_0x5bc7a8(_0x516f82):_0x3958dc>0x3?_0x5bc7a8(_0x4285ee,_0x23c602,_0x516f82):_0x5bc7a8(_0x4285ee,_0x23c602))||_0x516f82;}return _0x3958dc>0x3&&_0x516f82&&Object['defineProperty'](_0x4285ee,_0x23c602,_0x516f82),_0x516f82;},__metadata=this&&this[a1_0x268cae(0x130)]||function(_0xe26ba2,_0x1325ef){const _0x30ca26=a1_0x268cae;if(typeof Reflect==='object'&&typeof Reflect[_0x30ca26(0x128)]===_0x30ca26(0x132))return Reflect['metadata'](_0xe26ba2,_0x1325ef);};Object[a1_0x268cae(0x12a)](exports,a1_0x268cae(0x120),{'value':!![]}),exports[a1_0x268cae(0x10e)]=void 0x0;const i18n_1=require(a1_0x268cae(0x118)),core_1=require('@midwayjs/core'),core_2=require(a1_0x268cae(0x138)),interface_1=require(a1_0x268cae(0x10c)),ValidatorService_1=require(a1_0x268cae(0x127)),i18n=require(a1_0x268cae(0x118)),anncic=require(a1_0x268cae(0x103)),ConfigDefault=require(a1_0x268cae(0x119));function a1_0x10d0(_0x5217fa,_0x57b03a){const _0x3d9f01=a1_0x7af9();return a1_0x10d0=function(_0x43e85c,_0x32dc53){_0x43e85c=_0x43e85c-0xfd;let _0x7af9f2=_0x3d9f01[_0x43e85c];return _0x7af9f2;},a1_0x10d0(_0x5217fa,_0x57b03a);}let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x49860e=a1_0x268cae;this[_0x49860e(0x122)][_0x49860e(0x112)](interface_1[_0x49860e(0x123)],_0x383ab5=>{const _0x110ff7=_0x49860e,_0x245399=_0x383ab5[_0x110ff7(0x128)],_0x4f233b=(0x0,core_2[_0x110ff7(0x137)])(_0x383ab5['target'],_0x383ab5[_0x110ff7(0x139)]);return{'before':_0x360dae=>{const _0x2fcbfb=_0x110ff7;var _0x7166a5,_0x57dd7d,_0x2c4bc1,_0x58cc53,_0x4e078d,_0x4a404f,_0x1ba450,_0x46736d,_0x385a6e,_0x2b004e,_0x4c2d2a,_0x1bc792,_0x11f998;const _0x30f50d=_0x360dae[_0x2fcbfb(0x11e)][core_1[_0x2fcbfb(0x134)]],_0x5dedaa=Object[_0x2fcbfb(0x106)]({},((_0x7166a5=_0x30f50d===null||_0x30f50d===void 0x0?void 0x0:_0x30f50d[_0x2fcbfb(0x129)])===null||_0x7166a5===void 0x0?void 0x0:_0x7166a5[_0x2fcbfb(0x115)])||{},((_0x57dd7d=_0x30f50d===null||_0x30f50d===void 0x0?void 0x0:_0x30f50d['request'])===null||_0x57dd7d===void 0x0?void 0x0:_0x57dd7d[_0x2fcbfb(0x110)])||{}),_0x1063b4=((0x0,core_2['getClassMetadata'])(interface_1['VALIDATOR_KEY'],_0x360dae[_0x2fcbfb(0x11e)])||[])['find'](_0x2709b3=>_0x2709b3[_0x2fcbfb(0x11b)]==_0x360dae[_0x2fcbfb(0x11d)]);!(_0x245399===null||_0x245399===void 0x0?void 0x0:_0x245399[_0x2fcbfb(0x102)])&&_0x30f50d&&_0x30f50d[_0x2fcbfb(0x11a)]&&(_0x245399[_0x2fcbfb(0x102)]=_0x30f50d[_0x2fcbfb(0x11a)](i18n_1['I18N_ATTR_KEY']));for(let _0x4d14e1=0x0;_0x4d14e1<_0x4f233b['length'];_0x4d14e1++){const _0x2faaee=_0x4f233b[_0x4d14e1],_0x11a411=this[_0x2fcbfb(0x131)][_0x2fcbfb(0x109)](_0x2faaee);if(_0x11a411){if(typeof _0x360dae[_0x2fcbfb(0x12e)][_0x4d14e1]=='undefined'||((_0x2c4bc1=_0x360dae[_0x2fcbfb(0x12e)][_0x4d14e1])===null||_0x2c4bc1===void 0x0?void 0x0:_0x2c4bc1[_0x2fcbfb(0x129)])&&((_0x58cc53=_0x360dae[_0x2fcbfb(0x12e)][_0x4d14e1])===null||_0x58cc53===void 0x0?void 0x0:_0x58cc53[_0x2fcbfb(0x107)])&&((_0x4e078d=_0x360dae[_0x2fcbfb(0x12e)][_0x4d14e1])===null||_0x4e078d===void 0x0?void 0x0:_0x4e078d[_0x2fcbfb(0x12d)]))_0x360dae[_0x2fcbfb(0x12e)][_0x4d14e1]=_0x5dedaa;else((_0x4a404f=_0x360dae['args'][_0x4d14e1])===null||_0x4a404f===void 0x0?void 0x0:_0x4a404f['name'])==_0x2fcbfb(0x12f)&&_0x360dae[_0x2fcbfb(0x12e)][_0x2fcbfb(0xfe)](_0x4d14e1,0x0,_0x5dedaa);const _0xd1842=this['ValidatorService'][_0x2fcbfb(0x101)](_0x11a411,_0x360dae[_0x2fcbfb(0x12e)][_0x4d14e1],_0x245399);_0xd1842&&(_0x360dae[_0x2fcbfb(0x12e)][_0x4d14e1]=_0xd1842);}else{if((_0x1063b4===null||_0x1063b4===void 0x0?void 0x0:_0x1063b4[_0x2fcbfb(0x133)][_0x4d14e1])&&((_0x1ba450=_0x360dae[_0x2fcbfb(0x12e)][_0x4d14e1])===null||_0x1ba450===void 0x0?void 0x0:_0x1ba450['params'])&&typeof _0x360dae[_0x2fcbfb(0x12e)][_0x4d14e1]['param']=='function'&&((_0x46736d=_0x30f50d===null||_0x30f50d===void 0x0?void 0x0:_0x30f50d[_0x2fcbfb(0x136)])===null||_0x46736d===void 0x0?void 0x0:_0x46736d[_0x1063b4['methodArgs'][_0x4d14e1]]))_0x360dae[_0x2fcbfb(0x12e)][_0x4d14e1]=_0x2faaee((_0x385a6e=_0x30f50d===null||_0x30f50d===void 0x0?void 0x0:_0x30f50d[_0x2fcbfb(0x136)])===null||_0x385a6e===void 0x0?void 0x0:_0x385a6e[_0x1063b4[_0x2fcbfb(0x133)][_0x4d14e1]]);else(_0x1063b4===null||_0x1063b4===void 0x0?void 0x0:_0x1063b4[_0x2fcbfb(0x133)][_0x4d14e1])&&((_0x4c2d2a=(_0x2b004e=_0x360dae[_0x2fcbfb(0x12e)][_0x4d14e1])===null||_0x2b004e===void 0x0?void 0x0:_0x2b004e[_0x2fcbfb(0x136)])===null||_0x4c2d2a===void 0x0?void 0x0:_0x4c2d2a[_0x1063b4[_0x2fcbfb(0x133)][_0x4d14e1]])&&(_0x360dae['args'][_0x4d14e1]=(_0x11f998=(_0x1bc792=_0x360dae[_0x2fcbfb(0x12e)][_0x4d14e1])===null||_0x1bc792===void 0x0?void 0x0:_0x1bc792[_0x2fcbfb(0x136)])===null||_0x11f998===void 0x0?void 0x0:_0x11f998[_0x1063b4[_0x2fcbfb(0x133)][_0x4d14e1]]);}}},'afterThrow':(_0x1eaa30,_0x54562c)=>{throw _0x54562c;}};});}};__decorate([(0x0,core_2[a1_0x268cae(0x117)])(),__metadata(a1_0x268cae(0x116),core_1['MidwayDecoratorService'])],CustomConfiguration[a1_0x268cae(0x12c)],'decorator',void 0x0),__decorate([(0x0,core_2[a1_0x268cae(0x117)])(),__metadata(a1_0x268cae(0x116),ValidatorService_1['ValidatorService'])],CustomConfiguration[a1_0x268cae(0x12c)],a1_0x268cae(0x131),void 0x0),CustomConfiguration=__decorate([(0x0,core_2['Configuration'])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':a1_0x268cae(0x111),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x268cae(0x10e)]=CustomConfiguration;
@@ -1,3 +1,3 @@
1
- import * as joi from 'joi';
2
- export declare const RuleType: joi.Root;
3
- export declare function Rule<Schema extends joi.SchemaInternals>(comment: string, schema?: Schema | any, description?: string): (target: any, propertyKey: string) => void;
1
+ import * as joi from 'joi';
2
+ export declare const RuleType: joi.Root;
3
+ export declare function Rule<Schema extends joi.SchemaInternals>(comment: string, schema?: Schema | any, description?: string): (target: any, propertyKey: string) => void;
@@ -1 +1 @@
1
- const a2_0x58032e=a2_0x35ac;(function(_0x2cb550,_0x5a6d7e){const _0x3c33aa=a2_0x35ac,_0x39164a=_0x2cb550();while(!![]){try{const _0x248f38=-parseInt(_0x3c33aa(0x14d))/0x1+-parseInt(_0x3c33aa(0x164))/0x2*(parseInt(_0x3c33aa(0x159))/0x3)+parseInt(_0x3c33aa(0x15d))/0x4+parseInt(_0x3c33aa(0x151))/0x5+parseInt(_0x3c33aa(0x169))/0x6+parseInt(_0x3c33aa(0x15c))/0x7*(-parseInt(_0x3c33aa(0x162))/0x8)+-parseInt(_0x3c33aa(0x152))/0x9;if(_0x248f38===_0x5a6d7e)break;else _0x39164a['push'](_0x39164a['shift']());}catch(_0x37ae4c){_0x39164a['push'](_0x39164a['shift']());}}}(a2_0x1020,0xef354));const a2_0x505304=(function(){let _0x2dce54=!![];return function(_0x34b831,_0x4175be){const _0x20b0f0=_0x2dce54?function(){const _0x55b2e4=a2_0x35ac;if(_0x4175be){const _0x37f8b0=_0x4175be[_0x55b2e4(0x14e)](_0x34b831,arguments);return _0x4175be=null,_0x37f8b0;}}:function(){};return _0x2dce54=![],_0x20b0f0;};}()),a2_0x5ec88c=a2_0x505304(this,function(){const _0x41128f=a2_0x35ac;return a2_0x5ec88c[_0x41128f(0x149)]()[_0x41128f(0x153)](_0x41128f(0x166))['toString']()[_0x41128f(0x160)](a2_0x5ec88c)[_0x41128f(0x153)]('(((.+)+)+)+$');});a2_0x5ec88c();'use strict';Object[a2_0x58032e(0x168)](exports,'__esModule',{'value':!![]}),exports[a2_0x58032e(0x16a)]=exports['RuleType']=void 0x0;function a2_0x35ac(_0x4205b9,_0x209565){const _0x17b880=a2_0x1020();return a2_0x35ac=function(_0x5ec88c,_0x505304){_0x5ec88c=_0x5ec88c-0x149;let _0x1020d1=_0x17b880[_0x5ec88c];return _0x1020d1;},a2_0x35ac(_0x4205b9,_0x209565);}const joi=require(a2_0x58032e(0x14b)),date_1=require(a2_0x58032e(0x15b)),core_1=require(a2_0x58032e(0x165)),interface_1=require(a2_0x58032e(0x14c));exports[a2_0x58032e(0x150)]=joi['extend'](date_1[a2_0x58032e(0x14f)]);function a2_0x1020(){const _0x219588=['RULES_KEY','42AubbjG','attachClassMetadata','@joi/date','1463mTAJpj','1466112GLsZzC','map','keys','constructor','saveClassMetadata','23888Ckeyoe','array','137488IrvgEb','@midwayjs/core','(((.+)+)+)+$','label','defineProperty','10798422ADNzaD','Rule','items','function','toString','name','joi','../interface','552023ianHXc','apply','default','RuleType','8042825nWgEdw','5908689szCRJZ','search','getClassMetadata','object','meta','description'];a2_0x1020=function(){return _0x219588;};return a2_0x1020();}function Rule(_0xdf176e,_0x5b857d,_0x485123=''){return(_0x2c3471,_0x2bac13)=>{const _0x246ef9=a2_0x35ac;var _0x48ffc7;if(_0x2bac13)!joi['isSchema'](_0x5b857d)&&(_0x5b857d===null||_0x5b857d===void 0x0?void 0x0:_0x5b857d[_0x246ef9(0x14a)])&&(_0x5b857d=joi[_0x246ef9(0x155)]((0x0,core_1[_0x246ef9(0x154)])(interface_1[_0x246ef9(0x158)],_0x5b857d))[_0x246ef9(0x156)]({'id':_0x5b857d[_0x246ef9(0x14a)]}),(0x0,core_1['getPropertyType'])(_0x2c3471,_0x2bac13)[_0x246ef9(0x14a)]==='Array'&&(_0x5b857d=joi[_0x246ef9(0x163)]()[_0x246ef9(0x16b)](_0x5b857d))),joi['isSchema'](_0x5b857d)&&(_0xdf176e&&typeof(_0x5b857d===null||_0x5b857d===void 0x0?void 0x0:_0x5b857d['label'])=='function'&&(_0x5b857d=_0x5b857d[_0x246ef9(0x167)](_0xdf176e)),_0x485123&&typeof(_0x5b857d===null||_0x5b857d===void 0x0?void 0x0:_0x5b857d[_0x246ef9(0x157)])==_0x246ef9(0x16c)&&(_0x5b857d=_0x5b857d[_0x246ef9(0x157)](_0x485123)),(0x0,core_1[_0x246ef9(0x15a)])(interface_1[_0x246ef9(0x158)],_0x5b857d,_0x2c3471,_0x2bac13));else{const _0x56a1f6=(0x0,core_1['getClassMetadata'])(interface_1[_0x246ef9(0x158)],_0x5b857d);if(_0x56a1f6){let _0x388daf=(_0x48ffc7=(0x0,core_1[_0x246ef9(0x154)])(interface_1['RULES_KEY'],_0x2c3471))!==null&&_0x48ffc7!==void 0x0?_0x48ffc7:{};Object[_0x246ef9(0x15f)](_0x56a1f6)[_0x246ef9(0x15e)](_0xfad0bc=>{!_0x388daf[_0xfad0bc]&&(_0x388daf[_0xfad0bc]=_0x56a1f6[_0xfad0bc]);}),(0x0,core_1[_0x246ef9(0x161)])(interface_1[_0x246ef9(0x158)],_0x388daf,_0x2c3471);}}};}exports[a2_0x58032e(0x16a)]=Rule;
1
+ const a2_0x19764c=a2_0xc142;(function(_0x213fdb,_0x244b26){const _0x361993=a2_0xc142,_0x39eaf=_0x213fdb();while(!![]){try{const _0x4b50af=-parseInt(_0x361993(0x11d))/0x1+parseInt(_0x361993(0xfe))/0x2+parseInt(_0x361993(0x118))/0x3+-parseInt(_0x361993(0x104))/0x4+-parseInt(_0x361993(0x119))/0x5+-parseInt(_0x361993(0x11b))/0x6*(-parseInt(_0x361993(0x10d))/0x7)+-parseInt(_0x361993(0x109))/0x8*(parseInt(_0x361993(0x113))/0x9);if(_0x4b50af===_0x244b26)break;else _0x39eaf['push'](_0x39eaf['shift']());}catch(_0x53d6bd){_0x39eaf['push'](_0x39eaf['shift']());}}}(a2_0x3df0,0xab1fb));const a2_0x22f98e=(function(){let _0x9d70eb=!![];return function(_0x301721,_0x3f2b2e){const _0x30300b=_0x9d70eb?function(){const _0x343759=a2_0xc142;if(_0x3f2b2e){const _0xf921d6=_0x3f2b2e[_0x343759(0x106)](_0x301721,arguments);return _0x3f2b2e=null,_0xf921d6;}}:function(){};return _0x9d70eb=![],_0x30300b;};}()),a2_0x56755d=a2_0x22f98e(this,function(){const _0x122ebc=a2_0xc142;return a2_0x56755d[_0x122ebc(0x105)]()[_0x122ebc(0x112)](_0x122ebc(0x10c))[_0x122ebc(0x105)]()[_0x122ebc(0x10f)](a2_0x56755d)[_0x122ebc(0x112)](_0x122ebc(0x10c));});a2_0x56755d();'use strict';Object[a2_0x19764c(0x114)](exports,a2_0x19764c(0x111),{'value':!![]}),exports[a2_0x19764c(0x102)]=exports['RuleType']=void 0x0;function a2_0xc142(_0x4fe873,_0x19092e){const _0x5b5688=a2_0x3df0();return a2_0xc142=function(_0x56755d,_0x22f98e){_0x56755d=_0x56755d-0xfa;let _0x3df058=_0x5b5688[_0x56755d];return _0x3df058;},a2_0xc142(_0x4fe873,_0x19092e);}const joi=require(a2_0x19764c(0x10a)),date_1=require(a2_0x19764c(0xfd)),core_1=require('@midwayjs/core'),interface_1=require(a2_0x19764c(0xfb));exports[a2_0x19764c(0x101)]=joi[a2_0x19764c(0xfc)](date_1['default']);function Rule(_0x44ba45,_0x33c116,_0x4f3a6b=''){return(_0x1b71c9,_0x3e0e51)=>{const _0x361db8=a2_0xc142;var _0x3ffae0;if(_0x3e0e51)!joi[_0x361db8(0x116)](_0x33c116)&&(_0x33c116===null||_0x33c116===void 0x0?void 0x0:_0x33c116[_0x361db8(0x108)])&&(_0x33c116=joi[_0x361db8(0x103)]((0x0,core_1[_0x361db8(0x110)])(interface_1[_0x361db8(0x11c)],_0x33c116))[_0x361db8(0xfa)]({'id':_0x33c116[_0x361db8(0x108)]}),(0x0,core_1['getPropertyType'])(_0x1b71c9,_0x3e0e51)[_0x361db8(0x108)]===_0x361db8(0x10e)&&(_0x33c116=joi[_0x361db8(0x100)]()[_0x361db8(0x117)](_0x33c116))),joi['isSchema'](_0x33c116)&&(_0x44ba45&&typeof(_0x33c116===null||_0x33c116===void 0x0?void 0x0:_0x33c116['label'])==_0x361db8(0x107)&&(_0x33c116=_0x33c116['label'](_0x44ba45)),_0x4f3a6b&&typeof(_0x33c116===null||_0x33c116===void 0x0?void 0x0:_0x33c116[_0x361db8(0xff)])==_0x361db8(0x107)&&(_0x33c116=_0x33c116[_0x361db8(0xff)](_0x4f3a6b)),(0x0,core_1[_0x361db8(0x115)])(interface_1[_0x361db8(0x11c)],_0x33c116,_0x1b71c9,_0x3e0e51));else{const _0x4278d1=(0x0,core_1[_0x361db8(0x110)])(interface_1['RULES_KEY'],_0x33c116);if(_0x4278d1){let _0x5eb496=(_0x3ffae0=(0x0,core_1[_0x361db8(0x110)])(interface_1[_0x361db8(0x11c)],_0x1b71c9))!==null&&_0x3ffae0!==void 0x0?_0x3ffae0:{};Object[_0x361db8(0x10b)](_0x4278d1)[_0x361db8(0x11a)](_0x123d22=>{!_0x5eb496[_0x123d22]&&(_0x5eb496[_0x123d22]=_0x4278d1[_0x123d22]);}),(0x0,core_1['saveClassMetadata'])(interface_1[_0x361db8(0x11c)],_0x5eb496,_0x1b71c9);}}};}exports[a2_0x19764c(0x102)]=Rule;function a2_0x3df0(){const _0x544d01=['toString','apply','function','name','64GkhjOg','joi','keys','(((.+)+)+)+$','377328eEftcu','Array','constructor','getClassMetadata','__esModule','search','249930tdLssB','defineProperty','attachClassMetadata','isSchema','items','3631956fhPfDX','4784655rVheEr','map','84CqQoNk','RULES_KEY','926546SLQhtP','meta','../interface','extend','@joi/date','2586380nksMoL','description','array','RuleType','Rule','object','1807752ZvuJYl'];a2_0x3df0=function(){return _0x544d01;};return a2_0x3df0();}
@@ -1,3 +1,3 @@
1
- import { ValidatorOptions } from '../interface';
2
- export declare function Validator(options?: ValidatorOptions): (target: any, propertyKey: string | symbol, descriptor: PropertyDescriptor) => void;
3
- export declare function getFuncArgs(fn: Function): string[];
1
+ import { ValidatorOptions } from '../interface';
2
+ export declare function Validator(options?: ValidatorOptions): (target: any, propertyKey: string | symbol, descriptor: PropertyDescriptor) => void;
3
+ export declare function getFuncArgs(fn: Function): string[];
@@ -1 +1 @@
1
- const a3_0x1b482d=a3_0x272b;(function(_0x24e631,_0x5a2422){const _0x30c0b3=a3_0x272b,_0x537a07=_0x24e631();while(!![]){try{const _0x17b48e=-parseInt(_0x30c0b3(0x109))/0x1+-parseInt(_0x30c0b3(0xee))/0x2+parseInt(_0x30c0b3(0xf5))/0x3+-parseInt(_0x30c0b3(0xf0))/0x4+parseInt(_0x30c0b3(0xf6))/0x5*(parseInt(_0x30c0b3(0xef))/0x6)+-parseInt(_0x30c0b3(0x105))/0x7+-parseInt(_0x30c0b3(0xf1))/0x8*(-parseInt(_0x30c0b3(0x101))/0x9);if(_0x17b48e===_0x5a2422)break;else _0x537a07['push'](_0x537a07['shift']());}catch(_0x1cdbeb){_0x537a07['push'](_0x537a07['shift']());}}}(a3_0x2501,0x82495));const a3_0x29e6a1=(function(){let _0x22ff45=!![];return function(_0x1e7289,_0x1e4e1a){const _0x4cbc47=_0x22ff45?function(){const _0x484cdb=a3_0x272b;if(_0x1e4e1a){const _0x588cd0=_0x1e4e1a[_0x484cdb(0xf9)](_0x1e7289,arguments);return _0x1e4e1a=null,_0x588cd0;}}:function(){};return _0x22ff45=![],_0x4cbc47;};}()),a3_0x1f874d=a3_0x29e6a1(this,function(){const _0x1da944=a3_0x272b;return a3_0x1f874d[_0x1da944(0x102)]()[_0x1da944(0xfd)]('(((.+)+)+)+$')['toString']()[_0x1da944(0xf4)](a3_0x1f874d)['search'](_0x1da944(0xfb));});a3_0x1f874d();'use strict';function a3_0x2501(){const _0x1a8a9d=['indexOf','(((.+)+)+)+$','@midwayjs/core','search','defineProperty','createCustomMethodDecorator','replace','4329VaknqG','toString','Validator','function','1373190KOBVmA','slice','prototype','VALIDATOR_KEY','715676tsGBSz','1099586ghGMXG','6OpdJZM','3107816QJdBDE','27312Jbcgml','match','../interface','constructor','3146409CORuSo','406545DSShfh','attachClassMetadata','__esModule','apply'];a3_0x2501=function(){return _0x1a8a9d;};return a3_0x2501();}Object[a3_0x1b482d(0xfe)](exports,a3_0x1b482d(0xf8),{'value':!![]}),exports['getFuncArgs']=exports[a3_0x1b482d(0x103)]=void 0x0;const core_1=require(a3_0x1b482d(0xfc)),interface_1=require(a3_0x1b482d(0xf3));function Validator(_0x4a7e05={}){return(_0x295e2e,_0x407200,_0x3371ea)=>{const _0x2324b2=a3_0x272b,_0x5ef5f6=getFuncArgs(_0x295e2e[_0x407200]);(0x0,core_1[_0x2324b2(0xf7)])(interface_1['VALIDATOR_KEY'],{'method':_0x407200,'methodArgs':_0x5ef5f6},_0x295e2e),(0x0,core_1[_0x2324b2(0xff)])(interface_1[_0x2324b2(0x108)],_0x4a7e05)(_0x295e2e,_0x407200,_0x3371ea);};}function a3_0x272b(_0x2103cb,_0x3f605b){const _0x2c0c97=a3_0x2501();return a3_0x272b=function(_0x1f874d,_0x29e6a1){_0x1f874d=_0x1f874d-0xee;let _0x2501cc=_0x2c0c97[_0x1f874d];return _0x2501cc;},a3_0x272b(_0x2103cb,_0x3f605b);}exports['Validator']=Validator;function getFuncArgs(_0xca92c8){const _0x392afb=a3_0x1b482d;if(typeof _0xca92c8==_0x392afb(0x104)){const _0x2c95bd=/=>.*$/mg,_0x97ec66=/=[^,)]+/mg,_0x44781a=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x33c653=(_0xca92c8['prototype']?_0xca92c8[_0x392afb(0x107)][_0x392afb(0xf4)][_0x392afb(0x102)]():_0xca92c8[_0x392afb(0x102)]())[_0x392afb(0x100)](_0x44781a,'')[_0x392afb(0x100)](_0x2c95bd,'')['replace'](_0x97ec66,''),_0x3b749c=_0x33c653[_0x392afb(0x106)](_0x33c653[_0x392afb(0xfa)]('(')+0x1,_0x33c653['indexOf'](')'))[_0x392afb(0xf2)](/([^\s,]+)/g)||[];return _0x3b749c;}}exports['getFuncArgs']=getFuncArgs;
1
+ const a3_0x2ae5bc=a3_0x4985;function a3_0x4985(_0x369331,_0x346fe1){const _0x186ca5=a3_0x5105();return a3_0x4985=function(_0x6155b0,_0x149179){_0x6155b0=_0x6155b0-0x11e;let _0x51056d=_0x186ca5[_0x6155b0];return _0x51056d;},a3_0x4985(_0x369331,_0x346fe1);}(function(_0x563407,_0x1ffdb0){const _0x1c383d=a3_0x4985,_0x9edbdf=_0x563407();while(!![]){try{const _0x1ba1fd=parseInt(_0x1c383d(0x128))/0x1*(-parseInt(_0x1c383d(0x12c))/0x2)+-parseInt(_0x1c383d(0x136))/0x3+parseInt(_0x1c383d(0x138))/0x4+parseInt(_0x1c383d(0x134))/0x5*(parseInt(_0x1c383d(0x12f))/0x6)+parseInt(_0x1c383d(0x12e))/0x7+parseInt(_0x1c383d(0x129))/0x8+-parseInt(_0x1c383d(0x130))/0x9;if(_0x1ba1fd===_0x1ffdb0)break;else _0x9edbdf['push'](_0x9edbdf['shift']());}catch(_0x22e6ba){_0x9edbdf['push'](_0x9edbdf['shift']());}}}(a3_0x5105,0xf3b75));const a3_0x149179=(function(){let _0x4861a9=!![];return function(_0x3ed8b3,_0x27e4ab){const _0xf5884c=_0x4861a9?function(){const _0x5a711a=a3_0x4985;if(_0x27e4ab){const _0x568b93=_0x27e4ab[_0x5a711a(0x12b)](_0x3ed8b3,arguments);return _0x27e4ab=null,_0x568b93;}}:function(){};return _0x4861a9=![],_0xf5884c;};}()),a3_0x6155b0=a3_0x149179(this,function(){const _0x57ffa3=a3_0x4985;return a3_0x6155b0[_0x57ffa3(0x123)]()[_0x57ffa3(0x12a)](_0x57ffa3(0x126))[_0x57ffa3(0x123)]()['constructor'](a3_0x6155b0)[_0x57ffa3(0x12a)](_0x57ffa3(0x126));});a3_0x6155b0();'use strict';Object[a3_0x2ae5bc(0x122)](exports,a3_0x2ae5bc(0x120),{'value':!![]}),exports[a3_0x2ae5bc(0x127)]=exports[a3_0x2ae5bc(0x137)]=void 0x0;const core_1=require('@midwayjs/core'),interface_1=require(a3_0x2ae5bc(0x11f));function a3_0x5105(){const _0x4e7bba=['__esModule','VALIDATOR_KEY','defineProperty','toString','indexOf','replace','(((.+)+)+)+$','getFuncArgs','117988sPPvnS','7106744aEPoSV','search','apply','10SwJatk','attachClassMetadata','10297084VyTKXM','6zzSYXu','6721002JFLZBh','match','createCustomMethodDecorator','constructor','8769995tBvruW','prototype','5531187BXYKpK','Validator','261416AfnEzY','function','../interface'];a3_0x5105=function(){return _0x4e7bba;};return a3_0x5105();}function Validator(_0x11ccb6={}){return(_0x566787,_0xd737a4,_0x324044)=>{const _0x1f1e1c=a3_0x4985,_0x43558d=getFuncArgs(_0x566787[_0xd737a4]);(0x0,core_1[_0x1f1e1c(0x12d)])(interface_1['VALIDATOR_KEY'],{'method':_0xd737a4,'methodArgs':_0x43558d},_0x566787),(0x0,core_1[_0x1f1e1c(0x132)])(interface_1[_0x1f1e1c(0x121)],_0x11ccb6)(_0x566787,_0xd737a4,_0x324044);};}exports[a3_0x2ae5bc(0x137)]=Validator;function getFuncArgs(_0x106bc7){const _0x6528f4=a3_0x2ae5bc;if(typeof _0x106bc7==_0x6528f4(0x11e)){const _0x526e00=/=>.*$/mg,_0x49c0f8=/=[^,)]+/mg,_0x186de1=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x1ff191=(_0x106bc7['prototype']?_0x106bc7[_0x6528f4(0x135)][_0x6528f4(0x133)][_0x6528f4(0x123)]():_0x106bc7[_0x6528f4(0x123)]())[_0x6528f4(0x125)](_0x186de1,'')[_0x6528f4(0x125)](_0x526e00,'')[_0x6528f4(0x125)](_0x49c0f8,''),_0x12ea5b=_0x1ff191['slice'](_0x1ff191[_0x6528f4(0x124)]('(')+0x1,_0x1ff191[_0x6528f4(0x124)](')'))[_0x6528f4(0x131)](/([^\s,]+)/g)||[];return _0x12ea5b;}}exports['getFuncArgs']=getFuncArgs;
@@ -1,5 +1,5 @@
1
- /// <reference types="@anncic-api/core" />
2
- export declare class ValidatorError extends AnnError {
3
- static readonly PARAMS = 101406;
4
- static readonly NOFIND_SCHEMA = 101404;
5
- }
1
+ /// <reference types="@anncic-api/core" />
2
+ export declare class ValidatorError extends AnnError {
3
+ static readonly PARAMS = 101406;
4
+ static readonly NOFIND_SCHEMA = 101404;
5
+ }
@@ -1 +1 @@
1
- var a4_0x396df0=a4_0x27fe;(function(_0x119076,_0x3a2f66){var _0x129ab3=a4_0x27fe,_0x4c15cc=_0x119076();while(!![]){try{var _0x26498b=parseInt(_0x129ab3(0x191))/0x1+-parseInt(_0x129ab3(0x19f))/0x2+parseInt(_0x129ab3(0x199))/0x3*(parseInt(_0x129ab3(0x19e))/0x4)+parseInt(_0x129ab3(0x1aa))/0x5+parseInt(_0x129ab3(0x1a8))/0x6*(-parseInt(_0x129ab3(0x1ad))/0x7)+-parseInt(_0x129ab3(0x190))/0x8*(-parseInt(_0x129ab3(0x18f))/0x9)+-parseInt(_0x129ab3(0x19b))/0xa*(-parseInt(_0x129ab3(0x194))/0xb);if(_0x26498b===_0x3a2f66)break;else _0x4c15cc['push'](_0x4c15cc['shift']());}catch(_0x5f27b8){_0x4c15cc['push'](_0x4c15cc['shift']());}}}(a4_0x5ad7,0xe2187));function a4_0x27fe(_0x936dd7,_0x4a5bec){var _0x27801f=a4_0x5ad7();return a4_0x27fe=function(_0x47e7ab,_0x4dad88){_0x47e7ab=_0x47e7ab-0x18d;var _0x5ad78b=_0x27801f[_0x47e7ab];return _0x5ad78b;},a4_0x27fe(_0x936dd7,_0x4a5bec);}var a4_0x4dad88=(function(){var _0x20192a=!![];return function(_0x182ceb,_0x51b900){var _0x1f06a7=_0x20192a?function(){var _0x1ca7b1=a4_0x27fe;if(_0x51b900){var _0x3b1f52=_0x51b900[_0x1ca7b1(0x1a4)](_0x182ceb,arguments);return _0x51b900=null,_0x3b1f52;}}:function(){};return _0x20192a=![],_0x1f06a7;};}()),a4_0x47e7ab=a4_0x4dad88(this,function(){var _0xf6a7c7=a4_0x27fe;return a4_0x47e7ab[_0xf6a7c7(0x1a5)]()[_0xf6a7c7(0x18e)](_0xf6a7c7(0x1a9))[_0xf6a7c7(0x1a5)]()[_0xf6a7c7(0x19a)](a4_0x47e7ab)[_0xf6a7c7(0x18e)](_0xf6a7c7(0x1a9));});a4_0x47e7ab();function a4_0x5ad7(){var _0x433663=['@anncic-api/core','135504TPPvSc','2672106LdIgDD','design:type','AnnErrorMsg','metadata','length','apply','toString','defineProperty','参数验证失败','12WKGijD','(((.+)+)+)+$','567900zNsMML','__decorate','getOwnPropertyDescriptor','3874913QxQlYK','ValidatorError','search','421839rgIxna','144jKncFd','304203DwrEMY','PARAMS','NOFIND_SCHEMA','11HRbkTs','__esModule','__metadata','decorate','function','60WSYaAw','constructor','14302770csMxhd','object'];a4_0x5ad7=function(){return _0x433663;};return a4_0x5ad7();}'use strict';var __decorate=this&&this[a4_0x396df0(0x1ab)]||function(_0xdbacf0,_0x1604ed,_0xc9f957,_0x2a25f0){var _0x221a01=a4_0x396df0,_0x38fd22=arguments[_0x221a01(0x1a3)],_0x230db5=_0x38fd22<0x3?_0x1604ed:_0x2a25f0===null?_0x2a25f0=Object[_0x221a01(0x1ac)](_0x1604ed,_0xc9f957):_0x2a25f0,_0x1474e9;if(typeof Reflect==='object'&&typeof Reflect[_0x221a01(0x197)]===_0x221a01(0x198))_0x230db5=Reflect[_0x221a01(0x197)](_0xdbacf0,_0x1604ed,_0xc9f957,_0x2a25f0);else{for(var _0x97bd3c=_0xdbacf0[_0x221a01(0x1a3)]-0x1;_0x97bd3c>=0x0;_0x97bd3c--)if(_0x1474e9=_0xdbacf0[_0x97bd3c])_0x230db5=(_0x38fd22<0x3?_0x1474e9(_0x230db5):_0x38fd22>0x3?_0x1474e9(_0x1604ed,_0xc9f957,_0x230db5):_0x1474e9(_0x1604ed,_0xc9f957))||_0x230db5;}return _0x38fd22>0x3&&_0x230db5&&Object[_0x221a01(0x1a6)](_0x1604ed,_0xc9f957,_0x230db5),_0x230db5;},__metadata=this&&this[a4_0x396df0(0x196)]||function(_0x37cec9,_0x44eb0a){var _0x105db0=a4_0x396df0;if(typeof Reflect===_0x105db0(0x19c)&&typeof Reflect[_0x105db0(0x1a2)]===_0x105db0(0x198))return Reflect[_0x105db0(0x1a2)](_0x37cec9,_0x44eb0a);};Object[a4_0x396df0(0x1a6)](exports,a4_0x396df0(0x195),{'value':!![]}),exports[a4_0x396df0(0x18d)]=void 0x0;const core_1=require(a4_0x396df0(0x19d));class ValidatorError extends AnnError{}exports[a4_0x396df0(0x18d)]=ValidatorError,ValidatorError[a4_0x396df0(0x192)]=0x18c1e,ValidatorError[a4_0x396df0(0x193)]=0x18c1c,__decorate([(0x0,core_1['AnnErrorMsg'])(a4_0x396df0(0x1a7)),__metadata(a4_0x396df0(0x1a0),Object)],ValidatorError,'PARAMS',void 0x0),__decorate([(0x0,core_1[a4_0x396df0(0x1a1)])(a4_0x396df0(0x1a7)),__metadata(a4_0x396df0(0x1a0),Object)],ValidatorError,'NOFIND_SCHEMA',void 0x0);
1
+ var a4_0x48fcda=a4_0xfd8c;(function(_0x281e45,_0x1a2987){var _0x4211b3=a4_0xfd8c,_0xbf40c3=_0x281e45();while(!![]){try{var _0x2a9fc2=-parseInt(_0x4211b3(0x91))/0x1*(parseInt(_0x4211b3(0x89))/0x2)+-parseInt(_0x4211b3(0x94))/0x3+parseInt(_0x4211b3(0x8a))/0x4+-parseInt(_0x4211b3(0x98))/0x5*(parseInt(_0x4211b3(0xa0))/0x6)+parseInt(_0x4211b3(0x8d))/0x7*(-parseInt(_0x4211b3(0xa5))/0x8)+-parseInt(_0x4211b3(0x9b))/0x9+parseInt(_0x4211b3(0xa4))/0xa;if(_0x2a9fc2===_0x1a2987)break;else _0xbf40c3['push'](_0xbf40c3['shift']());}catch(_0x82a49a){_0xbf40c3['push'](_0xbf40c3['shift']());}}}(a4_0x5bf1,0xb95c0));function a4_0x5bf1(){var _0x4fad0e=['ValidatorError','metadata','7ZbqJbx','getOwnPropertyDescriptor','defineProperty','toString','20LoVTZj','length','NOFIND_SCHEMA','3000891zaUtto','__metadata','参数验证失败','__decorate','85rzbJoI','(((.+)+)+)+$','__esModule','10060839jccXuO','design:type','decorate','function','PARAMS','220512nRavGI','object','apply','@anncic-api/core','41508070PocSFv','6899624XvLSAX','search','68212OdNpTa','3583800VFgJCL'];a4_0x5bf1=function(){return _0x4fad0e;};return a4_0x5bf1();}var a4_0x2bf371=(function(){var _0x5dd7ca=!![];return function(_0x47f5e6,_0x20c91b){var _0xb92805=_0x5dd7ca?function(){var _0x2f73b8=a4_0xfd8c;if(_0x20c91b){var _0x52e67e=_0x20c91b[_0x2f73b8(0xa2)](_0x47f5e6,arguments);return _0x20c91b=null,_0x52e67e;}}:function(){};return _0x5dd7ca=![],_0xb92805;};}()),a4_0x281b4d=a4_0x2bf371(this,function(){var _0x2db9e5=a4_0xfd8c;return a4_0x281b4d[_0x2db9e5(0x90)]()[_0x2db9e5(0x88)](_0x2db9e5(0x99))[_0x2db9e5(0x90)]()['constructor'](a4_0x281b4d)['search'](_0x2db9e5(0x99));});a4_0x281b4d();'use strict';var __decorate=this&&this[a4_0x48fcda(0x97)]||function(_0x4f4c60,_0x49d05e,_0x1a26be,_0x13fc66){var _0x3b7730=a4_0x48fcda,_0x5e3b1e=arguments[_0x3b7730(0x92)],_0xf70475=_0x5e3b1e<0x3?_0x49d05e:_0x13fc66===null?_0x13fc66=Object[_0x3b7730(0x8e)](_0x49d05e,_0x1a26be):_0x13fc66,_0x294df4;if(typeof Reflect===_0x3b7730(0xa1)&&typeof Reflect[_0x3b7730(0x9d)]===_0x3b7730(0x9e))_0xf70475=Reflect[_0x3b7730(0x9d)](_0x4f4c60,_0x49d05e,_0x1a26be,_0x13fc66);else{for(var _0x4d111c=_0x4f4c60[_0x3b7730(0x92)]-0x1;_0x4d111c>=0x0;_0x4d111c--)if(_0x294df4=_0x4f4c60[_0x4d111c])_0xf70475=(_0x5e3b1e<0x3?_0x294df4(_0xf70475):_0x5e3b1e>0x3?_0x294df4(_0x49d05e,_0x1a26be,_0xf70475):_0x294df4(_0x49d05e,_0x1a26be))||_0xf70475;}return _0x5e3b1e>0x3&&_0xf70475&&Object[_0x3b7730(0x8f)](_0x49d05e,_0x1a26be,_0xf70475),_0xf70475;},__metadata=this&&this[a4_0x48fcda(0x95)]||function(_0x332630,_0x256c70){var _0xfb7fd6=a4_0x48fcda;if(typeof Reflect===_0xfb7fd6(0xa1)&&typeof Reflect[_0xfb7fd6(0x8c)]===_0xfb7fd6(0x9e))return Reflect[_0xfb7fd6(0x8c)](_0x332630,_0x256c70);};Object['defineProperty'](exports,a4_0x48fcda(0x9a),{'value':!![]}),exports[a4_0x48fcda(0x8b)]=void 0x0;function a4_0xfd8c(_0x1669a7,_0x52ea0a){var _0x3b86cf=a4_0x5bf1();return a4_0xfd8c=function(_0x281b4d,_0x2bf371){_0x281b4d=_0x281b4d-0x88;var _0x5bf161=_0x3b86cf[_0x281b4d];return _0x5bf161;},a4_0xfd8c(_0x1669a7,_0x52ea0a);}const core_1=require(a4_0x48fcda(0xa3));class ValidatorError extends AnnError{}ValidatorError[a4_0x48fcda(0x9f)]=0x18c1e,ValidatorError[a4_0x48fcda(0x93)]=0x18c1c,__decorate([(0x0,core_1['AnnErrorMsg'])(a4_0x48fcda(0x96)),__metadata(a4_0x48fcda(0x9c),Object)],ValidatorError,a4_0x48fcda(0x9f),void 0x0),__decorate([(0x0,core_1['AnnErrorMsg'])(a4_0x48fcda(0x96)),__metadata(a4_0x48fcda(0x9c),Object)],ValidatorError,'NOFIND_SCHEMA',void 0x0),exports[a4_0x48fcda(0x8b)]=ValidatorError;
@@ -1,5 +1,5 @@
1
- export interface Dto<T> {
2
- new (): T;
3
- }
4
- export declare function PickDto<T, K extends keyof T>(dto: Dto<T>, keys: K[]): Dto<Pick<T, (typeof keys)[number]>>;
5
- export declare function OmitDto<T, K extends keyof T>(dto: Dto<T>, keys: K[]): Dto<Omit<T, (typeof keys)[number]>>;
1
+ export interface Dto<T> {
2
+ new (): T;
3
+ }
4
+ export declare function PickDto<T, K extends keyof T>(dto: Dto<T>, keys: K[]): Dto<Pick<T, (typeof keys)[number]>>;
5
+ export declare function OmitDto<T, K extends keyof T>(dto: Dto<T>, keys: K[]): Dto<Omit<T, (typeof keys)[number]>>;
@@ -1 +1 @@
1
- const a5_0x13b9ed=a5_0x58b3;(function(_0x10a13b,_0x5d5103){const _0x3338ef=a5_0x58b3,_0x132124=_0x10a13b();while(!![]){try{const _0x1da7d6=-parseInt(_0x3338ef(0xcc))/0x1+-parseInt(_0x3338ef(0xc1))/0x2*(parseInt(_0x3338ef(0xbd))/0x3)+parseInt(_0x3338ef(0xc8))/0x4+-parseInt(_0x3338ef(0xc5))/0x5*(parseInt(_0x3338ef(0xcd))/0x6)+parseInt(_0x3338ef(0xcb))/0x7+-parseInt(_0x3338ef(0xbb))/0x8+parseInt(_0x3338ef(0xc7))/0x9*(parseInt(_0x3338ef(0xc3))/0xa);if(_0x1da7d6===_0x5d5103)break;else _0x132124['push'](_0x132124['shift']());}catch(_0x4623b0){_0x132124['push'](_0x132124['shift']());}}}(a5_0x32c8,0xe31ec));const a5_0x23647f=(function(){let _0x233e8e=!![];return function(_0x20fe2d,_0x32414c){const _0x45044d=_0x233e8e?function(){const _0x54a084=a5_0x58b3;if(_0x32414c){const _0x4ae300=_0x32414c[_0x54a084(0xbf)](_0x20fe2d,arguments);return _0x32414c=null,_0x4ae300;}}:function(){};return _0x233e8e=![],_0x45044d;};}()),a5_0x4cdef9=a5_0x23647f(this,function(){const _0x5f22f7=a5_0x58b3;return a5_0x4cdef9[_0x5f22f7(0xc2)]()['search'](_0x5f22f7(0xc9))['toString']()[_0x5f22f7(0xb6)](a5_0x4cdef9)[_0x5f22f7(0xbe)]('(((.+)+)+)+$');});a5_0x4cdef9();function a5_0x32c8(){const _0x112e73=['RULES_KEY','5658185SIkMEo','__esModule','31253400CmcIyc','2660288YVIOPC','(((.+)+)+)+$','saveClassMetadata','6429129qMRFyz','627028WUXlNn','6UNQPcL','PickDto','constructor','@midwayjs/core','assign','prototype','getClassExtendedMetadata','6792104pcVOhR','OmitDto','3bqWlCO','search','apply','defineProperty','3036314WxGsqU','toString','10aAphTQ'];a5_0x32c8=function(){return _0x112e73;};return a5_0x32c8();}'use strict';Object[a5_0x13b9ed(0xc0)](exports,a5_0x13b9ed(0xc6),{'value':!![]}),exports[a5_0x13b9ed(0xbc)]=exports[a5_0x13b9ed(0xce)]=void 0x0;const core_1=require(a5_0x13b9ed(0xb7)),interface_1=require('../interface');function a5_0x58b3(_0x158326,_0x115d83){const _0xf740f7=a5_0x32c8();return a5_0x58b3=function(_0x4cdef9,_0x23647f){_0x4cdef9=_0x4cdef9-0xb6;let _0x32c89f=_0xf740f7[_0x4cdef9];return _0x32c89f;},a5_0x58b3(_0x158326,_0x115d83);}function PickDto(_0x1bd409,_0x5b7503){const _0x19cf21=a5_0x13b9ed,_0x4b6119=function(){};_0x4b6119[_0x19cf21(0xb9)]=_0x1bd409['prototype'];const _0x55cc64=(0x0,core_1[_0x19cf21(0xba)])(interface_1[_0x19cf21(0xc4)],_0x1bd409),_0x367d72={};for(const _0x3b0a4b of _0x5b7503){_0x55cc64[_0x3b0a4b]&&(_0x367d72[_0x3b0a4b]=_0x55cc64[_0x3b0a4b]);}return(0x0,core_1['saveClassMetadata'])(interface_1[_0x19cf21(0xc4)],_0x367d72,_0x4b6119),_0x4b6119;}exports[a5_0x13b9ed(0xce)]=PickDto;function OmitDto(_0x240d82,_0x23da45){const _0x43a52d=a5_0x13b9ed,_0x13aa41=function(){};_0x13aa41[_0x43a52d(0xb9)]=_0x240d82['prototype'];const _0x239e60=(0x0,core_1[_0x43a52d(0xba)])(interface_1[_0x43a52d(0xc4)],_0x240d82),_0x41179b=Object[_0x43a52d(0xb8)]({},_0x239e60);for(const _0x11baa0 of _0x23da45){delete _0x41179b[_0x11baa0];}return(0x0,core_1[_0x43a52d(0xca)])(interface_1[_0x43a52d(0xc4)],_0x41179b,_0x13aa41),_0x13aa41;}exports[a5_0x13b9ed(0xbc)]=OmitDto;
1
+ const a5_0x309554=a5_0x3e7f;(function(_0x5e68e2,_0x43789b){const _0x98daac=a5_0x3e7f,_0x2444fb=_0x5e68e2();while(!![]){try{const _0x2f15a0=parseInt(_0x98daac(0x1da))/0x1*(parseInt(_0x98daac(0x1dd))/0x2)+-parseInt(_0x98daac(0x1f0))/0x3*(parseInt(_0x98daac(0x1e0))/0x4)+parseInt(_0x98daac(0x1dc))/0x5+-parseInt(_0x98daac(0x1e7))/0x6*(-parseInt(_0x98daac(0x1ec))/0x7)+-parseInt(_0x98daac(0x1e4))/0x8+-parseInt(_0x98daac(0x1df))/0x9*(-parseInt(_0x98daac(0x1e3))/0xa)+-parseInt(_0x98daac(0x1e1))/0xb;if(_0x2f15a0===_0x43789b)break;else _0x2444fb['push'](_0x2444fb['shift']());}catch(_0x3c9d4f){_0x2444fb['push'](_0x2444fb['shift']());}}}(a5_0x1712,0xc30c2));const a5_0x57849f=(function(){let _0x81b0dc=!![];return function(_0x3add03,_0x22b81d){const _0x42e25f=_0x81b0dc?function(){if(_0x22b81d){const _0x28e610=_0x22b81d['apply'](_0x3add03,arguments);return _0x22b81d=null,_0x28e610;}}:function(){};return _0x81b0dc=![],_0x42e25f;};}()),a5_0x1892c7=a5_0x57849f(this,function(){const _0x4d25b5=a5_0x3e7f;return a5_0x1892c7[_0x4d25b5(0x1d9)]()['search'](_0x4d25b5(0x1e8))[_0x4d25b5(0x1d9)]()[_0x4d25b5(0x1eb)](a5_0x1892c7)[_0x4d25b5(0x1ed)]('(((.+)+)+)+$');});function a5_0x3e7f(_0x27acf7,_0xc3328d){const _0x1926c6=a5_0x1712();return a5_0x3e7f=function(_0x1892c7,_0x57849f){_0x1892c7=_0x1892c7-0x1d9;let _0x171284=_0x1926c6[_0x1892c7];return _0x171284;},a5_0x3e7f(_0x27acf7,_0xc3328d);}a5_0x1892c7();function a5_0x1712(){const _0x12d728=['1560aeNFLi','3206552bYDujI','__esModule','OmitDto','61644HvZSki','(((.+)+)+)+$','@midwayjs/core','prototype','constructor','917ElUGdh','search','PickDto','RULES_KEY','93yADyOY','../interface','toString','50087SjVuoi','getClassExtendedMetadata','167500PDBYCh','12yiqxrM','defineProperty','66483Hwxlvp','107732jGmYbU','8773952AKRufr','saveClassMetadata'];a5_0x1712=function(){return _0x12d728;};return a5_0x1712();}'use strict';Object[a5_0x309554(0x1de)](exports,a5_0x309554(0x1e5),{'value':!![]}),exports[a5_0x309554(0x1e6)]=exports[a5_0x309554(0x1ee)]=void 0x0;const core_1=require(a5_0x309554(0x1e9)),interface_1=require(a5_0x309554(0x1f1));function PickDto(_0x32f0dd,_0x1dc508){const _0x3cec0e=a5_0x309554,_0x55de7b=function(){};_0x55de7b[_0x3cec0e(0x1ea)]=_0x32f0dd[_0x3cec0e(0x1ea)];const _0x492401=(0x0,core_1['getClassExtendedMetadata'])(interface_1[_0x3cec0e(0x1ef)],_0x32f0dd),_0x5e4421={};for(const _0x244cf6 of _0x1dc508){_0x492401[_0x244cf6]&&(_0x5e4421[_0x244cf6]=_0x492401[_0x244cf6]);}return(0x0,core_1[_0x3cec0e(0x1e2)])(interface_1[_0x3cec0e(0x1ef)],_0x5e4421,_0x55de7b),_0x55de7b;}exports[a5_0x309554(0x1ee)]=PickDto;function OmitDto(_0x7a549c,_0x22a9e3){const _0x4d4e41=a5_0x309554,_0x5e30f8=function(){};_0x5e30f8[_0x4d4e41(0x1ea)]=_0x7a549c[_0x4d4e41(0x1ea)];const _0x5dff84=(0x0,core_1[_0x4d4e41(0x1db)])(interface_1[_0x4d4e41(0x1ef)],_0x7a549c),_0x4102ba=Object['assign']({},_0x5dff84);for(const _0x405282 of _0x22a9e3){delete _0x4102ba[_0x405282];}return(0x0,core_1[_0x4d4e41(0x1e2)])(interface_1[_0x4d4e41(0x1ef)],_0x4102ba,_0x5e30f8),_0x5e30f8;}exports[a5_0x309554(0x1e6)]=OmitDto;
@@ -1,2 +1,2 @@
1
- import * as Joi from 'joi';
2
- export declare function getSchema<T extends new (...args: any[]) => any>(ClzType: T): Joi.ObjectSchema<any>;
1
+ import * as Joi from 'joi';
2
+ export declare function getSchema<T extends new (...args: any[]) => any>(ClzType: T): Joi.ObjectSchema<any>;
@@ -1 +1 @@
1
- function a6_0x1cdb(){const _0x2760b0=['144656bfnjGY','apply','__esModule','@midwayjs/core','34984ceDFqk','1172439zkhueE','getSchema','110eyKAJk','../interface','3266814StKIgI','defineProperty','4MHAiiz','toString','14312826bWHCZG','393bLGMiG','search','568899cbIBkQ','object','7kGMCiD','800135BRGRnk','getClassExtendedMetadata','(((.+)+)+)+$'];a6_0x1cdb=function(){return _0x2760b0;};return a6_0x1cdb();}const a6_0x97b87=a6_0xb8d6;(function(_0x4167ce,_0x237ad5){const _0x22f73f=a6_0xb8d6,_0x54e3ca=_0x4167ce();while(!![]){try{const _0xfbde4=parseInt(_0x22f73f(0x1a0))/0x1*(parseInt(_0x22f73f(0x19b))/0x2)+parseInt(_0x22f73f(0x19e))/0x3*(-parseInt(_0x22f73f(0x194))/0x4)+parseInt(_0x22f73f(0x18d))/0x5+parseInt(_0x22f73f(0x199))/0x6*(parseInt(_0x22f73f(0x18c))/0x7)+-parseInt(_0x22f73f(0x190))/0x8+parseInt(_0x22f73f(0x195))/0x9*(parseInt(_0x22f73f(0x197))/0xa)+-parseInt(_0x22f73f(0x19d))/0xb;if(_0xfbde4===_0x237ad5)break;else _0x54e3ca['push'](_0x54e3ca['shift']());}catch(_0x584b13){_0x54e3ca['push'](_0x54e3ca['shift']());}}}(a6_0x1cdb,0xc5d3d));const a6_0x525d17=(function(){let _0x4624d8=!![];return function(_0x15540f,_0x3e2fd2){const _0x226647=_0x4624d8?function(){const _0x5332a7=a6_0xb8d6;if(_0x3e2fd2){const _0x169f3c=_0x3e2fd2[_0x5332a7(0x191)](_0x15540f,arguments);return _0x3e2fd2=null,_0x169f3c;}}:function(){};return _0x4624d8=![],_0x226647;};}()),a6_0x1f70aa=a6_0x525d17(this,function(){const _0x357b14=a6_0xb8d6;return a6_0x1f70aa[_0x357b14(0x19c)]()[_0x357b14(0x19f)](_0x357b14(0x18f))[_0x357b14(0x19c)]()['constructor'](a6_0x1f70aa)[_0x357b14(0x19f)]('(((.+)+)+)+$');});a6_0x1f70aa();'use strict';function a6_0xb8d6(_0x3e7318,_0x37836c){const _0x30b531=a6_0x1cdb();return a6_0xb8d6=function(_0x1f70aa,_0x525d17){_0x1f70aa=_0x1f70aa-0x18c;let _0x1cdb52=_0x30b531[_0x1f70aa];return _0x1cdb52;},a6_0xb8d6(_0x3e7318,_0x37836c);}Object[a6_0x97b87(0x19a)](exports,a6_0x97b87(0x192),{'value':!![]}),exports[a6_0x97b87(0x196)]=void 0x0;const Joi=require('joi'),core_1=require(a6_0x97b87(0x193)),interface_1=require(a6_0x97b87(0x198));function getSchema(_0x5c42aa){const _0x1472e7=a6_0x97b87,_0x280741=(0x0,core_1[_0x1472e7(0x18e)])(interface_1['RULES_KEY'],_0x5c42aa);if(_0x280741)return Joi[_0x1472e7(0x1a1)](_0x280741);}exports['getSchema']=getSchema;
1
+ const a6_0x24c35b=a6_0x1bae;(function(_0x2c18ca,_0x1c7fc4){const _0x4d0dab=a6_0x1bae,_0x20771a=_0x2c18ca();while(!![]){try{const _0x4be710=-parseInt(_0x4d0dab(0x195))/0x1+-parseInt(_0x4d0dab(0x1a2))/0x2*(-parseInt(_0x4d0dab(0x1a8))/0x3)+parseInt(_0x4d0dab(0x196))/0x4+-parseInt(_0x4d0dab(0x19f))/0x5+-parseInt(_0x4d0dab(0x19c))/0x6*(-parseInt(_0x4d0dab(0x198))/0x7)+-parseInt(_0x4d0dab(0x1a3))/0x8*(-parseInt(_0x4d0dab(0x1a7))/0x9)+parseInt(_0x4d0dab(0x1a5))/0xa*(-parseInt(_0x4d0dab(0x1a1))/0xb);if(_0x4be710===_0x1c7fc4)break;else _0x20771a['push'](_0x20771a['shift']());}catch(_0x3bbc5d){_0x20771a['push'](_0x20771a['shift']());}}}(a6_0x12ca,0xf1e0d));const a6_0x40ff28=(function(){let _0x32a8e6=!![];return function(_0x344d8b,_0x4594dd){const _0x2fc646=_0x32a8e6?function(){if(_0x4594dd){const _0x5cf409=_0x4594dd['apply'](_0x344d8b,arguments);return _0x4594dd=null,_0x5cf409;}}:function(){};return _0x32a8e6=![],_0x2fc646;};}()),a6_0x5f588a=a6_0x40ff28(this,function(){const _0x386b14=a6_0x1bae;return a6_0x5f588a['toString']()[_0x386b14(0x194)](_0x386b14(0x197))[_0x386b14(0x1a6)]()[_0x386b14(0x19e)](a6_0x5f588a)[_0x386b14(0x194)](_0x386b14(0x197));});a6_0x5f588a();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a6_0x24c35b(0x199)]=void 0x0;const Joi=require(a6_0x24c35b(0x1a9)),core_1=require(a6_0x24c35b(0x19d)),interface_1=require(a6_0x24c35b(0x1a4));function getSchema(_0x9ce09f){const _0x4b8247=a6_0x24c35b,_0x493127=(0x0,core_1[_0x4b8247(0x19a)])(interface_1[_0x4b8247(0x1a0)],_0x9ce09f);if(_0x493127)return Joi[_0x4b8247(0x19b)](_0x493127);}function a6_0x1bae(_0x3fd52d,_0x2eef1b){const _0x46152e=a6_0x12ca();return a6_0x1bae=function(_0x5f588a,_0x40ff28){_0x5f588a=_0x5f588a-0x194;let _0x12ca2d=_0x46152e[_0x5f588a];return _0x12ca2d;},a6_0x1bae(_0x3fd52d,_0x2eef1b);}exports[a6_0x24c35b(0x199)]=getSchema;function a6_0x12ca(){const _0x3a7271=['1717387ZHPExM','7257072nGvZtn','(((.+)+)+)+$','2464bQtufa','getSchema','getClassExtendedMetadata','object','8718LvhaEy','@midwayjs/core','constructor','6109730FZDogN','RULES_KEY','274109WRNNai','2254614cLeBZD','1509392iXhcar','../interface','490uYuYmr','toString','81DERfFv','3SsNxXZ','joi','search'];a6_0x12ca=function(){return _0x3a7271;};return a6_0x12ca();}
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- export * from "./interface";
2
- export * from './helper/dtoHelper';
3
- export * from './helper/getSchema';
4
- export { Validator } from "./decorator/Validator";
5
- export { Rule, RuleType } from "./decorator/Rule";
6
- export { ValidatorError } from './exception/ValidatorError';
7
- export { ValidatorService } from "./service/ValidatorService";
8
- export { CustomConfiguration as Configuration } from './configuration';
1
+ export * from "./interface";
2
+ export * from './helper/dtoHelper';
3
+ export * from './helper/getSchema';
4
+ export { Validator } from "./decorator/Validator";
5
+ export { Rule, RuleType } from "./decorator/Rule";
6
+ export { ValidatorError } from './exception/ValidatorError';
7
+ export { ValidatorService } from "./service/ValidatorService";
8
+ export { CustomConfiguration as Configuration } from './configuration';
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var a7_0x2ee451=a7_0x4326;function a7_0x1094(){var _0x5a8c56=['./exception/ValidatorError','2189565ZwEjFs','toString','376yuVDCB','CustomConfiguration','call','__esModule','3SrTorh','./helper/getSchema','ValidatorService','default','7sgrAxW','1022904LxFiKL','Configuration','./decorator/Validator','configurable','./service/ValidatorService','RuleType','11MnqFSX','./configuration','14063870CIksNo','76473eFTyQV','./decorator/Rule','prototype','701766FOwAUF','getOwnPropertyDescriptor','defineProperty','ValidatorError','hasOwnProperty','(((.+)+)+)+$','apply','search','312442WQTfwn','Rule','Validator','1819662GxsXLm'];a7_0x1094=function(){return _0x5a8c56;};return a7_0x1094();}(function(_0x3b5989,_0x323dc5){var _0x99186d=a7_0x4326,_0x54576d=_0x3b5989();while(!![]){try{var _0xab08a3=-parseInt(_0x99186d(0xc2))/0x1*(parseInt(_0x99186d(0xb7))/0x2)+parseInt(_0x99186d(0xba))/0x3+-parseInt(_0x99186d(0xa3))/0x4+-parseInt(_0x99186d(0xbc))/0x5+-parseInt(_0x99186d(0xaf))/0x6*(parseInt(_0x99186d(0xa2))/0x7)+-parseInt(_0x99186d(0xbe))/0x8*(parseInt(_0x99186d(0xac))/0x9)+parseInt(_0x99186d(0xab))/0xa*(parseInt(_0x99186d(0xa9))/0xb);if(_0xab08a3===_0x323dc5)break;else _0x54576d['push'](_0x54576d['shift']());}catch(_0x562f94){_0x54576d['push'](_0x54576d['shift']());}}}(a7_0x1094,0x519ef));var a7_0x5e8019=(function(){var _0x3aca5c=!![];return function(_0x11eac0,_0x5bc0f1){var _0x20a63f=_0x3aca5c?function(){var _0x28322d=a7_0x4326;if(_0x5bc0f1){var _0x89743c=_0x5bc0f1[_0x28322d(0xb5)](_0x11eac0,arguments);return _0x5bc0f1=null,_0x89743c;}}:function(){};return _0x3aca5c=![],_0x20a63f;};}()),a7_0x5070e5=a7_0x5e8019(this,function(){var _0x44387d=a7_0x4326;return a7_0x5070e5[_0x44387d(0xbd)]()[_0x44387d(0xb6)](_0x44387d(0xb4))[_0x44387d(0xbd)]()['constructor'](a7_0x5070e5)[_0x44387d(0xb6)](_0x44387d(0xb4));});a7_0x5070e5();'use strict';var __createBinding=this&&this['__createBinding']||(Object['create']?function(_0x4ca5b2,_0x1f3b4e,_0x1a36e5,_0x3c49a0){var _0x56f6af=a7_0x4326;if(_0x3c49a0===undefined)_0x3c49a0=_0x1a36e5;var _0x4977aa=Object[_0x56f6af(0xb0)](_0x1f3b4e,_0x1a36e5);(!_0x4977aa||('get'in _0x4977aa?!_0x1f3b4e[_0x56f6af(0xc1)]:_0x4977aa['writable']||_0x4977aa[_0x56f6af(0xa6)]))&&(_0x4977aa={'enumerable':!![],'get':function(){return _0x1f3b4e[_0x1a36e5];}}),Object[_0x56f6af(0xb1)](_0x4ca5b2,_0x3c49a0,_0x4977aa);}:function(_0x4ea454,_0x526d77,_0x4640e5,_0x3b1a11){if(_0x3b1a11===undefined)_0x3b1a11=_0x4640e5;_0x4ea454[_0x3b1a11]=_0x526d77[_0x4640e5];}),__exportStar=this&&this['__exportStar']||function(_0x2f47de,_0x4f068b){var _0x269e9c=a7_0x4326;for(var _0x52e900 in _0x2f47de)if(_0x52e900!==_0x269e9c(0xc5)&&!Object[_0x269e9c(0xae)][_0x269e9c(0xb3)][_0x269e9c(0xc0)](_0x4f068b,_0x52e900))__createBinding(_0x4f068b,_0x2f47de,_0x52e900);};Object['defineProperty'](exports,a7_0x2ee451(0xc1),{'value':!![]}),exports['Configuration']=exports['ValidatorService']=exports[a7_0x2ee451(0xb2)]=exports['RuleType']=exports[a7_0x2ee451(0xb8)]=exports[a7_0x2ee451(0xb9)]=void 0x0,__exportStar(require('./interface'),exports),__exportStar(require('./helper/dtoHelper'),exports),__exportStar(require(a7_0x2ee451(0xc3)),exports);function a7_0x4326(_0x5ebd6b,_0x15b90c){var _0xc6f468=a7_0x1094();return a7_0x4326=function(_0x5070e5,_0x5e8019){_0x5070e5=_0x5070e5-0xa2;var _0x109499=_0xc6f468[_0x5070e5];return _0x109499;},a7_0x4326(_0x5ebd6b,_0x15b90c);}var Validator_1=require(a7_0x2ee451(0xa5));Object['defineProperty'](exports,'Validator',{'enumerable':!![],'get':function(){var _0x2c608e=a7_0x2ee451;return Validator_1[_0x2c608e(0xb9)];}});var Rule_1=require(a7_0x2ee451(0xad));Object[a7_0x2ee451(0xb1)](exports,a7_0x2ee451(0xb8),{'enumerable':!![],'get':function(){var _0x1ca215=a7_0x2ee451;return Rule_1[_0x1ca215(0xb8)];}}),Object[a7_0x2ee451(0xb1)](exports,a7_0x2ee451(0xa8),{'enumerable':!![],'get':function(){var _0x35d273=a7_0x2ee451;return Rule_1[_0x35d273(0xa8)];}});var ValidatorError_1=require(a7_0x2ee451(0xbb));Object[a7_0x2ee451(0xb1)](exports,a7_0x2ee451(0xb2),{'enumerable':!![],'get':function(){var _0x1eb25a=a7_0x2ee451;return ValidatorError_1[_0x1eb25a(0xb2)];}});var ValidatorService_1=require(a7_0x2ee451(0xa7));Object['defineProperty'](exports,'ValidatorService',{'enumerable':!![],'get':function(){var _0x323d57=a7_0x2ee451;return ValidatorService_1[_0x323d57(0xc4)];}});var configuration_1=require(a7_0x2ee451(0xaa));Object[a7_0x2ee451(0xb1)](exports,a7_0x2ee451(0xa4),{'enumerable':!![],'get':function(){var _0x2bd89f=a7_0x2ee451;return configuration_1[_0x2bd89f(0xbf)];}});
1
+ function a7_0x5e65(_0x1180b2,_0x4c2734){var _0x2398c4=a7_0x56eb();return a7_0x5e65=function(_0x4ff6e1,_0x3d73a2){_0x4ff6e1=_0x4ff6e1-0x14b;var _0x56eb90=_0x2398c4[_0x4ff6e1];return _0x56eb90;},a7_0x5e65(_0x1180b2,_0x4c2734);}var a7_0xe5fe99=a7_0x5e65;(function(_0x5d057f,_0x2aca12){var _0x388be8=a7_0x5e65,_0x451c79=_0x5d057f();while(!![]){try{var _0x3e0ff0=parseInt(_0x388be8(0x171))/0x1*(-parseInt(_0x388be8(0x157))/0x2)+-parseInt(_0x388be8(0x16f))/0x3*(-parseInt(_0x388be8(0x166))/0x4)+parseInt(_0x388be8(0x168))/0x5*(-parseInt(_0x388be8(0x153))/0x6)+-parseInt(_0x388be8(0x152))/0x7*(parseInt(_0x388be8(0x14e))/0x8)+-parseInt(_0x388be8(0x170))/0x9+parseInt(_0x388be8(0x14f))/0xa*(-parseInt(_0x388be8(0x16b))/0xb)+parseInt(_0x388be8(0x162))/0xc;if(_0x3e0ff0===_0x2aca12)break;else _0x451c79['push'](_0x451c79['shift']());}catch(_0x900a40){_0x451c79['push'](_0x451c79['shift']());}}}(a7_0x56eb,0x22075));var a7_0x3d73a2=(function(){var _0x44bee2=!![];return function(_0x4609d4,_0x44e5af){var _0x792eda=_0x44bee2?function(){var _0x34de10=a7_0x5e65;if(_0x44e5af){var _0x105312=_0x44e5af[_0x34de10(0x16a)](_0x4609d4,arguments);return _0x44e5af=null,_0x105312;}}:function(){};return _0x44bee2=![],_0x792eda;};}()),a7_0x4ff6e1=a7_0x3d73a2(this,function(){var _0x479527=a7_0x5e65;return a7_0x4ff6e1[_0x479527(0x14c)]()[_0x479527(0x14d)]('(((.+)+)+)+$')[_0x479527(0x14c)]()['constructor'](a7_0x4ff6e1)[_0x479527(0x14d)]('(((.+)+)+)+$');});a7_0x4ff6e1();'use strict';var __createBinding=this&&this[a7_0xe5fe99(0x169)]||(Object[a7_0xe5fe99(0x14b)]?function(_0x355ecf,_0x46899c,_0x2cda37,_0x2cd7a5){var _0x1e8fdf=a7_0xe5fe99;if(_0x2cd7a5===undefined)_0x2cd7a5=_0x2cda37;var _0x4ed49a=Object[_0x1e8fdf(0x15d)](_0x46899c,_0x2cda37);(!_0x4ed49a||('get'in _0x4ed49a?!_0x46899c[_0x1e8fdf(0x154)]:_0x4ed49a[_0x1e8fdf(0x156)]||_0x4ed49a[_0x1e8fdf(0x167)]))&&(_0x4ed49a={'enumerable':!![],'get':function(){return _0x46899c[_0x2cda37];}}),Object['defineProperty'](_0x355ecf,_0x2cd7a5,_0x4ed49a);}:function(_0x4a11cc,_0x528a41,_0x5cf290,_0x525588){if(_0x525588===undefined)_0x525588=_0x5cf290;_0x4a11cc[_0x525588]=_0x528a41[_0x5cf290];}),__exportStar=this&&this[a7_0xe5fe99(0x159)]||function(_0x33cfe9,_0x434a1c){var _0x3cc5f5=a7_0xe5fe99;for(var _0x51a877 in _0x33cfe9)if(_0x51a877!==_0x3cc5f5(0x163)&&!Object[_0x3cc5f5(0x15c)][_0x3cc5f5(0x160)][_0x3cc5f5(0x15f)](_0x434a1c,_0x51a877))__createBinding(_0x434a1c,_0x33cfe9,_0x51a877);};Object[a7_0xe5fe99(0x158)](exports,a7_0xe5fe99(0x154),{'value':!![]}),exports['Configuration']=exports[a7_0xe5fe99(0x151)]=exports[a7_0xe5fe99(0x164)]=exports[a7_0xe5fe99(0x155)]=exports[a7_0xe5fe99(0x15e)]=exports[a7_0xe5fe99(0x150)]=void 0x0,__exportStar(require(a7_0xe5fe99(0x16c)),exports),__exportStar(require(a7_0xe5fe99(0x16e)),exports),__exportStar(require(a7_0xe5fe99(0x161)),exports);var Validator_1=require('./decorator/Validator');function a7_0x56eb(){var _0xa3a705=['__createBinding','apply','5291Naofqx','./interface','./exception/ValidatorError','./helper/dtoHelper','38886vKuyQT','2278863uKohVD','154015gtQPbf','create','toString','search','238296DoGvmU','1110fXWMVr','Validator','ValidatorService','14GyOACU','14610DHNsUL','__esModule','RuleType','writable','2bKuzBb','defineProperty','__exportStar','Configuration','./decorator/Rule','prototype','getOwnPropertyDescriptor','Rule','call','hasOwnProperty','./helper/getSchema','7984476KLWYyZ','default','ValidatorError','./configuration','20tpFRPu','configurable','145wnvEsX'];a7_0x56eb=function(){return _0xa3a705;};return a7_0x56eb();}Object[a7_0xe5fe99(0x158)](exports,a7_0xe5fe99(0x150),{'enumerable':!![],'get':function(){return Validator_1['Validator'];}});var Rule_1=require(a7_0xe5fe99(0x15b));Object[a7_0xe5fe99(0x158)](exports,a7_0xe5fe99(0x15e),{'enumerable':!![],'get':function(){var _0x40addb=a7_0xe5fe99;return Rule_1[_0x40addb(0x15e)];}}),Object[a7_0xe5fe99(0x158)](exports,'RuleType',{'enumerable':!![],'get':function(){var _0xe09da2=a7_0xe5fe99;return Rule_1[_0xe09da2(0x155)];}});var ValidatorError_1=require(a7_0xe5fe99(0x16d));Object[a7_0xe5fe99(0x158)](exports,a7_0xe5fe99(0x164),{'enumerable':!![],'get':function(){var _0x310c67=a7_0xe5fe99;return ValidatorError_1[_0x310c67(0x164)];}});var ValidatorService_1=require('./service/ValidatorService');Object[a7_0xe5fe99(0x158)](exports,a7_0xe5fe99(0x151),{'enumerable':!![],'get':function(){var _0x4e123c=a7_0xe5fe99;return ValidatorService_1[_0x4e123c(0x151)];}});var configuration_1=require(a7_0xe5fe99(0x165));Object[a7_0xe5fe99(0x158)](exports,a7_0xe5fe99(0x15a),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});
@@ -1,9 +1,9 @@
1
- import * as Joi from 'joi';
2
- export declare const RULES_KEY = "anncic-api:validator:rules";
3
- export declare const VALIDATOR_KEY = "anncic-api:validator:validator";
4
- export interface ValidatorOptions {
5
- locale?: string;
6
- description?: string;
7
- errorStatus?: number;
8
- validationOptions?: Joi.ValidationOptions;
9
- }
1
+ import * as Joi from 'joi';
2
+ export declare const RULES_KEY = "anncic-api:validator:rules";
3
+ export declare const VALIDATOR_KEY = "anncic-api:validator:validator";
4
+ export interface ValidatorOptions {
5
+ locale?: string;
6
+ description?: string;
7
+ errorStatus?: number;
8
+ validationOptions?: Joi.ValidationOptions;
9
+ }
package/dist/interface.js CHANGED
@@ -1 +1 @@
1
- var a8_0x34dc1d=a8_0x5b2c;function a8_0x2b2b(){var _0x3aa14d=['defineProperty','RULES_KEY','anncic-api:validator:rules','1700joohXK','search','apply','111824OnEbgG','960nxMKsZ','2885004ZBjcVq','572372bJWfJQ','4686CQxgJp','18qkwCqL','1067vjLPgf','420826WbYqSg','95150aLZmaY','477CbTHzG','485kDHYyc','(((.+)+)+)+$','toString','VALIDATOR_KEY'];a8_0x2b2b=function(){return _0x3aa14d;};return a8_0x2b2b();}(function(_0x564114,_0x418ae8){var _0x231beb=a8_0x5b2c,_0x3599ef=_0x564114();while(!![]){try{var _0x5a82df=parseInt(_0x231beb(0x18b))/0x1*(parseInt(_0x231beb(0x17b))/0x2)+-parseInt(_0x231beb(0x17f))/0x3*(parseInt(_0x231beb(0x17d))/0x4)+-parseInt(_0x231beb(0x184))/0x5*(-parseInt(_0x231beb(0x17e))/0x6)+parseInt(_0x231beb(0x181))/0x7+-parseInt(_0x231beb(0x17a))/0x8*(parseInt(_0x231beb(0x183))/0x9)+-parseInt(_0x231beb(0x182))/0xa*(-parseInt(_0x231beb(0x180))/0xb)+parseInt(_0x231beb(0x17c))/0xc;if(_0x5a82df===_0x418ae8)break;else _0x3599ef['push'](_0x3599ef['shift']());}catch(_0x251c0d){_0x3599ef['push'](_0x3599ef['shift']());}}}(a8_0x2b2b,0x7df0f));var a8_0x5936b2=(function(){var _0x38b90d=!![];return function(_0x151188,_0x285c8d){var _0x30413b=_0x38b90d?function(){var _0x298865=a8_0x5b2c;if(_0x285c8d){var _0x26569a=_0x285c8d[_0x298865(0x179)](_0x151188,arguments);return _0x285c8d=null,_0x26569a;}}:function(){};return _0x38b90d=![],_0x30413b;};}()),a8_0x501eac=a8_0x5936b2(this,function(){var _0x33d2cd=a8_0x5b2c;return a8_0x501eac[_0x33d2cd(0x186)]()['search'](_0x33d2cd(0x185))['toString']()['constructor'](a8_0x501eac)[_0x33d2cd(0x18c)](_0x33d2cd(0x185));});function a8_0x5b2c(_0x253865,_0x41c38a){var _0x3ab3d4=a8_0x2b2b();return a8_0x5b2c=function(_0x501eac,_0x5936b2){_0x501eac=_0x501eac-0x179;var _0x2b2b1e=_0x3ab3d4[_0x501eac];return _0x2b2b1e;},a8_0x5b2c(_0x253865,_0x41c38a);}a8_0x501eac();'use strict';Object[a8_0x34dc1d(0x188)](exports,'__esModule',{'value':!![]}),exports['VALIDATOR_KEY']=exports[a8_0x34dc1d(0x189)]=void 0x0,exports[a8_0x34dc1d(0x189)]=a8_0x34dc1d(0x18a),exports[a8_0x34dc1d(0x187)]='anncic-api:validator:validator';
1
+ var a8_0x6ad191=a8_0x3e2b;function a8_0x3e2b(_0x57fd1b,_0x585856){var _0x4efb9e=a8_0x2cf8();return a8_0x3e2b=function(_0x31205a,_0x4c45e9){_0x31205a=_0x31205a-0x97;var _0x2cf893=_0x4efb9e[_0x31205a];return _0x2cf893;},a8_0x3e2b(_0x57fd1b,_0x585856);}(function(_0x52a868,_0x5ad8d4){var _0xe479bc=a8_0x3e2b,_0x274454=_0x52a868();while(!![]){try{var _0x2dfb27=-parseInt(_0xe479bc(0x9c))/0x1+parseInt(_0xe479bc(0xa0))/0x2*(-parseInt(_0xe479bc(0x97))/0x3)+-parseInt(_0xe479bc(0x9d))/0x4*(parseInt(_0xe479bc(0x9a))/0x5)+-parseInt(_0xe479bc(0x9b))/0x6*(parseInt(_0xe479bc(0x9e))/0x7)+parseInt(_0xe479bc(0xa8))/0x8+parseInt(_0xe479bc(0xa2))/0x9+parseInt(_0xe479bc(0xa4))/0xa*(parseInt(_0xe479bc(0xa1))/0xb);if(_0x2dfb27===_0x5ad8d4)break;else _0x274454['push'](_0x274454['shift']());}catch(_0x5d5776){_0x274454['push'](_0x274454['shift']());}}}(a8_0x2cf8,0xedb96));function a8_0x2cf8(){var _0x28ebef=['search','2uEZROR','4169MpOQYW','6324948oIqmQV','(((.+)+)+)+$','29490YBMftU','VALIDATOR_KEY','anncic-api:validator:rules','defineProperty','10065416HixCdH','anncic-api:validator:validator','RULES_KEY','208878jUVcFA','constructor','toString','15hxllBk','5725254wDkbhi','775250ueJStH','407756RmLSYJ','7GPFWMt'];a8_0x2cf8=function(){return _0x28ebef;};return a8_0x2cf8();}var a8_0x4c45e9=(function(){var _0x5c43cd=!![];return function(_0x24f7a3,_0x4461bf){var _0x33935a=_0x5c43cd?function(){if(_0x4461bf){var _0x4657b7=_0x4461bf['apply'](_0x24f7a3,arguments);return _0x4461bf=null,_0x4657b7;}}:function(){};return _0x5c43cd=![],_0x33935a;};}()),a8_0x31205a=a8_0x4c45e9(this,function(){var _0x5ce10c=a8_0x3e2b;return a8_0x31205a[_0x5ce10c(0x99)]()['search'](_0x5ce10c(0xa3))[_0x5ce10c(0x99)]()[_0x5ce10c(0x98)](a8_0x31205a)[_0x5ce10c(0x9f)](_0x5ce10c(0xa3));});a8_0x31205a();'use strict';Object[a8_0x6ad191(0xa7)](exports,'__esModule',{'value':!![]}),exports[a8_0x6ad191(0xa5)]=exports[a8_0x6ad191(0xaa)]=void 0x0,exports[a8_0x6ad191(0xaa)]=a8_0x6ad191(0xa6),exports['VALIDATOR_KEY']=a8_0x6ad191(0xa9);
@@ -1,15 +1,15 @@
1
- import * as Joi from "joi";
2
- import { MidwayI18nServiceSingleton } from '@midwayjs/i18n';
3
- export declare class ValidatorService {
4
- protected i18nConfig: any;
5
- protected validatorConfig: any;
6
- protected i18nService: MidwayI18nServiceSingleton;
7
- protected messages: {};
8
- init(): Promise<void>;
9
- getSchema<T extends new (...args: any[]) => any>(ClzType: T): Joi.ObjectSchema<any> | undefined;
10
- validator<T extends new (...args: any[]) => any>(ClzType: T | Joi.ObjectSchema<any>, value: any, options?: {
11
- errorStatus?: number;
12
- locale?: string;
13
- validationOptions?: Joi.ValidationOptions;
14
- }): any;
15
- }
1
+ import * as Joi from "joi";
2
+ import { MidwayI18nServiceSingleton } from '@midwayjs/i18n';
3
+ export declare class ValidatorService {
4
+ protected i18nConfig: any;
5
+ protected validatorConfig: any;
6
+ protected i18nService: MidwayI18nServiceSingleton;
7
+ protected messages: {};
8
+ init(): Promise<void>;
9
+ getSchema<T extends new (...args: any[]) => any>(ClzType: T): Joi.ObjectSchema<any> | undefined;
10
+ validator<T extends new (...args: any[]) => any>(ClzType: T | Joi.ObjectSchema<any>, value: any, options?: {
11
+ errorStatus?: number;
12
+ locale?: string;
13
+ validationOptions?: Joi.ValidationOptions;
14
+ }): any;
15
+ }
@@ -1 +1 @@
1
- const a9_0x42399d=a9_0x2e20;function a9_0x2e20(_0x2d95a2,_0x2c256e){const _0x123713=a9_0x449a();return a9_0x2e20=function(_0x4f5856,_0x4e1c43){_0x4f5856=_0x4f5856-0x155;let _0x449aff=_0x123713[_0x4f5856];return _0x449aff;},a9_0x2e20(_0x2d95a2,_0x2c256e);}(function(_0x683055,_0x3c5e1e){const _0x42d880=a9_0x2e20,_0x4e1836=_0x683055();while(!![]){try{const _0x3e8cad=-parseInt(_0x42d880(0x183))/0x1+-parseInt(_0x42d880(0x15c))/0x2*(-parseInt(_0x42d880(0x199))/0x3)+parseInt(_0x42d880(0x17b))/0x4+-parseInt(_0x42d880(0x184))/0x5*(parseInt(_0x42d880(0x195))/0x6)+parseInt(_0x42d880(0x156))/0x7*(parseInt(_0x42d880(0x15d))/0x8)+parseInt(_0x42d880(0x18a))/0x9+-parseInt(_0x42d880(0x167))/0xa;if(_0x3e8cad===_0x3c5e1e)break;else _0x4e1836['push'](_0x4e1836['shift']());}catch(_0x25bc60){_0x4e1836['push'](_0x4e1836['shift']());}}}(a9_0x449a,0x22aac));const a9_0x4e1c43=(function(){let _0x3e3bde=!![];return function(_0x530371,_0xd4f20){const _0x24ee94=_0x3e3bde?function(){if(_0xd4f20){const _0xc083db=_0xd4f20['apply'](_0x530371,arguments);return _0xd4f20=null,_0xc083db;}}:function(){};return _0x3e3bde=![],_0x24ee94;};}()),a9_0x4f5856=a9_0x4e1c43(this,function(){const _0x3afc63=a9_0x2e20;return a9_0x4f5856['toString']()['search'](_0x3afc63(0x175))['toString']()[_0x3afc63(0x17f)](a9_0x4f5856)['search'](_0x3afc63(0x175));});a9_0x4f5856();'use strict';var __decorate=this&&this[a9_0x42399d(0x182)]||function(_0x20c29f,_0x23b0fd,_0x597e09,_0x4db3ff){const _0x17a988=a9_0x42399d;var _0x434ac6=arguments[_0x17a988(0x155)],_0x4a6864=_0x434ac6<0x3?_0x23b0fd:_0x4db3ff===null?_0x4db3ff=Object[_0x17a988(0x17e)](_0x23b0fd,_0x597e09):_0x4db3ff,_0x397f95;if(typeof Reflect===_0x17a988(0x186)&&typeof Reflect[_0x17a988(0x170)]==='function')_0x4a6864=Reflect['decorate'](_0x20c29f,_0x23b0fd,_0x597e09,_0x4db3ff);else{for(var _0x487797=_0x20c29f[_0x17a988(0x155)]-0x1;_0x487797>=0x0;_0x487797--)if(_0x397f95=_0x20c29f[_0x487797])_0x4a6864=(_0x434ac6<0x3?_0x397f95(_0x4a6864):_0x434ac6>0x3?_0x397f95(_0x23b0fd,_0x597e09,_0x4a6864):_0x397f95(_0x23b0fd,_0x597e09))||_0x4a6864;}return _0x434ac6>0x3&&_0x4a6864&&Object['defineProperty'](_0x23b0fd,_0x597e09,_0x4a6864),_0x4a6864;},__metadata=this&&this['__metadata']||function(_0x223310,_0x2230b0){const _0x131e48=a9_0x42399d;if(typeof Reflect==='object'&&typeof Reflect[_0x131e48(0x181)]===_0x131e48(0x166))return Reflect['metadata'](_0x223310,_0x2230b0);};function a9_0x449a(){const _0x362922=['_flags','defineProperty','forEach','617700LwSDni','init','localeTable','getOwnPropertyDescriptor','constructor','../exception/ValidatorError','metadata','__decorate','226313jiFMxQ','70rxgRsp','Inject','object','fromEntries','MidwayI18nServiceSingleton','assign','2241441SmgNmo','type','YYYY-MM-DD\x20HH:mm:ss','key','ValidatorError','@midwayjs/core','errors','ScopeEnum','Config','PARAMS','Init','114942bfsbPr','$_terms','formatLocale','error','3PgGPMg','length','7YbyoOM','isSchema','validator','参数验证失败','keys','i18nService','198406DneeUF','2036744mXDaEI','getClassExtendedMetadata','design:type','date','schema','prototype','validationOptions','messages','ValidatorService','function','1207630zWzIzj','@midwayjs/i18n','validatorConfig','__esModule','Provide','i18nConfig','getLocaleMapping','message','value','decorate','getSchema','details','validate','NOFIND_SCHEMA','(((.+)+)+)+$','getAvailableLocale','format'];a9_0x449a=function(){return _0x362922;};return a9_0x449a();}Object[a9_0x42399d(0x179)](exports,a9_0x42399d(0x16a),{'value':!![]}),exports[a9_0x42399d(0x165)]=void 0x0;const Joi=require('joi'),i18n_1=require(a9_0x42399d(0x168)),core_1=require(a9_0x42399d(0x18f)),interface_1=require('../interface'),ValidatorError_1=require(a9_0x42399d(0x180));let ValidatorService=class ValidatorService{constructor(){const _0x372a90=a9_0x42399d;this[_0x372a90(0x164)]={};}async[a9_0x42399d(0x17c)](){const _0x20fc00=a9_0x42399d,_0x5ba003=Object[_0x20fc00(0x15a)](this[_0x20fc00(0x16c)][_0x20fc00(0x17d)]);_0x5ba003[_0x20fc00(0x17a)](_0x388f3d=>{const _0x5a1ab7=_0x20fc00;this['messages'][(0x0,i18n_1[_0x5a1ab7(0x197)])(_0x388f3d)]=Object[_0x5a1ab7(0x187)](this[_0x5a1ab7(0x15b)][_0x5a1ab7(0x16d)](_0x388f3d,_0x5a1ab7(0x158)));});}[a9_0x42399d(0x171)](_0x3c88e0){const _0x1bf187=a9_0x42399d,_0x2e9a11=(0x0,core_1[_0x1bf187(0x15e)])(interface_1['RULES_KEY'],_0x3c88e0);return _0x2e9a11?Joi[_0x1bf187(0x186)](_0x2e9a11):undefined;}[a9_0x42399d(0x158)](_0x4da899,_0x51070c,_0x2f6161={}){const _0x22a040=a9_0x42399d;var _0x2d791b,_0xc0944e,_0x1bd922,_0x35a751,_0x346228,_0x4010d7;const _0x33e551=Joi[_0x22a040(0x157)](_0x4da899)?_0x4da899:this[_0x22a040(0x171)](_0x4da899);if(!_0x33e551)throw new AnnError(ValidatorError_1['ValidatorError'][_0x22a040(0x174)]);_0x2f6161[_0x22a040(0x163)]=Object[_0x22a040(0x189)]((_0x2d791b=this['validatorConfig'][_0x22a040(0x163)])!==null&&_0x2d791b!==void 0x0?_0x2d791b:{},{'messages':this[_0x22a040(0x164)]},_0x2f6161[_0x22a040(0x163)]||{}),_0x2f6161[_0x22a040(0x163)][_0x22a040(0x190)]=_0x2f6161['validationOptions'][_0x22a040(0x190)]||{},_0x2f6161[_0x22a040(0x163)][_0x22a040(0x190)]['language']=(0x0,i18n_1[_0x22a040(0x197)])(this[_0x22a040(0x15b)][_0x22a040(0x176)](_0x2f6161[_0x22a040(0x163)]['errors']['language']||_0x2f6161['locale']||this[_0x22a040(0x16c)]['defaultLocale'],_0x22a040(0x158)));const _0x264875=_0x33e551[_0x22a040(0x173)](_0x51070c,_0x2f6161[_0x22a040(0x163)]);if(_0x264875===null||_0x264875===void 0x0?void 0x0:_0x264875[_0x22a040(0x198)]){if(_0x264875[_0x22a040(0x198)]instanceof AnnError)throw _0x264875['error'];else{if(_0x264875[_0x22a040(0x198)]instanceof Error)throw new AnnError(ValidatorError_1[_0x22a040(0x18e)][_0x22a040(0x193)],{'message':((_0xc0944e=_0x264875[_0x22a040(0x198)])===null||_0xc0944e===void 0x0?void 0x0:_0xc0944e[_0x22a040(0x16e)])||_0x22a040(0x159)});else throw new AnnError(ValidatorError_1[_0x22a040(0x18e)]['PARAMS'],{'message':((_0x346228=(_0x35a751=(_0x1bd922=_0x264875[_0x22a040(0x198)])===null||_0x1bd922===void 0x0?void 0x0:_0x1bd922[_0x22a040(0x172)])===null||_0x35a751===void 0x0?void 0x0:_0x35a751[0x0])===null||_0x346228===void 0x0?void 0x0:_0x346228[_0x22a040(0x16e)])||_0x22a040(0x159)});}}if(_0x264875===null||_0x264875===void 0x0?void 0x0:_0x264875[_0x22a040(0x16f)]){const _0x333b65=(_0x4010d7=_0x33e551===null||_0x33e551===void 0x0?void 0x0:_0x33e551['$_terms'])===null||_0x4010d7===void 0x0?void 0x0:_0x4010d7[_0x22a040(0x15a)],_0x5c2d87=function(_0x7c2bd4,_0x3f756a){const _0x479ab6=_0x22a040;var _0x13749b,_0xb10c5a,_0x1fb80b,_0x3a86c0,_0x1eef4a,_0x14bd68,_0x40ab5e,_0x642d78,_0x496de9,_0x17778c,_0x508802;for(let _0x33611b in _0x7c2bd4){if(_0x3f756a[(_0x13749b=_0x7c2bd4[_0x33611b])===null||_0x13749b===void 0x0?void 0x0:_0x13749b[_0x479ab6(0x18d)]]&&((_0x1fb80b=(_0xb10c5a=_0x7c2bd4[_0x33611b])===null||_0xb10c5a===void 0x0?void 0x0:_0xb10c5a[_0x479ab6(0x161)])===null||_0x1fb80b===void 0x0?void 0x0:_0x1fb80b[_0x479ab6(0x18b)])){if(((_0x1eef4a=(_0x3a86c0=_0x7c2bd4[_0x33611b])===null||_0x3a86c0===void 0x0?void 0x0:_0x3a86c0['schema'])===null||_0x1eef4a===void 0x0?void 0x0:_0x1eef4a[_0x479ab6(0x18b)])=='object')_0x3f756a[_0x7c2bd4[_0x33611b]['key']]=_0x5c2d87((_0x40ab5e=(_0x14bd68=_0x7c2bd4[_0x33611b])===null||_0x14bd68===void 0x0?void 0x0:_0x14bd68['schema'][_0x479ab6(0x196)])===null||_0x40ab5e===void 0x0?void 0x0:_0x40ab5e[_0x479ab6(0x15a)],_0x3f756a[_0x7c2bd4[_0x33611b]['key']]);else{if(_0x7c2bd4[_0x33611b][_0x479ab6(0x161)]['type']==_0x479ab6(0x160)&&_0x264875['value'][(_0x642d78=_0x7c2bd4[_0x33611b])===null||_0x642d78===void 0x0?void 0x0:_0x642d78[_0x479ab6(0x18d)]]){const _0xb8bf9c=((_0x508802=(_0x17778c=(_0x496de9=_0x7c2bd4[_0x33611b])===null||_0x496de9===void 0x0?void 0x0:_0x496de9[_0x479ab6(0x161)])===null||_0x17778c===void 0x0?void 0x0:_0x17778c[_0x479ab6(0x178)])===null||_0x508802===void 0x0?void 0x0:_0x508802[_0x479ab6(0x177)])||_0x479ab6(0x18c);_0x3f756a[_0x7c2bd4[_0x33611b][_0x479ab6(0x18d)]]=dayjs(_0x264875[_0x479ab6(0x16f)][_0x7c2bd4[_0x33611b][_0x479ab6(0x18d)]])[_0x479ab6(0x177)](_0xb8bf9c);}}}}return _0x3f756a;};return _0x5c2d87(_0x333b65,_0x264875[_0x22a040(0x16f)]);}throw new AnnError(ValidatorError_1[_0x22a040(0x18e)][_0x22a040(0x193)]);}};exports['ValidatorService']=ValidatorService,__decorate([(0x0,core_1[a9_0x42399d(0x192)])('i18n'),__metadata(a9_0x42399d(0x15f),Object)],ValidatorService[a9_0x42399d(0x162)],'i18nConfig',void 0x0),__decorate([(0x0,core_1[a9_0x42399d(0x192)])(a9_0x42399d(0x158)),__metadata(a9_0x42399d(0x15f),Object)],ValidatorService[a9_0x42399d(0x162)],a9_0x42399d(0x169),void 0x0),__decorate([(0x0,core_1[a9_0x42399d(0x185)])(),__metadata('design:type',i18n_1[a9_0x42399d(0x188)])],ValidatorService[a9_0x42399d(0x162)],'i18nService',void 0x0),__decorate([(0x0,core_1[a9_0x42399d(0x194)])(),__metadata('design:type',Function),__metadata('design:paramtypes',[]),__metadata('design:returntype',Promise)],ValidatorService[a9_0x42399d(0x162)],a9_0x42399d(0x17c),null),exports[a9_0x42399d(0x165)]=ValidatorService=__decorate([(0x0,core_1[a9_0x42399d(0x16b)])('validator'),(0x0,core_1['Scope'])(core_1[a9_0x42399d(0x191)]['Singleton'])],ValidatorService);
1
+ const a9_0x48ee3c=a9_0x55a6;(function(_0x9108e1,_0x581e4f){const _0x5edccd=a9_0x55a6,_0x385c72=_0x9108e1();while(!![]){try{const _0x4cd937=-parseInt(_0x5edccd(0x1c9))/0x1*(-parseInt(_0x5edccd(0x19b))/0x2)+parseInt(_0x5edccd(0x1ba))/0x3+-parseInt(_0x5edccd(0x195))/0x4*(parseInt(_0x5edccd(0x1bd))/0x5)+-parseInt(_0x5edccd(0x1d5))/0x6+-parseInt(_0x5edccd(0x1cc))/0x7+parseInt(_0x5edccd(0x1cb))/0x8+parseInt(_0x5edccd(0x1ac))/0x9*(parseInt(_0x5edccd(0x193))/0xa);if(_0x4cd937===_0x581e4f)break;else _0x385c72['push'](_0x385c72['shift']());}catch(_0x15ade2){_0x385c72['push'](_0x385c72['shift']());}}}(a9_0x1863,0x33393));const a9_0x54e7fa=(function(){let _0x5f4005=!![];return function(_0x42382a,_0x594388){const _0x96a00e=_0x5f4005?function(){if(_0x594388){const _0x557a90=_0x594388['apply'](_0x42382a,arguments);return _0x594388=null,_0x557a90;}}:function(){};return _0x5f4005=![],_0x96a00e;};}()),a9_0x4f4da2=a9_0x54e7fa(this,function(){const _0x278f5d=a9_0x55a6;return a9_0x4f4da2[_0x278f5d(0x1d8)]()[_0x278f5d(0x1c3)]('(((.+)+)+)+$')[_0x278f5d(0x1d8)]()[_0x278f5d(0x1c1)](a9_0x4f4da2)['search']('(((.+)+)+)+$');});a9_0x4f4da2();'use strict';function a9_0x1863(){const _0x1a1e68=['__metadata','NOFIND_SCHEMA','toString','1820sDZgaP','decorate','36JRQSkO','defineProperty','errors','design:type','language','object','168754EqjmCM','参数验证失败','length','YYYY-MM-DD\x20HH:mm:ss','Init','fromEntries','getClassExtendedMetadata','Provide','@midwayjs/core','messages','localeTable','date','getLocaleMapping','ValidatorError','ScopeEnum','error','validator','2781iIjjLT','function','getSchema','defaultLocale','i18n','i18nService','PARAMS','schema','../exception/ValidatorError','__decorate','type','keys','init','../interface','752016aWUmox','design:returntype','prototype','49490jdJDIJ','RULES_KEY','$_terms','ValidatorService','constructor','_flags','search','i18nConfig','Config','joi','locale','message','2XlFHsY','details','2003504PtuuWo','1388905ZMpYaq','value','validationOptions','Singleton','Inject','key','formatLocale','metadata','validatorConfig','1372764GlPrQq'];a9_0x1863=function(){return _0x1a1e68;};return a9_0x1863();}function a9_0x55a6(_0x5bf863,_0x33ad97){const _0x347fb7=a9_0x1863();return a9_0x55a6=function(_0x4f4da2,_0x54e7fa){_0x4f4da2=_0x4f4da2-0x193;let _0x186315=_0x347fb7[_0x4f4da2];return _0x186315;},a9_0x55a6(_0x5bf863,_0x33ad97);}var __decorate=this&&this[a9_0x48ee3c(0x1b5)]||function(_0x223bee,_0x50e2af,_0x3a1a1b,_0x23efca){const _0x3d5cea=a9_0x48ee3c;var _0x2d5bdd=arguments[_0x3d5cea(0x19d)],_0x153490=_0x2d5bdd<0x3?_0x50e2af:_0x23efca===null?_0x23efca=Object['getOwnPropertyDescriptor'](_0x50e2af,_0x3a1a1b):_0x23efca,_0x34a40a;if(typeof Reflect==='object'&&typeof Reflect[_0x3d5cea(0x194)]===_0x3d5cea(0x1ad))_0x153490=Reflect[_0x3d5cea(0x194)](_0x223bee,_0x50e2af,_0x3a1a1b,_0x23efca);else{for(var _0xceaa31=_0x223bee[_0x3d5cea(0x19d)]-0x1;_0xceaa31>=0x0;_0xceaa31--)if(_0x34a40a=_0x223bee[_0xceaa31])_0x153490=(_0x2d5bdd<0x3?_0x34a40a(_0x153490):_0x2d5bdd>0x3?_0x34a40a(_0x50e2af,_0x3a1a1b,_0x153490):_0x34a40a(_0x50e2af,_0x3a1a1b))||_0x153490;}return _0x2d5bdd>0x3&&_0x153490&&Object[_0x3d5cea(0x196)](_0x50e2af,_0x3a1a1b,_0x153490),_0x153490;},__metadata=this&&this[a9_0x48ee3c(0x1d6)]||function(_0xdb5f5a,_0x48f775){const _0x4e35e7=a9_0x48ee3c;if(typeof Reflect==='object'&&typeof Reflect[_0x4e35e7(0x1d3)]===_0x4e35e7(0x1ad))return Reflect[_0x4e35e7(0x1d3)](_0xdb5f5a,_0x48f775);};Object[a9_0x48ee3c(0x196)](exports,'__esModule',{'value':!![]}),exports['ValidatorService']=void 0x0;const Joi=require(a9_0x48ee3c(0x1c6)),i18n_1=require('@midwayjs/i18n'),core_1=require(a9_0x48ee3c(0x1a3)),interface_1=require(a9_0x48ee3c(0x1b9)),ValidatorError_1=require(a9_0x48ee3c(0x1b4));let ValidatorService=class ValidatorService{constructor(){const _0x2fdf10=a9_0x48ee3c;this[_0x2fdf10(0x1a4)]={};}async[a9_0x48ee3c(0x1b8)](){const _0x49cd28=a9_0x48ee3c,_0x260fc4=Object[_0x49cd28(0x1b7)](this[_0x49cd28(0x1c4)][_0x49cd28(0x1a5)]);_0x260fc4['forEach'](_0x34ef6b=>{const _0x119757=_0x49cd28;this['messages'][(0x0,i18n_1[_0x119757(0x1d2)])(_0x34ef6b)]=Object[_0x119757(0x1a0)](this[_0x119757(0x1b1)][_0x119757(0x1a7)](_0x34ef6b,'validator'));});}['getSchema'](_0x1573ea){const _0x2efcb2=a9_0x48ee3c,_0x251534=(0x0,core_1[_0x2efcb2(0x1a1)])(interface_1[_0x2efcb2(0x1be)],_0x1573ea);return _0x251534?Joi[_0x2efcb2(0x19a)](_0x251534):undefined;}[a9_0x48ee3c(0x1ab)](_0x1e19be,_0x23f536,_0x4bde67={}){const _0x4c90a3=a9_0x48ee3c;var _0x4805db,_0xb9c9af,_0x4af5ae,_0x5afae8,_0x4b1ac2,_0x28269d;const _0x1d7092=Joi['isSchema'](_0x1e19be)?_0x1e19be:this[_0x4c90a3(0x1ae)](_0x1e19be);if(!_0x1d7092)throw new AnnError(ValidatorError_1['ValidatorError'][_0x4c90a3(0x1d7)]);_0x4bde67['validationOptions']=Object['assign']((_0x4805db=this[_0x4c90a3(0x1d4)]['validationOptions'])!==null&&_0x4805db!==void 0x0?_0x4805db:{},{'messages':this[_0x4c90a3(0x1a4)]},_0x4bde67[_0x4c90a3(0x1ce)]||{}),_0x4bde67[_0x4c90a3(0x1ce)][_0x4c90a3(0x197)]=_0x4bde67[_0x4c90a3(0x1ce)][_0x4c90a3(0x197)]||{},_0x4bde67[_0x4c90a3(0x1ce)]['errors']['language']=(0x0,i18n_1[_0x4c90a3(0x1d2)])(this[_0x4c90a3(0x1b1)]['getAvailableLocale'](_0x4bde67[_0x4c90a3(0x1ce)][_0x4c90a3(0x197)][_0x4c90a3(0x199)]||_0x4bde67[_0x4c90a3(0x1c7)]||this[_0x4c90a3(0x1c4)][_0x4c90a3(0x1af)],'validator'));const _0x4824b5=_0x1d7092['validate'](_0x23f536,_0x4bde67[_0x4c90a3(0x1ce)]);if(_0x4824b5===null||_0x4824b5===void 0x0?void 0x0:_0x4824b5[_0x4c90a3(0x1aa)]){if(_0x4824b5[_0x4c90a3(0x1aa)]instanceof AnnError)throw _0x4824b5[_0x4c90a3(0x1aa)];else{if(_0x4824b5[_0x4c90a3(0x1aa)]instanceof Error)throw new AnnError(ValidatorError_1[_0x4c90a3(0x1a8)][_0x4c90a3(0x1b2)],{'message':((_0xb9c9af=_0x4824b5[_0x4c90a3(0x1aa)])===null||_0xb9c9af===void 0x0?void 0x0:_0xb9c9af[_0x4c90a3(0x1c8)])||_0x4c90a3(0x19c)});else throw new AnnError(ValidatorError_1[_0x4c90a3(0x1a8)][_0x4c90a3(0x1b2)],{'message':((_0x4b1ac2=(_0x5afae8=(_0x4af5ae=_0x4824b5[_0x4c90a3(0x1aa)])===null||_0x4af5ae===void 0x0?void 0x0:_0x4af5ae[_0x4c90a3(0x1ca)])===null||_0x5afae8===void 0x0?void 0x0:_0x5afae8[0x0])===null||_0x4b1ac2===void 0x0?void 0x0:_0x4b1ac2[_0x4c90a3(0x1c8)])||_0x4c90a3(0x19c)});}}if(_0x4824b5===null||_0x4824b5===void 0x0?void 0x0:_0x4824b5['value']){const _0x52472c=(_0x28269d=_0x1d7092===null||_0x1d7092===void 0x0?void 0x0:_0x1d7092[_0x4c90a3(0x1bf)])===null||_0x28269d===void 0x0?void 0x0:_0x28269d[_0x4c90a3(0x1b7)],_0x5d36f0=function(_0x3c71b4,_0x19b597){const _0x2e176d=_0x4c90a3;var _0x288408,_0x32784e,_0x27518c,_0x5c253d,_0x419b80,_0x19a807,_0x526021,_0x7bccb0,_0x1df0ae,_0x4f30b8,_0x769caa;for(let _0x3ea41c in _0x3c71b4){if(_0x19b597[(_0x288408=_0x3c71b4[_0x3ea41c])===null||_0x288408===void 0x0?void 0x0:_0x288408[_0x2e176d(0x1d1)]]&&((_0x27518c=(_0x32784e=_0x3c71b4[_0x3ea41c])===null||_0x32784e===void 0x0?void 0x0:_0x32784e['schema'])===null||_0x27518c===void 0x0?void 0x0:_0x27518c['type'])){if(((_0x419b80=(_0x5c253d=_0x3c71b4[_0x3ea41c])===null||_0x5c253d===void 0x0?void 0x0:_0x5c253d['schema'])===null||_0x419b80===void 0x0?void 0x0:_0x419b80[_0x2e176d(0x1b6)])=='object')_0x19b597[_0x3c71b4[_0x3ea41c]['key']]=_0x5d36f0((_0x526021=(_0x19a807=_0x3c71b4[_0x3ea41c])===null||_0x19a807===void 0x0?void 0x0:_0x19a807[_0x2e176d(0x1b3)][_0x2e176d(0x1bf)])===null||_0x526021===void 0x0?void 0x0:_0x526021['keys'],_0x19b597[_0x3c71b4[_0x3ea41c][_0x2e176d(0x1d1)]]);else{if(_0x3c71b4[_0x3ea41c][_0x2e176d(0x1b3)][_0x2e176d(0x1b6)]==_0x2e176d(0x1a6)&&_0x4824b5[_0x2e176d(0x1cd)][(_0x7bccb0=_0x3c71b4[_0x3ea41c])===null||_0x7bccb0===void 0x0?void 0x0:_0x7bccb0[_0x2e176d(0x1d1)]]){const _0x32386e=((_0x769caa=(_0x4f30b8=(_0x1df0ae=_0x3c71b4[_0x3ea41c])===null||_0x1df0ae===void 0x0?void 0x0:_0x1df0ae['schema'])===null||_0x4f30b8===void 0x0?void 0x0:_0x4f30b8[_0x2e176d(0x1c2)])===null||_0x769caa===void 0x0?void 0x0:_0x769caa['format'])||_0x2e176d(0x19e);_0x19b597[_0x3c71b4[_0x3ea41c][_0x2e176d(0x1d1)]]=dayjs(_0x4824b5[_0x2e176d(0x1cd)][_0x3c71b4[_0x3ea41c][_0x2e176d(0x1d1)]])['format'](_0x32386e);}}}}return _0x19b597;};return _0x5d36f0(_0x52472c,_0x4824b5[_0x4c90a3(0x1cd)]);}throw new AnnError(ValidatorError_1[_0x4c90a3(0x1a8)][_0x4c90a3(0x1b2)]);}};__decorate([(0x0,core_1['Config'])(a9_0x48ee3c(0x1b0)),__metadata('design:type',Object)],ValidatorService[a9_0x48ee3c(0x1bc)],'i18nConfig',void 0x0),__decorate([(0x0,core_1[a9_0x48ee3c(0x1c5)])('validator'),__metadata('design:type',Object)],ValidatorService[a9_0x48ee3c(0x1bc)],a9_0x48ee3c(0x1d4),void 0x0),__decorate([(0x0,core_1[a9_0x48ee3c(0x1d0)])(),__metadata(a9_0x48ee3c(0x198),i18n_1['MidwayI18nServiceSingleton'])],ValidatorService[a9_0x48ee3c(0x1bc)],'i18nService',void 0x0),__decorate([(0x0,core_1[a9_0x48ee3c(0x19f)])(),__metadata('design:type',Function),__metadata('design:paramtypes',[]),__metadata(a9_0x48ee3c(0x1bb),Promise)],ValidatorService[a9_0x48ee3c(0x1bc)],a9_0x48ee3c(0x1b8),null),ValidatorService=__decorate([(0x0,core_1[a9_0x48ee3c(0x1a2)])(a9_0x48ee3c(0x1ab)),(0x0,core_1['Scope'])(core_1[a9_0x48ee3c(0x1a9)][a9_0x48ee3c(0x1cf)])],ValidatorService),exports[a9_0x48ee3c(0x1c0)]=ValidatorService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/validator",
3
- "version": "3.4.24",
3
+ "version": "3.4.33",
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.24",
20
+ "@anncic-api/core": "^3.4.33",
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.1.3"
28
28
  },
29
- "gitHead": "2f09f741a95f2afa4f3fbfb4fede5f2a95509d81"
29
+ "gitHead": "6e3dc4cc04c16c5f54d726b20f373b159310d1dc"
30
30
  }