@anncic-api/validator 3.4.49 → 3.4.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Rule.js +1 -1
- package/dist/decorator/Validator.js +1 -1
- package/dist/exception/ValidatorError.js +1 -1
- package/dist/helper/dtoHelper.js +1 -1
- package/dist/helper/getSchema.js +1 -1
- package/dist/index.js +1 -1
- package/dist/interface.js +1 -1
- package/dist/service/ValidatorService.js +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x11543d=a0_0x1d20;(function(_0x152b8a,_0x93a0b){const _0xd0ef03=a0_0x1d20,_0xc7afd7=_0x152b8a();while(!![]){try{const _0x309a28=parseInt(_0xd0ef03(0x11f))/0x1*(parseInt(_0xd0ef03(0x127))/0x2)+parseInt(_0xd0ef03(0x128))/0x3+-parseInt(_0xd0ef03(0x122))/0x4+-parseInt(_0xd0ef03(0x126))/0x5*(-parseInt(_0xd0ef03(0x118))/0x6)+parseInt(_0xd0ef03(0x11e))/0x7*(-parseInt(_0xd0ef03(0x11a))/0x8)+parseInt(_0xd0ef03(0x12a))/0x9*(-parseInt(_0xd0ef03(0x120))/0xa)+parseInt(_0xd0ef03(0x11c))/0xb;if(_0x309a28===_0x93a0b)break;else _0xc7afd7['push'](_0xc7afd7['shift']());}catch(_0x51900b){_0xc7afd7['push'](_0xc7afd7['shift']());}}}(a0_0x5abe,0x8abfa));const a0_0x5e11b0=(function(){let _0x3af556=!![];return function(_0x425676,_0x3d8f8d){const _0x36af50=_0x3af556?function(){const _0x1b5cb6=a0_0x1d20;if(_0x3d8f8d){const _0x192989=_0x3d8f8d[_0x1b5cb6(0x121)](_0x425676,arguments);return _0x3d8f8d=null,_0x192989;}}:function(){};return _0x3af556=![],_0x36af50;};}()),a0_0x3b9c22=a0_0x5e11b0(this,function(){const _0xb2f335=a0_0x1d20;return a0_0x3b9c22['toString']()[_0xb2f335(0x124)](_0xb2f335(0x123))['toString']()[_0xb2f335(0x117)](a0_0x3b9c22)[_0xb2f335(0x124)](_0xb2f335(0x123));});a0_0x3b9c22();function a0_0x5abe(){const _0x566e5c=['12685kZxMSh','1022IqDUGw','2309772ZKdpuo','__esModule','1395ZkOKrA','ValidatorError','default','defineProperty','constructor','2406qyoFiH','../exception/ValidatorError','6496352FnUudZ','PARAMS','7203823StTXAR','../../locales/en_US.json','7CXYzDS','845znUStU','60570cIpMEj','apply','2219024DbNDtU','(((.+)+)+)+$','search','../../locales/zh_CN.json'];a0_0x5abe=function(){return _0x566e5c;};return a0_0x5abe();}'use strict';function a0_0x1d20(_0x227845,_0x363f2a){const _0x1b941b=a0_0x5abe();return a0_0x1d20=function(_0x3b9c22,_0x5e11b0){_0x3b9c22=_0x3b9c22-0x116;let _0x5abe70=_0x1b941b[_0x3b9c22];return _0x5abe70;},a0_0x1d20(_0x227845,_0x363f2a);}Object[a0_0x11543d(0x116)](exports,a0_0x11543d(0x129),{'value':!![]});const ValidatorError_1=require(a0_0x11543d(0x119));exports[a0_0x11543d(0x12c)]={'validator':{'errorStatus':ValidatorError_1[a0_0x11543d(0x12b)][a0_0x11543d(0x11b)],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':'string'}},'i18n':{'localeTable':{'en_US':{'validator':require(a0_0x11543d(0x11d))},'zh_CN':{'validator':require(a0_0x11543d(0x125))}}}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a1_0x69da(_0x4d561d,_0x2e6555){const _0xa397a0=a1_0x17ef();return a1_0x69da=function(_0x24bd4b,_0x24501c){_0x24bd4b=_0x24bd4b-0x1e0;let _0x17ef3d=_0xa397a0[_0x24bd4b];return _0x17ef3d;},a1_0x69da(_0x4d561d,_0x2e6555);}const a1_0x42e974=a1_0x69da;(function(_0x515861,_0x1d3767){const _0x3defe0=a1_0x69da,_0x1ca0b1=_0x515861();while(!![]){try{const _0x251209=parseInt(_0x3defe0(0x1fd))/0x1*(-parseInt(_0x3defe0(0x1f2))/0x2)+-parseInt(_0x3defe0(0x20d))/0x3*(parseInt(_0x3defe0(0x1f0))/0x4)+-parseInt(_0x3defe0(0x1e1))/0x5+parseInt(_0x3defe0(0x1eb))/0x6+parseInt(_0x3defe0(0x1e0))/0x7+parseInt(_0x3defe0(0x1ee))/0x8+parseInt(_0x3defe0(0x1fc))/0x9*(parseInt(_0x3defe0(0x203))/0xa);if(_0x251209===_0x1d3767)break;else _0x1ca0b1['push'](_0x1ca0b1['shift']());}catch(_0x1fa53a){_0x1ca0b1['push'](_0x1ca0b1['shift']());}}}(a1_0x17ef,0xa6d2b));const a1_0x24501c=(function(){let _0x11a255=!![];return function(_0x5966ad,_0x274d3d){const _0x14d771=_0x11a255?function(){if(_0x274d3d){const _0x2711fd=_0x274d3d['apply'](_0x5966ad,arguments);return _0x274d3d=null,_0x2711fd;}}:function(){};return _0x11a255=![],_0x14d771;};}()),a1_0x24bd4b=a1_0x24501c(this,function(){const _0x4f4bc3=a1_0x69da;return a1_0x24bd4b[_0x4f4bc3(0x20b)]()['search'](_0x4f4bc3(0x1e5))[_0x4f4bc3(0x20b)]()['constructor'](a1_0x24bd4b)['search'](_0x4f4bc3(0x1e5));});a1_0x24bd4b();'use strict';var __decorate=this&&this[a1_0x42e974(0x1e4)]||function(_0x269e87,_0x50c650,_0x299905,_0x313059){const _0x496846=a1_0x42e974;var _0x33a01b=arguments[_0x496846(0x215)],_0x80da06=_0x33a01b<0x3?_0x50c650:_0x313059===null?_0x313059=Object['getOwnPropertyDescriptor'](_0x50c650,_0x299905):_0x313059,_0x207067;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x496846(0x210))_0x80da06=Reflect[_0x496846(0x209)](_0x269e87,_0x50c650,_0x299905,_0x313059);else{for(var _0x189abf=_0x269e87[_0x496846(0x215)]-0x1;_0x189abf>=0x0;_0x189abf--)if(_0x207067=_0x269e87[_0x189abf])_0x80da06=(_0x33a01b<0x3?_0x207067(_0x80da06):_0x33a01b>0x3?_0x207067(_0x50c650,_0x299905,_0x80da06):_0x207067(_0x50c650,_0x299905))||_0x80da06;}return _0x33a01b>0x3&&_0x80da06&&Object[_0x496846(0x1fb)](_0x50c650,_0x299905,_0x80da06),_0x80da06;},__metadata=this&&this[a1_0x42e974(0x1fe)]||function(_0x43c60d,_0x5a74a9){const _0x4e9859=a1_0x42e974;if(typeof Reflect===_0x4e9859(0x201)&&typeof Reflect[_0x4e9859(0x1f4)]===_0x4e9859(0x210))return Reflect[_0x4e9859(0x1f4)](_0x43c60d,_0x5a74a9);};Object[a1_0x42e974(0x1fb)](exports,a1_0x42e974(0x1f5),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const i18n_1=require(a1_0x42e974(0x20c)),core_1=require(a1_0x42e974(0x1e6)),core_2=require(a1_0x42e974(0x1e6)),interface_1=require(a1_0x42e974(0x1e9)),ValidatorService_1=require(a1_0x42e974(0x20e)),i18n=require(a1_0x42e974(0x20c)),anncic=require(a1_0x42e974(0x1f3)),ConfigDefault=require('./config/config.default');function a1_0x17ef(){const _0x547b70=['1510wRbBGr','anncic-api:validator','ValidatorService','CustomConfiguration','prototype','I18N_ATTR_KEY','decorate','methodName','toString','@midwayjs/i18n','12qCZdeP','./service/ValidatorService','MidwayDecoratorService','function','target','params','method','getClassMetadata','length','registerMethodHandler','Configuration','4233068SpAoxu','891740GPtRsA','getSchema','design:type','__decorate','(((.+)+)+)+$','@midwayjs/core','undefined','request','./interface','onReady','1011174MSbkqL','args','Inject','493112yUHKPB','query','192936lQzKUh','splice','480Pioois','@anncic-api/core','metadata','__esModule','REQUEST_OBJ_CTX_KEY','propertyName','locale','getAttr','methodArgs','defineProperty','65421RudWac','3658TwELto','__metadata','VALIDATOR_KEY','decorator','object','param'];a1_0x17ef=function(){return _0x547b70;};return a1_0x17ef();}let CustomConfiguration=class CustomConfiguration{async[a1_0x42e974(0x1ea)](){const _0x1d4dfe=a1_0x42e974;this[_0x1d4dfe(0x200)][_0x1d4dfe(0x216)](interface_1[_0x1d4dfe(0x1ff)],_0x69f6eb=>{const _0x2b5002=_0x1d4dfe,_0x1766ad=_0x69f6eb[_0x2b5002(0x1f4)],_0x25206c=(0x0,core_2['getMethodParamTypes'])(_0x69f6eb[_0x2b5002(0x211)],_0x69f6eb[_0x2b5002(0x1f7)]);return{'before':_0x13ac4b=>{const _0x461b0e=_0x2b5002;var _0x5104c3,_0x155cb3,_0x46853a,_0x430346,_0x441160,_0x1a6b2e,_0x1bb241,_0xebb948,_0x320931,_0x1f98d9,_0x55fe59,_0x178045,_0x54e45e;const _0xa5c689=_0x13ac4b[_0x461b0e(0x211)][core_1[_0x461b0e(0x1f6)]],_0x159d6f=Object['assign']({},((_0x5104c3=_0xa5c689===null||_0xa5c689===void 0x0?void 0x0:_0xa5c689[_0x461b0e(0x1e8)])===null||_0x5104c3===void 0x0?void 0x0:_0x5104c3[_0x461b0e(0x1ef)])||{},((_0x155cb3=_0xa5c689===null||_0xa5c689===void 0x0?void 0x0:_0xa5c689[_0x461b0e(0x1e8)])===null||_0x155cb3===void 0x0?void 0x0:_0x155cb3['body'])||{}),_0x3f59ac=((0x0,core_2[_0x461b0e(0x214)])(interface_1[_0x461b0e(0x1ff)],_0x13ac4b['target'])||[])['find'](_0x1aed06=>_0x1aed06[_0x461b0e(0x213)]==_0x13ac4b[_0x461b0e(0x20a)]);!(_0x1766ad===null||_0x1766ad===void 0x0?void 0x0:_0x1766ad[_0x461b0e(0x1f8)])&&_0xa5c689&&_0xa5c689[_0x461b0e(0x1f9)]&&(_0x1766ad[_0x461b0e(0x1f8)]=_0xa5c689[_0x461b0e(0x1f9)](i18n_1[_0x461b0e(0x208)]));for(let _0x20186a=0x0;_0x20186a<_0x25206c[_0x461b0e(0x215)];_0x20186a++){const _0x3abb40=_0x25206c[_0x20186a],_0x3d6a2f=this['ValidatorService'][_0x461b0e(0x1e2)](_0x3abb40);if(_0x3d6a2f){if(typeof _0x13ac4b['args'][_0x20186a]==_0x461b0e(0x1e7)||((_0x46853a=_0x13ac4b[_0x461b0e(0x1ec)][_0x20186a])===null||_0x46853a===void 0x0?void 0x0:_0x46853a['request'])&&((_0x430346=_0x13ac4b[_0x461b0e(0x1ec)][_0x20186a])===null||_0x430346===void 0x0?void 0x0:_0x430346['res'])&&((_0x441160=_0x13ac4b['args'][_0x20186a])===null||_0x441160===void 0x0?void 0x0:_0x441160['req']))_0x13ac4b[_0x461b0e(0x1ec)][_0x20186a]=_0x159d6f;else((_0x1a6b2e=_0x13ac4b[_0x461b0e(0x1ec)][_0x20186a])===null||_0x1a6b2e===void 0x0?void 0x0:_0x1a6b2e['name'])=='bound\x20dispatch'&&_0x13ac4b['args'][_0x461b0e(0x1f1)](_0x20186a,0x0,_0x159d6f);const _0x2c9353=this['ValidatorService']['validator'](_0x3d6a2f,_0x13ac4b[_0x461b0e(0x1ec)][_0x20186a],_0x1766ad);_0x2c9353&&(_0x13ac4b['args'][_0x20186a]=_0x2c9353);}else{if((_0x3f59ac===null||_0x3f59ac===void 0x0?void 0x0:_0x3f59ac[_0x461b0e(0x1fa)][_0x20186a])&&((_0x1bb241=_0x13ac4b[_0x461b0e(0x1ec)][_0x20186a])===null||_0x1bb241===void 0x0?void 0x0:_0x1bb241[_0x461b0e(0x212)])&&typeof _0x13ac4b['args'][_0x20186a][_0x461b0e(0x202)]==_0x461b0e(0x210)&&((_0xebb948=_0xa5c689===null||_0xa5c689===void 0x0?void 0x0:_0xa5c689[_0x461b0e(0x212)])===null||_0xebb948===void 0x0?void 0x0:_0xebb948[_0x3f59ac[_0x461b0e(0x1fa)][_0x20186a]]))_0x13ac4b['args'][_0x20186a]=_0x3abb40((_0x320931=_0xa5c689===null||_0xa5c689===void 0x0?void 0x0:_0xa5c689['params'])===null||_0x320931===void 0x0?void 0x0:_0x320931[_0x3f59ac[_0x461b0e(0x1fa)][_0x20186a]]);else(_0x3f59ac===null||_0x3f59ac===void 0x0?void 0x0:_0x3f59ac['methodArgs'][_0x20186a])&&((_0x55fe59=(_0x1f98d9=_0x13ac4b['args'][_0x20186a])===null||_0x1f98d9===void 0x0?void 0x0:_0x1f98d9[_0x461b0e(0x212)])===null||_0x55fe59===void 0x0?void 0x0:_0x55fe59[_0x3f59ac[_0x461b0e(0x1fa)][_0x20186a]])&&(_0x13ac4b[_0x461b0e(0x1ec)][_0x20186a]=(_0x54e45e=(_0x178045=_0x13ac4b['args'][_0x20186a])===null||_0x178045===void 0x0?void 0x0:_0x178045['params'])===null||_0x54e45e===void 0x0?void 0x0:_0x54e45e[_0x3f59ac[_0x461b0e(0x1fa)][_0x20186a]]);}}},'afterThrow':(_0x593f42,_0x2288c7)=>{throw _0x2288c7;}};});}};exports['CustomConfiguration']=CustomConfiguration,__decorate([(0x0,core_2['Inject'])(),__metadata(a1_0x42e974(0x1e3),core_1[a1_0x42e974(0x20f)])],CustomConfiguration[a1_0x42e974(0x207)],a1_0x42e974(0x200),void 0x0),__decorate([(0x0,core_2[a1_0x42e974(0x1ed)])(),__metadata('design:type',ValidatorService_1[a1_0x42e974(0x205)])],CustomConfiguration[a1_0x42e974(0x207)],a1_0x42e974(0x205),void 0x0),exports[a1_0x42e974(0x206)]=CustomConfiguration=__decorate([(0x0,core_2[a1_0x42e974(0x217)])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':a1_0x42e974(0x204),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
|
package/dist/decorator/Rule.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0xda9208=a2_0x20c4;(function(_0x2a3972,_0x5b4aae){const _0x3e7238=a2_0x20c4,_0x4605fc=_0x2a3972();while(!![]){try{const _0x5c1362=parseInt(_0x3e7238(0x110))/0x1+parseInt(_0x3e7238(0x112))/0x2*(parseInt(_0x3e7238(0x118))/0x3)+-parseInt(_0x3e7238(0xf2))/0x4*(parseInt(_0x3e7238(0x117))/0x5)+-parseInt(_0x3e7238(0xf9))/0x6*(parseInt(_0x3e7238(0xfa))/0x7)+-parseInt(_0x3e7238(0xff))/0x8*(-parseInt(_0x3e7238(0xf6))/0x9)+parseInt(_0x3e7238(0x10d))/0xa*(-parseInt(_0x3e7238(0xf5))/0xb)+-parseInt(_0x3e7238(0xfc))/0xc*(-parseInt(_0x3e7238(0x108))/0xd);if(_0x5c1362===_0x5b4aae)break;else _0x4605fc['push'](_0x4605fc['shift']());}catch(_0x1e79d0){_0x4605fc['push'](_0x4605fc['shift']());}}}(a2_0xe8e8,0x9ac97));const a2_0x1a8b68=(function(){let _0x57af46=!![];return function(_0x55d92c,_0x5f5538){const _0x1aefb0=_0x57af46?function(){if(_0x5f5538){const _0xa6a87a=_0x5f5538['apply'](_0x55d92c,arguments);return _0x5f5538=null,_0xa6a87a;}}:function(){};return _0x57af46=![],_0x1aefb0;};}()),a2_0x805d10=a2_0x1a8b68(this,function(){const _0x1612b9=a2_0x20c4;return a2_0x805d10[_0x1612b9(0xfe)]()[_0x1612b9(0xf8)]('(((.+)+)+)+$')[_0x1612b9(0xfe)]()['constructor'](a2_0x805d10)['search'](_0x1612b9(0x114));});a2_0x805d10();function a2_0xe8e8(){const _0x68f6c5=['defineProperty','isSchema','@midwayjs/core','314639LcHocb','keys','getPropertyType','@joi/date','meta','10lsFWID','function','map','724569XumYFJ','RuleType','4aZezUe','default','(((.+)+)+)+$','getClassMetadata','label','395755uvRbZZ','1188207KpJzgF','44ryApKi','array','__esModule','3849791YapdSC','204372mhgGcr','../interface','search','18rgzegO','1823871MhurNS','Rule','420ynEniF','RULES_KEY','toString','96wgsScS','object','Array','attachClassMetadata','description','name'];a2_0xe8e8=function(){return _0x68f6c5;};return a2_0xe8e8();}'use strict';Object[a2_0xda9208(0x105)](exports,a2_0xda9208(0xf4),{'value':!![]}),exports['RuleType']=void 0x0,exports[a2_0xda9208(0xfb)]=Rule;const joi=require('joi'),date_1=require(a2_0xda9208(0x10b)),core_1=require(a2_0xda9208(0x107)),interface_1=require(a2_0xda9208(0xf7));function a2_0x20c4(_0x2d5a05,_0x555c48){const _0x3f6b6a=a2_0xe8e8();return a2_0x20c4=function(_0x805d10,_0x1a8b68){_0x805d10=_0x805d10-0xf2;let _0xe8e80=_0x3f6b6a[_0x805d10];return _0xe8e80;},a2_0x20c4(_0x2d5a05,_0x555c48);}exports[a2_0xda9208(0x111)]=joi['extend'](date_1[a2_0xda9208(0x113)]);function Rule(_0x33f197,_0x443f0f,_0x1f4249=''){return(_0xc8be63,_0x430947)=>{const _0x58955a=a2_0x20c4;var _0x11b21e;if(_0x430947)!joi[_0x58955a(0x106)](_0x443f0f)&&(_0x443f0f===null||_0x443f0f===void 0x0?void 0x0:_0x443f0f[_0x58955a(0x104)])&&(_0x443f0f=joi[_0x58955a(0x100)]((0x0,core_1[_0x58955a(0x115)])(interface_1[_0x58955a(0xfd)],_0x443f0f))[_0x58955a(0x10c)]({'id':_0x443f0f['name']}),(0x0,core_1[_0x58955a(0x10a)])(_0xc8be63,_0x430947)[_0x58955a(0x104)]===_0x58955a(0x101)&&(_0x443f0f=joi[_0x58955a(0xf3)]()['items'](_0x443f0f))),joi['isSchema'](_0x443f0f)&&(_0x33f197&&typeof(_0x443f0f===null||_0x443f0f===void 0x0?void 0x0:_0x443f0f['label'])==_0x58955a(0x10e)&&(_0x443f0f=_0x443f0f[_0x58955a(0x116)](_0x33f197)),_0x1f4249&&typeof(_0x443f0f===null||_0x443f0f===void 0x0?void 0x0:_0x443f0f[_0x58955a(0x103)])==_0x58955a(0x10e)&&(_0x443f0f=_0x443f0f[_0x58955a(0x103)](_0x1f4249)),(0x0,core_1[_0x58955a(0x102)])(interface_1[_0x58955a(0xfd)],_0x443f0f,_0xc8be63,_0x430947));else{const _0x59c8a5=(0x0,core_1[_0x58955a(0x115)])(interface_1[_0x58955a(0xfd)],_0x443f0f);if(_0x59c8a5){let _0x4d6367=(_0x11b21e=(0x0,core_1['getClassMetadata'])(interface_1[_0x58955a(0xfd)],_0xc8be63))!==null&&_0x11b21e!==void 0x0?_0x11b21e:{};Object[_0x58955a(0x109)](_0x59c8a5)[_0x58955a(0x10f)](_0x106a81=>{!_0x4d6367[_0x106a81]&&(_0x4d6367[_0x106a81]=_0x59c8a5[_0x106a81]);}),(0x0,core_1['saveClassMetadata'])(interface_1[_0x58955a(0xfd)],_0x4d6367,_0xc8be63);}}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x44dc65=a3_0x36ba;(function(_0x5e8a5f,_0x4fdb83){const _0xe94d1b=a3_0x36ba,_0x57ffe4=_0x5e8a5f();while(!![]){try{const _0x496672=parseInt(_0xe94d1b(0xf6))/0x1*(parseInt(_0xe94d1b(0xf2))/0x2)+-parseInt(_0xe94d1b(0x100))/0x3+-parseInt(_0xe94d1b(0xfd))/0x4+parseInt(_0xe94d1b(0xec))/0x5+parseInt(_0xe94d1b(0xe9))/0x6*(-parseInt(_0xe94d1b(0xef))/0x7)+parseInt(_0xe94d1b(0xed))/0x8+-parseInt(_0xe94d1b(0xff))/0x9*(-parseInt(_0xe94d1b(0xea))/0xa);if(_0x496672===_0x4fdb83)break;else _0x57ffe4['push'](_0x57ffe4['shift']());}catch(_0x4815c0){_0x57ffe4['push'](_0x57ffe4['shift']());}}}(a3_0xed99,0x929b3));const a3_0x292d42=(function(){let _0x19368d=!![];return function(_0x44da7e,_0x4e0ab7){const _0xa59102=_0x19368d?function(){const _0x4de495=a3_0x36ba;if(_0x4e0ab7){const _0x544f51=_0x4e0ab7[_0x4de495(0xf3)](_0x44da7e,arguments);return _0x4e0ab7=null,_0x544f51;}}:function(){};return _0x19368d=![],_0xa59102;};}()),a3_0x661774=a3_0x292d42(this,function(){const _0x138031=a3_0x36ba;return a3_0x661774[_0x138031(0x102)]()['search']('(((.+)+)+)+$')['toString']()[_0x138031(0xf8)](a3_0x661774)[_0x138031(0x101)](_0x138031(0xfb));});a3_0x661774();'use strict';Object['defineProperty'](exports,a3_0x44dc65(0xfa),{'value':!![]}),exports['Validator']=Validator,exports[a3_0x44dc65(0xf1)]=getFuncArgs;const core_1=require(a3_0x44dc65(0xeb)),interface_1=require('../interface');function Validator(_0x3fa335={}){return(_0x3ae37c,_0x5340b7,_0x361350)=>{const _0x56c093=a3_0x36ba,_0x309e58=getFuncArgs(_0x3ae37c[_0x5340b7]);(0x0,core_1[_0x56c093(0xee)])(interface_1[_0x56c093(0xf7)],{'method':_0x5340b7,'methodArgs':_0x309e58},_0x3ae37c),(0x0,core_1[_0x56c093(0xf9)])(interface_1[_0x56c093(0xf7)],_0x3fa335)(_0x3ae37c,_0x5340b7,_0x361350);};}function a3_0x36ba(_0x1cec70,_0x513f6b){const _0xdf9a29=a3_0xed99();return a3_0x36ba=function(_0x661774,_0x292d42){_0x661774=_0x661774-0xe9;let _0xed990f=_0xdf9a29[_0x661774];return _0xed990f;},a3_0x36ba(_0x1cec70,_0x513f6b);}function getFuncArgs(_0x402db9){const _0x49dc9d=a3_0x44dc65;if(typeof _0x402db9==_0x49dc9d(0xf0)){const _0x19aca7=/=>.*$/mg,_0x3d426d=/=[^,)]+/mg,_0x296807=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0xe3156f=(_0x402db9[_0x49dc9d(0xf5)]?_0x402db9[_0x49dc9d(0xf5)][_0x49dc9d(0xf8)][_0x49dc9d(0x102)]():_0x402db9[_0x49dc9d(0x102)]())['replace'](_0x296807,'')[_0x49dc9d(0xf4)](_0x19aca7,'')[_0x49dc9d(0xf4)](_0x3d426d,''),_0x360c3b=_0xe3156f[_0x49dc9d(0xfe)](_0xe3156f[_0x49dc9d(0xfc)]('(')+0x1,_0xe3156f['indexOf'](')'))[_0x49dc9d(0x103)](/([^\s,]+)/g)||[];return _0x360c3b;}}function a3_0xed99(){const _0x310eea=['(((.+)+)+)+$','indexOf','3038596aheyKD','slice','3135087baNacx','1138299DHSiXT','search','toString','match','42192eWzcOw','10aBHpNL','@midwayjs/core','3967625VuSeJX','2620024gASeiq','attachClassMetadata','588yWZsgD','function','getFuncArgs','1721796kupyUO','apply','replace','prototype','1FweyLW','VALIDATOR_KEY','constructor','createCustomMethodDecorator','__esModule'];a3_0xed99=function(){return _0x310eea;};return a3_0xed99();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a4_0x4eb2(_0x2d834e,_0x4d4011){var _0x2707ea=a4_0x3933();return a4_0x4eb2=function(_0x1e057f,_0x440380){_0x1e057f=_0x1e057f-0x1b6;var _0x39332b=_0x2707ea[_0x1e057f];return _0x39332b;},a4_0x4eb2(_0x2d834e,_0x4d4011);}var a4_0x398ca1=a4_0x4eb2;(function(_0x12c6ee,_0x803e5){var _0x31f7ce=a4_0x4eb2,_0x66224e=_0x12c6ee();while(!![]){try{var _0x59b738=-parseInt(_0x31f7ce(0x1c7))/0x1*(parseInt(_0x31f7ce(0x1c4))/0x2)+-parseInt(_0x31f7ce(0x1c3))/0x3+-parseInt(_0x31f7ce(0x1cb))/0x4+parseInt(_0x31f7ce(0x1c8))/0x5*(-parseInt(_0x31f7ce(0x1bd))/0x6)+parseInt(_0x31f7ce(0x1c1))/0x7+parseInt(_0x31f7ce(0x1cd))/0x8*(parseInt(_0x31f7ce(0x1be))/0x9)+parseInt(_0x31f7ce(0x1b7))/0xa;if(_0x59b738===_0x803e5)break;else _0x66224e['push'](_0x66224e['shift']());}catch(_0x3fde9a){_0x66224e['push'](_0x66224e['shift']());}}}(a4_0x3933,0x79a6a));var a4_0x440380=(function(){var _0x3e62da=!![];return function(_0xa3d021,_0x477372){var _0x5de136=_0x3e62da?function(){if(_0x477372){var _0x4d44e2=_0x477372['apply'](_0xa3d021,arguments);return _0x477372=null,_0x4d44e2;}}:function(){};return _0x3e62da=![],_0x5de136;};}()),a4_0x1e057f=a4_0x440380(this,function(){var _0x209f93=a4_0x4eb2;return a4_0x1e057f[_0x209f93(0x1cf)]()['search'](_0x209f93(0x1cc))['toString']()[_0x209f93(0x1bb)](a4_0x1e057f)[_0x209f93(0x1b9)](_0x209f93(0x1cc));});a4_0x1e057f();'use strict';var __decorate=this&&this['__decorate']||function(_0x58da3a,_0x577d7b,_0x1dcc3d,_0x3fba23){var _0x5bdfcb=a4_0x4eb2,_0x349222=arguments[_0x5bdfcb(0x1b6)],_0x17d210=_0x349222<0x3?_0x577d7b:_0x3fba23===null?_0x3fba23=Object[_0x5bdfcb(0x1c6)](_0x577d7b,_0x1dcc3d):_0x3fba23,_0x3376b3;if(typeof Reflect==='object'&&typeof Reflect[_0x5bdfcb(0x1bc)]===_0x5bdfcb(0x1c9))_0x17d210=Reflect[_0x5bdfcb(0x1bc)](_0x58da3a,_0x577d7b,_0x1dcc3d,_0x3fba23);else{for(var _0x3440a9=_0x58da3a[_0x5bdfcb(0x1b6)]-0x1;_0x3440a9>=0x0;_0x3440a9--)if(_0x3376b3=_0x58da3a[_0x3440a9])_0x17d210=(_0x349222<0x3?_0x3376b3(_0x17d210):_0x349222>0x3?_0x3376b3(_0x577d7b,_0x1dcc3d,_0x17d210):_0x3376b3(_0x577d7b,_0x1dcc3d))||_0x17d210;}return _0x349222>0x3&&_0x17d210&&Object[_0x5bdfcb(0x1c2)](_0x577d7b,_0x1dcc3d,_0x17d210),_0x17d210;},__metadata=this&&this['__metadata']||function(_0x518748,_0x2eb093){var _0x416fcd=a4_0x4eb2;if(typeof Reflect===_0x416fcd(0x1bf)&&typeof Reflect[_0x416fcd(0x1d0)]===_0x416fcd(0x1c9))return Reflect[_0x416fcd(0x1d0)](_0x518748,_0x2eb093);};function a4_0x3933(){var _0x264d24=['NOFIND_SCHEMA','126581EKeePx','defineProperty','2958633QRWMBE','4fMKKGX','参数验证失败','getOwnPropertyDescriptor','125156ppujqY','250lYMqfZ','function','design:type','1138640njDXRJ','(((.+)+)+)+$','6282056GaWyMr','ValidatorError','toString','metadata','AnnErrorMsg','length','19156750evffWW','@anncic-api/core','search','PARAMS','constructor','decorate','83946yUsMGl','9NJzdFz','object'];a4_0x3933=function(){return _0x264d24;};return a4_0x3933();}Object[a4_0x398ca1(0x1c2)](exports,'__esModule',{'value':!![]}),exports[a4_0x398ca1(0x1ce)]=void 0x0;const core_1=require(a4_0x398ca1(0x1b8));class ValidatorError extends AnnError{}exports[a4_0x398ca1(0x1ce)]=ValidatorError,ValidatorError[a4_0x398ca1(0x1ba)]=0x18c1e,ValidatorError[a4_0x398ca1(0x1c0)]=0x18c1c,__decorate([(0x0,core_1[a4_0x398ca1(0x1d1)])(a4_0x398ca1(0x1c5)),__metadata('design:type',Object)],ValidatorError,'PARAMS',void 0x0),__decorate([(0x0,core_1['AnnErrorMsg'])(a4_0x398ca1(0x1c5)),__metadata(a4_0x398ca1(0x1ca),Object)],ValidatorError,a4_0x398ca1(0x1c0),void 0x0);
|
package/dist/helper/dtoHelper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0xa09384=a5_0x1eaf;(function(_0x267c05,_0x371efa){const _0x25831e=a5_0x1eaf,_0x279808=_0x267c05();while(!![]){try{const _0x43220e=-parseInt(_0x25831e(0x16d))/0x1+-parseInt(_0x25831e(0x167))/0x2*(-parseInt(_0x25831e(0x169))/0x3)+parseInt(_0x25831e(0x16b))/0x4+-parseInt(_0x25831e(0x162))/0x5*(-parseInt(_0x25831e(0x15b))/0x6)+parseInt(_0x25831e(0x15c))/0x7*(-parseInt(_0x25831e(0x16f))/0x8)+-parseInt(_0x25831e(0x15a))/0x9*(-parseInt(_0x25831e(0x168))/0xa)+-parseInt(_0x25831e(0x15f))/0xb;if(_0x43220e===_0x371efa)break;else _0x279808['push'](_0x279808['shift']());}catch(_0x38e3ad){_0x279808['push'](_0x279808['shift']());}}}(a5_0x1fd8,0x7c4cc));const a5_0x4dd450=(function(){let _0x36c847=!![];return function(_0x3e0d1e,_0x48940f){const _0x26e0df=_0x36c847?function(){const _0x1eab9a=a5_0x1eaf;if(_0x48940f){const _0x531976=_0x48940f[_0x1eab9a(0x15e)](_0x3e0d1e,arguments);return _0x48940f=null,_0x531976;}}:function(){};return _0x36c847=![],_0x26e0df;};}()),a5_0x24beed=a5_0x4dd450(this,function(){const _0x42f298=a5_0x1eaf;return a5_0x24beed[_0x42f298(0x164)]()[_0x42f298(0x15d)](_0x42f298(0x16e))['toString']()['constructor'](a5_0x24beed)[_0x42f298(0x15d)]('(((.+)+)+)+$');});a5_0x24beed();'use strict';Object[a5_0xa09384(0x16c)](exports,'__esModule',{'value':!![]}),exports[a5_0xa09384(0x161)]=PickDto,exports['OmitDto']=OmitDto;function a5_0x1eaf(_0x1e1726,_0x1a63c4){const _0x28524a=a5_0x1fd8();return a5_0x1eaf=function(_0x24beed,_0x4dd450){_0x24beed=_0x24beed-0x15a;let _0x1fd86c=_0x28524a[_0x24beed];return _0x1fd86c;},a5_0x1eaf(_0x1e1726,_0x1a63c4);}function a5_0x1fd8(){const _0x36208d=['16558828EhecwV','prototype','PickDto','1195CmPHLP','@midwayjs/core','toString','assign','saveClassMetadata','589906jNIGOT','103840xKhNEy','9CzDoIr','RULES_KEY','2585064GROoZQ','defineProperty','283577FLCWku','(((.+)+)+)+$','19048GGgYVO','../interface','549LsNfhN','12258pgbQlC','1043JhNxIU','search','apply'];a5_0x1fd8=function(){return _0x36208d;};return a5_0x1fd8();}const core_1=require(a5_0xa09384(0x163)),interface_1=require(a5_0xa09384(0x170));function PickDto(_0x14237e,_0xd2fa5c){const _0x55b88a=a5_0xa09384,_0x468865=function(){};_0x468865[_0x55b88a(0x160)]=_0x14237e[_0x55b88a(0x160)];const _0x41b049=(0x0,core_1['getClassExtendedMetadata'])(interface_1[_0x55b88a(0x16a)],_0x14237e),_0x1f49a5={};for(const _0x1e4184 of _0xd2fa5c){_0x41b049[_0x1e4184]&&(_0x1f49a5[_0x1e4184]=_0x41b049[_0x1e4184]);}return(0x0,core_1[_0x55b88a(0x166)])(interface_1[_0x55b88a(0x16a)],_0x1f49a5,_0x468865),_0x468865;}function OmitDto(_0x402e8a,_0x1ff11f){const _0xf689f=a5_0xa09384,_0x12d1d7=function(){};_0x12d1d7[_0xf689f(0x160)]=_0x402e8a[_0xf689f(0x160)];const _0xa63db0=(0x0,core_1['getClassExtendedMetadata'])(interface_1[_0xf689f(0x16a)],_0x402e8a),_0x4848cd=Object[_0xf689f(0x165)]({},_0xa63db0);for(const _0x5f088a of _0x1ff11f){delete _0x4848cd[_0x5f088a];}return(0x0,core_1['saveClassMetadata'])(interface_1[_0xf689f(0x16a)],_0x4848cd,_0x12d1d7),_0x12d1d7;}
|
package/dist/helper/getSchema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a6_0x3ca9(){const _0x5507a9=['defineProperty','2083623MNygLA','object','3353064jcyXnl','281176UaOdSo','../interface','(((.+)+)+)+$','RULES_KEY','60ekbzja','constructor','156878cKQNxO','13135YYuXyD','getClassExtendedMetadata','@midwayjs/core','7842636NsINnD','1413090kVbmUG','112tXqvAV','toString','search','joi','apply','getSchema'];a6_0x3ca9=function(){return _0x5507a9;};return a6_0x3ca9();}const a6_0x377991=a6_0x50e8;(function(_0xbb227b,_0x2c0170){const _0x267f7f=a6_0x50e8,_0xa7e3fe=_0xbb227b();while(!![]){try{const _0xaf2994=-parseInt(_0x267f7f(0x1cb))/0x1+-parseInt(_0x267f7f(0x1d0))/0x2+-parseInt(_0x267f7f(0x1c2))/0x3+-parseInt(_0x267f7f(0x1c9))/0x4*(-parseInt(_0x267f7f(0x1cc))/0x5)+parseInt(_0x267f7f(0x1c4))/0x6+parseInt(_0x267f7f(0x1d1))/0x7*(parseInt(_0x267f7f(0x1c5))/0x8)+parseInt(_0x267f7f(0x1cf))/0x9;if(_0xaf2994===_0x2c0170)break;else _0xa7e3fe['push'](_0xa7e3fe['shift']());}catch(_0x2f963d){_0xa7e3fe['push'](_0xa7e3fe['shift']());}}}(a6_0x3ca9,0x73bb9));const a6_0x223c4e=(function(){let _0xd55d9a=!![];return function(_0x229816,_0x5d0541){const _0xc6b989=_0xd55d9a?function(){const _0x5d63d3=a6_0x50e8;if(_0x5d0541){const _0x2b3d34=_0x5d0541[_0x5d63d3(0x1bf)](_0x229816,arguments);return _0x5d0541=null,_0x2b3d34;}}:function(){};return _0xd55d9a=![],_0xc6b989;};}()),a6_0x120226=a6_0x223c4e(this,function(){const _0x386d57=a6_0x50e8;return a6_0x120226[_0x386d57(0x1d2)]()[_0x386d57(0x1d3)](_0x386d57(0x1c7))[_0x386d57(0x1d2)]()[_0x386d57(0x1ca)](a6_0x120226)[_0x386d57(0x1d3)]('(((.+)+)+)+$');});a6_0x120226();'use strict';function a6_0x50e8(_0x587306,_0x371f82){const _0xfaa31a=a6_0x3ca9();return a6_0x50e8=function(_0x120226,_0x223c4e){_0x120226=_0x120226-0x1bf;let _0x3ca975=_0xfaa31a[_0x120226];return _0x3ca975;},a6_0x50e8(_0x587306,_0x371f82);}Object[a6_0x377991(0x1c1)](exports,'__esModule',{'value':!![]}),exports[a6_0x377991(0x1c0)]=getSchema;const Joi=require(a6_0x377991(0x1d4)),core_1=require(a6_0x377991(0x1ce)),interface_1=require(a6_0x377991(0x1c6));function getSchema(_0x3e4446){const _0x3f81f3=a6_0x377991,_0x542e2e=(0x0,core_1[_0x3f81f3(0x1cd)])(interface_1[_0x3f81f3(0x1c8)],_0x3e4446);if(_0x542e2e)return Joi[_0x3f81f3(0x1c3)](_0x542e2e);}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a7_0x147b88=a7_0x3ea5;(function(_0x58a6d6,_0x40c617){var _0x3f418f=a7_0x3ea5,_0x318b6d=_0x58a6d6();while(!![]){try{var _0x35cc54=-parseInt(_0x3f418f(0x9a))/0x1*(parseInt(_0x3f418f(0x99))/0x2)+-parseInt(_0x3f418f(0x8b))/0x3+-parseInt(_0x3f418f(0x8a))/0x4*(-parseInt(_0x3f418f(0x82))/0x5)+-parseInt(_0x3f418f(0x9b))/0x6*(parseInt(_0x3f418f(0x81))/0x7)+-parseInt(_0x3f418f(0x98))/0x8*(parseInt(_0x3f418f(0x9f))/0x9)+-parseInt(_0x3f418f(0x97))/0xa+parseInt(_0x3f418f(0x8f))/0xb;if(_0x35cc54===_0x40c617)break;else _0x318b6d['push'](_0x318b6d['shift']());}catch(_0x5916cd){_0x318b6d['push'](_0x318b6d['shift']());}}}(a7_0x1361,0x53cde));var a7_0x41b1f4=(function(){var _0x715404=!![];return function(_0x34f129,_0x104e35){var _0x1dafc2=_0x715404?function(){var _0x4fe8ac=a7_0x3ea5;if(_0x104e35){var _0x4506e8=_0x104e35[_0x4fe8ac(0x9e)](_0x34f129,arguments);return _0x104e35=null,_0x4506e8;}}:function(){};return _0x715404=![],_0x1dafc2;};}()),a7_0x160663=a7_0x41b1f4(this,function(){var _0x12c48f=a7_0x3ea5;return a7_0x160663['toString']()[_0x12c48f(0x9c)](_0x12c48f(0x92))[_0x12c48f(0x9d)]()['constructor'](a7_0x160663)[_0x12c48f(0x9c)](_0x12c48f(0x92));});function a7_0x3ea5(_0x48ca5d,_0x5dc233){var _0x4a5932=a7_0x1361();return a7_0x3ea5=function(_0x160663,_0x41b1f4){_0x160663=_0x160663-0x81;var _0x1361f2=_0x4a5932[_0x160663];return _0x1361f2;},a7_0x3ea5(_0x48ca5d,_0x5dc233);}a7_0x160663();'use strict';var __createBinding=this&&this[a7_0x147b88(0xa2)]||(Object[a7_0x147b88(0x88)]?function(_0x25c67e,_0x5a5219,_0x90d280,_0x5eab93){var _0x473912=a7_0x147b88;if(_0x5eab93===undefined)_0x5eab93=_0x90d280;var _0x1e859b=Object[_0x473912(0x91)](_0x5a5219,_0x90d280);(!_0x1e859b||(_0x473912(0x96)in _0x1e859b?!_0x5a5219[_0x473912(0x85)]:_0x1e859b[_0x473912(0x8c)]||_0x1e859b['configurable']))&&(_0x1e859b={'enumerable':!![],'get':function(){return _0x5a5219[_0x90d280];}}),Object[_0x473912(0x95)](_0x25c67e,_0x5eab93,_0x1e859b);}:function(_0xba4ac,_0xcd378a,_0x3ae66a,_0x2c11a1){if(_0x2c11a1===undefined)_0x2c11a1=_0x3ae66a;_0xba4ac[_0x2c11a1]=_0xcd378a[_0x3ae66a];}),__exportStar=this&&this[a7_0x147b88(0xa4)]||function(_0x31c67e,_0x51c5a4){var _0x2e77ed=a7_0x147b88;for(var _0x2a0c68 in _0x31c67e)if(_0x2a0c68!=='default'&&!Object[_0x2e77ed(0x83)]['hasOwnProperty']['call'](_0x51c5a4,_0x2a0c68))__createBinding(_0x51c5a4,_0x31c67e,_0x2a0c68);};function a7_0x1361(){var _0x2b8aa4=['Configuration','__createBinding','ValidatorError','__exportStar','21XoSqpV','550nIuAcD','prototype','./interface','__esModule','Validator','./helper/getSchema','create','ValidatorService','17916nPZUib','529956RgFjpA','writable','./decorator/Validator','./exception/ValidatorError','15078976ZkbAFf','./configuration','getOwnPropertyDescriptor','(((.+)+)+)+$','./decorator/Rule','Rule','defineProperty','get','1488910zitdgj','25000BCKGlA','2606bYEIsr','265ZnBjjp','973812WCJWBo','search','toString','apply','1044ZJYoDY','RuleType'];a7_0x1361=function(){return _0x2b8aa4;};return a7_0x1361();}Object['defineProperty'](exports,a7_0x147b88(0x85),{'value':!![]}),exports[a7_0x147b88(0xa1)]=exports[a7_0x147b88(0x89)]=exports['ValidatorError']=exports[a7_0x147b88(0xa0)]=exports[a7_0x147b88(0x94)]=exports[a7_0x147b88(0x86)]=void 0x0,__exportStar(require(a7_0x147b88(0x84)),exports),__exportStar(require('./helper/dtoHelper'),exports),__exportStar(require(a7_0x147b88(0x87)),exports);var Validator_1=require(a7_0x147b88(0x8d));Object[a7_0x147b88(0x95)](exports,a7_0x147b88(0x86),{'enumerable':!![],'get':function(){return Validator_1['Validator'];}});var Rule_1=require(a7_0x147b88(0x93));Object['defineProperty'](exports,a7_0x147b88(0x94),{'enumerable':!![],'get':function(){var _0x7978fa=a7_0x147b88;return Rule_1[_0x7978fa(0x94)];}}),Object[a7_0x147b88(0x95)](exports,'RuleType',{'enumerable':!![],'get':function(){var _0x16be7b=a7_0x147b88;return Rule_1[_0x16be7b(0xa0)];}});var ValidatorError_1=require(a7_0x147b88(0x8e));Object[a7_0x147b88(0x95)](exports,a7_0x147b88(0xa3),{'enumerable':!![],'get':function(){var _0x1d3695=a7_0x147b88;return ValidatorError_1[_0x1d3695(0xa3)];}});var ValidatorService_1=require('./service/ValidatorService');Object[a7_0x147b88(0x95)](exports,a7_0x147b88(0x89),{'enumerable':!![],'get':function(){return ValidatorService_1['ValidatorService'];}});var configuration_1=require(a7_0x147b88(0x90));Object[a7_0x147b88(0x95)](exports,a7_0x147b88(0xa1),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a8_0x3e8c81=a8_0x4514;(function(_0x246513,_0x51034d){var _0x88593c=a8_0x4514,_0x14e5a1=_0x246513();while(!![]){try{var _0x21992a=parseInt(_0x88593c(0x1d4))/0x1*(parseInt(_0x88593c(0x1d2))/0x2)+parseInt(_0x88593c(0x1cd))/0x3+-parseInt(_0x88593c(0x1c5))/0x4*(parseInt(_0x88593c(0x1c4))/0x5)+parseInt(_0x88593c(0x1c3))/0x6*(parseInt(_0x88593c(0x1cc))/0x7)+parseInt(_0x88593c(0x1cf))/0x8+parseInt(_0x88593c(0x1d3))/0x9*(-parseInt(_0x88593c(0x1d5))/0xa)+-parseInt(_0x88593c(0x1c1))/0xb;if(_0x21992a===_0x51034d)break;else _0x14e5a1['push'](_0x14e5a1['shift']());}catch(_0x31c3e9){_0x14e5a1['push'](_0x14e5a1['shift']());}}}(a8_0x2de9,0x921e9));function a8_0x4514(_0x4d0033,_0x5e4394){var _0x45b456=a8_0x2de9();return a8_0x4514=function(_0x5d7354,_0x3c9d7b){_0x5d7354=_0x5d7354-0x1c1;var _0x2de9ec=_0x45b456[_0x5d7354];return _0x2de9ec;},a8_0x4514(_0x4d0033,_0x5e4394);}var a8_0x3c9d7b=(function(){var _0x20436f=!![];return function(_0xf869c3,_0x5592cb){var _0x5d9b5f=_0x20436f?function(){var _0x1748ff=a8_0x4514;if(_0x5592cb){var _0x2687d7=_0x5592cb[_0x1748ff(0x1c2)](_0xf869c3,arguments);return _0x5592cb=null,_0x2687d7;}}:function(){};return _0x20436f=![],_0x5d9b5f;};}()),a8_0x5d7354=a8_0x3c9d7b(this,function(){var _0x5d508b=a8_0x4514;return a8_0x5d7354[_0x5d508b(0x1ca)]()[_0x5d508b(0x1c8)]('(((.+)+)+)+$')[_0x5d508b(0x1ca)]()[_0x5d508b(0x1d0)](a8_0x5d7354)[_0x5d508b(0x1c8)](_0x5d508b(0x1d1));});function a8_0x2de9(){var _0x161530=['apply','40548cpHCaL','188945WgfXfm','80Fefypn','anncic-api:validator:validator','__esModule','search','RULES_KEY','toString','defineProperty','476spFdmg','795015cBhVpj','VALIDATOR_KEY','8706352jFXHnu','constructor','(((.+)+)+)+$','6chhsRi','9aGVSRL','235009pfzeuk','5960950qoVhkb','6242390vhMNDg'];a8_0x2de9=function(){return _0x161530;};return a8_0x2de9();}a8_0x5d7354();'use strict';Object[a8_0x3e8c81(0x1cb)](exports,a8_0x3e8c81(0x1c7),{'value':!![]}),exports['VALIDATOR_KEY']=exports['RULES_KEY']=void 0x0,exports[a8_0x3e8c81(0x1c9)]='anncic-api:validator:rules',exports[a8_0x3e8c81(0x1ce)]=a8_0x3e8c81(0x1c6);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a9_0xa582b9=a9_0xfcf9;(function(_0x12fd33,_0x1a5612){const _0x286868=a9_0xfcf9,_0x82e4c4=_0x12fd33();while(!![]){try{const _0x4713ac=-parseInt(_0x286868(0x1b9))/0x1+parseInt(_0x286868(0x1ad))/0x2+parseInt(_0x286868(0x1a7))/0x3*(parseInt(_0x286868(0x17b))/0x4)+-parseInt(_0x286868(0x1a6))/0x5+parseInt(_0x286868(0x18b))/0x6*(parseInt(_0x286868(0x1aa))/0x7)+-parseInt(_0x286868(0x187))/0x8+-parseInt(_0x286868(0x1a5))/0x9*(-parseInt(_0x286868(0x176))/0xa);if(_0x4713ac===_0x1a5612)break;else _0x82e4c4['push'](_0x82e4c4['shift']());}catch(_0xfdf30c){_0x82e4c4['push'](_0x82e4c4['shift']());}}}(a9_0x19e4,0x22035));function a9_0x19e4(){const _0x21ec0d=['MidwayI18nServiceSingleton','validatorConfig','151012Bowtai','i18n','schema','messages','format','ValidatorError','i18nService','10QQinWP','__metadata','__esModule','assign','value','4GtMfqH','design:type','design:paramtypes','locale','@midwayjs/i18n','validationOptions','PARAMS','Inject','keys','_flags','getOwnPropertyDescriptor','i18nConfig','1401528RtHzMS','function','message','Provide','12GTUxwD','type','getAvailableLocale','参数验证失败','details','(((.+)+)+)+$','toString','localeTable','validator','metadata','search','forEach','getClassExtendedMetadata','isSchema','Init','ScopeEnum','Scope','formatLocale','prototype','design:returntype','key','decorate','apply','$_terms','errors','init','1648368sEHnDx','1295535SFyWNf','815697fVgBMy','RULES_KEY','NOFIND_SCHEMA','460593awRIzT','ValidatorService','Config','275956XXxyXH','joi','YYYY-MM-DD\x20HH:mm:ss','constructor','defaultLocale','object','getSchema','error','date','language'];a9_0x19e4=function(){return _0x21ec0d;};return a9_0x19e4();}const a9_0x4ecafa=(function(){let _0x28ac82=!![];return function(_0x4deed7,_0x2c4832){const _0x38e53b=_0x28ac82?function(){const _0x2009b2=a9_0xfcf9;if(_0x2c4832){const _0x38586b=_0x2c4832[_0x2009b2(0x1a1)](_0x4deed7,arguments);return _0x2c4832=null,_0x38586b;}}:function(){};return _0x28ac82=![],_0x38e53b;};}()),a9_0x5a2056=a9_0x4ecafa(this,function(){const _0x2c48d0=a9_0xfcf9;return a9_0x5a2056['toString']()[_0x2c48d0(0x195)](_0x2c48d0(0x190))[_0x2c48d0(0x191)]()[_0x2c48d0(0x1b0)](a9_0x5a2056)[_0x2c48d0(0x195)](_0x2c48d0(0x190));});a9_0x5a2056();'use strict';function a9_0xfcf9(_0x3ffd26,_0x1be88c){const _0x37c35a=a9_0x19e4();return a9_0xfcf9=function(_0x5a2056,_0x4ecafa){_0x5a2056=_0x5a2056-0x173;let _0x19e463=_0x37c35a[_0x5a2056];return _0x19e463;},a9_0xfcf9(_0x3ffd26,_0x1be88c);}var __decorate=this&&this['__decorate']||function(_0x2dc0b3,_0x2ff1a9,_0x4dfcb4,_0x9f6714){const _0x4d2af6=a9_0xfcf9;var _0x487425=arguments['length'],_0x2448bf=_0x487425<0x3?_0x2ff1a9:_0x9f6714===null?_0x9f6714=Object[_0x4d2af6(0x185)](_0x2ff1a9,_0x4dfcb4):_0x9f6714,_0x123a8a;if(typeof Reflect===_0x4d2af6(0x1b2)&&typeof Reflect['decorate']==='function')_0x2448bf=Reflect[_0x4d2af6(0x1a0)](_0x2dc0b3,_0x2ff1a9,_0x4dfcb4,_0x9f6714);else{for(var _0x140d0b=_0x2dc0b3['length']-0x1;_0x140d0b>=0x0;_0x140d0b--)if(_0x123a8a=_0x2dc0b3[_0x140d0b])_0x2448bf=(_0x487425<0x3?_0x123a8a(_0x2448bf):_0x487425>0x3?_0x123a8a(_0x2ff1a9,_0x4dfcb4,_0x2448bf):_0x123a8a(_0x2ff1a9,_0x4dfcb4))||_0x2448bf;}return _0x487425>0x3&&_0x2448bf&&Object['defineProperty'](_0x2ff1a9,_0x4dfcb4,_0x2448bf),_0x2448bf;},__metadata=this&&this[a9_0xa582b9(0x177)]||function(_0x432a19,_0x2054a8){const _0x513e8e=a9_0xa582b9;if(typeof Reflect===_0x513e8e(0x1b2)&&typeof Reflect[_0x513e8e(0x194)]===_0x513e8e(0x188))return Reflect[_0x513e8e(0x194)](_0x432a19,_0x2054a8);};Object['defineProperty'](exports,a9_0xa582b9(0x178),{'value':!![]}),exports['ValidatorService']=void 0x0;const Joi=require(a9_0xa582b9(0x1ae)),i18n_1=require(a9_0xa582b9(0x17f)),core_1=require('@midwayjs/core'),interface_1=require('../interface'),ValidatorError_1=require('../exception/ValidatorError');let ValidatorService=class ValidatorService{constructor(){this['messages']={};}async[a9_0xa582b9(0x1a4)](){const _0x12e679=a9_0xa582b9,_0x1d0aae=Object[_0x12e679(0x183)](this[_0x12e679(0x186)][_0x12e679(0x192)]);_0x1d0aae[_0x12e679(0x196)](_0x423635=>{const _0x4f8878=_0x12e679;this[_0x4f8878(0x1bc)][(0x0,i18n_1[_0x4f8878(0x19c)])(_0x423635)]=Object['fromEntries'](this[_0x4f8878(0x175)]['getLocaleMapping'](_0x423635,_0x4f8878(0x193)));});}['getSchema'](_0x2e9507){const _0xd6612e=a9_0xa582b9,_0x290a11=(0x0,core_1[_0xd6612e(0x197)])(interface_1[_0xd6612e(0x1a8)],_0x2e9507);return _0x290a11?Joi[_0xd6612e(0x1b2)](_0x290a11):undefined;}[a9_0xa582b9(0x193)](_0x3ea710,_0x1dd38e,_0x45f3ca={}){const _0x361171=a9_0xa582b9;var _0xe0daeb,_0x436845,_0x11ba6d,_0x5f13a7,_0x3b61b4,_0x7f2bf3;const _0x53a92a=Joi[_0x361171(0x198)](_0x3ea710)?_0x3ea710:this[_0x361171(0x1b3)](_0x3ea710);if(!_0x53a92a)throw new AnnError(ValidatorError_1[_0x361171(0x174)][_0x361171(0x1a9)]);_0x45f3ca[_0x361171(0x180)]=Object[_0x361171(0x179)]((_0xe0daeb=this['validatorConfig']['validationOptions'])!==null&&_0xe0daeb!==void 0x0?_0xe0daeb:{},{'messages':this['messages']},_0x45f3ca[_0x361171(0x180)]||{}),_0x45f3ca[_0x361171(0x180)][_0x361171(0x1a3)]=_0x45f3ca[_0x361171(0x180)][_0x361171(0x1a3)]||{},_0x45f3ca[_0x361171(0x180)]['errors'][_0x361171(0x1b6)]=(0x0,i18n_1[_0x361171(0x19c)])(this[_0x361171(0x175)][_0x361171(0x18d)](_0x45f3ca[_0x361171(0x180)][_0x361171(0x1a3)][_0x361171(0x1b6)]||_0x45f3ca[_0x361171(0x17e)]||this[_0x361171(0x186)][_0x361171(0x1b1)],_0x361171(0x193)));const _0x4ec5ef=_0x53a92a['validate'](_0x1dd38e,_0x45f3ca[_0x361171(0x180)]);if(_0x4ec5ef===null||_0x4ec5ef===void 0x0?void 0x0:_0x4ec5ef[_0x361171(0x1b4)]){if(_0x4ec5ef[_0x361171(0x1b4)]instanceof AnnError)throw _0x4ec5ef[_0x361171(0x1b4)];else{if(_0x4ec5ef[_0x361171(0x1b4)]instanceof Error)throw new AnnError(ValidatorError_1[_0x361171(0x174)][_0x361171(0x181)],{'message':((_0x436845=_0x4ec5ef[_0x361171(0x1b4)])===null||_0x436845===void 0x0?void 0x0:_0x436845[_0x361171(0x189)])||_0x361171(0x18e)});else throw new AnnError(ValidatorError_1[_0x361171(0x174)][_0x361171(0x181)],{'message':((_0x3b61b4=(_0x5f13a7=(_0x11ba6d=_0x4ec5ef[_0x361171(0x1b4)])===null||_0x11ba6d===void 0x0?void 0x0:_0x11ba6d[_0x361171(0x18f)])===null||_0x5f13a7===void 0x0?void 0x0:_0x5f13a7[0x0])===null||_0x3b61b4===void 0x0?void 0x0:_0x3b61b4[_0x361171(0x189)])||_0x361171(0x18e)});}}if(_0x4ec5ef===null||_0x4ec5ef===void 0x0?void 0x0:_0x4ec5ef[_0x361171(0x17a)]){const _0x27b5fb=(_0x7f2bf3=_0x53a92a===null||_0x53a92a===void 0x0?void 0x0:_0x53a92a[_0x361171(0x1a2)])===null||_0x7f2bf3===void 0x0?void 0x0:_0x7f2bf3['keys'],_0x37c060=function(_0x429254,_0x10681d){const _0x306a12=_0x361171;var _0x4cc6de,_0x3f2eb8,_0x390e16,_0x18e3d4,_0x278232,_0x2e8c6e,_0x106f72,_0x24cfb2,_0x535ac0,_0x4e202b,_0x47797c;for(let _0x2fca0a in _0x429254){if(_0x10681d[(_0x4cc6de=_0x429254[_0x2fca0a])===null||_0x4cc6de===void 0x0?void 0x0:_0x4cc6de['key']]&&((_0x390e16=(_0x3f2eb8=_0x429254[_0x2fca0a])===null||_0x3f2eb8===void 0x0?void 0x0:_0x3f2eb8[_0x306a12(0x1bb)])===null||_0x390e16===void 0x0?void 0x0:_0x390e16[_0x306a12(0x18c)])){if(((_0x278232=(_0x18e3d4=_0x429254[_0x2fca0a])===null||_0x18e3d4===void 0x0?void 0x0:_0x18e3d4['schema'])===null||_0x278232===void 0x0?void 0x0:_0x278232['type'])==_0x306a12(0x1b2))_0x10681d[_0x429254[_0x2fca0a][_0x306a12(0x19f)]]=_0x37c060((_0x106f72=(_0x2e8c6e=_0x429254[_0x2fca0a])===null||_0x2e8c6e===void 0x0?void 0x0:_0x2e8c6e[_0x306a12(0x1bb)][_0x306a12(0x1a2)])===null||_0x106f72===void 0x0?void 0x0:_0x106f72['keys'],_0x10681d[_0x429254[_0x2fca0a][_0x306a12(0x19f)]]);else{if(_0x429254[_0x2fca0a][_0x306a12(0x1bb)][_0x306a12(0x18c)]==_0x306a12(0x1b5)&&_0x4ec5ef['value'][(_0x24cfb2=_0x429254[_0x2fca0a])===null||_0x24cfb2===void 0x0?void 0x0:_0x24cfb2['key']]){const _0x5225e3=((_0x47797c=(_0x4e202b=(_0x535ac0=_0x429254[_0x2fca0a])===null||_0x535ac0===void 0x0?void 0x0:_0x535ac0[_0x306a12(0x1bb)])===null||_0x4e202b===void 0x0?void 0x0:_0x4e202b[_0x306a12(0x184)])===null||_0x47797c===void 0x0?void 0x0:_0x47797c['format'])||_0x306a12(0x1af);_0x10681d[_0x429254[_0x2fca0a][_0x306a12(0x19f)]]=dayjs(_0x4ec5ef[_0x306a12(0x17a)][_0x429254[_0x2fca0a][_0x306a12(0x19f)]])[_0x306a12(0x173)](_0x5225e3);}}}}return _0x10681d;};return _0x37c060(_0x27b5fb,_0x4ec5ef[_0x361171(0x17a)]);}throw new AnnError(ValidatorError_1[_0x361171(0x174)][_0x361171(0x181)]);}};exports[a9_0xa582b9(0x1ab)]=ValidatorService,__decorate([(0x0,core_1[a9_0xa582b9(0x1ac)])(a9_0xa582b9(0x1ba)),__metadata('design:type',Object)],ValidatorService[a9_0xa582b9(0x19d)],'i18nConfig',void 0x0),__decorate([(0x0,core_1[a9_0xa582b9(0x1ac)])(a9_0xa582b9(0x193)),__metadata(a9_0xa582b9(0x17c),Object)],ValidatorService[a9_0xa582b9(0x19d)],a9_0xa582b9(0x1b8),void 0x0),__decorate([(0x0,core_1[a9_0xa582b9(0x182)])(),__metadata(a9_0xa582b9(0x17c),i18n_1[a9_0xa582b9(0x1b7)])],ValidatorService[a9_0xa582b9(0x19d)],a9_0xa582b9(0x175),void 0x0),__decorate([(0x0,core_1[a9_0xa582b9(0x199)])(),__metadata(a9_0xa582b9(0x17c),Function),__metadata(a9_0xa582b9(0x17d),[]),__metadata(a9_0xa582b9(0x19e),Promise)],ValidatorService[a9_0xa582b9(0x19d)],'init',null),exports['ValidatorService']=ValidatorService=__decorate([(0x0,core_1[a9_0xa582b9(0x18a)])(a9_0xa582b9(0x193)),(0x0,core_1[a9_0xa582b9(0x19b)])(core_1[a9_0xa582b9(0x19a)]['Singleton'])],ValidatorService);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/validator",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.50",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/core": "^3.4.
|
|
20
|
+
"@anncic-api/core": "^3.4.50",
|
|
21
21
|
"@joi/date": "^2.1.0",
|
|
22
22
|
"joi": "^17.11.0"
|
|
23
23
|
},
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"javascript-obfuscator": "^4.0.2",
|
|
27
27
|
"typescript": "^5.5.4"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "fcb92499a5d751b9a821844fc30a59cb7fa00a9a"
|
|
30
30
|
}
|