@anncic-api/validator 1.4.6 → 1.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Rule.js +1 -1
- package/dist/decorator/Validator.js +1 -1
- package/dist/exception/ValidatorError.js +1 -1
- package/dist/helper/dtoHelper.js +1 -1
- package/dist/index.js +1 -1
- package/dist/interface.js +1 -1
- package/dist/service/ValidatorService.js +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x3d4a8c=a0_0x114e;function a0_0x2288(){const _0x233b86=['PARAMS','628HhoyzC','defineProperty','2063988CjANde','2ciVekA','default','172494MpILyY','../../locales/zh_CN.json','14997yfQfWe','143VHSKoj','string','3604465XxoprO','17450DCOOXF','573421KmyXSr','32dJVVSb','ValidatorError','__esModule','45xJcTpj','../exception/ValidatorError','323196THtQaY'];a0_0x2288=function(){return _0x233b86;};return a0_0x2288();}(function(_0x779e03,_0x5ed22d){const _0x4c9571=a0_0x114e,_0x45c754=_0x779e03();while(!![]){try{const _0x352d28=-parseInt(_0x4c9571(0x188))/0x1*(-parseInt(_0x4c9571(0x17f))/0x2)+-parseInt(_0x4c9571(0x183))/0x3*(-parseInt(_0x4c9571(0x190))/0x4)+-parseInt(_0x4c9571(0x186))/0x5+parseInt(_0x4c9571(0x17e))/0x6+-parseInt(_0x4c9571(0x181))/0x7*(parseInt(_0x4c9571(0x189))/0x8)+-parseInt(_0x4c9571(0x18c))/0x9*(-parseInt(_0x4c9571(0x187))/0xa)+parseInt(_0x4c9571(0x184))/0xb*(-parseInt(_0x4c9571(0x18e))/0xc);if(_0x352d28===_0x5ed22d)break;else _0x45c754['push'](_0x45c754['shift']());}catch(_0x4ce05c){_0x45c754['push'](_0x45c754['shift']());}}}(a0_0x2288,0x842d5));Object[a0_0x3d4a8c(0x17d)](exports,a0_0x3d4a8c(0x18b),{'value':!![]});function a0_0x114e(_0x246686,_0x557285){const _0x2288a2=a0_0x2288();return a0_0x114e=function(_0x114eaa,_0x31e0c0){_0x114eaa=_0x114eaa-0x17d;let _0x2b08c6=_0x2288a2[_0x114eaa];return _0x2b08c6;},a0_0x114e(_0x246686,_0x557285);}const ValidatorError_1=require(a0_0x3d4a8c(0x18d));exports[a0_0x3d4a8c(0x180)]={'validator':{'errorStatus':ValidatorError_1[a0_0x3d4a8c(0x18a)][a0_0x3d4a8c(0x18f)],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':a0_0x3d4a8c(0x185)}},'i18n':{'localeTable':{'en_US':{'validator':require('../../locales/en_US.json')},'zh_CN':{'validator':require(a0_0x3d4a8c(0x182))}}}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a1_0xdcffd1=a1_0x101f;(function(_0x54cafe,_0x295f17){const _0x29cfe6=a1_0x101f,_0x4e72c3=_0x54cafe();while(!![]){try{const _0x286ad1=-parseInt(_0x29cfe6(0x1d2))/0x1*(parseInt(_0x29cfe6(0x1af))/0x2)+-parseInt(_0x29cfe6(0x1b6))/0x3+parseInt(_0x29cfe6(0x1d4))/0x4+-parseInt(_0x29cfe6(0x1aa))/0x5*(parseInt(_0x29cfe6(0x1d1))/0x6)+parseInt(_0x29cfe6(0x1cf))/0x7+parseInt(_0x29cfe6(0x1bf))/0x8*(-parseInt(_0x29cfe6(0x1bc))/0x9)+parseInt(_0x29cfe6(0x1c5))/0xa*(parseInt(_0x29cfe6(0x1bd))/0xb);if(_0x286ad1===_0x295f17)break;else _0x4e72c3['push'](_0x4e72c3['shift']());}catch(_0x3fc6a1){_0x4e72c3['push'](_0x4e72c3['shift']());}}}(a1_0x3b13,0xddbc1));var __decorate=this&&this[a1_0xdcffd1(0x1c0)]||function(_0x59abbe,_0x3dc6cb,_0x59bdd1,_0x3d06e1){const _0x8dea72=a1_0xdcffd1;var _0x5b64a6=arguments[_0x8dea72(0x1c3)],_0x5d8108=_0x5b64a6<0x3?_0x3dc6cb:_0x3d06e1===null?_0x3d06e1=Object['getOwnPropertyDescriptor'](_0x3dc6cb,_0x59bdd1):_0x3d06e1,_0x52149d;if(typeof Reflect==='object'&&typeof Reflect[_0x8dea72(0x1e1)]===_0x8dea72(0x1c8))_0x5d8108=Reflect[_0x8dea72(0x1e1)](_0x59abbe,_0x3dc6cb,_0x59bdd1,_0x3d06e1);else{for(var _0x37c862=_0x59abbe[_0x8dea72(0x1c3)]-0x1;_0x37c862>=0x0;_0x37c862--)if(_0x52149d=_0x59abbe[_0x37c862])_0x5d8108=(_0x5b64a6<0x3?_0x52149d(_0x5d8108):_0x5b64a6>0x3?_0x52149d(_0x3dc6cb,_0x59bdd1,_0x5d8108):_0x52149d(_0x3dc6cb,_0x59bdd1))||_0x5d8108;}return _0x5b64a6>0x3&&_0x5d8108&&Object[_0x8dea72(0x1d7)](_0x3dc6cb,_0x59bdd1,_0x5d8108),_0x5d8108;},__metadata=this&&this[a1_0xdcffd1(0x1b0)]||function(_0x3aa894,_0xfdc462){const _0x468081=a1_0xdcffd1;if(typeof Reflect===_0x468081(0x1dc)&&typeof Reflect['metadata']===_0x468081(0x1c8))return Reflect['metadata'](_0x3aa894,_0xfdc462);};Object[a1_0xdcffd1(0x1d7)](exports,a1_0xdcffd1(0x1d3),{'value':!![]}),exports[a1_0xdcffd1(0x1c6)]=void 0x0;function a1_0x101f(_0x3c11c4,_0x549e42){const _0x3b1341=a1_0x3b13();return a1_0x101f=function(_0x101f35,_0xe816ae){_0x101f35=_0x101f35-0x1a9;let _0x4fef15=_0x3b1341[_0x101f35];return _0x4fef15;},a1_0x101f(_0x3c11c4,_0x549e42);}const i18n_1=require('@midwayjs/i18n'),core_1=require(a1_0xdcffd1(0x1d5)),core_2=require(a1_0xdcffd1(0x1d5)),interface_1=require(a1_0xdcffd1(0x1d8)),ValidatorService_1=require(a1_0xdcffd1(0x1ce)),i18n=require(a1_0xdcffd1(0x1d0)),anncic=require('@anncic-api/core'),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{async[a1_0xdcffd1(0x1e0)](){const _0xdbc6f7=a1_0xdcffd1;this[_0xdbc6f7(0x1b8)][_0xdbc6f7(0x1ca)](interface_1[_0xdbc6f7(0x1a9)],_0x12aa4a=>{const _0x50bc4e=_0xdbc6f7,_0x2452cd=_0x12aa4a[_0x50bc4e(0x1b1)],_0x412d91=(0x0,core_2[_0x50bc4e(0x1ab)])(_0x12aa4a[_0x50bc4e(0x1c1)],_0x12aa4a[_0x50bc4e(0x1cc)]);return{'before':_0x3c2fde=>{const _0x3ec198=_0x50bc4e;var _0x1a4de5,_0x3f7890,_0x464890,_0x240a82,_0x4716e4,_0x49539a,_0x2e1ac6,_0xb09c9b,_0x3c23b5,_0x3d31a9,_0x5eb036,_0x2a16bf,_0x5b5c8f;const _0x57d374=_0x3c2fde[_0x3ec198(0x1c1)][core_1[_0x3ec198(0x1ae)]],_0x2c36a5=Object[_0x3ec198(0x1cb)]({},((_0x1a4de5=_0x57d374===null||_0x57d374===void 0x0?void 0x0:_0x57d374[_0x3ec198(0x1c7)])===null||_0x1a4de5===void 0x0?void 0x0:_0x1a4de5['query'])||{},((_0x3f7890=_0x57d374===null||_0x57d374===void 0x0?void 0x0:_0x57d374[_0x3ec198(0x1c7)])===null||_0x3f7890===void 0x0?void 0x0:_0x3f7890['body'])||{}),_0x32f1cc=((0x0,core_2['getClassMetadata'])(interface_1['VALIDATOR_KEY'],_0x3c2fde[_0x3ec198(0x1c1)])||[])[_0x3ec198(0x1ba)](_0x51bced=>_0x51bced[_0x3ec198(0x1b3)]==_0x3c2fde[_0x3ec198(0x1b2)]);!(_0x2452cd===null||_0x2452cd===void 0x0?void 0x0:_0x2452cd[_0x3ec198(0x1dd)])&&_0x57d374&&_0x57d374[_0x3ec198(0x1e2)]&&(_0x2452cd[_0x3ec198(0x1dd)]=_0x57d374[_0x3ec198(0x1e2)](i18n_1[_0x3ec198(0x1ad)]));for(let _0x22041c=0x0;_0x22041c<_0x412d91['length'];_0x22041c++){const _0x289c37=_0x412d91[_0x22041c],_0x44e7cb=this['ValidatorService'][_0x3ec198(0x1b9)](_0x289c37);if(_0x44e7cb){if(typeof _0x3c2fde['args'][_0x22041c]==_0x3ec198(0x1c2)||((_0x464890=_0x3c2fde[_0x3ec198(0x1c9)][_0x22041c])===null||_0x464890===void 0x0?void 0x0:_0x464890[_0x3ec198(0x1c7)])&&((_0x240a82=_0x3c2fde[_0x3ec198(0x1c9)][_0x22041c])===null||_0x240a82===void 0x0?void 0x0:_0x240a82[_0x3ec198(0x1e3)])&&((_0x4716e4=_0x3c2fde[_0x3ec198(0x1c9)][_0x22041c])===null||_0x4716e4===void 0x0?void 0x0:_0x4716e4[_0x3ec198(0x1b5)]))_0x3c2fde[_0x3ec198(0x1c9)][_0x22041c]=_0x2c36a5;else((_0x49539a=_0x3c2fde['args'][_0x22041c])===null||_0x49539a===void 0x0?void 0x0:_0x49539a[_0x3ec198(0x1df)])=='bound\x20dispatch'&&_0x3c2fde[_0x3ec198(0x1c9)][_0x3ec198(0x1be)](_0x22041c,0x0,_0x2c36a5);const _0x46aeb0=this['ValidatorService'][_0x3ec198(0x1b4)](_0x44e7cb,_0x3c2fde[_0x3ec198(0x1c9)][_0x22041c],_0x2452cd);_0x46aeb0&&(_0x3c2fde[_0x3ec198(0x1c9)][_0x22041c]=_0x46aeb0);}else{if((_0x32f1cc===null||_0x32f1cc===void 0x0?void 0x0:_0x32f1cc[_0x3ec198(0x1cd)][_0x22041c])&&((_0x2e1ac6=_0x3c2fde['args'][_0x22041c])===null||_0x2e1ac6===void 0x0?void 0x0:_0x2e1ac6[_0x3ec198(0x1de)])&&typeof _0x3c2fde['args'][_0x22041c][_0x3ec198(0x1d6)]=='function'&&((_0xb09c9b=_0x57d374===null||_0x57d374===void 0x0?void 0x0:_0x57d374[_0x3ec198(0x1de)])===null||_0xb09c9b===void 0x0?void 0x0:_0xb09c9b[_0x32f1cc['methodArgs'][_0x22041c]]))_0x3c2fde[_0x3ec198(0x1c9)][_0x22041c]=_0x289c37((_0x3c23b5=_0x57d374===null||_0x57d374===void 0x0?void 0x0:_0x57d374[_0x3ec198(0x1de)])===null||_0x3c23b5===void 0x0?void 0x0:_0x3c23b5[_0x32f1cc[_0x3ec198(0x1cd)][_0x22041c]]);else(_0x32f1cc===null||_0x32f1cc===void 0x0?void 0x0:_0x32f1cc['methodArgs'][_0x22041c])&&((_0x5eb036=(_0x3d31a9=_0x3c2fde['args'][_0x22041c])===null||_0x3d31a9===void 0x0?void 0x0:_0x3d31a9[_0x3ec198(0x1de)])===null||_0x5eb036===void 0x0?void 0x0:_0x5eb036[_0x32f1cc[_0x3ec198(0x1cd)][_0x22041c]])&&(_0x3c2fde[_0x3ec198(0x1c9)][_0x22041c]=(_0x5b5c8f=(_0x2a16bf=_0x3c2fde['args'][_0x22041c])===null||_0x2a16bf===void 0x0?void 0x0:_0x2a16bf[_0x3ec198(0x1de)])===null||_0x5b5c8f===void 0x0?void 0x0:_0x5b5c8f[_0x32f1cc[_0x3ec198(0x1cd)][_0x22041c]]);}}},'afterThrow':(_0x269f22,_0x1ae98f)=>{throw _0x1ae98f;}};});}};__decorate([(0x0,core_2[a1_0xdcffd1(0x1bb)])(),__metadata(a1_0xdcffd1(0x1da),core_1[a1_0xdcffd1(0x1b7)])],CustomConfiguration[a1_0xdcffd1(0x1d9)],a1_0xdcffd1(0x1b8),void 0x0),__decorate([(0x0,core_2[a1_0xdcffd1(0x1bb)])(),__metadata(a1_0xdcffd1(0x1da),ValidatorService_1[a1_0xdcffd1(0x1ac)])],CustomConfiguration[a1_0xdcffd1(0x1d9)],a1_0xdcffd1(0x1ac),void 0x0),CustomConfiguration=__decorate([(0x0,core_2[a1_0xdcffd1(0x1c4)])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':a1_0xdcffd1(0x1db),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0xdcffd1(0x1c6)]=CustomConfiguration;function a1_0x3b13(){const _0x3b5712=['object','locale','params','name','onReady','decorate','getAttr','res','VALIDATOR_KEY','15izcmnH','getMethodParamTypes','ValidatorService','I18N_ATTR_KEY','REQUEST_OBJ_CTX_KEY','2dvvqNh','__metadata','metadata','methodName','method','validator','req','320943sGCPqv','MidwayDecoratorService','decorator','getSchema','find','Inject','99MNIjkP','68827BXyGbS','splice','1178272hrFEat','__decorate','target','undefined','length','Configuration','1570tsbjLi','CustomConfiguration','request','function','args','registerMethodHandler','assign','propertyName','methodArgs','./service/ValidatorService','5780985KjImtu','@midwayjs/i18n','1044186HgOEFA','69904bKExYi','__esModule','5676492eYjLbD','@midwayjs/core','param','defineProperty','./interface','prototype','design:type','anncic-api:validator'];a1_0x3b13=function(){return _0x3b5712;};return a1_0x3b13();}
|
package/dist/decorator/Rule.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a2_0x50d547=a2_0x5513;(function(_0x53ace1,_0x51ce9c){const _0x2034c8=a2_0x5513,_0x580d43=_0x53ace1();while(!![]){try{const _0x30a160=-parseInt(_0x2034c8(0x129))/0x1*(parseInt(_0x2034c8(0x12d))/0x2)+parseInt(_0x2034c8(0x133))/0x3*(-parseInt(_0x2034c8(0x135))/0x4)+parseInt(_0x2034c8(0x12a))/0x5+-parseInt(_0x2034c8(0x148))/0x6*(-parseInt(_0x2034c8(0x12c))/0x7)+-parseInt(_0x2034c8(0x149))/0x8*(parseInt(_0x2034c8(0x138))/0x9)+-parseInt(_0x2034c8(0x13a))/0xa*(parseInt(_0x2034c8(0x13b))/0xb)+-parseInt(_0x2034c8(0x13e))/0xc*(-parseInt(_0x2034c8(0x130))/0xd);if(_0x30a160===_0x51ce9c)break;else _0x580d43['push'](_0x580d43['shift']());}catch(_0x584da7){_0x580d43['push'](_0x580d43['shift']());}}}(a2_0x5efa,0x4d872));function a2_0x5efa(){const _0x5efd50=['Array','name','4705XvfDUk','2399225vEJHiY','defineProperty','20587OSTSaj','42usHyHJ','keys','items','1820IRLQsg','RuleType','object','15QZUBTP','saveClassMetadata','327476Qktxbu','default','label','81TAWVGM','joi','10wxLSPe','6796031ffbbET','array','Rule','102228scXtzy','getPropertyType','attachClassMetadata','isSchema','@midwayjs/core','RULES_KEY','function','../interface','getClassMetadata','@joi/date','762JdbeQz','535544uSCPZH'];a2_0x5efa=function(){return _0x5efd50;};return a2_0x5efa();}Object[a2_0x50d547(0x12b)](exports,'__esModule',{'value':!![]}),exports[a2_0x50d547(0x13d)]=exports[a2_0x50d547(0x131)]=void 0x0;const joi=require(a2_0x50d547(0x139)),date_1=require(a2_0x50d547(0x147)),core_1=require(a2_0x50d547(0x142)),interface_1=require(a2_0x50d547(0x145));exports[a2_0x50d547(0x131)]=joi['extend'](date_1[a2_0x50d547(0x136)]);function a2_0x5513(_0x2acc51,_0x4157cb){const _0x5efa77=a2_0x5efa();return a2_0x5513=function(_0x5513d6,_0x2db7e0){_0x5513d6=_0x5513d6-0x128;let _0xd24da=_0x5efa77[_0x5513d6];return _0xd24da;},a2_0x5513(_0x2acc51,_0x4157cb);}function Rule(_0x4d3818,_0x241c7f,_0x4a898=''){return(_0xca8543,_0x22f86a)=>{const _0x429f02=a2_0x5513;var _0x17a75d;if(_0x22f86a)!joi[_0x429f02(0x141)](_0x241c7f)&&(_0x241c7f===null||_0x241c7f===void 0x0?void 0x0:_0x241c7f[_0x429f02(0x128)])&&(_0x241c7f=joi[_0x429f02(0x132)]((0x0,core_1[_0x429f02(0x146)])(interface_1[_0x429f02(0x143)],_0x241c7f))['meta']({'id':_0x241c7f[_0x429f02(0x128)]}),(0x0,core_1[_0x429f02(0x13f)])(_0xca8543,_0x22f86a)['name']===_0x429f02(0x14a)&&(_0x241c7f=joi[_0x429f02(0x13c)]()[_0x429f02(0x12f)](_0x241c7f))),joi[_0x429f02(0x141)](_0x241c7f)&&(_0x4d3818&&typeof(_0x241c7f===null||_0x241c7f===void 0x0?void 0x0:_0x241c7f['label'])=='function'&&(_0x241c7f=_0x241c7f[_0x429f02(0x137)](_0x4d3818)),_0x4a898&&typeof(_0x241c7f===null||_0x241c7f===void 0x0?void 0x0:_0x241c7f['description'])==_0x429f02(0x144)&&(_0x241c7f=_0x241c7f['description'](_0x4a898)),(0x0,core_1[_0x429f02(0x140)])(interface_1[_0x429f02(0x143)],_0x241c7f,_0xca8543,_0x22f86a));else{const _0x4a5c64=(0x0,core_1['getClassMetadata'])(interface_1[_0x429f02(0x143)],_0x241c7f);if(_0x4a5c64){let _0x2a4a4d=(_0x17a75d=(0x0,core_1[_0x429f02(0x146)])(interface_1[_0x429f02(0x143)],_0xca8543))!==null&&_0x17a75d!==void 0x0?_0x17a75d:{};Object[_0x429f02(0x12e)](_0x4a5c64)['map'](_0x2be853=>{!_0x2a4a4d[_0x2be853]&&(_0x2a4a4d[_0x2be853]=_0x4a5c64[_0x2be853]);}),(0x0,core_1[_0x429f02(0x134)])(interface_1[_0x429f02(0x143)],_0x2a4a4d,_0xca8543);}}};}exports[a2_0x50d547(0x13d)]=Rule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const a3_0x841865=a3_0x56ad;function a3_0x2e32(){const _0x1aa3da=['defineProperty','__esModule','5460955hKUFph','VALIDATOR_KEY','slice','4paoepM','prototype','toString','constructor','18asLaLF','1YCzSTN','4210nltXyj','43043ETOZSN','getFuncArgs','indexOf','5591511pUTCfn','3521054CCNtRZ','function','@midwayjs/core','1581176ctmiAa','replace','1352730DclEMO','../interface','Validator','attachClassMetadata','2102226QhLOCN'];a3_0x2e32=function(){return _0x1aa3da;};return a3_0x2e32();}(function(_0xe4cd4a,_0x1e831d){const _0x33fd85=a3_0x56ad,_0x5d60c8=_0xe4cd4a();while(!![]){try{const _0x41db4b=parseInt(_0x33fd85(0xfb))/0x1*(-parseInt(_0x33fd85(0x101))/0x2)+parseInt(_0x33fd85(0x100))/0x3+parseInt(_0x33fd85(0x110))/0x4*(-parseInt(_0x33fd85(0x10d))/0x5)+parseInt(_0x33fd85(0x106))/0x6+-parseInt(_0x33fd85(0x10a))/0x7+parseInt(_0x33fd85(0x104))/0x8*(parseInt(_0x33fd85(0xfa))/0x9)+-parseInt(_0x33fd85(0xfc))/0xa*(-parseInt(_0x33fd85(0xfd))/0xb);if(_0x41db4b===_0x1e831d)break;else _0x5d60c8['push'](_0x5d60c8['shift']());}catch(_0x3d14c6){_0x5d60c8['push'](_0x5d60c8['shift']());}}}(a3_0x2e32,0xeefeb));Object[a3_0x841865(0x10b)](exports,a3_0x841865(0x10c),{'value':!![]}),exports[a3_0x841865(0xfe)]=exports[a3_0x841865(0x108)]=void 0x0;function a3_0x56ad(_0x4aa3ae,_0x404e38){const _0x2e3215=a3_0x2e32();return a3_0x56ad=function(_0x56ad01,_0x529707){_0x56ad01=_0x56ad01-0xf9;let _0x1acb4f=_0x2e3215[_0x56ad01];return _0x1acb4f;},a3_0x56ad(_0x4aa3ae,_0x404e38);}const core_1=require(a3_0x841865(0x103)),interface_1=require(a3_0x841865(0x107));function Validator(_0x12d96b={}){return(_0x34bdbe,_0x155986,_0x526104)=>{const _0x1de197=a3_0x56ad,_0x672c94=getFuncArgs(_0x34bdbe[_0x155986]);(0x0,core_1[_0x1de197(0x109)])(interface_1[_0x1de197(0x10e)],{'method':_0x155986,'methodArgs':_0x672c94},_0x34bdbe),(0x0,core_1['createCustomMethodDecorator'])(interface_1[_0x1de197(0x10e)],_0x12d96b)(_0x34bdbe,_0x155986,_0x526104);};}exports[a3_0x841865(0x108)]=Validator;function getFuncArgs(_0x209df3){const _0x181154=a3_0x841865;if(typeof _0x209df3==_0x181154(0x102)){const _0x35a581=/=>.*$/mg,_0x7ebf80=/=[^,)]+/mg,_0xce8e2d=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x5eadef=(_0x209df3[_0x181154(0x111)]?_0x209df3['prototype'][_0x181154(0xf9)][_0x181154(0x112)]():_0x209df3[_0x181154(0x112)]())[_0x181154(0x105)](_0xce8e2d,'')[_0x181154(0x105)](_0x35a581,'')[_0x181154(0x105)](_0x7ebf80,''),_0x3eabb2=_0x5eadef[_0x181154(0x10f)](_0x5eadef[_0x181154(0xff)]('(')+0x1,_0x5eadef[_0x181154(0xff)](')'))['match'](/([^\s,]+)/g)||[];return _0x3eabb2;}}exports[a3_0x841865(0xfe)]=getFuncArgs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a4_0x2aa0c7=a4_0x57e7;(function(_0x461fb3,_0x390a42){var _0x19cc2b=a4_0x57e7,_0x566a0a=_0x461fb3();while(!![]){try{var _0x94137c=parseInt(_0x19cc2b(0xcf))/0x1*(parseInt(_0x19cc2b(0xcc))/0x2)+parseInt(_0x19cc2b(0xc7))/0x3+-parseInt(_0x19cc2b(0xd6))/0x4+-parseInt(_0x19cc2b(0xc8))/0x5+-parseInt(_0x19cc2b(0xd7))/0x6+parseInt(_0x19cc2b(0xc9))/0x7*(-parseInt(_0x19cc2b(0xd2))/0x8)+parseInt(_0x19cc2b(0xce))/0x9;if(_0x94137c===_0x390a42)break;else _0x566a0a['push'](_0x566a0a['shift']());}catch(_0x356d7f){_0x566a0a['push'](_0x566a0a['shift']());}}}(a4_0x4d30,0x91971));var __decorate=this&&this[a4_0x2aa0c7(0xc6)]||function(_0x5a2da4,_0x3faee6,_0x16d447,_0x190bcc){var _0x493be9=a4_0x2aa0c7,_0x4aaff2=arguments[_0x493be9(0xda)],_0x34cbbf=_0x4aaff2<0x3?_0x3faee6:_0x190bcc===null?_0x190bcc=Object[_0x493be9(0xdb)](_0x3faee6,_0x16d447):_0x190bcc,_0x738b51;if(typeof Reflect===_0x493be9(0xd0)&&typeof Reflect[_0x493be9(0xdd)]==='function')_0x34cbbf=Reflect[_0x493be9(0xdd)](_0x5a2da4,_0x3faee6,_0x16d447,_0x190bcc);else{for(var _0x1b4ed6=_0x5a2da4['length']-0x1;_0x1b4ed6>=0x0;_0x1b4ed6--)if(_0x738b51=_0x5a2da4[_0x1b4ed6])_0x34cbbf=(_0x4aaff2<0x3?_0x738b51(_0x34cbbf):_0x4aaff2>0x3?_0x738b51(_0x3faee6,_0x16d447,_0x34cbbf):_0x738b51(_0x3faee6,_0x16d447))||_0x34cbbf;}return _0x4aaff2>0x3&&_0x34cbbf&&Object[_0x493be9(0xca)](_0x3faee6,_0x16d447,_0x34cbbf),_0x34cbbf;},__metadata=this&&this['__metadata']||function(_0xf80653,_0x37a49f){var _0x8268e2=a4_0x2aa0c7;if(typeof Reflect==='object'&&typeof Reflect['metadata']===_0x8268e2(0xcd))return Reflect[_0x8268e2(0xd9)](_0xf80653,_0x37a49f);};Object['defineProperty'](exports,a4_0x2aa0c7(0xdc),{'value':!![]}),exports['ValidatorError']=void 0x0;const core_1=require('@anncic-api/core');function a4_0x57e7(_0x5d07b1,_0x40c58b){var _0x4d3032=a4_0x4d30();return a4_0x57e7=function(_0x57e798,_0xfa8c57){_0x57e798=_0x57e798-0xc6;var _0x5c71c4=_0x4d3032[_0x57e798];return _0x5c71c4;},a4_0x57e7(_0x5d07b1,_0x40c58b);}class ValidatorError{}function a4_0x4d30(){var _0x247d73=['function','6106158FURLMO','97NtDPqo','object','ValidatorError','466808qvRCni','参数验证失败','NOFIND_SCHEMA','design:type','1348464MsufKM','1824918DzuCUt','AnnErrorMsg','metadata','length','getOwnPropertyDescriptor','__esModule','decorate','__decorate','3141012TIagcS','1256490RCDVnj','35utjCcm','defineProperty','PARAMS','1138UpFrYM'];a4_0x4d30=function(){return _0x247d73;};return a4_0x4d30();}ValidatorError['PARAMS']=0x3df374,ValidatorError[a4_0x2aa0c7(0xd4)]=0x3df36a,__decorate([(0x0,core_1[a4_0x2aa0c7(0xd8)])(a4_0x2aa0c7(0xd3)),__metadata(a4_0x2aa0c7(0xd5),Object)],ValidatorError,a4_0x2aa0c7(0xcb),void 0x0),__decorate([(0x0,core_1[a4_0x2aa0c7(0xd8)])(a4_0x2aa0c7(0xd3)),__metadata(a4_0x2aa0c7(0xd5),Object)],ValidatorError,'NOFIND_SCHEMA',void 0x0),exports[a4_0x2aa0c7(0xd1)]=ValidatorError;
|
package/dist/helper/dtoHelper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a5_0x2aa6(_0xaad0c5,_0x47758d){const _0x464de4=a5_0x464d();return a5_0x2aa6=function(_0x2aa60d,_0x4d1db0){_0x2aa60d=_0x2aa60d-0x1ce;let _0x34aca8=_0x464de4[_0x2aa60d];return _0x34aca8;},a5_0x2aa6(_0xaad0c5,_0x47758d);}const a5_0xfd986b=a5_0x2aa6;(function(_0x46bee0,_0x57654d){const _0x70502=a5_0x2aa6,_0x1a0ffe=_0x46bee0();while(!![]){try{const _0x34475d=parseInt(_0x70502(0x1de))/0x1+-parseInt(_0x70502(0x1d3))/0x2*(parseInt(_0x70502(0x1d8))/0x3)+-parseInt(_0x70502(0x1d5))/0x4+parseInt(_0x70502(0x1d7))/0x5+parseInt(_0x70502(0x1d9))/0x6+parseInt(_0x70502(0x1d0))/0x7*(-parseInt(_0x70502(0x1ce))/0x8)+parseInt(_0x70502(0x1d4))/0x9*(parseInt(_0x70502(0x1df))/0xa);if(_0x34475d===_0x57654d)break;else _0x1a0ffe['push'](_0x1a0ffe['shift']());}catch(_0x4b4cec){_0x1a0ffe['push'](_0x1a0ffe['shift']());}}}(a5_0x464d,0xbaa1c));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['OmitDto']=exports[a5_0xfd986b(0x1db)]=void 0x0;const core_1=require(a5_0xfd986b(0x1da)),interface_1=require(a5_0xfd986b(0x1dd));function PickDto(_0x1bb3f8,_0x2b4440){const _0x1b1ae9=a5_0xfd986b,_0x48c3d2=function(){};_0x48c3d2['prototype']=_0x1bb3f8[_0x1b1ae9(0x1d1)];const _0x488e11=(0x0,core_1['getClassExtendedMetadata'])(interface_1['RULES_KEY'],_0x1bb3f8),_0x533439={};for(const _0x480f72 of _0x2b4440){_0x488e11[_0x480f72]&&(_0x533439[_0x480f72]=_0x488e11[_0x480f72]);}return(0x0,core_1['saveClassMetadata'])(interface_1['RULES_KEY'],_0x533439,_0x48c3d2),_0x48c3d2;}exports['PickDto']=PickDto;function a5_0x464d(){const _0x38fe40=['10fWIIqb','7950136EKUfTE','assign','7qFWmWb','prototype','RULES_KEY','2mWmzrs','11409120gXFuMr','320672SNDkeO','saveClassMetadata','2879855rjwFto','1812531apmprT','2306124bGrQLo','@midwayjs/core','PickDto','OmitDto','../interface','214551pUUNte'];a5_0x464d=function(){return _0x38fe40;};return a5_0x464d();}function OmitDto(_0x31b5f5,_0x104a6e){const _0x5f4718=a5_0xfd986b,_0x5eacdc=function(){};_0x5eacdc[_0x5f4718(0x1d1)]=_0x31b5f5[_0x5f4718(0x1d1)];const _0x2838d4=(0x0,core_1['getClassExtendedMetadata'])(interface_1['RULES_KEY'],_0x31b5f5),_0x439f96=Object[_0x5f4718(0x1cf)]({},_0x2838d4);for(const _0x34abed of _0x104a6e){delete _0x439f96[_0x34abed];}return(0x0,core_1[_0x5f4718(0x1d6)])(interface_1[_0x5f4718(0x1d2)],_0x439f96,_0x5eacdc),_0x5eacdc;}exports[a5_0xfd986b(0x1dc)]=OmitDto;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a6_0x3e10df=a6_0x19e7;(function(_0x161f39,_0x5c7dc7){var _0x3be159=a6_0x19e7,_0x2ad81b=_0x161f39();while(!![]){try{var _0x5d6083=-parseInt(_0x3be159(0xcc))/0x1*(-parseInt(_0x3be159(0xda))/0x2)+parseInt(_0x3be159(0xc8))/0x3+-parseInt(_0x3be159(0xd5))/0x4*(-parseInt(_0x3be159(0xd4))/0x5)+-parseInt(_0x3be159(0xdf))/0x6+-parseInt(_0x3be159(0xe1))/0x7*(-parseInt(_0x3be159(0xd1))/0x8)+-parseInt(_0x3be159(0xdd))/0x9+-parseInt(_0x3be159(0xd2))/0xa*(parseInt(_0x3be159(0xc5))/0xb);if(_0x5d6083===_0x5c7dc7)break;else _0x2ad81b['push'](_0x2ad81b['shift']());}catch(_0x141bd5){_0x2ad81b['push'](_0x2ad81b['shift']());}}}(a6_0x2d05,0x812be));var __createBinding=this&&this['__createBinding']||(Object[a6_0x3e10df(0xca)]?function(_0x20d053,_0x3eaf02,_0xd2d271,_0x5e50d6){var _0x45344f=a6_0x3e10df;if(_0x5e50d6===undefined)_0x5e50d6=_0xd2d271;var _0x118ff4=Object[_0x45344f(0xc7)](_0x3eaf02,_0xd2d271);(!_0x118ff4||(_0x45344f(0xe0)in _0x118ff4?!_0x3eaf02[_0x45344f(0xd7)]:_0x118ff4[_0x45344f(0xc2)]||_0x118ff4['configurable']))&&(_0x118ff4={'enumerable':!![],'get':function(){return _0x3eaf02[_0xd2d271];}}),Object['defineProperty'](_0x20d053,_0x5e50d6,_0x118ff4);}:function(_0x1a3a92,_0x348e61,_0x1f231f,_0x587212){if(_0x587212===undefined)_0x587212=_0x1f231f;_0x1a3a92[_0x587212]=_0x348e61[_0x1f231f];}),__exportStar=this&&this[a6_0x3e10df(0xcf)]||function(_0x24ad70,_0x29e93b){var _0x4a016d=a6_0x3e10df;for(var _0x419ad1 in _0x24ad70)if(_0x419ad1!=='default'&&!Object['prototype'][_0x4a016d(0xc3)][_0x4a016d(0xd6)](_0x29e93b,_0x419ad1))__createBinding(_0x29e93b,_0x24ad70,_0x419ad1);};Object[a6_0x3e10df(0xdc)](exports,'__esModule',{'value':!![]}),exports[a6_0x3e10df(0xd0)]=exports['ValidatorService']=exports['ValidatorError']=exports[a6_0x3e10df(0xd9)]=exports[a6_0x3e10df(0xcd)]=exports[a6_0x3e10df(0xc6)]=void 0x0,__exportStar(require('./interface'),exports),__exportStar(require(a6_0x3e10df(0xc9)),exports);var Validator_1=require(a6_0x3e10df(0xcb));Object['defineProperty'](exports,a6_0x3e10df(0xc6),{'enumerable':!![],'get':function(){var _0x3d723b=a6_0x3e10df;return Validator_1[_0x3d723b(0xc6)];}});function a6_0x2d05(){var _0xe4c5df=['Rule','ValidatorService','__exportStar','Configuration','24ZuJAlP','4185250WpJlea','CustomConfiguration','8565vPgIFq','876EmOjMW','call','__esModule','./exception/ValidatorError','RuleType','2SBnyYc','./decorator/Rule','defineProperty','7038306vUrtup','./service/ValidatorService','3069504wvCXmX','get','1867061AwXFXz','writable','hasOwnProperty','ValidatorError','11CKUctP','Validator','getOwnPropertyDescriptor','1372143NGqiEs','./helper/dtoHelper','create','./decorator/Validator','608532KdjOOR'];a6_0x2d05=function(){return _0xe4c5df;};return a6_0x2d05();}var Rule_1=require(a6_0x3e10df(0xdb));Object[a6_0x3e10df(0xdc)](exports,a6_0x3e10df(0xcd),{'enumerable':!![],'get':function(){var _0x151981=a6_0x3e10df;return Rule_1[_0x151981(0xcd)];}}),Object['defineProperty'](exports,a6_0x3e10df(0xd9),{'enumerable':!![],'get':function(){var _0x76660a=a6_0x3e10df;return Rule_1[_0x76660a(0xd9)];}});var ValidatorError_1=require(a6_0x3e10df(0xd8));Object[a6_0x3e10df(0xdc)](exports,'ValidatorError',{'enumerable':!![],'get':function(){var _0x3d4a41=a6_0x3e10df;return ValidatorError_1[_0x3d4a41(0xc4)];}});var ValidatorService_1=require(a6_0x3e10df(0xde));function a6_0x19e7(_0x2a0da4,_0x421561){var _0x2d05c8=a6_0x2d05();return a6_0x19e7=function(_0x19e794,_0x2a8eb7){_0x19e794=_0x19e794-0xc2;var _0x1afe29=_0x2d05c8[_0x19e794];return _0x1afe29;},a6_0x19e7(_0x2a0da4,_0x421561);}Object[a6_0x3e10df(0xdc)](exports,a6_0x3e10df(0xce),{'enumerable':!![],'get':function(){var _0x129d8c=a6_0x3e10df;return ValidatorService_1[_0x129d8c(0xce)];}});var configuration_1=require('./configuration');Object[a6_0x3e10df(0xdc)](exports,a6_0x3e10df(0xd0),{'enumerable':!![],'get':function(){var _0x53847c=a6_0x3e10df;return configuration_1[_0x53847c(0xd3)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a7_0x581c(_0x4a398c,_0x1c0558){var _0x5197ea=a7_0x5197();return a7_0x581c=function(_0x581ccb,_0x5f2e03){_0x581ccb=_0x581ccb-0x119;var _0x184900=_0x5197ea[_0x581ccb];return _0x184900;},a7_0x581c(_0x4a398c,_0x1c0558);}var a7_0x6fd80b=a7_0x581c;(function(_0x580f88,_0x115f88){var _0x1a88dc=a7_0x581c,_0x1c81ed=_0x580f88();while(!![]){try{var _0x3a09e5=parseInt(_0x1a88dc(0x127))/0x1+parseInt(_0x1a88dc(0x122))/0x2+parseInt(_0x1a88dc(0x126))/0x3*(parseInt(_0x1a88dc(0x121))/0x4)+parseInt(_0x1a88dc(0x11f))/0x5*(parseInt(_0x1a88dc(0x11d))/0x6)+-parseInt(_0x1a88dc(0x11c))/0x7*(parseInt(_0x1a88dc(0x125))/0x8)+-parseInt(_0x1a88dc(0x128))/0x9*(-parseInt(_0x1a88dc(0x123))/0xa)+-parseInt(_0x1a88dc(0x120))/0xb;if(_0x3a09e5===_0x115f88)break;else _0x1c81ed['push'](_0x1c81ed['shift']());}catch(_0x4d18e9){_0x1c81ed['push'](_0x1c81ed['shift']());}}}(a7_0x5197,0x413e2));function a7_0x5197(){var _0xcd0acf=['VALIDATOR_KEY','15OmyHQD','6130289EYlSsY','56sigYGN','190924hfDHbo','12790FqKWLX','RULES_KEY','613880vUjRzO','32061PtkqBU','97142PpKOqp','2313yeipxr','defineProperty','__esModule','anncic-api:validator:validator','7qakwLH','460686LAaTAV'];a7_0x5197=function(){return _0xcd0acf;};return a7_0x5197();}Object[a7_0x6fd80b(0x119)](exports,a7_0x6fd80b(0x11a),{'value':!![]}),exports[a7_0x6fd80b(0x11e)]=exports[a7_0x6fd80b(0x124)]=void 0x0,exports['RULES_KEY']='anncic-api:validator:rules',exports[a7_0x6fd80b(0x11e)]=a7_0x6fd80b(0x11b);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a8_0x42c8(){const _0x2b005d=['metadata','282JbdAjQ','decorate','language','447050sYnSNA','keys','@midwayjs/core','validatorConfig','1245624ZqHWkM','__decorate','error','format','validationOptions','i18n','Init','validator','ScopeEnum','type','locale','9838tCvfvQ','design:returntype','defineProperty','design:type','value','i18nService','message','prototype','length','Config','forEach','date','Provide','assign','Singleton','@midwayjs/i18n','schema','i18nConfig','Scope','RULES_KEY','init','messages','errors','Inject','localeTable','7456887fUplRE','757609SUxLSN','16wUlsvJ','ValidatorService','getSchema','key','isSchema','joi','formatLocale','object','_flags','174kRpKvK','function','ValidatorError','defaultLocale','details','7814495IAJmhF','__esModule','getAvailableLocale','getClassExtendedMetadata','NOFIND_SCHEMA','$_terms','PARAMS','YYYY-MM-DD\x20HH:mm:ss','232225STvGDa'];a8_0x42c8=function(){return _0x2b005d;};return a8_0x42c8();}const a8_0x589d55=a8_0xc062;(function(_0x5b6697,_0x1785c3){const _0x5930ef=a8_0xc062,_0x5705b4=_0x5b6697();while(!![]){try{const _0x567529=-parseInt(_0x5930ef(0x13d))/0x1+-parseInt(_0x5930ef(0x123))/0x2*(parseInt(_0x5930ef(0x147))/0x3)+parseInt(_0x5930ef(0x118))/0x4+-parseInt(_0x5930ef(0x14c))/0x5+parseInt(_0x5930ef(0x111))/0x6*(parseInt(_0x5930ef(0x10f))/0x7)+-parseInt(_0x5930ef(0x13e))/0x8*(-parseInt(_0x5930ef(0x13c))/0x9)+-parseInt(_0x5930ef(0x114))/0xa;if(_0x567529===_0x1785c3)break;else _0x5705b4['push'](_0x5705b4['shift']());}catch(_0x597fdc){_0x5705b4['push'](_0x5705b4['shift']());}}}(a8_0x42c8,0xd6292));var __decorate=this&&this[a8_0x589d55(0x119)]||function(_0x917c8a,_0x2a0836,_0x20cb92,_0x2f1654){const _0x11287b=a8_0x589d55;var _0x4be2b0=arguments[_0x11287b(0x12b)],_0x50ac19=_0x4be2b0<0x3?_0x2a0836:_0x2f1654===null?_0x2f1654=Object['getOwnPropertyDescriptor'](_0x2a0836,_0x20cb92):_0x2f1654,_0x3c5901;if(typeof Reflect==='object'&&typeof Reflect[_0x11287b(0x112)]===_0x11287b(0x148))_0x50ac19=Reflect['decorate'](_0x917c8a,_0x2a0836,_0x20cb92,_0x2f1654);else{for(var _0x3798c0=_0x917c8a['length']-0x1;_0x3798c0>=0x0;_0x3798c0--)if(_0x3c5901=_0x917c8a[_0x3798c0])_0x50ac19=(_0x4be2b0<0x3?_0x3c5901(_0x50ac19):_0x4be2b0>0x3?_0x3c5901(_0x2a0836,_0x20cb92,_0x50ac19):_0x3c5901(_0x2a0836,_0x20cb92))||_0x50ac19;}return _0x4be2b0>0x3&&_0x50ac19&&Object[_0x11287b(0x125)](_0x2a0836,_0x20cb92,_0x50ac19),_0x50ac19;},__metadata=this&&this['__metadata']||function(_0x43e800,_0x40ab40){const _0x28ed4d=a8_0x589d55;if(typeof Reflect===_0x28ed4d(0x145)&&typeof Reflect[_0x28ed4d(0x110)]===_0x28ed4d(0x148))return Reflect[_0x28ed4d(0x110)](_0x43e800,_0x40ab40);};Object[a8_0x589d55(0x125)](exports,a8_0x589d55(0x14d),{'value':!![]}),exports[a8_0x589d55(0x13f)]=void 0x0;const Joi=require(a8_0x589d55(0x143)),i18n_1=require(a8_0x589d55(0x132)),core_1=require(a8_0x589d55(0x116)),interface_1=require('../interface'),ValidatorError_1=require('../exception/ValidatorError');function a8_0xc062(_0x12632f,_0xf5a2d3){const _0x42c8c7=a8_0x42c8();return a8_0xc062=function(_0xc062cc,_0x4d762f){_0xc062cc=_0xc062cc-0x10e;let _0x27fed8=_0x42c8c7[_0xc062cc];return _0x27fed8;},a8_0xc062(_0x12632f,_0xf5a2d3);}let ValidatorService=class ValidatorService{constructor(){const _0x44b5a3=a8_0x589d55;this[_0x44b5a3(0x138)]={};}async[a8_0x589d55(0x137)](){const _0x1ec747=a8_0x589d55,_0x3aa917=Object[_0x1ec747(0x115)](this['i18nConfig'][_0x1ec747(0x13b)]);_0x3aa917[_0x1ec747(0x12d)](_0x1f50d7=>{const _0x4eecd8=_0x1ec747;this[_0x4eecd8(0x138)][(0x0,i18n_1['formatLocale'])(_0x1f50d7)]=Object['fromEntries'](this['i18nService']['getLocaleMapping'](_0x1f50d7,'validator'));});}['getSchema'](_0xaf1f28){const _0x447dc4=a8_0x589d55,_0x23e7d2=(0x0,core_1[_0x447dc4(0x14f)])(interface_1[_0x447dc4(0x136)],_0xaf1f28);return _0x23e7d2?Joi[_0x447dc4(0x145)](_0x23e7d2):undefined;}[a8_0x589d55(0x11f)](_0x61f844,_0x2f5125,_0x3571cf={}){const _0x3efbb3=a8_0x589d55;var _0x468238,_0x427177,_0x367c8c,_0x3fb013,_0x2710f7;const _0x39cf0f=Joi[_0x3efbb3(0x142)](_0x61f844)?_0x61f844:this[_0x3efbb3(0x140)](_0x61f844);if(!_0x39cf0f)throw new AnnError(ValidatorError_1[_0x3efbb3(0x149)][_0x3efbb3(0x150)]);_0x3571cf[_0x3efbb3(0x11c)]=Object[_0x3efbb3(0x130)]((_0x468238=this[_0x3efbb3(0x117)]['validationOptions'])!==null&&_0x468238!==void 0x0?_0x468238:{},{'messages':this[_0x3efbb3(0x138)]},_0x3571cf['validationOptions']||{}),_0x3571cf[_0x3efbb3(0x11c)][_0x3efbb3(0x139)]=_0x3571cf['validationOptions'][_0x3efbb3(0x139)]||{},_0x3571cf[_0x3efbb3(0x11c)][_0x3efbb3(0x139)][_0x3efbb3(0x113)]=(0x0,i18n_1[_0x3efbb3(0x144)])(this['i18nService'][_0x3efbb3(0x14e)](_0x3571cf[_0x3efbb3(0x11c)][_0x3efbb3(0x139)][_0x3efbb3(0x113)]||_0x3571cf[_0x3efbb3(0x122)]||this[_0x3efbb3(0x134)][_0x3efbb3(0x14a)],'validator'));const _0x5a5b47=_0x39cf0f['validate'](_0x2f5125,_0x3571cf[_0x3efbb3(0x11c)]);if(_0x5a5b47===null||_0x5a5b47===void 0x0?void 0x0:_0x5a5b47[_0x3efbb3(0x11a)])throw new AnnError(ValidatorError_1['ValidatorError'][_0x3efbb3(0x152)],{'message':((_0x3fb013=(_0x367c8c=(_0x427177=_0x5a5b47[_0x3efbb3(0x11a)])===null||_0x427177===void 0x0?void 0x0:_0x427177[_0x3efbb3(0x14b)])===null||_0x367c8c===void 0x0?void 0x0:_0x367c8c[0x0])===null||_0x3fb013===void 0x0?void 0x0:_0x3fb013[_0x3efbb3(0x129)])||'参数验证失败'});if(_0x5a5b47===null||_0x5a5b47===void 0x0?void 0x0:_0x5a5b47[_0x3efbb3(0x127)]){const _0x4fa6cf=(_0x2710f7=_0x39cf0f===null||_0x39cf0f===void 0x0?void 0x0:_0x39cf0f[_0x3efbb3(0x151)])===null||_0x2710f7===void 0x0?void 0x0:_0x2710f7[_0x3efbb3(0x115)],_0x38ae79=function(_0x4f3a22,_0x229c6a){const _0x559f51=_0x3efbb3;var _0x35a40e,_0x1ab030,_0x44dc8d,_0x5e3a7d,_0x222dde,_0x2bb66b,_0x405bb9,_0x4f8e2b,_0x2697fa,_0x4a4860,_0x4a31fc;for(let _0x50352d in _0x4f3a22){if(_0x229c6a[(_0x35a40e=_0x4f3a22[_0x50352d])===null||_0x35a40e===void 0x0?void 0x0:_0x35a40e['key']]&&((_0x44dc8d=(_0x1ab030=_0x4f3a22[_0x50352d])===null||_0x1ab030===void 0x0?void 0x0:_0x1ab030['schema'])===null||_0x44dc8d===void 0x0?void 0x0:_0x44dc8d['type'])){if(((_0x222dde=(_0x5e3a7d=_0x4f3a22[_0x50352d])===null||_0x5e3a7d===void 0x0?void 0x0:_0x5e3a7d[_0x559f51(0x133)])===null||_0x222dde===void 0x0?void 0x0:_0x222dde[_0x559f51(0x121)])==_0x559f51(0x145))_0x229c6a[_0x4f3a22[_0x50352d]['key']]=_0x38ae79((_0x405bb9=(_0x2bb66b=_0x4f3a22[_0x50352d])===null||_0x2bb66b===void 0x0?void 0x0:_0x2bb66b[_0x559f51(0x133)]['$_terms'])===null||_0x405bb9===void 0x0?void 0x0:_0x405bb9[_0x559f51(0x115)],_0x229c6a[_0x4f3a22[_0x50352d][_0x559f51(0x141)]]);else{if(_0x4f3a22[_0x50352d][_0x559f51(0x133)][_0x559f51(0x121)]==_0x559f51(0x12e)&&_0x5a5b47[_0x559f51(0x127)][(_0x4f8e2b=_0x4f3a22[_0x50352d])===null||_0x4f8e2b===void 0x0?void 0x0:_0x4f8e2b['key']]){const _0x3b0242=((_0x4a31fc=(_0x4a4860=(_0x2697fa=_0x4f3a22[_0x50352d])===null||_0x2697fa===void 0x0?void 0x0:_0x2697fa[_0x559f51(0x133)])===null||_0x4a4860===void 0x0?void 0x0:_0x4a4860[_0x559f51(0x146)])===null||_0x4a31fc===void 0x0?void 0x0:_0x4a31fc[_0x559f51(0x11b)])||_0x559f51(0x10e);_0x229c6a[_0x4f3a22[_0x50352d][_0x559f51(0x141)]]=dayjs(_0x5a5b47['value'][_0x4f3a22[_0x50352d][_0x559f51(0x141)]])[_0x559f51(0x11b)](_0x3b0242);}}}}return _0x229c6a;};return _0x38ae79(_0x4fa6cf,_0x5a5b47[_0x3efbb3(0x127)]);}throw new AnnError(ValidatorError_1[_0x3efbb3(0x149)][_0x3efbb3(0x152)]);}};__decorate([(0x0,core_1[a8_0x589d55(0x12c)])(a8_0x589d55(0x11d)),__metadata(a8_0x589d55(0x126),Object)],ValidatorService[a8_0x589d55(0x12a)],'i18nConfig',void 0x0),__decorate([(0x0,core_1[a8_0x589d55(0x12c)])('validator'),__metadata(a8_0x589d55(0x126),Object)],ValidatorService[a8_0x589d55(0x12a)],'validatorConfig',void 0x0),__decorate([(0x0,core_1[a8_0x589d55(0x13a)])(),__metadata(a8_0x589d55(0x126),i18n_1['MidwayI18nServiceSingleton'])],ValidatorService[a8_0x589d55(0x12a)],a8_0x589d55(0x128),void 0x0),__decorate([(0x0,core_1[a8_0x589d55(0x11e)])(),__metadata(a8_0x589d55(0x126),Function),__metadata('design:paramtypes',[]),__metadata(a8_0x589d55(0x124),Promise)],ValidatorService[a8_0x589d55(0x12a)],a8_0x589d55(0x137),null),ValidatorService=__decorate([(0x0,core_1[a8_0x589d55(0x12f)])('validator'),(0x0,core_1[a8_0x589d55(0x135)])(core_1[a8_0x589d55(0x120)][a8_0x589d55(0x131)])],ValidatorService),exports['ValidatorService']=ValidatorService;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/validator",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.8",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/core": "^1.4.
|
|
20
|
+
"@anncic-api/core": "^1.4.8",
|
|
21
21
|
"@joi/date": "^2.1.0",
|
|
22
22
|
"joi": "^17.7.0"
|
|
23
23
|
},
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"javascript-obfuscator": "2.19.0",
|
|
27
27
|
"typescript": "^4.7.4"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "a79c57bf63ef0c1d281921c6f32c3496cefb6c62"
|
|
30
30
|
}
|