@anncic-api/validator 3.4.24 → 3.4.32
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_0x17afca=a0_0x5da9;(function(_0x5f04aa,_0x4c8985){const _0x2c1286=a0_0x5da9,_0x1639ee=_0x5f04aa();while(!![]){try{const _0x5b9113=-parseInt(_0x2c1286(0x133))/0x1*(-parseInt(_0x2c1286(0x13a))/0x2)+parseInt(_0x2c1286(0x134))/0x3+-parseInt(_0x2c1286(0x139))/0x4*(parseInt(_0x2c1286(0x13d))/0x5)+parseInt(_0x2c1286(0x13f))/0x6+parseInt(_0x2c1286(0x130))/0x7+-parseInt(_0x2c1286(0x12d))/0x8+parseInt(_0x2c1286(0x13b))/0x9;if(_0x5b9113===_0x4c8985)break;else _0x1639ee['push'](_0x1639ee['shift']());}catch(_0x38c8a3){_0x1639ee['push'](_0x1639ee['shift']());}}}(a0_0x367e,0xa5458));function a0_0x367e(){const _0x524a69=['string','3442649ToqQlU','constructor','search','565011LEDSmf','377574QdjQMC','toString','(((.+)+)+)+$','apply','ValidatorError','394288HpRDDo','2GnRLVg','10392300GnJbzL','PARAMS','50UteEBF','defineProperty','2846976ZkiTzV','default','9193600NVIiWh','../../locales/en_US.json'];a0_0x367e=function(){return _0x524a69;};return a0_0x367e();}const a0_0x5840b6=(function(){let _0x46793b=!![];return function(_0x5f3111,_0x5883de){const _0x590504=_0x46793b?function(){const _0x4a556a=a0_0x5da9;if(_0x5883de){const _0x3d90dd=_0x5883de[_0x4a556a(0x137)](_0x5f3111,arguments);return _0x5883de=null,_0x3d90dd;}}:function(){};return _0x46793b=![],_0x590504;};}()),a0_0x48e050=a0_0x5840b6(this,function(){const _0x1618a0=a0_0x5da9;return a0_0x48e050['toString']()[_0x1618a0(0x132)](_0x1618a0(0x136))[_0x1618a0(0x135)]()[_0x1618a0(0x131)](a0_0x48e050)[_0x1618a0(0x132)](_0x1618a0(0x136));});a0_0x48e050();function a0_0x5da9(_0xa835ef,_0x4df405){const _0x55f671=a0_0x367e();return a0_0x5da9=function(_0x48e050,_0x5840b6){_0x48e050=_0x48e050-0x12c;let _0x367e08=_0x55f671[_0x48e050];return _0x367e08;},a0_0x5da9(_0xa835ef,_0x4df405);}'use strict';Object[a0_0x17afca(0x13e)](exports,'__esModule',{'value':!![]});const ValidatorError_1=require('../exception/ValidatorError');exports[a0_0x17afca(0x12c)]={'validator':{'errorStatus':ValidatorError_1[a0_0x17afca(0x138)][a0_0x17afca(0x13c)],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':a0_0x17afca(0x12f)}},'i18n':{'localeTable':{'en_US':{'validator':require(a0_0x17afca(0x12e))},'zh_CN':{'validator':require('../../locales/zh_CN.json')}}}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a1_0x35c25e=a1_0x5a3b;function a1_0x5a3b(_0x1ad069,_0x2f858f){const _0x586016=a1_0x7a6c();return a1_0x5a3b=function(_0x5d772f,_0x4cab57){_0x5d772f=_0x5d772f-0xc9;let _0x7a6cc8=_0x586016[_0x5d772f];return _0x7a6cc8;},a1_0x5a3b(_0x1ad069,_0x2f858f);}(function(_0x23b735,_0x3f69da){const _0x4ba817=a1_0x5a3b,_0x4aabef=_0x23b735();while(!![]){try{const _0x5aad78=-parseInt(_0x4ba817(0xe5))/0x1*(parseInt(_0x4ba817(0x103))/0x2)+parseInt(_0x4ba817(0xd3))/0x3+parseInt(_0x4ba817(0x104))/0x4*(parseInt(_0x4ba817(0xe9))/0x5)+-parseInt(_0x4ba817(0xef))/0x6*(-parseInt(_0x4ba817(0xd9))/0x7)+parseInt(_0x4ba817(0xeb))/0x8+-parseInt(_0x4ba817(0xce))/0x9+-parseInt(_0x4ba817(0xf5))/0xa*(parseInt(_0x4ba817(0xfd))/0xb);if(_0x5aad78===_0x3f69da)break;else _0x4aabef['push'](_0x4aabef['shift']());}catch(_0xacf0c8){_0x4aabef['push'](_0x4aabef['shift']());}}}(a1_0x7a6c,0xa6edb));const a1_0x4cab57=(function(){let _0x113681=!![];return function(_0x8e0c6,_0x13193a){const _0x246e1f=_0x113681?function(){const _0x34923a=a1_0x5a3b;if(_0x13193a){const _0xa48e5=_0x13193a[_0x34923a(0xfc)](_0x8e0c6,arguments);return _0x13193a=null,_0xa48e5;}}:function(){};return _0x113681=![],_0x246e1f;};}()),a1_0x5d772f=a1_0x4cab57(this,function(){const _0x4680f2=a1_0x5a3b;return a1_0x5d772f[_0x4680f2(0xdc)]()[_0x4680f2(0xd6)]('(((.+)+)+)+$')[_0x4680f2(0xdc)]()['constructor'](a1_0x5d772f)['search'](_0x4680f2(0xc9));});a1_0x5d772f();'use strict';var __decorate=this&&this[a1_0x35c25e(0xd8)]||function(_0x26f7e3,_0x50775d,_0xfa5cc,_0x2ed026){const _0x2edcba=a1_0x35c25e;var _0x2127e5=arguments['length'],_0x5a3669=_0x2127e5<0x3?_0x50775d:_0x2ed026===null?_0x2ed026=Object[_0x2edcba(0xfa)](_0x50775d,_0xfa5cc):_0x2ed026,_0x2fd19d;if(typeof Reflect===_0x2edcba(0xf1)&&typeof Reflect[_0x2edcba(0xd1)]===_0x2edcba(0x102))_0x5a3669=Reflect['decorate'](_0x26f7e3,_0x50775d,_0xfa5cc,_0x2ed026);else{for(var _0x3f9f42=_0x26f7e3[_0x2edcba(0xda)]-0x1;_0x3f9f42>=0x0;_0x3f9f42--)if(_0x2fd19d=_0x26f7e3[_0x3f9f42])_0x5a3669=(_0x2127e5<0x3?_0x2fd19d(_0x5a3669):_0x2127e5>0x3?_0x2fd19d(_0x50775d,_0xfa5cc,_0x5a3669):_0x2fd19d(_0x50775d,_0xfa5cc))||_0x5a3669;}return _0x2127e5>0x3&&_0x5a3669&&Object[_0x2edcba(0xee)](_0x50775d,_0xfa5cc,_0x5a3669),_0x5a3669;},__metadata=this&&this[a1_0x35c25e(0xea)]||function(_0x2c4665,_0x43bb3a){const _0x1ebc81=a1_0x35c25e;if(typeof Reflect===_0x1ebc81(0xf1)&&typeof Reflect['metadata']==='function')return Reflect[_0x1ebc81(0xe4)](_0x2c4665,_0x43bb3a);};Object['defineProperty'](exports,a1_0x35c25e(0xfe),{'value':!![]}),exports[a1_0x35c25e(0xf0)]=void 0x0;const i18n_1=require('@midwayjs/i18n'),core_1=require(a1_0x35c25e(0xf8)),core_2=require(a1_0x35c25e(0xf8)),interface_1=require(a1_0x35c25e(0xf3)),ValidatorService_1=require(a1_0x35c25e(0xd5)),i18n=require(a1_0x35c25e(0xd0)),anncic=require(a1_0x35c25e(0xf7)),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x6de1d5=a1_0x35c25e;this['decorator'][_0x6de1d5(0xe6)](interface_1['VALIDATOR_KEY'],_0x288fae=>{const _0x5cf99a=_0x6de1d5,_0x35f0de=_0x288fae[_0x5cf99a(0xe4)],_0x42c3de=(0x0,core_2[_0x5cf99a(0xf9)])(_0x288fae[_0x5cf99a(0xe3)],_0x288fae['propertyName']);return{'before':_0x4d367e=>{const _0x520b25=_0x5cf99a;var _0xd05c13,_0x4c0c83,_0x3311a4,_0x462ae6,_0x1662e7,_0x30f239,_0x9a1363,_0x1cbe1b,_0x81a5a2,_0x568a86,_0x562134,_0x568fb8,_0x3853da;const _0x531044=_0x4d367e[_0x520b25(0xe3)][core_1[_0x520b25(0xe2)]],_0x4bc761=Object[_0x520b25(0x105)]({},((_0xd05c13=_0x531044===null||_0x531044===void 0x0?void 0x0:_0x531044[_0x520b25(0xdf)])===null||_0xd05c13===void 0x0?void 0x0:_0xd05c13[_0x520b25(0xfb)])||{},((_0x4c0c83=_0x531044===null||_0x531044===void 0x0?void 0x0:_0x531044[_0x520b25(0xdf)])===null||_0x4c0c83===void 0x0?void 0x0:_0x4c0c83[_0x520b25(0xcf)])||{}),_0x106e64=((0x0,core_2[_0x520b25(0xf6)])(interface_1[_0x520b25(0xcb)],_0x4d367e['target'])||[])[_0x520b25(0xcc)](_0x13f729=>_0x13f729[_0x520b25(0xde)]==_0x4d367e[_0x520b25(0xdb)]);!(_0x35f0de===null||_0x35f0de===void 0x0?void 0x0:_0x35f0de[_0x520b25(0x101)])&&_0x531044&&_0x531044[_0x520b25(0x100)]&&(_0x35f0de[_0x520b25(0x101)]=_0x531044[_0x520b25(0x100)](i18n_1[_0x520b25(0xff)]));for(let _0x39ae31=0x0;_0x39ae31<_0x42c3de[_0x520b25(0xda)];_0x39ae31++){const _0x21ad40=_0x42c3de[_0x39ae31],_0x49d62a=this['ValidatorService'][_0x520b25(0xed)](_0x21ad40);if(_0x49d62a){if(typeof _0x4d367e['args'][_0x39ae31]=='undefined'||((_0x3311a4=_0x4d367e['args'][_0x39ae31])===null||_0x3311a4===void 0x0?void 0x0:_0x3311a4[_0x520b25(0xdf)])&&((_0x462ae6=_0x4d367e[_0x520b25(0xe8)][_0x39ae31])===null||_0x462ae6===void 0x0?void 0x0:_0x462ae6['res'])&&((_0x1662e7=_0x4d367e[_0x520b25(0xe8)][_0x39ae31])===null||_0x1662e7===void 0x0?void 0x0:_0x1662e7['req']))_0x4d367e[_0x520b25(0xe8)][_0x39ae31]=_0x4bc761;else((_0x30f239=_0x4d367e['args'][_0x39ae31])===null||_0x30f239===void 0x0?void 0x0:_0x30f239[_0x520b25(0xf4)])==_0x520b25(0xd2)&&_0x4d367e[_0x520b25(0xe8)]['splice'](_0x39ae31,0x0,_0x4bc761);const _0x527656=this[_0x520b25(0xdd)][_0x520b25(0xf2)](_0x49d62a,_0x4d367e[_0x520b25(0xe8)][_0x39ae31],_0x35f0de);_0x527656&&(_0x4d367e[_0x520b25(0xe8)][_0x39ae31]=_0x527656);}else{if((_0x106e64===null||_0x106e64===void 0x0?void 0x0:_0x106e64[_0x520b25(0xec)][_0x39ae31])&&((_0x9a1363=_0x4d367e[_0x520b25(0xe8)][_0x39ae31])===null||_0x9a1363===void 0x0?void 0x0:_0x9a1363[_0x520b25(0xcd)])&&typeof _0x4d367e['args'][_0x39ae31]['param']==_0x520b25(0x102)&&((_0x1cbe1b=_0x531044===null||_0x531044===void 0x0?void 0x0:_0x531044[_0x520b25(0xcd)])===null||_0x1cbe1b===void 0x0?void 0x0:_0x1cbe1b[_0x106e64[_0x520b25(0xec)][_0x39ae31]]))_0x4d367e['args'][_0x39ae31]=_0x21ad40((_0x81a5a2=_0x531044===null||_0x531044===void 0x0?void 0x0:_0x531044[_0x520b25(0xcd)])===null||_0x81a5a2===void 0x0?void 0x0:_0x81a5a2[_0x106e64[_0x520b25(0xec)][_0x39ae31]]);else(_0x106e64===null||_0x106e64===void 0x0?void 0x0:_0x106e64[_0x520b25(0xec)][_0x39ae31])&&((_0x562134=(_0x568a86=_0x4d367e[_0x520b25(0xe8)][_0x39ae31])===null||_0x568a86===void 0x0?void 0x0:_0x568a86[_0x520b25(0xcd)])===null||_0x562134===void 0x0?void 0x0:_0x562134[_0x106e64[_0x520b25(0xec)][_0x39ae31]])&&(_0x4d367e[_0x520b25(0xe8)][_0x39ae31]=(_0x3853da=(_0x568fb8=_0x4d367e['args'][_0x39ae31])===null||_0x568fb8===void 0x0?void 0x0:_0x568fb8['params'])===null||_0x3853da===void 0x0?void 0x0:_0x3853da[_0x106e64['methodArgs'][_0x39ae31]]);}}},'afterThrow':(_0x5e52be,_0x290dcd)=>{throw _0x290dcd;}};});}};function a1_0x7a6c(){const _0x3d2714=['function','881096jxytvQ','536BwxyWs','assign','(((.+)+)+)+$','anncic-api:validator','VALIDATOR_KEY','find','params','8830116ScSZJT','body','@midwayjs/i18n','decorate','bound\x20dispatch','3360786xLQmmF','design:type','./service/ValidatorService','search','MidwayDecoratorService','__decorate','14hqtYUb','length','methodName','toString','ValidatorService','method','request','prototype','Inject','REQUEST_OBJ_CTX_KEY','target','metadata','2TeBUSQ','registerMethodHandler','Configuration','args','48480UXcvNh','__metadata','630416OfZZSy','methodArgs','getSchema','defineProperty','3620250NPtCml','CustomConfiguration','object','validator','./interface','name','99070QVGIhs','getClassMetadata','@anncic-api/core','@midwayjs/core','getMethodParamTypes','getOwnPropertyDescriptor','query','apply','1287zUMBMb','__esModule','I18N_ATTR_KEY','getAttr','locale'];a1_0x7a6c=function(){return _0x3d2714;};return a1_0x7a6c();}exports[a1_0x35c25e(0xf0)]=CustomConfiguration,__decorate([(0x0,core_2['Inject'])(),__metadata('design:type',core_1[a1_0x35c25e(0xd7)])],CustomConfiguration[a1_0x35c25e(0xe0)],'decorator',void 0x0),__decorate([(0x0,core_2[a1_0x35c25e(0xe1)])(),__metadata(a1_0x35c25e(0xd4),ValidatorService_1['ValidatorService'])],CustomConfiguration['prototype'],a1_0x35c25e(0xdd),void 0x0),exports['CustomConfiguration']=CustomConfiguration=__decorate([(0x0,core_2[a1_0x35c25e(0xe7)])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':a1_0x35c25e(0xca),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
|
package/dist/decorator/Rule.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a2_0x2968(_0x28a1f3,_0x2a1d56){const _0x102813=a2_0x52b3();return a2_0x2968=function(_0x53552f,_0x32be54){_0x53552f=_0x53552f-0x169;let _0x52b303=_0x102813[_0x53552f];return _0x52b303;},a2_0x2968(_0x28a1f3,_0x2a1d56);}const a2_0x2ca648=a2_0x2968;(function(_0x472218,_0x33655b){const _0x294845=a2_0x2968,_0x2a9ceb=_0x472218();while(!![]){try{const _0x5c3db8=-parseInt(_0x294845(0x170))/0x1*(-parseInt(_0x294845(0x18a))/0x2)+-parseInt(_0x294845(0x16a))/0x3*(parseInt(_0x294845(0x185))/0x4)+parseInt(_0x294845(0x169))/0x5*(-parseInt(_0x294845(0x18c))/0x6)+-parseInt(_0x294845(0x177))/0x7+-parseInt(_0x294845(0x179))/0x8+-parseInt(_0x294845(0x183))/0x9+parseInt(_0x294845(0x17c))/0xa;if(_0x5c3db8===_0x33655b)break;else _0x2a9ceb['push'](_0x2a9ceb['shift']());}catch(_0x3997fc){_0x2a9ceb['push'](_0x2a9ceb['shift']());}}}(a2_0x52b3,0x444b7));const a2_0x32be54=(function(){let _0x4741a6=!![];return function(_0x5e8486,_0x1ddc45){const _0x1e833f=_0x4741a6?function(){if(_0x1ddc45){const _0x25588a=_0x1ddc45['apply'](_0x5e8486,arguments);return _0x1ddc45=null,_0x25588a;}}:function(){};return _0x4741a6=![],_0x1e833f;};}()),a2_0x53552f=a2_0x32be54(this,function(){const _0x46ce98=a2_0x2968;return a2_0x53552f[_0x46ce98(0x173)]()[_0x46ce98(0x18d)]('(((.+)+)+)+$')[_0x46ce98(0x173)]()[_0x46ce98(0x16f)](a2_0x53552f)[_0x46ce98(0x18d)](_0x46ce98(0x17f));});function a2_0x52b3(){const _0x115d5e=['label','isSchema','defineProperty','2437686TjqQSZ','object','48TNmolJ','getPropertyType','RULES_KEY','getClassMetadata','__esModule','100342tlJaYv','map','462IbFGXo','search','default','array','9385WaLpgP','24696DosbVt','RuleType','keys','@midwayjs/core','function','constructor','5HAExmq','extend','joi','toString','name','Rule','items','2848230quKGRE','@joi/date','2772984fwxjuJ','../interface','description','12965600jcTGyO','meta','saveClassMetadata','(((.+)+)+)+$'];a2_0x52b3=function(){return _0x115d5e;};return a2_0x52b3();}a2_0x53552f();'use strict';Object[a2_0x2ca648(0x182)](exports,a2_0x2ca648(0x189),{'value':!![]}),exports[a2_0x2ca648(0x175)]=exports[a2_0x2ca648(0x16b)]=void 0x0;const joi=require(a2_0x2ca648(0x172)),date_1=require(a2_0x2ca648(0x178)),core_1=require(a2_0x2ca648(0x16d)),interface_1=require(a2_0x2ca648(0x17a));exports['RuleType']=joi[a2_0x2ca648(0x171)](date_1[a2_0x2ca648(0x18e)]);function Rule(_0x5b4c06,_0x52c20a,_0x1b3f14=''){return(_0x173e1a,_0x17339d)=>{const _0x88e60b=a2_0x2968;var _0x4e826c;if(_0x17339d)!joi[_0x88e60b(0x181)](_0x52c20a)&&(_0x52c20a===null||_0x52c20a===void 0x0?void 0x0:_0x52c20a[_0x88e60b(0x174)])&&(_0x52c20a=joi[_0x88e60b(0x184)]((0x0,core_1['getClassMetadata'])(interface_1[_0x88e60b(0x187)],_0x52c20a))[_0x88e60b(0x17d)]({'id':_0x52c20a[_0x88e60b(0x174)]}),(0x0,core_1[_0x88e60b(0x186)])(_0x173e1a,_0x17339d)['name']==='Array'&&(_0x52c20a=joi[_0x88e60b(0x18f)]()[_0x88e60b(0x176)](_0x52c20a))),joi['isSchema'](_0x52c20a)&&(_0x5b4c06&&typeof(_0x52c20a===null||_0x52c20a===void 0x0?void 0x0:_0x52c20a[_0x88e60b(0x180)])==_0x88e60b(0x16e)&&(_0x52c20a=_0x52c20a[_0x88e60b(0x180)](_0x5b4c06)),_0x1b3f14&&typeof(_0x52c20a===null||_0x52c20a===void 0x0?void 0x0:_0x52c20a[_0x88e60b(0x17b)])==_0x88e60b(0x16e)&&(_0x52c20a=_0x52c20a[_0x88e60b(0x17b)](_0x1b3f14)),(0x0,core_1['attachClassMetadata'])(interface_1[_0x88e60b(0x187)],_0x52c20a,_0x173e1a,_0x17339d));else{const _0x532fc1=(0x0,core_1[_0x88e60b(0x188)])(interface_1[_0x88e60b(0x187)],_0x52c20a);if(_0x532fc1){let _0x57be82=(_0x4e826c=(0x0,core_1[_0x88e60b(0x188)])(interface_1[_0x88e60b(0x187)],_0x173e1a))!==null&&_0x4e826c!==void 0x0?_0x4e826c:{};Object[_0x88e60b(0x16c)](_0x532fc1)[_0x88e60b(0x18b)](_0x5c29f5=>{!_0x57be82[_0x5c29f5]&&(_0x57be82[_0x5c29f5]=_0x532fc1[_0x5c29f5]);}),(0x0,core_1[_0x88e60b(0x17e)])(interface_1['RULES_KEY'],_0x57be82,_0x173e1a);}}};}exports[a2_0x2ca648(0x175)]=Rule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a3_0x2de6(){const _0x3541fc=['attachClassMetadata','@midwayjs/core','prototype','Validator','function','defineProperty','485567QzqpLf','679184jlpBIq','1566RKeSWu','(((.+)+)+)+$','7592uuPDSM','slice','toString','search','__esModule','match','createCustomMethodDecorator','getFuncArgs','../interface','703927omMtLE','4320TtGfLy','indexOf','3301780YRpbsP','906006qtePJD','apply','constructor','17739kNcgRC','replace','VALIDATOR_KEY'];a3_0x2de6=function(){return _0x3541fc;};return a3_0x2de6();}const a3_0x1ac209=a3_0x43e5;(function(_0x4baa1e,_0x4e61d7){const _0x7fcd21=a3_0x43e5,_0x2aff46=_0x4baa1e();while(!![]){try{const _0x55a4aa=-parseInt(_0x7fcd21(0x1ee))/0x1+parseInt(_0x7fcd21(0x1ef))/0x2+-parseInt(_0x7fcd21(0x1f0))/0x3*(parseInt(_0x7fcd21(0x1f2))/0x4)+parseInt(_0x7fcd21(0x1fe))/0x5+parseInt(_0x7fcd21(0x1ff))/0x6+-parseInt(_0x7fcd21(0x1fb))/0x7+parseInt(_0x7fcd21(0x1fc))/0x8*(parseInt(_0x7fcd21(0x1e5))/0x9);if(_0x55a4aa===_0x4e61d7)break;else _0x2aff46['push'](_0x2aff46['shift']());}catch(_0x287fe9){_0x2aff46['push'](_0x2aff46['shift']());}}}(a3_0x2de6,0x9bdc5));const a3_0x2cecf1=(function(){let _0x51b426=!![];return function(_0x34269b,_0x2b0a2f){const _0x3cccc6=_0x51b426?function(){const _0x5b5111=a3_0x43e5;if(_0x2b0a2f){const _0x432257=_0x2b0a2f[_0x5b5111(0x200)](_0x34269b,arguments);return _0x2b0a2f=null,_0x432257;}}:function(){};return _0x51b426=![],_0x3cccc6;};}()),a3_0xb12207=a3_0x2cecf1(this,function(){const _0x2522b9=a3_0x43e5;return a3_0xb12207[_0x2522b9(0x1f4)]()[_0x2522b9(0x1f5)](_0x2522b9(0x1f1))[_0x2522b9(0x1f4)]()[_0x2522b9(0x1e4)](a3_0xb12207)[_0x2522b9(0x1f5)](_0x2522b9(0x1f1));});a3_0xb12207();'use strict';Object[a3_0x1ac209(0x1ed)](exports,a3_0x1ac209(0x1f6),{'value':!![]}),exports[a3_0x1ac209(0x1f9)]=exports['Validator']=void 0x0;const core_1=require(a3_0x1ac209(0x1e9)),interface_1=require(a3_0x1ac209(0x1fa));function a3_0x43e5(_0x41e4e8,_0x36532e){const _0x2e72d5=a3_0x2de6();return a3_0x43e5=function(_0xb12207,_0x2cecf1){_0xb12207=_0xb12207-0x1e4;let _0x2de659=_0x2e72d5[_0xb12207];return _0x2de659;},a3_0x43e5(_0x41e4e8,_0x36532e);}function Validator(_0x589dfe={}){return(_0x2b74b1,_0x353aa7,_0x1d1fed)=>{const _0x31e9e2=a3_0x43e5,_0x2eb8c2=getFuncArgs(_0x2b74b1[_0x353aa7]);(0x0,core_1[_0x31e9e2(0x1e8)])(interface_1[_0x31e9e2(0x1e7)],{'method':_0x353aa7,'methodArgs':_0x2eb8c2},_0x2b74b1),(0x0,core_1[_0x31e9e2(0x1f8)])(interface_1[_0x31e9e2(0x1e7)],_0x589dfe)(_0x2b74b1,_0x353aa7,_0x1d1fed);};}exports[a3_0x1ac209(0x1eb)]=Validator;function getFuncArgs(_0x47b8a7){const _0x5dce47=a3_0x1ac209;if(typeof _0x47b8a7==_0x5dce47(0x1ec)){const _0x2db423=/=>.*$/mg,_0x11985d=/=[^,)]+/mg,_0x3d8d08=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x123a54=(_0x47b8a7['prototype']?_0x47b8a7[_0x5dce47(0x1ea)][_0x5dce47(0x1e4)]['toString']():_0x47b8a7[_0x5dce47(0x1f4)]())['replace'](_0x3d8d08,'')[_0x5dce47(0x1e6)](_0x2db423,'')[_0x5dce47(0x1e6)](_0x11985d,''),_0x210afe=_0x123a54[_0x5dce47(0x1f3)](_0x123a54[_0x5dce47(0x1fd)]('(')+0x1,_0x123a54[_0x5dce47(0x1fd)](')'))[_0x5dce47(0x1f7)](/([^\s,]+)/g)||[];return _0x210afe;}}exports['getFuncArgs']=getFuncArgs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a4_0x4bdaee=a4_0x20a5;(function(_0x5c3c9e,_0x42a3af){var _0x199139=a4_0x20a5,_0x57159a=_0x5c3c9e();while(!![]){try{var _0x51d275=parseInt(_0x199139(0xac))/0x1+-parseInt(_0x199139(0x97))/0x2*(parseInt(_0x199139(0x98))/0x3)+-parseInt(_0x199139(0x9b))/0x4*(-parseInt(_0x199139(0xa6))/0x5)+-parseInt(_0x199139(0x93))/0x6*(-parseInt(_0x199139(0xa8))/0x7)+parseInt(_0x199139(0x94))/0x8*(-parseInt(_0x199139(0xa5))/0x9)+-parseInt(_0x199139(0xa0))/0xa+parseInt(_0x199139(0xa3))/0xb*(parseInt(_0x199139(0x9e))/0xc);if(_0x51d275===_0x42a3af)break;else _0x57159a['push'](_0x57159a['shift']());}catch(_0x355bb4){_0x57159a['push'](_0x57159a['shift']());}}}(a4_0x54c2,0x86236));function a4_0x20a5(_0xafd829,_0x573756){var _0x5e87a7=a4_0x54c2();return a4_0x20a5=function(_0xecb520,_0xdad27a){_0xecb520=_0xecb520-0x90;var _0x54c25f=_0x5e87a7[_0xecb520];return _0x54c25f;},a4_0x20a5(_0xafd829,_0x573756);}var a4_0xdad27a=(function(){var _0x88e41f=!![];return function(_0x432296,_0x315a52){var _0x46f208=_0x88e41f?function(){var _0x5674b8=a4_0x20a5;if(_0x315a52){var _0x41360c=_0x315a52[_0x5674b8(0x9c)](_0x432296,arguments);return _0x315a52=null,_0x41360c;}}:function(){};return _0x88e41f=![],_0x46f208;};}()),a4_0xecb520=a4_0xdad27a(this,function(){var _0x232b00=a4_0x20a5;return a4_0xecb520[_0x232b00(0xa4)]()[_0x232b00(0xab)]('(((.+)+)+)+$')[_0x232b00(0xa4)]()[_0x232b00(0xa2)](a4_0xecb520)['search']('(((.+)+)+)+$');});a4_0xecb520();'use strict';var __decorate=this&&this[a4_0x4bdaee(0xa1)]||function(_0x12bdad,_0x5545f6,_0x423c16,_0x250a35){var _0x53a973=a4_0x4bdaee,_0x14eac1=arguments['length'],_0x1b9506=_0x14eac1<0x3?_0x5545f6:_0x250a35===null?_0x250a35=Object[_0x53a973(0x99)](_0x5545f6,_0x423c16):_0x250a35,_0x56f6e3;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x53a973(0x96))_0x1b9506=Reflect[_0x53a973(0x9a)](_0x12bdad,_0x5545f6,_0x423c16,_0x250a35);else{for(var _0x4011fa=_0x12bdad[_0x53a973(0x91)]-0x1;_0x4011fa>=0x0;_0x4011fa--)if(_0x56f6e3=_0x12bdad[_0x4011fa])_0x1b9506=(_0x14eac1<0x3?_0x56f6e3(_0x1b9506):_0x14eac1>0x3?_0x56f6e3(_0x5545f6,_0x423c16,_0x1b9506):_0x56f6e3(_0x5545f6,_0x423c16))||_0x1b9506;}return _0x14eac1>0x3&&_0x1b9506&&Object[_0x53a973(0x92)](_0x5545f6,_0x423c16,_0x1b9506),_0x1b9506;},__metadata=this&&this[a4_0x4bdaee(0xa7)]||function(_0x462e65,_0x4180ee){var _0x2370cb=a4_0x4bdaee;if(typeof Reflect==='object'&&typeof Reflect['metadata']===_0x2370cb(0x96))return Reflect['metadata'](_0x462e65,_0x4180ee);};Object['defineProperty'](exports,a4_0x4bdaee(0x90),{'value':!![]}),exports[a4_0x4bdaee(0xa9)]=void 0x0;const core_1=require('@anncic-api/core');class ValidatorError extends AnnError{}exports[a4_0x4bdaee(0xa9)]=ValidatorError,ValidatorError['PARAMS']=0x18c1e,ValidatorError[a4_0x4bdaee(0xad)]=0x18c1c,__decorate([(0x0,core_1[a4_0x4bdaee(0xaa)])(a4_0x4bdaee(0x95)),__metadata(a4_0x4bdaee(0x9d),Object)],ValidatorError,a4_0x4bdaee(0x9f),void 0x0),__decorate([(0x0,core_1[a4_0x4bdaee(0xaa)])(a4_0x4bdaee(0x95)),__metadata('design:type',Object)],ValidatorError,a4_0x4bdaee(0xad),void 0x0);function a4_0x54c2(){var _0x40b98e=['decorate','836WGVHLN','apply','design:type','5863224FRuwzu','PARAMS','10013880RZDhKa','__decorate','constructor','44KRjftF','toString','7434396gFxPLJ','495TsRCit','__metadata','14zDVgGj','ValidatorError','AnnErrorMsg','search','665028qVUdUu','NOFIND_SCHEMA','__esModule','length','defineProperty','237138XIqCfV','8BRvuWm','参数验证失败','function','2usXHRE','1026933dNeTru','getOwnPropertyDescriptor'];a4_0x54c2=function(){return _0x40b98e;};return a4_0x54c2();}
|
package/dist/helper/dtoHelper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x1cf896=a5_0x3266;(function(_0x2da275,_0x32ebe7){const _0x42b612=a5_0x3266,_0x533cfa=_0x2da275();while(!![]){try{const _0x5db56c=-parseInt(_0x42b612(0x14a))/0x1*(-parseInt(_0x42b612(0x14f))/0x2)+-parseInt(_0x42b612(0x15b))/0x3*(-parseInt(_0x42b612(0x154))/0x4)+-parseInt(_0x42b612(0x155))/0x5*(-parseInt(_0x42b612(0x164))/0x6)+parseInt(_0x42b612(0x162))/0x7*(parseInt(_0x42b612(0x15d))/0x8)+-parseInt(_0x42b612(0x161))/0x9*(-parseInt(_0x42b612(0x14e))/0xa)+parseInt(_0x42b612(0x151))/0xb*(parseInt(_0x42b612(0x15e))/0xc)+-parseInt(_0x42b612(0x14b))/0xd;if(_0x5db56c===_0x32ebe7)break;else _0x533cfa['push'](_0x533cfa['shift']());}catch(_0x147058){_0x533cfa['push'](_0x533cfa['shift']());}}}(a5_0x48f4,0xf28fa));function a5_0x3266(_0x599c8b,_0x594b86){const _0x58cb4a=a5_0x48f4();return a5_0x3266=function(_0x6c62d9,_0x501ce2){_0x6c62d9=_0x6c62d9-0x148;let _0x48f4e9=_0x58cb4a[_0x6c62d9];return _0x48f4e9;},a5_0x3266(_0x599c8b,_0x594b86);}const a5_0x501ce2=(function(){let _0x16debb=!![];return function(_0x48f8ee,_0x3c95ac){const _0x1a547c=_0x16debb?function(){const _0x5a2ae8=a5_0x3266;if(_0x3c95ac){const _0x17a438=_0x3c95ac[_0x5a2ae8(0x158)](_0x48f8ee,arguments);return _0x3c95ac=null,_0x17a438;}}:function(){};return _0x16debb=![],_0x1a547c;};}()),a5_0x6c62d9=a5_0x501ce2(this,function(){const _0x2e7b4d=a5_0x3266;return a5_0x6c62d9[_0x2e7b4d(0x152)]()[_0x2e7b4d(0x153)]('(((.+)+)+)+$')['toString']()[_0x2e7b4d(0x150)](a5_0x6c62d9)['search'](_0x2e7b4d(0x149));});a5_0x6c62d9();'use strict';function a5_0x48f4(){const _0x3e7288=['RULES_KEY','getClassExtendedMetadata','159NvwWHZ','@midwayjs/core','8WdmfWb','17004EEuVaW','../interface','prototype','6223599nQuVyZ','13352437BciJuw','defineProperty','11478vsTbBQ','OmitDto','(((.+)+)+)+$','67559NvuHft','61456343csqNNi','assign','PickDto','20OwAYMx','34UAZJdm','constructor','5159oRenxN','toString','search','32588EnPpzP','485GKOMsw','saveClassMetadata','__esModule','apply'];a5_0x48f4=function(){return _0x3e7288;};return a5_0x48f4();}Object[a5_0x1cf896(0x163)](exports,a5_0x1cf896(0x157),{'value':!![]}),exports['OmitDto']=exports[a5_0x1cf896(0x14d)]=void 0x0;const core_1=require(a5_0x1cf896(0x15c)),interface_1=require(a5_0x1cf896(0x15f));function PickDto(_0xa3ed76,_0x14461b){const _0x29a26c=a5_0x1cf896,_0x1f2879=function(){};_0x1f2879[_0x29a26c(0x160)]=_0xa3ed76['prototype'];const _0x41ff2e=(0x0,core_1['getClassExtendedMetadata'])(interface_1[_0x29a26c(0x159)],_0xa3ed76),_0x3adf57={};for(const _0x456600 of _0x14461b){_0x41ff2e[_0x456600]&&(_0x3adf57[_0x456600]=_0x41ff2e[_0x456600]);}return(0x0,core_1[_0x29a26c(0x156)])(interface_1['RULES_KEY'],_0x3adf57,_0x1f2879),_0x1f2879;}exports[a5_0x1cf896(0x14d)]=PickDto;function OmitDto(_0x2a47c1,_0x13d647){const _0x8670a7=a5_0x1cf896,_0x39e61b=function(){};_0x39e61b[_0x8670a7(0x160)]=_0x2a47c1[_0x8670a7(0x160)];const _0x141742=(0x0,core_1[_0x8670a7(0x15a)])(interface_1[_0x8670a7(0x159)],_0x2a47c1),_0x30e734=Object[_0x8670a7(0x14c)]({},_0x141742);for(const _0x360784 of _0x13d647){delete _0x30e734[_0x360784];}return(0x0,core_1[_0x8670a7(0x156)])(interface_1[_0x8670a7(0x159)],_0x30e734,_0x39e61b),_0x39e61b;}exports[a5_0x1cf896(0x148)]=OmitDto;
|
package/dist/helper/getSchema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a6_0x2d72de=a6_0x192d;(function(_0x536dac,_0x29b0ee){const _0x8fc2f5=a6_0x192d,_0x2a52a3=_0x536dac();while(!![]){try{const _0x440663=parseInt(_0x8fc2f5(0x207))/0x1+parseInt(_0x8fc2f5(0x1f9))/0x2+-parseInt(_0x8fc2f5(0x1f7))/0x3+parseInt(_0x8fc2f5(0x203))/0x4*(parseInt(_0x8fc2f5(0x1f6))/0x5)+-parseInt(_0x8fc2f5(0x1ff))/0x6*(-parseInt(_0x8fc2f5(0x1f5))/0x7)+parseInt(_0x8fc2f5(0x206))/0x8*(parseInt(_0x8fc2f5(0x201))/0x9)+parseInt(_0x8fc2f5(0x205))/0xa*(-parseInt(_0x8fc2f5(0x1fe))/0xb);if(_0x440663===_0x29b0ee)break;else _0x2a52a3['push'](_0x2a52a3['shift']());}catch(_0x26092b){_0x2a52a3['push'](_0x2a52a3['shift']());}}}(a6_0x3b3e,0x31e29));const a6_0x281b08=(function(){let _0x59eadf=!![];return function(_0x5a3f98,_0xd6083e){const _0x20bfd4=_0x59eadf?function(){const _0x1fedd8=a6_0x192d;if(_0xd6083e){const _0x2aaef5=_0xd6083e[_0x1fedd8(0x1f8)](_0x5a3f98,arguments);return _0xd6083e=null,_0x2aaef5;}}:function(){};return _0x59eadf=![],_0x20bfd4;};}()),a6_0x3721c1=a6_0x281b08(this,function(){const _0x275d33=a6_0x192d;return a6_0x3721c1[_0x275d33(0x1f3)]()[_0x275d33(0x1fa)](_0x275d33(0x204))['toString']()[_0x275d33(0x200)](a6_0x3721c1)[_0x275d33(0x1fa)](_0x275d33(0x204));});a6_0x3721c1();function a6_0x3b3e(){const _0x28b436=['139375JujysH','defineProperty','@midwayjs/core','__esModule','toString','getSchema','1615299CHuRgh','23930VaOAqJ','1118994IkUQOa','apply','511904EawUjP','search','getClassExtendedMetadata','object','RULES_KEY','11aRLzxg','6MWiNbA','constructor','2682cuadjJ','../interface','100mPOLjN','(((.+)+)+)+$','4196210wjeHaz','6744TEhZmw'];a6_0x3b3e=function(){return _0x28b436;};return a6_0x3b3e();}'use strict';Object[a6_0x2d72de(0x208)](exports,a6_0x2d72de(0x20a),{'value':!![]}),exports['getSchema']=void 0x0;function a6_0x192d(_0x4ab739,_0x28291b){const _0x47ff6c=a6_0x3b3e();return a6_0x192d=function(_0x3721c1,_0x281b08){_0x3721c1=_0x3721c1-0x1f3;let _0x3b3ec6=_0x47ff6c[_0x3721c1];return _0x3b3ec6;},a6_0x192d(_0x4ab739,_0x28291b);}const Joi=require('joi'),core_1=require(a6_0x2d72de(0x209)),interface_1=require(a6_0x2d72de(0x202));function getSchema(_0x1717ba){const _0x3eb1c6=a6_0x2d72de,_0x537701=(0x0,core_1[_0x3eb1c6(0x1fb)])(interface_1[_0x3eb1c6(0x1fd)],_0x1717ba);if(_0x537701)return Joi[_0x3eb1c6(0x1fc)](_0x537701);}exports[a6_0x2d72de(0x1f4)]=getSchema;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a7_0x2a4a22=a7_0x2b01;(function(_0x4c5f49,_0x1e47fa){var _0x22bbc9=a7_0x2b01,_0x5f6a8=_0x4c5f49();while(!![]){try{var _0x514ba4=-parseInt(_0x22bbc9(0x138))/0x1*(-parseInt(_0x22bbc9(0x135))/0x2)+parseInt(_0x22bbc9(0x12a))/0x3*(parseInt(_0x22bbc9(0x119))/0x4)+parseInt(_0x22bbc9(0x122))/0x5+-parseInt(_0x22bbc9(0x137))/0x6+parseInt(_0x22bbc9(0x123))/0x7+parseInt(_0x22bbc9(0x128))/0x8+parseInt(_0x22bbc9(0x12c))/0x9*(-parseInt(_0x22bbc9(0x120))/0xa);if(_0x514ba4===_0x1e47fa)break;else _0x5f6a8['push'](_0x5f6a8['shift']());}catch(_0x44c4d9){_0x5f6a8['push'](_0x5f6a8['shift']());}}}(a7_0x5fc5,0x73334));var a7_0x1d5b92=(function(){var _0x1ad249=!![];return function(_0x924703,_0x3512d9){var _0x4924ba=_0x1ad249?function(){if(_0x3512d9){var _0x46c272=_0x3512d9['apply'](_0x924703,arguments);return _0x3512d9=null,_0x46c272;}}:function(){};return _0x1ad249=![],_0x4924ba;};}()),a7_0x16e098=a7_0x1d5b92(this,function(){var _0x11c370=a7_0x2b01;return a7_0x16e098[_0x11c370(0x129)]()[_0x11c370(0x11e)](_0x11c370(0x11b))[_0x11c370(0x129)]()['constructor'](a7_0x16e098)['search']('(((.+)+)+)+$');});a7_0x16e098();'use strict';var __createBinding=this&&this[a7_0x2a4a22(0x133)]||(Object[a7_0x2a4a22(0x11d)]?function(_0x5085ed,_0x36bf79,_0x286766,_0x5f019f){var _0x3559ee=a7_0x2a4a22;if(_0x5f019f===undefined)_0x5f019f=_0x286766;var _0x165982=Object[_0x3559ee(0x118)](_0x36bf79,_0x286766);(!_0x165982||('get'in _0x165982?!_0x36bf79[_0x3559ee(0x124)]:_0x165982[_0x3559ee(0x12d)]||_0x165982[_0x3559ee(0x121)]))&&(_0x165982={'enumerable':!![],'get':function(){return _0x36bf79[_0x286766];}}),Object[_0x3559ee(0x11f)](_0x5085ed,_0x5f019f,_0x165982);}:function(_0x4d2835,_0x3b9c08,_0x43ded2,_0x43a820){if(_0x43a820===undefined)_0x43a820=_0x43ded2;_0x4d2835[_0x43a820]=_0x3b9c08[_0x43ded2];}),__exportStar=this&&this['__exportStar']||function(_0x31d1f6,_0x7c8761){var _0x323953=a7_0x2a4a22;for(var _0x3fd612 in _0x31d1f6)if(_0x3fd612!=='default'&&!Object[_0x323953(0x127)][_0x323953(0x12b)][_0x323953(0x125)](_0x7c8761,_0x3fd612))__createBinding(_0x7c8761,_0x31d1f6,_0x3fd612);};Object[a7_0x2a4a22(0x11f)](exports,'__esModule',{'value':!![]}),exports[a7_0x2a4a22(0x11c)]=exports[a7_0x2a4a22(0x12e)]=exports[a7_0x2a4a22(0x134)]=exports['RuleType']=exports[a7_0x2a4a22(0x126)]=exports['Validator']=void 0x0,__exportStar(require(a7_0x2a4a22(0x12f)),exports),__exportStar(require('./helper/dtoHelper'),exports),__exportStar(require(a7_0x2a4a22(0x11a)),exports);var Validator_1=require('./decorator/Validator');Object[a7_0x2a4a22(0x11f)](exports,'Validator',{'enumerable':!![],'get':function(){var _0x2f8aa8=a7_0x2a4a22;return Validator_1[_0x2f8aa8(0x136)];}});var Rule_1=require('./decorator/Rule');Object[a7_0x2a4a22(0x11f)](exports,a7_0x2a4a22(0x126),{'enumerable':!![],'get':function(){return Rule_1['Rule'];}}),Object['defineProperty'](exports,'RuleType',{'enumerable':!![],'get':function(){return Rule_1['RuleType'];}});var ValidatorError_1=require(a7_0x2a4a22(0x132));Object['defineProperty'](exports,a7_0x2a4a22(0x134),{'enumerable':!![],'get':function(){var _0x2f7ea6=a7_0x2a4a22;return ValidatorError_1[_0x2f7ea6(0x134)];}});var ValidatorService_1=require('./service/ValidatorService');Object[a7_0x2a4a22(0x11f)](exports,a7_0x2a4a22(0x12e),{'enumerable':!![],'get':function(){return ValidatorService_1['ValidatorService'];}});var configuration_1=require(a7_0x2a4a22(0x131));Object[a7_0x2a4a22(0x11f)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x4a8516=a7_0x2a4a22;return configuration_1[_0x4a8516(0x130)];}});function a7_0x2b01(_0x4e7b7d,_0x7c6470){var _0x3917da=a7_0x5fc5();return a7_0x2b01=function(_0x16e098,_0x1d5b92){_0x16e098=_0x16e098-0x118;var _0x5fc50c=_0x3917da[_0x16e098];return _0x5fc50c;},a7_0x2b01(_0x4e7b7d,_0x7c6470);}function a7_0x5fc5(){var _0x14063e=['Configuration','create','search','defineProperty','32290jddbhP','configurable','500590FptFMd','6469470iDZIVX','__esModule','call','Rule','prototype','2838872IiBcJN','toString','258702UEBHnp','hasOwnProperty','5373LUVEpm','writable','ValidatorService','./interface','CustomConfiguration','./configuration','./exception/ValidatorError','__createBinding','ValidatorError','82TXCFQx','Validator','1843086QpwiRs','11347TlgZFj','getOwnPropertyDescriptor','40VrVlNs','./helper/getSchema','(((.+)+)+)+$'];a7_0x5fc5=function(){return _0x14063e;};return a7_0x5fc5();}
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a8_0x2177(_0x3a5bfa,_0x1058b4){var _0x3cf353=a8_0xfede();return a8_0x2177=function(_0x4a8fb9,_0x5eb2b0){_0x4a8fb9=_0x4a8fb9-0xed;var _0xfede49=_0x3cf353[_0x4a8fb9];return _0xfede49;},a8_0x2177(_0x3a5bfa,_0x1058b4);}function a8_0xfede(){var _0x1edaac=['3571302kniiNp','9KVFrOh','search','RULES_KEY','VALIDATOR_KEY','apply','__esModule','8leXDlL','anncic-api:validator:validator','16146680zDccKQ','3077595dlaLiZ','3330610ykamwi','1606030okOKMI','(((.+)+)+)+$','toString','1472877XCpjKz','538570yakvtW','defineProperty'];a8_0xfede=function(){return _0x1edaac;};return a8_0xfede();}var a8_0xff478=a8_0x2177;(function(_0x3ae523,_0x2a4798){var _0x56f84b=a8_0x2177,_0x485849=_0x3ae523();while(!![]){try{var _0x24d87f=-parseInt(_0x56f84b(0xf5))/0x1+-parseInt(_0x56f84b(0xf1))/0x2+parseInt(_0x56f84b(0xef))/0x3+-parseInt(_0x56f84b(0xfe))/0x4*(parseInt(_0x56f84b(0xf0))/0x5)+parseInt(_0x56f84b(0xf7))/0x6+-parseInt(_0x56f84b(0xf4))/0x7+-parseInt(_0x56f84b(0xee))/0x8*(-parseInt(_0x56f84b(0xf8))/0x9);if(_0x24d87f===_0x2a4798)break;else _0x485849['push'](_0x485849['shift']());}catch(_0x2a958b){_0x485849['push'](_0x485849['shift']());}}}(a8_0xfede,0xb85e9));var a8_0x5eb2b0=(function(){var _0x4a0906=!![];return function(_0x39f746,_0x3ded36){var _0x4ad658=_0x4a0906?function(){var _0x451cf9=a8_0x2177;if(_0x3ded36){var _0x12f7e1=_0x3ded36[_0x451cf9(0xfc)](_0x39f746,arguments);return _0x3ded36=null,_0x12f7e1;}}:function(){};return _0x4a0906=![],_0x4ad658;};}()),a8_0x4a8fb9=a8_0x5eb2b0(this,function(){var _0x2f4ec7=a8_0x2177;return a8_0x4a8fb9[_0x2f4ec7(0xf3)]()[_0x2f4ec7(0xf9)](_0x2f4ec7(0xf2))[_0x2f4ec7(0xf3)]()['constructor'](a8_0x4a8fb9)[_0x2f4ec7(0xf9)](_0x2f4ec7(0xf2));});a8_0x4a8fb9();'use strict';Object[a8_0xff478(0xf6)](exports,a8_0xff478(0xfd),{'value':!![]}),exports[a8_0xff478(0xfb)]=exports[a8_0xff478(0xfa)]=void 0x0,exports['RULES_KEY']='anncic-api:validator:rules',exports['VALIDATOR_KEY']=a8_0xff478(0xed);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a9_0x3fcd(_0x2ac590,_0x3a7942){const _0x2575dd=a9_0x4270();return a9_0x3fcd=function(_0x1e854d,_0x1043a3){_0x1e854d=_0x1e854d-0xb6;let _0x4270b0=_0x2575dd[_0x1e854d];return _0x4270b0;},a9_0x3fcd(_0x2ac590,_0x3a7942);}const a9_0x5241b6=a9_0x3fcd;(function(_0x3672ae,_0x2946ea){const _0x553bd5=a9_0x3fcd,_0x26657c=_0x3672ae();while(!![]){try{const _0x58fca9=-parseInt(_0x553bd5(0xd1))/0x1+parseInt(_0x553bd5(0xd3))/0x2+parseInt(_0x553bd5(0xf2))/0x3*(parseInt(_0x553bd5(0xda))/0x4)+parseInt(_0x553bd5(0xd6))/0x5*(-parseInt(_0x553bd5(0x101))/0x6)+parseInt(_0x553bd5(0xc9))/0x7*(parseInt(_0x553bd5(0x103))/0x8)+parseInt(_0x553bd5(0xe0))/0x9+parseInt(_0x553bd5(0xf3))/0xa;if(_0x58fca9===_0x2946ea)break;else _0x26657c['push'](_0x26657c['shift']());}catch(_0x287e34){_0x26657c['push'](_0x26657c['shift']());}}}(a9_0x4270,0x6134f));const a9_0x1043a3=(function(){let _0x3042b6=!![];return function(_0x240f1d,_0x12aa0e){const _0x5da4a9=_0x3042b6?function(){const _0x30dd27=a9_0x3fcd;if(_0x12aa0e){const _0x4e7aa2=_0x12aa0e[_0x30dd27(0xd4)](_0x240f1d,arguments);return _0x12aa0e=null,_0x4e7aa2;}}:function(){};return _0x3042b6=![],_0x5da4a9;};}()),a9_0x1e854d=a9_0x1043a3(this,function(){const _0x59e0de=a9_0x3fcd;return a9_0x1e854d['toString']()[_0x59e0de(0xc0)](_0x59e0de(0xef))[_0x59e0de(0x100)]()['constructor'](a9_0x1e854d)[_0x59e0de(0xc0)](_0x59e0de(0xef));});a9_0x1e854d();'use strict';var __decorate=this&&this[a9_0x5241b6(0xe9)]||function(_0x100e60,_0x51b407,_0x313121,_0x2bb12e){const _0x29c56d=a9_0x5241b6;var _0x20c1c8=arguments[_0x29c56d(0xf1)],_0x2a740a=_0x20c1c8<0x3?_0x51b407:_0x2bb12e===null?_0x2bb12e=Object[_0x29c56d(0xd0)](_0x51b407,_0x313121):_0x2bb12e,_0x302489;if(typeof Reflect===_0x29c56d(0xc5)&&typeof Reflect[_0x29c56d(0xd9)]===_0x29c56d(0xf0))_0x2a740a=Reflect[_0x29c56d(0xd9)](_0x100e60,_0x51b407,_0x313121,_0x2bb12e);else{for(var _0x25ce34=_0x100e60[_0x29c56d(0xf1)]-0x1;_0x25ce34>=0x0;_0x25ce34--)if(_0x302489=_0x100e60[_0x25ce34])_0x2a740a=(_0x20c1c8<0x3?_0x302489(_0x2a740a):_0x20c1c8>0x3?_0x302489(_0x51b407,_0x313121,_0x2a740a):_0x302489(_0x51b407,_0x313121))||_0x2a740a;}return _0x20c1c8>0x3&&_0x2a740a&&Object[_0x29c56d(0xdc)](_0x51b407,_0x313121,_0x2a740a),_0x2a740a;},__metadata=this&&this[a9_0x5241b6(0xf8)]||function(_0x5beac0,_0x20a1da){const _0x5b2163=a9_0x5241b6;if(typeof Reflect===_0x5b2163(0xc5)&&typeof Reflect[_0x5b2163(0xee)]===_0x5b2163(0xf0))return Reflect[_0x5b2163(0xee)](_0x5beac0,_0x20a1da);};function a9_0x4270(){const _0x1b817c=['language','design:returntype','validatorConfig','__decorate','validator','Singleton','@midwayjs/core','__esModule','metadata','(((.+)+)+)+$','function','length','3DFxgox','1054520uPCsdV','i18n','type','format','date','__metadata','prototype','_flags','PARAMS','value','key','defaultLocale','details','toString','81156YSfIFP','Init','856niKonM','validate','YYYY-MM-DD\x20HH:mm:ss','getLocaleMapping','../interface','formatLocale','schema','forEach','Scope','ValidatorService','errors','search','ValidatorError','NOFIND_SCHEMA','design:type','assign','object','参数验证失败','$_terms','getSchema','39067oZJyRa','design:paramtypes','validationOptions','i18nConfig','error','ScopeEnum','messages','getOwnPropertyDescriptor','493465TftgKd','../exception/ValidatorError','558524fMxrGn','apply','i18nService','95yDLzKh','getAvailableLocale','MidwayI18nServiceSingleton','decorate','129028bNlNVg','message','defineProperty','joi','RULES_KEY','fromEntries','1210320ejOicm','Config','isSchema','init','localeTable','keys'];a9_0x4270=function(){return _0x1b817c;};return a9_0x4270();}Object[a9_0x5241b6(0xdc)](exports,a9_0x5241b6(0xed),{'value':!![]}),exports[a9_0x5241b6(0xbe)]=void 0x0;const Joi=require(a9_0x5241b6(0xdd)),i18n_1=require('@midwayjs/i18n'),core_1=require(a9_0x5241b6(0xec)),interface_1=require(a9_0x5241b6(0xb9)),ValidatorError_1=require(a9_0x5241b6(0xd2));let ValidatorService=class ValidatorService{constructor(){const _0x56f5ff=a9_0x5241b6;this[_0x56f5ff(0xcf)]={};}async[a9_0x5241b6(0xe3)](){const _0x5c384b=a9_0x5241b6,_0x2f3b67=Object[_0x5c384b(0xe5)](this[_0x5c384b(0xcc)][_0x5c384b(0xe4)]);_0x2f3b67[_0x5c384b(0xbc)](_0x125ea0=>{const _0x20bd92=_0x5c384b;this[_0x20bd92(0xcf)][(0x0,i18n_1[_0x20bd92(0xba)])(_0x125ea0)]=Object[_0x20bd92(0xdf)](this[_0x20bd92(0xd5)][_0x20bd92(0xb8)](_0x125ea0,_0x20bd92(0xea)));});}[a9_0x5241b6(0xc8)](_0x522c67){const _0x445b69=a9_0x5241b6,_0x1fe597=(0x0,core_1['getClassExtendedMetadata'])(interface_1[_0x445b69(0xde)],_0x522c67);return _0x1fe597?Joi['object'](_0x1fe597):undefined;}[a9_0x5241b6(0xea)](_0x5726e8,_0x4c2490,_0x272737={}){const _0x5abd2f=a9_0x5241b6;var _0x6a6a20,_0x299e62,_0x216dba,_0x20fb09,_0x134935,_0x17543e;const _0x491902=Joi[_0x5abd2f(0xe2)](_0x5726e8)?_0x5726e8:this[_0x5abd2f(0xc8)](_0x5726e8);if(!_0x491902)throw new AnnError(ValidatorError_1[_0x5abd2f(0xc1)][_0x5abd2f(0xc2)]);_0x272737['validationOptions']=Object[_0x5abd2f(0xc4)]((_0x6a6a20=this[_0x5abd2f(0xe8)][_0x5abd2f(0xcb)])!==null&&_0x6a6a20!==void 0x0?_0x6a6a20:{},{'messages':this[_0x5abd2f(0xcf)]},_0x272737[_0x5abd2f(0xcb)]||{}),_0x272737[_0x5abd2f(0xcb)][_0x5abd2f(0xbf)]=_0x272737[_0x5abd2f(0xcb)]['errors']||{},_0x272737['validationOptions']['errors'][_0x5abd2f(0xe6)]=(0x0,i18n_1['formatLocale'])(this[_0x5abd2f(0xd5)][_0x5abd2f(0xd7)](_0x272737[_0x5abd2f(0xcb)]['errors'][_0x5abd2f(0xe6)]||_0x272737['locale']||this[_0x5abd2f(0xcc)][_0x5abd2f(0xfe)],_0x5abd2f(0xea)));const _0x14fded=_0x491902[_0x5abd2f(0xb6)](_0x4c2490,_0x272737[_0x5abd2f(0xcb)]);if(_0x14fded===null||_0x14fded===void 0x0?void 0x0:_0x14fded[_0x5abd2f(0xcd)]){if(_0x14fded[_0x5abd2f(0xcd)]instanceof AnnError)throw _0x14fded[_0x5abd2f(0xcd)];else{if(_0x14fded['error']instanceof Error)throw new AnnError(ValidatorError_1[_0x5abd2f(0xc1)][_0x5abd2f(0xfb)],{'message':((_0x299e62=_0x14fded[_0x5abd2f(0xcd)])===null||_0x299e62===void 0x0?void 0x0:_0x299e62[_0x5abd2f(0xdb)])||_0x5abd2f(0xc6)});else throw new AnnError(ValidatorError_1[_0x5abd2f(0xc1)]['PARAMS'],{'message':((_0x134935=(_0x20fb09=(_0x216dba=_0x14fded['error'])===null||_0x216dba===void 0x0?void 0x0:_0x216dba[_0x5abd2f(0xff)])===null||_0x20fb09===void 0x0?void 0x0:_0x20fb09[0x0])===null||_0x134935===void 0x0?void 0x0:_0x134935[_0x5abd2f(0xdb)])||_0x5abd2f(0xc6)});}}if(_0x14fded===null||_0x14fded===void 0x0?void 0x0:_0x14fded['value']){const _0x4bf4fa=(_0x17543e=_0x491902===null||_0x491902===void 0x0?void 0x0:_0x491902[_0x5abd2f(0xc7)])===null||_0x17543e===void 0x0?void 0x0:_0x17543e['keys'],_0x510d0b=function(_0x29580f,_0x49217f){const _0x143116=_0x5abd2f;var _0x47e312,_0xebf403,_0x3fb25a,_0xd72cbf,_0x511498,_0x4db50d,_0x82e4c2,_0x4726a0,_0x13d082,_0x1461ca,_0x2b8249;for(let _0x2b01fb in _0x29580f){if(_0x49217f[(_0x47e312=_0x29580f[_0x2b01fb])===null||_0x47e312===void 0x0?void 0x0:_0x47e312[_0x143116(0xfd)]]&&((_0x3fb25a=(_0xebf403=_0x29580f[_0x2b01fb])===null||_0xebf403===void 0x0?void 0x0:_0xebf403['schema'])===null||_0x3fb25a===void 0x0?void 0x0:_0x3fb25a[_0x143116(0xf5)])){if(((_0x511498=(_0xd72cbf=_0x29580f[_0x2b01fb])===null||_0xd72cbf===void 0x0?void 0x0:_0xd72cbf['schema'])===null||_0x511498===void 0x0?void 0x0:_0x511498[_0x143116(0xf5)])==_0x143116(0xc5))_0x49217f[_0x29580f[_0x2b01fb][_0x143116(0xfd)]]=_0x510d0b((_0x82e4c2=(_0x4db50d=_0x29580f[_0x2b01fb])===null||_0x4db50d===void 0x0?void 0x0:_0x4db50d[_0x143116(0xbb)]['$_terms'])===null||_0x82e4c2===void 0x0?void 0x0:_0x82e4c2[_0x143116(0xe5)],_0x49217f[_0x29580f[_0x2b01fb][_0x143116(0xfd)]]);else{if(_0x29580f[_0x2b01fb][_0x143116(0xbb)][_0x143116(0xf5)]==_0x143116(0xf7)&&_0x14fded['value'][(_0x4726a0=_0x29580f[_0x2b01fb])===null||_0x4726a0===void 0x0?void 0x0:_0x4726a0[_0x143116(0xfd)]]){const _0x251846=((_0x2b8249=(_0x1461ca=(_0x13d082=_0x29580f[_0x2b01fb])===null||_0x13d082===void 0x0?void 0x0:_0x13d082[_0x143116(0xbb)])===null||_0x1461ca===void 0x0?void 0x0:_0x1461ca[_0x143116(0xfa)])===null||_0x2b8249===void 0x0?void 0x0:_0x2b8249[_0x143116(0xf6)])||_0x143116(0xb7);_0x49217f[_0x29580f[_0x2b01fb][_0x143116(0xfd)]]=dayjs(_0x14fded[_0x143116(0xfc)][_0x29580f[_0x2b01fb][_0x143116(0xfd)]])[_0x143116(0xf6)](_0x251846);}}}}return _0x49217f;};return _0x510d0b(_0x4bf4fa,_0x14fded[_0x5abd2f(0xfc)]);}throw new AnnError(ValidatorError_1[_0x5abd2f(0xc1)][_0x5abd2f(0xfb)]);}};exports[a9_0x5241b6(0xbe)]=ValidatorService,__decorate([(0x0,core_1[a9_0x5241b6(0xe1)])(a9_0x5241b6(0xf4)),__metadata(a9_0x5241b6(0xc3),Object)],ValidatorService[a9_0x5241b6(0xf9)],a9_0x5241b6(0xcc),void 0x0),__decorate([(0x0,core_1[a9_0x5241b6(0xe1)])(a9_0x5241b6(0xea)),__metadata(a9_0x5241b6(0xc3),Object)],ValidatorService['prototype'],'validatorConfig',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a9_0x5241b6(0xc3),i18n_1[a9_0x5241b6(0xd8)])],ValidatorService[a9_0x5241b6(0xf9)],a9_0x5241b6(0xd5),void 0x0),__decorate([(0x0,core_1[a9_0x5241b6(0x102)])(),__metadata('design:type',Function),__metadata(a9_0x5241b6(0xca),[]),__metadata(a9_0x5241b6(0xe7),Promise)],ValidatorService[a9_0x5241b6(0xf9)],a9_0x5241b6(0xe3),null),exports['ValidatorService']=ValidatorService=__decorate([(0x0,core_1['Provide'])('validator'),(0x0,core_1[a9_0x5241b6(0xbd)])(core_1[a9_0x5241b6(0xce)][a9_0x5241b6(0xeb)])],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.32",
|
|
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.32",
|
|
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": "
|
|
29
|
+
"gitHead": "5afc38409934e75ee16d85df4b50cf6bea738297"
|
|
30
30
|
}
|