@anncic-api/validator 3.4.57 → 3.4.58
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
|
-
|
|
1
|
+
const a0_0x50a126=a0_0x4f19;(function(_0x376e04,_0x1e0de9){const _0x43d9ca=a0_0x4f19,_0x4bee9c=_0x376e04();while(!![]){try{const _0x236dac=parseInt(_0x43d9ca(0x8c))/0x1*(-parseInt(_0x43d9ca(0x87))/0x2)+parseInt(_0x43d9ca(0x9c))/0x3*(parseInt(_0x43d9ca(0x90))/0x4)+parseInt(_0x43d9ca(0x88))/0x5*(parseInt(_0x43d9ca(0x91))/0x6)+-parseInt(_0x43d9ca(0x98))/0x7*(-parseInt(_0x43d9ca(0x8b))/0x8)+parseInt(_0x43d9ca(0x9a))/0x9+-parseInt(_0x43d9ca(0x93))/0xa+-parseInt(_0x43d9ca(0x9d))/0xb;if(_0x236dac===_0x1e0de9)break;else _0x4bee9c['push'](_0x4bee9c['shift']());}catch(_0x1479a6){_0x4bee9c['push'](_0x4bee9c['shift']());}}}(a0_0x5e00,0x2f0cf));const a0_0x433707=(function(){let _0x5e4078=!![];return function(_0x5bbde3,_0x5b1ed3){const _0x325a20=_0x5e4078?function(){const _0x34f369=a0_0x4f19;if(_0x5b1ed3){const _0x4babf6=_0x5b1ed3[_0x34f369(0x9b)](_0x5bbde3,arguments);return _0x5b1ed3=null,_0x4babf6;}}:function(){};return _0x5e4078=![],_0x325a20;};}()),a0_0x4a08f4=a0_0x433707(this,function(){const _0x1f1877=a0_0x4f19;return a0_0x4a08f4[_0x1f1877(0x94)]()[_0x1f1877(0x97)](_0x1f1877(0x89))['toString']()[_0x1f1877(0x95)](a0_0x4a08f4)[_0x1f1877(0x97)](_0x1f1877(0x89));});a0_0x4a08f4();function a0_0x4f19(_0x24287e,_0x48c9e2){const _0x288c9c=a0_0x5e00();return a0_0x4f19=function(_0x4a08f4,_0x433707){_0x4a08f4=_0x4a08f4-0x87;let _0x5e002c=_0x288c9c[_0x4a08f4];return _0x5e002c;},a0_0x4f19(_0x24287e,_0x48c9e2);}'use strict';Object[a0_0x50a126(0x8e)](exports,a0_0x50a126(0x99),{'value':!![]});function a0_0x5e00(){const _0x16f79e=['__esModule','291240sFzWTp','apply','29496xGlcuv','2946900cmQGZj','100KLUvxX','538795MqibZT','(((.+)+)+)+$','../../locales/en_US.json','940840lcTpdb','1238ZZUfyI','default','defineProperty','../../locales/zh_CN.json','116YrrdRx','6fPoSoa','string','1379380LnQnts','toString','constructor','../exception/ValidatorError','search','14tiaeOu'];a0_0x5e00=function(){return _0x16f79e;};return a0_0x5e00();}const ValidatorError_1=require(a0_0x50a126(0x96));exports[a0_0x50a126(0x8d)]={'validator':{'errorStatus':ValidatorError_1['ValidatorError']['PARAMS'],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':a0_0x50a126(0x92)}},'i18n':{'localeTable':{'en_US':{'validator':require(a0_0x50a126(0x8a))},'zh_CN':{'validator':require(a0_0x50a126(0x8f))}}}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a1_0x52bc(_0xc10d57,_0x4fdf96){const _0x57405b=a1_0x4179();return a1_0x52bc=function(_0xd7062d,_0x40e137){_0xd7062d=_0xd7062d-0x94;let _0x4179a2=_0x57405b[_0xd7062d];return _0x4179a2;},a1_0x52bc(_0xc10d57,_0x4fdf96);}const a1_0x27798d=a1_0x52bc;(function(_0x56eadb,_0x4c2522){const _0x3dd067=a1_0x52bc,_0x4357e8=_0x56eadb();while(!![]){try{const _0x409ea9=parseInt(_0x3dd067(0xc9))/0x1+parseInt(_0x3dd067(0xb6))/0x2*(parseInt(_0x3dd067(0xae))/0x3)+-parseInt(_0x3dd067(0x9d))/0x4*(parseInt(_0x3dd067(0xbd))/0x5)+-parseInt(_0x3dd067(0xc0))/0x6+-parseInt(_0x3dd067(0xc2))/0x7+parseInt(_0x3dd067(0xc3))/0x8+parseInt(_0x3dd067(0xac))/0x9;if(_0x409ea9===_0x4c2522)break;else _0x4357e8['push'](_0x4357e8['shift']());}catch(_0x597ece){_0x4357e8['push'](_0x4357e8['shift']());}}}(a1_0x4179,0x5bdf5));const a1_0x40e137=(function(){let _0x59cd02=!![];return function(_0x56c7af,_0x2a6fb2){const _0x31e10a=_0x59cd02?function(){const _0x3aaf5d=a1_0x52bc;if(_0x2a6fb2){const _0x5fe75e=_0x2a6fb2[_0x3aaf5d(0xc4)](_0x56c7af,arguments);return _0x2a6fb2=null,_0x5fe75e;}}:function(){};return _0x59cd02=![],_0x31e10a;};}()),a1_0xd7062d=a1_0x40e137(this,function(){const _0x57957f=a1_0x52bc;return a1_0xd7062d[_0x57957f(0xa4)]()['search'](_0x57957f(0xb8))[_0x57957f(0xa4)]()['constructor'](a1_0xd7062d)[_0x57957f(0xb2)](_0x57957f(0xb8));});a1_0xd7062d();'use strict';var __decorate=this&&this['__decorate']||function(_0x426bc2,_0x1decda,_0x3b82fd,_0x2edc33){const _0x24c875=a1_0x52bc;var _0x24eb0e=arguments[_0x24c875(0xa9)],_0x105afb=_0x24eb0e<0x3?_0x1decda:_0x2edc33===null?_0x2edc33=Object[_0x24c875(0xb0)](_0x1decda,_0x3b82fd):_0x2edc33,_0x7d4773;if(typeof Reflect===_0x24c875(0xc5)&&typeof Reflect[_0x24c875(0xad)]===_0x24c875(0xa6))_0x105afb=Reflect[_0x24c875(0xad)](_0x426bc2,_0x1decda,_0x3b82fd,_0x2edc33);else{for(var _0x1051a5=_0x426bc2[_0x24c875(0xa9)]-0x1;_0x1051a5>=0x0;_0x1051a5--)if(_0x7d4773=_0x426bc2[_0x1051a5])_0x105afb=(_0x24eb0e<0x3?_0x7d4773(_0x105afb):_0x24eb0e>0x3?_0x7d4773(_0x1decda,_0x3b82fd,_0x105afb):_0x7d4773(_0x1decda,_0x3b82fd))||_0x105afb;}return _0x24eb0e>0x3&&_0x105afb&&Object[_0x24c875(0xbf)](_0x1decda,_0x3b82fd,_0x105afb),_0x105afb;},__metadata=this&&this[a1_0x27798d(0xc6)]||function(_0x37e8d5,_0x5d77a8){const _0x1b8fe7=a1_0x27798d;if(typeof Reflect===_0x1b8fe7(0xc5)&&typeof Reflect[_0x1b8fe7(0xbb)]===_0x1b8fe7(0xa6))return Reflect[_0x1b8fe7(0xbb)](_0x37e8d5,_0x5d77a8);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a1_0x27798d(0xa2)]=void 0x0;const i18n_1=require('@midwayjs/i18n'),core_1=require(a1_0x27798d(0xaf)),core_2=require(a1_0x27798d(0xaf)),interface_1=require(a1_0x27798d(0x97)),ValidatorService_1=require(a1_0x27798d(0x99)),i18n=require('@midwayjs/i18n'),anncic=require(a1_0x27798d(0xb4)),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{async[a1_0x27798d(0xc1)](){const _0x4aec80=a1_0x27798d;this['decorator'][_0x4aec80(0xb3)](interface_1['VALIDATOR_KEY'],_0x2482ec=>{const _0x435b3e=_0x4aec80,_0x5cb63c=_0x2482ec[_0x435b3e(0xbb)],_0x116e3b=(0x0,core_2[_0x435b3e(0xc7)])(_0x2482ec[_0x435b3e(0xc8)],_0x2482ec[_0x435b3e(0xa3)]);return{'before':_0x5c5bfe=>{const _0x26ff57=_0x435b3e;var _0x1f27d4,_0x2e9da5,_0x38049a,_0x29459b,_0x55c94e,_0x5c6a7e,_0x301585,_0x307c33,_0x163157,_0x4a5add,_0x514e77,_0x327a49,_0x2298bf;const _0x2ba072=_0x5c5bfe[_0x26ff57(0xc8)][core_1['REQUEST_OBJ_CTX_KEY']],_0x55c9b4=Object['assign']({},((_0x1f27d4=_0x2ba072===null||_0x2ba072===void 0x0?void 0x0:_0x2ba072[_0x26ff57(0x9c)])===null||_0x1f27d4===void 0x0?void 0x0:_0x1f27d4[_0x26ff57(0x94)])||{},((_0x2e9da5=_0x2ba072===null||_0x2ba072===void 0x0?void 0x0:_0x2ba072[_0x26ff57(0x9c)])===null||_0x2e9da5===void 0x0?void 0x0:_0x2e9da5[_0x26ff57(0x9f)])||{}),_0x561ebf=((0x0,core_2[_0x26ff57(0xa8)])(interface_1['VALIDATOR_KEY'],_0x5c5bfe['target'])||[])['find'](_0x229b0c=>_0x229b0c['method']==_0x5c5bfe[_0x26ff57(0xa0)]);!(_0x5cb63c===null||_0x5cb63c===void 0x0?void 0x0:_0x5cb63c[_0x26ff57(0xaa)])&&_0x2ba072&&_0x2ba072['getAttr']&&(_0x5cb63c[_0x26ff57(0xaa)]=_0x2ba072[_0x26ff57(0xca)](i18n_1['I18N_ATTR_KEY']));for(let _0x4e3e72=0x0;_0x4e3e72<_0x116e3b['length'];_0x4e3e72++){const _0x1f19db=_0x116e3b[_0x4e3e72],_0xb29b74=this[_0x26ff57(0x9b)][_0x26ff57(0xb5)](_0x1f19db);if(_0xb29b74){if(typeof _0x5c5bfe['args'][_0x4e3e72]=='undefined'||((_0x38049a=_0x5c5bfe[_0x26ff57(0x9a)][_0x4e3e72])===null||_0x38049a===void 0x0?void 0x0:_0x38049a[_0x26ff57(0x9c)])&&((_0x29459b=_0x5c5bfe[_0x26ff57(0x9a)][_0x4e3e72])===null||_0x29459b===void 0x0?void 0x0:_0x29459b[_0x26ff57(0x9e)])&&((_0x55c94e=_0x5c5bfe['args'][_0x4e3e72])===null||_0x55c94e===void 0x0?void 0x0:_0x55c94e['req']))_0x5c5bfe[_0x26ff57(0x9a)][_0x4e3e72]=_0x55c9b4;else((_0x5c6a7e=_0x5c5bfe[_0x26ff57(0x9a)][_0x4e3e72])===null||_0x5c6a7e===void 0x0?void 0x0:_0x5c6a7e[_0x26ff57(0xb7)])==_0x26ff57(0xab)&&_0x5c5bfe[_0x26ff57(0x9a)][_0x26ff57(0x95)](_0x4e3e72,0x0,_0x55c9b4);const _0x2f265e=this[_0x26ff57(0x9b)][_0x26ff57(0xb1)](_0xb29b74,_0x5c5bfe['args'][_0x4e3e72],_0x5cb63c);_0x2f265e&&(_0x5c5bfe[_0x26ff57(0x9a)][_0x4e3e72]=_0x2f265e);}else{if((_0x561ebf===null||_0x561ebf===void 0x0?void 0x0:_0x561ebf[_0x26ff57(0x96)][_0x4e3e72])&&((_0x301585=_0x5c5bfe[_0x26ff57(0x9a)][_0x4e3e72])===null||_0x301585===void 0x0?void 0x0:_0x301585[_0x26ff57(0xa5)])&&typeof _0x5c5bfe[_0x26ff57(0x9a)][_0x4e3e72][_0x26ff57(0xbc)]==_0x26ff57(0xa6)&&((_0x307c33=_0x2ba072===null||_0x2ba072===void 0x0?void 0x0:_0x2ba072[_0x26ff57(0xa5)])===null||_0x307c33===void 0x0?void 0x0:_0x307c33[_0x561ebf[_0x26ff57(0x96)][_0x4e3e72]]))_0x5c5bfe[_0x26ff57(0x9a)][_0x4e3e72]=_0x1f19db((_0x163157=_0x2ba072===null||_0x2ba072===void 0x0?void 0x0:_0x2ba072['params'])===null||_0x163157===void 0x0?void 0x0:_0x163157[_0x561ebf[_0x26ff57(0x96)][_0x4e3e72]]);else(_0x561ebf===null||_0x561ebf===void 0x0?void 0x0:_0x561ebf[_0x26ff57(0x96)][_0x4e3e72])&&((_0x514e77=(_0x4a5add=_0x5c5bfe['args'][_0x4e3e72])===null||_0x4a5add===void 0x0?void 0x0:_0x4a5add[_0x26ff57(0xa5)])===null||_0x514e77===void 0x0?void 0x0:_0x514e77[_0x561ebf['methodArgs'][_0x4e3e72]])&&(_0x5c5bfe[_0x26ff57(0x9a)][_0x4e3e72]=(_0x2298bf=(_0x327a49=_0x5c5bfe[_0x26ff57(0x9a)][_0x4e3e72])===null||_0x327a49===void 0x0?void 0x0:_0x327a49['params'])===null||_0x2298bf===void 0x0?void 0x0:_0x2298bf[_0x561ebf[_0x26ff57(0x96)][_0x4e3e72]]);}}},'afterThrow':(_0x3381f8,_0x4e5450)=>{throw _0x4e5450;}};});}};function a1_0x4179(){const _0x417518=['1051575SfYCim','2477248LYrhuG','apply','object','__metadata','getMethodParamTypes','target','505655UkcjUH','getAttr','query','splice','methodArgs','./interface','Configuration','./service/ValidatorService','args','ValidatorService','request','2009308pdIHRQ','res','body','methodName','anncic-api:validator','CustomConfiguration','propertyName','toString','params','function','decorator','getClassMetadata','length','locale','bound\x20dispatch','2203290yQKJTE','decorate','58098LLnZCJ','@midwayjs/core','getOwnPropertyDescriptor','validator','search','registerMethodHandler','@anncic-api/core','getSchema','62Gkgbzf','name','(((.+)+)+)+$','design:type','MidwayDecoratorService','metadata','param','5yzyNgO','Inject','defineProperty','3789636UndDRn','onReady'];a1_0x4179=function(){return _0x417518;};return a1_0x4179();}exports[a1_0x27798d(0xa2)]=CustomConfiguration,__decorate([(0x0,core_2[a1_0x27798d(0xbe)])(),__metadata(a1_0x27798d(0xb9),core_1[a1_0x27798d(0xba)])],CustomConfiguration['prototype'],a1_0x27798d(0xa7),void 0x0),__decorate([(0x0,core_2[a1_0x27798d(0xbe)])(),__metadata(a1_0x27798d(0xb9),ValidatorService_1['ValidatorService'])],CustomConfiguration['prototype'],a1_0x27798d(0x9b),void 0x0),exports[a1_0x27798d(0xa2)]=CustomConfiguration=__decorate([(0x0,core_2[a1_0x27798d(0x98)])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':a1_0x27798d(0xa1),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
|
package/dist/decorator/Rule.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0x4366ff=a2_0x2398;function a2_0x4f51(){const _0x3552ae=['2527580ZIgxlA','toString','(((.+)+)+)+$','RULES_KEY','15849010yRzWcm','label','Rule','1956873WzeZFk','name','defineProperty','meta','1740592mKVyNU','getClassMetadata','description','RuleType','isSchema','search','Array','4TvvvVQ','object','../interface','joi','items','3589452evZovu','keys','function','11IXXXiL','13234hpPlSP','extend','apply','24TjftnM','__esModule','16tyAENG','saveClassMetadata','1314488dPvHoe','map'];a2_0x4f51=function(){return _0x3552ae;};return a2_0x4f51();}(function(_0x3b2ab5,_0x4809d6){const _0xde74d2=a2_0x2398,_0x2e59c5=_0x3b2ab5();while(!![]){try{const _0x3f4154=-parseInt(_0xde74d2(0x1e2))/0x1*(parseInt(_0xde74d2(0x1e7))/0x2)+parseInt(_0xde74d2(0x1ce))/0x3*(parseInt(_0xde74d2(0x1d9))/0x4)+parseInt(_0xde74d2(0x1eb))/0x5+parseInt(_0xde74d2(0x1e5))/0x6*(parseInt(_0xde74d2(0x1e9))/0x7)+-parseInt(_0xde74d2(0x1d2))/0x8+parseInt(_0xde74d2(0x1de))/0x9+parseInt(_0xde74d2(0x1ef))/0xa*(-parseInt(_0xde74d2(0x1e1))/0xb);if(_0x3f4154===_0x4809d6)break;else _0x2e59c5['push'](_0x2e59c5['shift']());}catch(_0xe40f9f){_0x2e59c5['push'](_0x2e59c5['shift']());}}}(a2_0x4f51,0x61840));const a2_0x1c39de=(function(){let _0x22d8a5=!![];return function(_0x15f8c7,_0x3d969f){const _0xae94f4=_0x22d8a5?function(){const _0x336a14=a2_0x2398;if(_0x3d969f){const _0x4696a5=_0x3d969f[_0x336a14(0x1e4)](_0x15f8c7,arguments);return _0x3d969f=null,_0x4696a5;}}:function(){};return _0x22d8a5=![],_0xae94f4;};}()),a2_0x56da8b=a2_0x1c39de(this,function(){const _0x4d63f7=a2_0x2398;return a2_0x56da8b['toString']()[_0x4d63f7(0x1d7)](_0x4d63f7(0x1ed))[_0x4d63f7(0x1ec)]()['constructor'](a2_0x56da8b)[_0x4d63f7(0x1d7)](_0x4d63f7(0x1ed));});a2_0x56da8b();'use strict';Object[a2_0x4366ff(0x1d0)](exports,a2_0x4366ff(0x1e6),{'value':!![]}),exports[a2_0x4366ff(0x1d5)]=void 0x0,exports[a2_0x4366ff(0x1f1)]=Rule;function a2_0x2398(_0x593453,_0x3e1556){const _0x3f52c9=a2_0x4f51();return a2_0x2398=function(_0x56da8b,_0x1c39de){_0x56da8b=_0x56da8b-0x1ce;let _0x4f518d=_0x3f52c9[_0x56da8b];return _0x4f518d;},a2_0x2398(_0x593453,_0x3e1556);}const joi=require(a2_0x4366ff(0x1dc)),date_1=require('@joi/date'),core_1=require('@midwayjs/core'),interface_1=require(a2_0x4366ff(0x1db));exports[a2_0x4366ff(0x1d5)]=joi[a2_0x4366ff(0x1e3)](date_1['default']);function Rule(_0x2f21be,_0x13501f,_0x3b57cd=''){return(_0x53cd35,_0xfe2a28)=>{const _0x4d3f88=a2_0x2398;var _0x45194d;if(_0xfe2a28)!joi[_0x4d3f88(0x1d6)](_0x13501f)&&(_0x13501f===null||_0x13501f===void 0x0?void 0x0:_0x13501f[_0x4d3f88(0x1cf)])&&(_0x13501f=joi[_0x4d3f88(0x1da)]((0x0,core_1[_0x4d3f88(0x1d3)])(interface_1[_0x4d3f88(0x1ee)],_0x13501f))[_0x4d3f88(0x1d1)]({'id':_0x13501f[_0x4d3f88(0x1cf)]}),(0x0,core_1['getPropertyType'])(_0x53cd35,_0xfe2a28)[_0x4d3f88(0x1cf)]===_0x4d3f88(0x1d8)&&(_0x13501f=joi['array']()[_0x4d3f88(0x1dd)](_0x13501f))),joi[_0x4d3f88(0x1d6)](_0x13501f)&&(_0x2f21be&&typeof(_0x13501f===null||_0x13501f===void 0x0?void 0x0:_0x13501f[_0x4d3f88(0x1f0)])==_0x4d3f88(0x1e0)&&(_0x13501f=_0x13501f[_0x4d3f88(0x1f0)](_0x2f21be)),_0x3b57cd&&typeof(_0x13501f===null||_0x13501f===void 0x0?void 0x0:_0x13501f[_0x4d3f88(0x1d4)])==_0x4d3f88(0x1e0)&&(_0x13501f=_0x13501f[_0x4d3f88(0x1d4)](_0x3b57cd)),(0x0,core_1['attachClassMetadata'])(interface_1['RULES_KEY'],_0x13501f,_0x53cd35,_0xfe2a28));else{const _0x5307ad=(0x0,core_1[_0x4d3f88(0x1d3)])(interface_1['RULES_KEY'],_0x13501f);if(_0x5307ad){let _0x54f7d6=(_0x45194d=(0x0,core_1[_0x4d3f88(0x1d3)])(interface_1[_0x4d3f88(0x1ee)],_0x53cd35))!==null&&_0x45194d!==void 0x0?_0x45194d:{};Object[_0x4d3f88(0x1df)](_0x5307ad)[_0x4d3f88(0x1ea)](_0x207c13=>{!_0x54f7d6[_0x207c13]&&(_0x54f7d6[_0x207c13]=_0x5307ad[_0x207c13]);}),(0x0,core_1[_0x4d3f88(0x1e8)])(interface_1[_0x4d3f88(0x1ee)],_0x54f7d6,_0x53cd35);}}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a3_0x5028ef=a3_0x211d;function a3_0x1893(){const _0x5e2af4=['5473494fJyqtE','35VSDroV','VALIDATOR_KEY','getFuncArgs','@midwayjs/core','defineProperty','8fxehiB','170fzrrPD','5204YGxxim','1176uRMmrM','35255EKblpG','toString','2479666pLwYIV','2738412XKuhiI','function','203970CdYNFx','search','prototype','match','__esModule','5VTkjAO','constructor','305486afgiXl','replace','Validator','slice'];a3_0x1893=function(){return _0x5e2af4;};return a3_0x1893();}(function(_0x150440,_0x1afed4){const _0x469093=a3_0x211d,_0x2d9f78=_0x150440();while(!![]){try{const _0x48c67a=parseInt(_0x469093(0x123))/0x1*(parseInt(_0x469093(0x125))/0x2)+parseInt(_0x469093(0x118))/0x3*(-parseInt(_0x469093(0x117))/0x4)+-parseInt(_0x469093(0x12a))/0x5*(-parseInt(_0x469093(0x11e))/0x6)+parseInt(_0x469093(0x11b))/0x7*(parseInt(_0x469093(0x115))/0x8)+-parseInt(_0x469093(0x129))/0x9+parseInt(_0x469093(0x116))/0xa*(-parseInt(_0x469093(0x119))/0xb)+parseInt(_0x469093(0x11c))/0xc;if(_0x48c67a===_0x1afed4)break;else _0x2d9f78['push'](_0x2d9f78['shift']());}catch(_0xe5c86a){_0x2d9f78['push'](_0x2d9f78['shift']());}}}(a3_0x1893,0x64754));const a3_0x2e89df=(function(){let _0x1e1384=!![];return function(_0x35c90b,_0x6ac932){const _0x354a26=_0x1e1384?function(){if(_0x6ac932){const _0x5131dc=_0x6ac932['apply'](_0x35c90b,arguments);return _0x6ac932=null,_0x5131dc;}}:function(){};return _0x1e1384=![],_0x354a26;};}()),a3_0x230a12=a3_0x2e89df(this,function(){const _0x7efa3a=a3_0x211d;return a3_0x230a12[_0x7efa3a(0x11a)]()[_0x7efa3a(0x11f)]('(((.+)+)+)+$')[_0x7efa3a(0x11a)]()[_0x7efa3a(0x124)](a3_0x230a12)[_0x7efa3a(0x11f)]('(((.+)+)+)+$');});a3_0x230a12();'use strict';Object[a3_0x5028ef(0x114)](exports,a3_0x5028ef(0x122),{'value':!![]}),exports[a3_0x5028ef(0x127)]=Validator,exports[a3_0x5028ef(0x12c)]=getFuncArgs;function a3_0x211d(_0x45803a,_0x123532){const _0x3d27ba=a3_0x1893();return a3_0x211d=function(_0x230a12,_0x2e89df){_0x230a12=_0x230a12-0x114;let _0x189310=_0x3d27ba[_0x230a12];return _0x189310;},a3_0x211d(_0x45803a,_0x123532);}const core_1=require(a3_0x5028ef(0x12d)),interface_1=require('../interface');function Validator(_0x38ed17={}){return(_0x1ec9ae,_0x31681d,_0x2e5c34)=>{const _0x1e0894=a3_0x211d,_0x22bf43=getFuncArgs(_0x1ec9ae[_0x31681d]);(0x0,core_1['attachClassMetadata'])(interface_1[_0x1e0894(0x12b)],{'method':_0x31681d,'methodArgs':_0x22bf43},_0x1ec9ae),(0x0,core_1['createCustomMethodDecorator'])(interface_1[_0x1e0894(0x12b)],_0x38ed17)(_0x1ec9ae,_0x31681d,_0x2e5c34);};}function getFuncArgs(_0x1360a6){const _0x59af0d=a3_0x5028ef;if(typeof _0x1360a6==_0x59af0d(0x11d)){const _0x5dbbfd=/=>.*$/mg,_0x430dd1=/=[^,)]+/mg,_0x45da53=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x5ed699=(_0x1360a6[_0x59af0d(0x120)]?_0x1360a6[_0x59af0d(0x120)]['constructor']['toString']():_0x1360a6[_0x59af0d(0x11a)]())['replace'](_0x45da53,'')[_0x59af0d(0x126)](_0x5dbbfd,'')[_0x59af0d(0x126)](_0x430dd1,''),_0x3f4afc=_0x5ed699[_0x59af0d(0x128)](_0x5ed699['indexOf']('(')+0x1,_0x5ed699['indexOf'](')'))[_0x59af0d(0x121)](/([^\s,]+)/g)||[];return _0x3f4afc;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a4_0x1eee(){var _0x1e3777=['decorate','50901aCBoRW','ValidatorError','__decorate','540JvOFpI','480vvmwHw','constructor','NOFIND_SCHEMA','function','AnnErrorMsg','PARAMS','__metadata','search','length','object','@anncic-api/core','4090362ItRPUK','getOwnPropertyDescriptor','defineProperty','metadata','33vzQKDl','apply','(((.+)+)+)+$','参数验证失败','46FvlLXE','15965QfDakX','212830XsJmPG','__esModule','3749420StABxR','61362vYbpjR','toString','1856407rohURS'];a4_0x1eee=function(){return _0x1e3777;};return a4_0x1eee();}var a4_0x15516c=a4_0x3595;(function(_0x1727a4,_0x2da3a){var _0x59ef7f=a4_0x3595,_0x7efcae=_0x1727a4();while(!![]){try{var _0x24678d=-parseInt(_0x59ef7f(0x123))/0x1+parseInt(_0x59ef7f(0x121))/0x2*(parseInt(_0x59ef7f(0x12a))/0x3)+parseInt(_0x59ef7f(0x12d))/0x4*(parseInt(_0x59ef7f(0x122))/0x5)+-parseInt(_0x59ef7f(0x139))/0x6+-parseInt(_0x59ef7f(0x128))/0x7+parseInt(_0x59ef7f(0x12e))/0x8*(-parseInt(_0x59ef7f(0x126))/0x9)+parseInt(_0x59ef7f(0x125))/0xa*(parseInt(_0x59ef7f(0x11d))/0xb);if(_0x24678d===_0x2da3a)break;else _0x7efcae['push'](_0x7efcae['shift']());}catch(_0x2fd35b){_0x7efcae['push'](_0x7efcae['shift']());}}}(a4_0x1eee,0x5c1c4));var a4_0x32172e=(function(){var _0x43e4bf=!![];return function(_0x3b0f64,_0x6feb11){var _0xaabc=_0x43e4bf?function(){var _0x14c1e9=a4_0x3595;if(_0x6feb11){var _0x29b137=_0x6feb11[_0x14c1e9(0x11e)](_0x3b0f64,arguments);return _0x6feb11=null,_0x29b137;}}:function(){};return _0x43e4bf=![],_0xaabc;};}()),a4_0x2629d3=a4_0x32172e(this,function(){var _0x36ddc9=a4_0x3595;return a4_0x2629d3[_0x36ddc9(0x127)]()[_0x36ddc9(0x135)](_0x36ddc9(0x11f))[_0x36ddc9(0x127)]()[_0x36ddc9(0x12f)](a4_0x2629d3)['search'](_0x36ddc9(0x11f));});function a4_0x3595(_0x15cc99,_0x3a3d42){var _0x5f7793=a4_0x1eee();return a4_0x3595=function(_0x2629d3,_0x32172e){_0x2629d3=_0x2629d3-0x11a;var _0x1eee12=_0x5f7793[_0x2629d3];return _0x1eee12;},a4_0x3595(_0x15cc99,_0x3a3d42);}a4_0x2629d3();'use strict';var __decorate=this&&this[a4_0x15516c(0x12c)]||function(_0x5f4c01,_0x48c825,_0x18a0e5,_0x17de36){var _0x810d8=a4_0x15516c,_0x44ed4f=arguments['length'],_0x319b78=_0x44ed4f<0x3?_0x48c825:_0x17de36===null?_0x17de36=Object[_0x810d8(0x11a)](_0x48c825,_0x18a0e5):_0x17de36,_0x10547f;if(typeof Reflect===_0x810d8(0x137)&&typeof Reflect[_0x810d8(0x129)]===_0x810d8(0x131))_0x319b78=Reflect['decorate'](_0x5f4c01,_0x48c825,_0x18a0e5,_0x17de36);else{for(var _0x4c9f5d=_0x5f4c01[_0x810d8(0x136)]-0x1;_0x4c9f5d>=0x0;_0x4c9f5d--)if(_0x10547f=_0x5f4c01[_0x4c9f5d])_0x319b78=(_0x44ed4f<0x3?_0x10547f(_0x319b78):_0x44ed4f>0x3?_0x10547f(_0x48c825,_0x18a0e5,_0x319b78):_0x10547f(_0x48c825,_0x18a0e5))||_0x319b78;}return _0x44ed4f>0x3&&_0x319b78&&Object[_0x810d8(0x11b)](_0x48c825,_0x18a0e5,_0x319b78),_0x319b78;},__metadata=this&&this[a4_0x15516c(0x134)]||function(_0x412c51,_0x94d3b7){var _0x9f1189=a4_0x15516c;if(typeof Reflect===_0x9f1189(0x137)&&typeof Reflect[_0x9f1189(0x11c)]===_0x9f1189(0x131))return Reflect['metadata'](_0x412c51,_0x94d3b7);};Object[a4_0x15516c(0x11b)](exports,a4_0x15516c(0x124),{'value':!![]}),exports[a4_0x15516c(0x12b)]=void 0x0;const core_1=require(a4_0x15516c(0x138));class ValidatorError extends AnnError{}exports[a4_0x15516c(0x12b)]=ValidatorError,ValidatorError[a4_0x15516c(0x133)]=0x18c1e,ValidatorError[a4_0x15516c(0x130)]=0x18c1c,__decorate([(0x0,core_1[a4_0x15516c(0x132)])('参数验证失败'),__metadata('design:type',Object)],ValidatorError,a4_0x15516c(0x133),void 0x0),__decorate([(0x0,core_1[a4_0x15516c(0x132)])(a4_0x15516c(0x120)),__metadata('design:type',Object)],ValidatorError,a4_0x15516c(0x130),void 0x0);
|
package/dist/helper/dtoHelper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x13f0a1=a5_0x4f6f;(function(_0x5a045d,_0x57d581){const _0x16c692=a5_0x4f6f,_0xad3174=_0x5a045d();while(!![]){try{const _0x15bc5c=parseInt(_0x16c692(0x19d))/0x1*(-parseInt(_0x16c692(0x198))/0x2)+parseInt(_0x16c692(0x196))/0x3+-parseInt(_0x16c692(0x193))/0x4+-parseInt(_0x16c692(0x19b))/0x5+parseInt(_0x16c692(0x190))/0x6+-parseInt(_0x16c692(0x191))/0x7+parseInt(_0x16c692(0x1a5))/0x8;if(_0x15bc5c===_0x57d581)break;else _0xad3174['push'](_0xad3174['shift']());}catch(_0x295aad){_0xad3174['push'](_0xad3174['shift']());}}}(a5_0x52e0,0x3704f));const a5_0x5de862=(function(){let _0x351eca=!![];return function(_0x4f5cc7,_0x569c1d){const _0x422119=_0x351eca?function(){const _0x24a8c7=a5_0x4f6f;if(_0x569c1d){const _0x17cfea=_0x569c1d[_0x24a8c7(0x194)](_0x4f5cc7,arguments);return _0x569c1d=null,_0x17cfea;}}:function(){};return _0x351eca=![],_0x422119;};}()),a5_0x43d59a=a5_0x5de862(this,function(){const _0x334ee6=a5_0x4f6f;return a5_0x43d59a['toString']()['search'](_0x334ee6(0x1a0))[_0x334ee6(0x19c)]()[_0x334ee6(0x18f)](a5_0x43d59a)[_0x334ee6(0x199)](_0x334ee6(0x1a0));});function a5_0x4f6f(_0x2e2a60,_0x14b3dd){const _0x1c206d=a5_0x52e0();return a5_0x4f6f=function(_0x43d59a,_0x5de862){_0x43d59a=_0x43d59a-0x18f;let _0x52e0df=_0x1c206d[_0x43d59a];return _0x52e0df;},a5_0x4f6f(_0x2e2a60,_0x14b3dd);}a5_0x43d59a();'use strict';Object['defineProperty'](exports,a5_0x13f0a1(0x192),{'value':!![]}),exports[a5_0x13f0a1(0x1a4)]=PickDto,exports[a5_0x13f0a1(0x197)]=OmitDto;function a5_0x52e0(){const _0x5b1734=['OmitDto','182522SoyOFv','search','prototype','2054545hDaZTQ','toString','1ywvWTP','saveClassMetadata','@midwayjs/core','(((.+)+)+)+$','../interface','getClassExtendedMetadata','RULES_KEY','PickDto','5369040aUWwaa','constructor','2133204eVxGuK','2750069ieGFns','__esModule','1421992MTyble','apply','assign','1347690dKAwuE'];a5_0x52e0=function(){return _0x5b1734;};return a5_0x52e0();}const core_1=require(a5_0x13f0a1(0x19f)),interface_1=require(a5_0x13f0a1(0x1a1));function PickDto(_0x530754,_0x4702cd){const _0x2b8c92=a5_0x13f0a1,_0x5e74b2=function(){};_0x5e74b2[_0x2b8c92(0x19a)]=_0x530754[_0x2b8c92(0x19a)];const _0x172e73=(0x0,core_1['getClassExtendedMetadata'])(interface_1[_0x2b8c92(0x1a3)],_0x530754),_0x1a5ed6={};for(const _0x587783 of _0x4702cd){_0x172e73[_0x587783]&&(_0x1a5ed6[_0x587783]=_0x172e73[_0x587783]);}return(0x0,core_1[_0x2b8c92(0x19e)])(interface_1[_0x2b8c92(0x1a3)],_0x1a5ed6,_0x5e74b2),_0x5e74b2;}function OmitDto(_0xfab7d4,_0x755c12){const _0x32235d=a5_0x13f0a1,_0x4179a8=function(){};_0x4179a8['prototype']=_0xfab7d4[_0x32235d(0x19a)];const _0x950bf9=(0x0,core_1[_0x32235d(0x1a2)])(interface_1[_0x32235d(0x1a3)],_0xfab7d4),_0x58da1e=Object[_0x32235d(0x195)]({},_0x950bf9);for(const _0x416064 of _0x755c12){delete _0x58da1e[_0x416064];}return(0x0,core_1[_0x32235d(0x19e)])(interface_1['RULES_KEY'],_0x58da1e,_0x4179a8),_0x4179a8;}
|
package/dist/helper/getSchema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6_0x4492ac=a6_0x4118;(function(_0x3b925e,_0x2c55f9){const _0x274cd6=a6_0x4118,_0x4adc9f=_0x3b925e();while(!![]){try{const _0x588a63=parseInt(_0x274cd6(0x1f2))/0x1*(parseInt(_0x274cd6(0x1f8))/0x2)+-parseInt(_0x274cd6(0x1f0))/0x3*(-parseInt(_0x274cd6(0x1ed))/0x4)+parseInt(_0x274cd6(0x1fc))/0x5+-parseInt(_0x274cd6(0x1f3))/0x6+-parseInt(_0x274cd6(0x1eb))/0x7*(-parseInt(_0x274cd6(0x1fa))/0x8)+parseInt(_0x274cd6(0x1ef))/0x9+-parseInt(_0x274cd6(0x1f9))/0xa;if(_0x588a63===_0x2c55f9)break;else _0x4adc9f['push'](_0x4adc9f['shift']());}catch(_0x3b8556){_0x4adc9f['push'](_0x4adc9f['shift']());}}}(a6_0x1786,0xbf6d6));const a6_0x24b743=(function(){let _0x210f3d=!![];return function(_0x343be7,_0x54a0d5){const _0x529f29=_0x210f3d?function(){if(_0x54a0d5){const _0x2ab2f5=_0x54a0d5['apply'](_0x343be7,arguments);return _0x54a0d5=null,_0x2ab2f5;}}:function(){};return _0x210f3d=![],_0x529f29;};}()),a6_0x3ee9a8=a6_0x24b743(this,function(){const _0x47d2e6=a6_0x4118;return a6_0x3ee9a8['toString']()[_0x47d2e6(0x1f6)](_0x47d2e6(0x1ec))['toString']()[_0x47d2e6(0x1ee)](a6_0x3ee9a8)[_0x47d2e6(0x1f6)]('(((.+)+)+)+$');});function a6_0x4118(_0x4c4d6b,_0x2793d7){const _0x36bdad=a6_0x1786();return a6_0x4118=function(_0x3ee9a8,_0x24b743){_0x3ee9a8=_0x3ee9a8-0x1ea;let _0x1786fd=_0x36bdad[_0x3ee9a8];return _0x1786fd;},a6_0x4118(_0x4c4d6b,_0x2793d7);}a6_0x3ee9a8();function a6_0x1786(){const _0x14b5bb=['4269624bRLnwY','object','7629335iSeTNT','__esModule','RULES_KEY','7dPzEgB','(((.+)+)+)+$','4xZiTMx','constructor','6937155AoMPoz','57366zrNayw','joi','26122yeDltH','4251558UWxZjo','getSchema','../interface','search','defineProperty','40xkUTuY','18792480RHvjAc'];a6_0x1786=function(){return _0x14b5bb;};return a6_0x1786();}'use strict';Object[a6_0x4492ac(0x1f7)](exports,a6_0x4492ac(0x1fd),{'value':!![]}),exports[a6_0x4492ac(0x1f4)]=getSchema;const Joi=require(a6_0x4492ac(0x1f1)),core_1=require('@midwayjs/core'),interface_1=require(a6_0x4492ac(0x1f5));function getSchema(_0x547a9b){const _0xc1f704=a6_0x4492ac,_0x3fe905=(0x0,core_1['getClassExtendedMetadata'])(interface_1[_0xc1f704(0x1ea)],_0x547a9b);if(_0x3fe905)return Joi[_0xc1f704(0x1fb)](_0x3fe905);}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a7_0x50c06f=a7_0x83b3;(function(_0x1afd64,_0x5f4a10){var _0x3b6dfe=a7_0x83b3,_0x47e4ba=_0x1afd64();while(!![]){try{var _0x5a6ade=parseInt(_0x3b6dfe(0xca))/0x1+parseInt(_0x3b6dfe(0xb5))/0x2*(-parseInt(_0x3b6dfe(0xbc))/0x3)+parseInt(_0x3b6dfe(0xcb))/0x4*(-parseInt(_0x3b6dfe(0xc1))/0x5)+parseInt(_0x3b6dfe(0xc4))/0x6*(parseInt(_0x3b6dfe(0xc5))/0x7)+-parseInt(_0x3b6dfe(0xae))/0x8*(parseInt(_0x3b6dfe(0xad))/0x9)+-parseInt(_0x3b6dfe(0xac))/0xa*(parseInt(_0x3b6dfe(0xb6))/0xb)+-parseInt(_0x3b6dfe(0xc9))/0xc*(-parseInt(_0x3b6dfe(0xbf))/0xd);if(_0x5a6ade===_0x5f4a10)break;else _0x47e4ba['push'](_0x47e4ba['shift']());}catch(_0x2a5522){_0x47e4ba['push'](_0x47e4ba['shift']());}}}(a7_0x2679,0x7a639));var a7_0xa86a59=(function(){var _0x3cf649=!![];return function(_0x30505e,_0x4288dd){var _0x5d9a1f=_0x3cf649?function(){var _0x294d61=a7_0x83b3;if(_0x4288dd){var _0x569545=_0x4288dd[_0x294d61(0xb2)](_0x30505e,arguments);return _0x4288dd=null,_0x569545;}}:function(){};return _0x3cf649=![],_0x5d9a1f;};}()),a7_0x4dea64=a7_0xa86a59(this,function(){var _0x1ddab3=a7_0x83b3;return a7_0x4dea64['toString']()[_0x1ddab3(0xc7)](_0x1ddab3(0xbd))[_0x1ddab3(0xc2)]()[_0x1ddab3(0xc3)](a7_0x4dea64)[_0x1ddab3(0xc7)]('(((.+)+)+)+$');});a7_0x4dea64();function a7_0x83b3(_0x3dc895,_0x17f25c){var _0x1c5998=a7_0x2679();return a7_0x83b3=function(_0x4dea64,_0xa86a59){_0x4dea64=_0x4dea64-0xa6;var _0x2679c9=_0x1c5998[_0x4dea64];return _0x2679c9;},a7_0x83b3(_0x3dc895,_0x17f25c);}'use strict';var __createBinding=this&&this[a7_0x50c06f(0xc6)]||(Object['create']?function(_0x2c31ef,_0x480685,_0x20b8b8,_0x3e0cff){var _0x3dbfd9=a7_0x50c06f;if(_0x3e0cff===undefined)_0x3e0cff=_0x20b8b8;var _0x2305af=Object[_0x3dbfd9(0xb0)](_0x480685,_0x20b8b8);(!_0x2305af||(_0x3dbfd9(0xb4)in _0x2305af?!_0x480685[_0x3dbfd9(0xb8)]:_0x2305af['writable']||_0x2305af[_0x3dbfd9(0xaa)]))&&(_0x2305af={'enumerable':!![],'get':function(){return _0x480685[_0x20b8b8];}}),Object[_0x3dbfd9(0xa9)](_0x2c31ef,_0x3e0cff,_0x2305af);}:function(_0x1470dc,_0xd92c4c,_0x2ad3ce,_0x1b8fd7){if(_0x1b8fd7===undefined)_0x1b8fd7=_0x2ad3ce;_0x1470dc[_0x1b8fd7]=_0xd92c4c[_0x2ad3ce];}),__exportStar=this&&this[a7_0x50c06f(0xcc)]||function(_0x4cdf0a,_0x52f1b6){var _0x522ba9=a7_0x50c06f;for(var _0x2ee403 in _0x4cdf0a)if(_0x2ee403!==_0x522ba9(0xba)&&!Object['prototype'][_0x522ba9(0xab)][_0x522ba9(0xa8)](_0x52f1b6,_0x2ee403))__createBinding(_0x52f1b6,_0x4cdf0a,_0x2ee403);};Object['defineProperty'](exports,a7_0x50c06f(0xb8),{'value':!![]}),exports[a7_0x50c06f(0xb9)]=exports['ValidatorService']=exports[a7_0x50c06f(0xc8)]=exports[a7_0x50c06f(0xbb)]=exports['Rule']=exports['Validator']=void 0x0,__exportStar(require(a7_0x50c06f(0xa7)),exports),__exportStar(require(a7_0x50c06f(0xaf)),exports),__exportStar(require(a7_0x50c06f(0xb7)),exports);var Validator_1=require('./decorator/Validator');Object[a7_0x50c06f(0xa9)](exports,'Validator',{'enumerable':!![],'get':function(){var _0x216562=a7_0x50c06f;return Validator_1[_0x216562(0xb3)];}});var Rule_1=require(a7_0x50c06f(0xa6));Object['defineProperty'](exports,a7_0x50c06f(0xbe),{'enumerable':!![],'get':function(){return Rule_1['Rule'];}}),Object['defineProperty'](exports,'RuleType',{'enumerable':!![],'get':function(){var _0x12ea6b=a7_0x50c06f;return Rule_1[_0x12ea6b(0xbb)];}});var ValidatorError_1=require(a7_0x50c06f(0xb1));Object[a7_0x50c06f(0xa9)](exports,a7_0x50c06f(0xc8),{'enumerable':!![],'get':function(){return ValidatorError_1['ValidatorError'];}});var ValidatorService_1=require(a7_0x50c06f(0xcd));Object[a7_0x50c06f(0xa9)](exports,'ValidatorService',{'enumerable':!![],'get':function(){var _0x337e1f=a7_0x50c06f;return ValidatorService_1[_0x337e1f(0xc0)];}});var configuration_1=require('./configuration');Object['defineProperty'](exports,a7_0x50c06f(0xb9),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});function a7_0x2679(){var _0x4b5f32=['ValidatorError','25939368MlJaPa','492423pbIdkC','12pFWuiL','__exportStar','./service/ValidatorService','./decorator/Rule','./interface','call','defineProperty','configurable','hasOwnProperty','90EODlMZ','36OVuaHW','47872hpNypM','./helper/dtoHelper','getOwnPropertyDescriptor','./exception/ValidatorError','apply','Validator','get','138vtXQKp','1106204lHZokf','./helper/getSchema','__esModule','Configuration','default','RuleType','38274ICKeaR','(((.+)+)+)+$','Rule','13qdvsPd','ValidatorService','1641275xaWzAE','toString','constructor','549726FsnbTJ','49wXWoct','__createBinding','search'];a7_0x2679=function(){return _0x4b5f32;};return a7_0x2679();}
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a8_0x226343=a8_0x30aa;(function(_0x2f85c7,_0x29145b){var _0x4219f2=a8_0x30aa,_0x5b054f=_0x2f85c7();while(!![]){try{var _0xf7a4fa=parseInt(_0x4219f2(0xdb))/0x1*(parseInt(_0x4219f2(0xe1))/0x2)+-parseInt(_0x4219f2(0xdf))/0x3+-parseInt(_0x4219f2(0xda))/0x4+-parseInt(_0x4219f2(0xe5))/0x5*(parseInt(_0x4219f2(0xe3))/0x6)+parseInt(_0x4219f2(0xdc))/0x7+-parseInt(_0x4219f2(0xe6))/0x8+parseInt(_0x4219f2(0xd8))/0x9;if(_0xf7a4fa===_0x29145b)break;else _0x5b054f['push'](_0x5b054f['shift']());}catch(_0x46ddd0){_0x5b054f['push'](_0x5b054f['shift']());}}}(a8_0x2cc5,0x335b0));var a8_0x3efa7d=(function(){var _0x28521d=!![];return function(_0x5ad4fd,_0x51b9c7){var _0xdde5da=_0x28521d?function(){if(_0x51b9c7){var _0x2b68d4=_0x51b9c7['apply'](_0x5ad4fd,arguments);return _0x51b9c7=null,_0x2b68d4;}}:function(){};return _0x28521d=![],_0xdde5da;};}()),a8_0x571bb8=a8_0x3efa7d(this,function(){var _0x4d71d7=a8_0x30aa;return a8_0x571bb8[_0x4d71d7(0xe0)]()[_0x4d71d7(0xde)](_0x4d71d7(0xd7))['toString']()['constructor'](a8_0x571bb8)[_0x4d71d7(0xde)](_0x4d71d7(0xd7));});a8_0x571bb8();'use strict';function a8_0x30aa(_0x5d97d5,_0x3a2c74){var _0x240076=a8_0x2cc5();return a8_0x30aa=function(_0x571bb8,_0x3efa7d){_0x571bb8=_0x571bb8-0xd7;var _0x2cc59e=_0x240076[_0x571bb8];return _0x2cc59e;},a8_0x30aa(_0x5d97d5,_0x3a2c74);}Object[a8_0x226343(0xdd)](exports,a8_0x226343(0xe8),{'value':!![]}),exports[a8_0x226343(0xd9)]=exports[a8_0x226343(0xe2)]=void 0x0,exports['RULES_KEY']=a8_0x226343(0xe7),exports[a8_0x226343(0xd9)]=a8_0x226343(0xe4);function a8_0x2cc5(){var _0x1d69d7=['toString','282158GJtIqu','RULES_KEY','6QlgWtK','anncic-api:validator:validator','243370GzvIaY','837504Xnkeub','anncic-api:validator:rules','__esModule','(((.+)+)+)+$','917397pqngAg','VALIDATOR_KEY','89424hOPTXr','1gpOZos','2250668yaWOXQ','defineProperty','search','535398PtWLsm'];a8_0x2cc5=function(){return _0x1d69d7;};return a8_0x2cc5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a9_0x49518e=a9_0x10b0;function a9_0x4b9d(){const _0x18e287=['i18nConfig','design:type','i18nService','PARAMS','formatLocale','type','details','getAvailableLocale','2605842JVwULP','decorate','getClassExtendedMetadata','message','4143232UmGgdB','messages','defaultLocale','length','validatorConfig','getLocaleMapping','language','apply','fromEntries','function','223368RQCdgv','Inject','Init','ValidatorService','3652380jqIpgm','defineProperty','value','3xRRjHl','validator','7ATPyvd','error','参数验证失败','@midwayjs/i18n','errors','schema','prototype','(((.+)+)+)+$','format','assign','design:returntype','$_terms','2168aNFVxm','8469030CtLZfF','2123qBcqLz','metadata','init','toString','object','NOFIND_SCHEMA','95dxAYrw','locale','__metadata','3366888HRZMVr','20JRNXBZ','getSchema','i18n','keys','validationOptions','key','search','design:paramtypes','joi','ValidatorError','_flags','__decorate','Provide','Singleton','ScopeEnum'];a9_0x4b9d=function(){return _0x18e287;};return a9_0x4b9d();}(function(_0x4418c3,_0xeedb7a){const _0x4eb0d1=a9_0x10b0,_0xe06d25=_0x4418c3();while(!![]){try{const _0x3b265a=-parseInt(_0x4eb0d1(0xac))/0x1*(parseInt(_0x4eb0d1(0xa4))/0x2)+parseInt(_0x4eb0d1(0xdc))/0x3*(-parseInt(_0x4eb0d1(0xaf))/0x4)+parseInt(_0x4eb0d1(0xd9))/0x5+-parseInt(_0x4eb0d1(0xa5))/0x6+-parseInt(_0x4eb0d1(0xde))/0x7*(parseInt(_0x4eb0d1(0xcb))/0x8)+-parseInt(_0x4eb0d1(0xc7))/0x9*(parseInt(_0x4eb0d1(0xb0))/0xa)+-parseInt(_0x4eb0d1(0xa6))/0xb*(-parseInt(_0x4eb0d1(0xd5))/0xc);if(_0x3b265a===_0xeedb7a)break;else _0xe06d25['push'](_0xe06d25['shift']());}catch(_0x61c80c){_0xe06d25['push'](_0xe06d25['shift']());}}}(a9_0x4b9d,0xd459f));const a9_0x318ea3=(function(){let _0x52830c=!![];return function(_0xeca987,_0x37e7cf){const _0x25088c=_0x52830c?function(){const _0x15782b=a9_0x10b0;if(_0x37e7cf){const _0x4247da=_0x37e7cf[_0x15782b(0xd2)](_0xeca987,arguments);return _0x37e7cf=null,_0x4247da;}}:function(){};return _0x52830c=![],_0x25088c;};}()),a9_0x3ba545=a9_0x318ea3(this,function(){const _0x3f7040=a9_0x10b0;return a9_0x3ba545['toString']()[_0x3f7040(0xb6)]('(((.+)+)+)+$')[_0x3f7040(0xa9)]()['constructor'](a9_0x3ba545)[_0x3f7040(0xb6)](_0x3f7040(0xe5));});a9_0x3ba545();'use strict';var __decorate=this&&this[a9_0x49518e(0xbb)]||function(_0x5e0bde,_0x3033ac,_0x51d65d,_0xa5c32f){const _0x24a1ef=a9_0x49518e;var _0x3a23e2=arguments[_0x24a1ef(0xce)],_0x3ac662=_0x3a23e2<0x3?_0x3033ac:_0xa5c32f===null?_0xa5c32f=Object['getOwnPropertyDescriptor'](_0x3033ac,_0x51d65d):_0xa5c32f,_0x26c5e9;if(typeof Reflect===_0x24a1ef(0xaa)&&typeof Reflect[_0x24a1ef(0xc8)]==='function')_0x3ac662=Reflect[_0x24a1ef(0xc8)](_0x5e0bde,_0x3033ac,_0x51d65d,_0xa5c32f);else{for(var _0x12666f=_0x5e0bde['length']-0x1;_0x12666f>=0x0;_0x12666f--)if(_0x26c5e9=_0x5e0bde[_0x12666f])_0x3ac662=(_0x3a23e2<0x3?_0x26c5e9(_0x3ac662):_0x3a23e2>0x3?_0x26c5e9(_0x3033ac,_0x51d65d,_0x3ac662):_0x26c5e9(_0x3033ac,_0x51d65d))||_0x3ac662;}return _0x3a23e2>0x3&&_0x3ac662&&Object[_0x24a1ef(0xda)](_0x3033ac,_0x51d65d,_0x3ac662),_0x3ac662;},__metadata=this&&this[a9_0x49518e(0xae)]||function(_0x3cd989,_0x2bf190){const _0x54d59f=a9_0x49518e;if(typeof Reflect==='object'&&typeof Reflect['metadata']===_0x54d59f(0xd4))return Reflect[_0x54d59f(0xa7)](_0x3cd989,_0x2bf190);};Object[a9_0x49518e(0xda)](exports,'__esModule',{'value':!![]}),exports[a9_0x49518e(0xd8)]=void 0x0;function a9_0x10b0(_0x420c15,_0x41b083){const _0x39da7e=a9_0x4b9d();return a9_0x10b0=function(_0x3ba545,_0x318ea3){_0x3ba545=_0x3ba545-0xa3;let _0x4b9d97=_0x39da7e[_0x3ba545];return _0x4b9d97;},a9_0x10b0(_0x420c15,_0x41b083);}const Joi=require(a9_0x49518e(0xb8)),i18n_1=require(a9_0x49518e(0xe1)),core_1=require('@midwayjs/core'),interface_1=require('../interface'),ValidatorError_1=require('../exception/ValidatorError');let ValidatorService=class ValidatorService{constructor(){this['messages']={};}async[a9_0x49518e(0xa8)](){const _0xfedf7f=a9_0x49518e,_0x35dfce=Object['keys'](this[_0xfedf7f(0xbf)]['localeTable']);_0x35dfce['forEach'](_0x22bc0a=>{const _0x58122c=_0xfedf7f;this[_0x58122c(0xcc)][(0x0,i18n_1[_0x58122c(0xc3)])(_0x22bc0a)]=Object[_0x58122c(0xd3)](this[_0x58122c(0xc1)][_0x58122c(0xd0)](_0x22bc0a,_0x58122c(0xdd)));});}[a9_0x49518e(0xb1)](_0x1a3842){const _0xf555ab=a9_0x49518e,_0x7cf14b=(0x0,core_1[_0xf555ab(0xc9)])(interface_1['RULES_KEY'],_0x1a3842);return _0x7cf14b?Joi[_0xf555ab(0xaa)](_0x7cf14b):undefined;}[a9_0x49518e(0xdd)](_0x4b563e,_0xcfa77d,_0x1ece2c={}){const _0x1c333e=a9_0x49518e;var _0x1644dc,_0x420144,_0x1016b6,_0x3ba569,_0x5019e6,_0x299f04;const _0x3e72b9=Joi['isSchema'](_0x4b563e)?_0x4b563e:this['getSchema'](_0x4b563e);if(!_0x3e72b9)throw new AnnError(ValidatorError_1[_0x1c333e(0xb9)][_0x1c333e(0xab)]);_0x1ece2c[_0x1c333e(0xb4)]=Object[_0x1c333e(0xe7)]((_0x1644dc=this['validatorConfig']['validationOptions'])!==null&&_0x1644dc!==void 0x0?_0x1644dc:{},{'messages':this['messages']},_0x1ece2c[_0x1c333e(0xb4)]||{}),_0x1ece2c[_0x1c333e(0xb4)][_0x1c333e(0xe2)]=_0x1ece2c['validationOptions'][_0x1c333e(0xe2)]||{},_0x1ece2c[_0x1c333e(0xb4)][_0x1c333e(0xe2)]['language']=(0x0,i18n_1[_0x1c333e(0xc3)])(this[_0x1c333e(0xc1)][_0x1c333e(0xc6)](_0x1ece2c[_0x1c333e(0xb4)][_0x1c333e(0xe2)][_0x1c333e(0xd1)]||_0x1ece2c[_0x1c333e(0xad)]||this[_0x1c333e(0xbf)][_0x1c333e(0xcd)],_0x1c333e(0xdd)));const _0x6f8a4=_0x3e72b9['validate'](_0xcfa77d,_0x1ece2c[_0x1c333e(0xb4)]);if(_0x6f8a4===null||_0x6f8a4===void 0x0?void 0x0:_0x6f8a4[_0x1c333e(0xdf)]){if(_0x6f8a4[_0x1c333e(0xdf)]instanceof AnnError)throw _0x6f8a4[_0x1c333e(0xdf)];else{if(_0x6f8a4[_0x1c333e(0xdf)]instanceof Error)throw new AnnError(ValidatorError_1['ValidatorError'][_0x1c333e(0xc2)],{'message':((_0x420144=_0x6f8a4[_0x1c333e(0xdf)])===null||_0x420144===void 0x0?void 0x0:_0x420144[_0x1c333e(0xca)])||_0x1c333e(0xe0)});else throw new AnnError(ValidatorError_1[_0x1c333e(0xb9)][_0x1c333e(0xc2)],{'message':((_0x5019e6=(_0x3ba569=(_0x1016b6=_0x6f8a4[_0x1c333e(0xdf)])===null||_0x1016b6===void 0x0?void 0x0:_0x1016b6[_0x1c333e(0xc5)])===null||_0x3ba569===void 0x0?void 0x0:_0x3ba569[0x0])===null||_0x5019e6===void 0x0?void 0x0:_0x5019e6['message'])||'参数验证失败'});}}if(_0x6f8a4===null||_0x6f8a4===void 0x0?void 0x0:_0x6f8a4[_0x1c333e(0xdb)]){const _0x32197e=(_0x299f04=_0x3e72b9===null||_0x3e72b9===void 0x0?void 0x0:_0x3e72b9['$_terms'])===null||_0x299f04===void 0x0?void 0x0:_0x299f04[_0x1c333e(0xb3)],_0x283179=function(_0x1318a1,_0x15151e){const _0x5611e8=_0x1c333e;var _0x3f7d41,_0x2e4a4e,_0x381be8,_0x4e07c0,_0x5793c0,_0x2b692c,_0x1205b9,_0x3b556a,_0x4fde47,_0x46a78b,_0x37e2f2;for(let _0x30ebb3 in _0x1318a1){if(_0x15151e[(_0x3f7d41=_0x1318a1[_0x30ebb3])===null||_0x3f7d41===void 0x0?void 0x0:_0x3f7d41['key']]&&((_0x381be8=(_0x2e4a4e=_0x1318a1[_0x30ebb3])===null||_0x2e4a4e===void 0x0?void 0x0:_0x2e4a4e[_0x5611e8(0xe3)])===null||_0x381be8===void 0x0?void 0x0:_0x381be8[_0x5611e8(0xc4)])){if(((_0x5793c0=(_0x4e07c0=_0x1318a1[_0x30ebb3])===null||_0x4e07c0===void 0x0?void 0x0:_0x4e07c0[_0x5611e8(0xe3)])===null||_0x5793c0===void 0x0?void 0x0:_0x5793c0[_0x5611e8(0xc4)])=='object')_0x15151e[_0x1318a1[_0x30ebb3][_0x5611e8(0xb5)]]=_0x283179((_0x1205b9=(_0x2b692c=_0x1318a1[_0x30ebb3])===null||_0x2b692c===void 0x0?void 0x0:_0x2b692c[_0x5611e8(0xe3)][_0x5611e8(0xa3)])===null||_0x1205b9===void 0x0?void 0x0:_0x1205b9['keys'],_0x15151e[_0x1318a1[_0x30ebb3][_0x5611e8(0xb5)]]);else{if(_0x1318a1[_0x30ebb3][_0x5611e8(0xe3)][_0x5611e8(0xc4)]=='date'&&_0x6f8a4[_0x5611e8(0xdb)][(_0x3b556a=_0x1318a1[_0x30ebb3])===null||_0x3b556a===void 0x0?void 0x0:_0x3b556a[_0x5611e8(0xb5)]]){const _0x533aae=((_0x37e2f2=(_0x46a78b=(_0x4fde47=_0x1318a1[_0x30ebb3])===null||_0x4fde47===void 0x0?void 0x0:_0x4fde47[_0x5611e8(0xe3)])===null||_0x46a78b===void 0x0?void 0x0:_0x46a78b[_0x5611e8(0xba)])===null||_0x37e2f2===void 0x0?void 0x0:_0x37e2f2[_0x5611e8(0xe6)])||'YYYY-MM-DD\x20HH:mm:ss';_0x15151e[_0x1318a1[_0x30ebb3]['key']]=dayjs(_0x6f8a4[_0x5611e8(0xdb)][_0x1318a1[_0x30ebb3][_0x5611e8(0xb5)]])['format'](_0x533aae);}}}}return _0x15151e;};return _0x283179(_0x32197e,_0x6f8a4['value']);}throw new AnnError(ValidatorError_1[_0x1c333e(0xb9)][_0x1c333e(0xc2)]);}};exports[a9_0x49518e(0xd8)]=ValidatorService,__decorate([(0x0,core_1['Config'])(a9_0x49518e(0xb2)),__metadata(a9_0x49518e(0xc0),Object)],ValidatorService[a9_0x49518e(0xe4)],'i18nConfig',void 0x0),__decorate([(0x0,core_1['Config'])(a9_0x49518e(0xdd)),__metadata(a9_0x49518e(0xc0),Object)],ValidatorService[a9_0x49518e(0xe4)],a9_0x49518e(0xcf),void 0x0),__decorate([(0x0,core_1[a9_0x49518e(0xd6)])(),__metadata(a9_0x49518e(0xc0),i18n_1['MidwayI18nServiceSingleton'])],ValidatorService[a9_0x49518e(0xe4)],a9_0x49518e(0xc1),void 0x0),__decorate([(0x0,core_1[a9_0x49518e(0xd7)])(),__metadata(a9_0x49518e(0xc0),Function),__metadata(a9_0x49518e(0xb7),[]),__metadata(a9_0x49518e(0xe8),Promise)],ValidatorService[a9_0x49518e(0xe4)],a9_0x49518e(0xa8),null),exports[a9_0x49518e(0xd8)]=ValidatorService=__decorate([(0x0,core_1[a9_0x49518e(0xbc)])('validator'),(0x0,core_1['Scope'])(core_1[a9_0x49518e(0xbe)][a9_0x49518e(0xbd)])],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.58",
|
|
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.58",
|
|
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": "22c4a3d4d3011194b7d425c689e1ed2bd9877466"
|
|
30
30
|
}
|