@anncic-api/validator 1.3.15 → 1.3.17
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/index.d.ts +10 -0
- package/package.json +6 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a0_0x3fb94c=a0_0x1a3b;(function(_0x273ddf,_0x451809){const _0xcd0489=a0_0x1a3b,_0x53ad39=_0x273ddf();while(!![]){try{const _0x25e9e7=-parseInt(_0xcd0489(0xc7))/0x1+-parseInt(_0xcd0489(0xca))/0x2*(parseInt(_0xcd0489(0xc6))/0x3)+parseInt(_0xcd0489(0xcb))/0x4*(-parseInt(_0xcd0489(0xc0))/0x5)+-parseInt(_0xcd0489(0xcf))/0x6*(parseInt(_0xcd0489(0xd0))/0x7)+parseInt(_0xcd0489(0xcd))/0x8*(parseInt(_0xcd0489(0xce))/0x9)+parseInt(_0xcd0489(0xc2))/0xa*(parseInt(_0xcd0489(0xc5))/0xb)+parseInt(_0xcd0489(0xcc))/0xc;if(_0x25e9e7===_0x451809)break;else _0x53ad39['push'](_0x53ad39['shift']());}catch(_0xc9682e){_0x53ad39['push'](_0x53ad39['shift']());}}}(a0_0x1452,0x4c0f9));function a0_0x1a3b(_0x51dec9,_0x2c2a54){const _0x14522e=a0_0x1452();return a0_0x1a3b=function(_0x1a3b21,_0x28db19){_0x1a3b21=_0x1a3b21-0xc0;let _0x3521e7=_0x14522e[_0x1a3b21];return _0x3521e7;},a0_0x1a3b(_0x51dec9,_0x2c2a54);}function a0_0x1452(){const _0x4fb7f8=['__esModule','12bILaBl','1907884Nwskan','14711772MjCGDH','40MIjRmt','18387MGzbdq','48axczSd','479885aGOzxs','default','5FmCOrl','../exception/ValidatorError','3102860CmxVNB','../../locales/zh_CN.json','defineProperty','22cPKUPS','219762GecjfP','80288xXPzXB','PARAMS'];a0_0x1452=function(){return _0x4fb7f8;};return a0_0x1452();}Object[a0_0x3fb94c(0xc4)](exports,a0_0x3fb94c(0xc9),{'value':!![]});const ValidatorError_1=require(a0_0x3fb94c(0xc1));exports[a0_0x3fb94c(0xd1)]={'validator':{'errorStatus':ValidatorError_1['ValidatorError'][a0_0x3fb94c(0xc8)],'validationOptions':{}},'i18n':{'localeTable':{'en_US':{'validator':require('../../locales/en_US.json')},'zh_CN':{'validator':require(a0_0x3fb94c(0xc3))}}}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a1_0x16fa9a=a1_0x32f2;function a1_0x48d0(){const _0x20e14a=['getAttr','MidwayDecoratorService','args','./interface','metadata','length','425019eCBDxL','target','161kJYgPz','./service/ValidatorService','defineProperty','locale','decorator','params','VALIDATOR_KEY','prototype','I18N_ATTR_KEY','./config/config.default','query','1fRQToI','__decorate','method','validator','splice','object','bound\x20dispatch','Inject','REQUEST_OBJ_CTX_KEY','methodName','878784oUCPXq','getOwnPropertyDescriptor','170fUKcNe','onReady','res','decorate','design:type','@midwayjs/core','assign','@midwayjs/i18n','function','request','584639fVlrtq','methodArgs','ValidatorService','171158KctfMy','34312tADGfX','getMethodParamTypes','__esModule','135428TjXwfg','25jTLCVH','name','registerMethodHandler','getSchema','848772hzICpl','__metadata','anncic-api:validator','propertyName'];a1_0x48d0=function(){return _0x20e14a;};return a1_0x48d0();}(function(_0x3acae5,_0x30d866){const _0x567c6b=a1_0x32f2,_0x2d9739=_0x3acae5();while(!![]){try{const _0xbf1c78=parseInt(_0x567c6b(0x14e))/0x1*(-parseInt(_0x567c6b(0x12e))/0x2)+-parseInt(_0x567c6b(0x141))/0x3+parseInt(_0x567c6b(0x132))/0x4*(-parseInt(_0x567c6b(0x133))/0x5)+-parseInt(_0x567c6b(0x158))/0x6+-parseInt(_0x567c6b(0x143))/0x7*(parseInt(_0x567c6b(0x12f))/0x8)+-parseInt(_0x567c6b(0x137))/0x9+-parseInt(_0x567c6b(0x15a))/0xa*(-parseInt(_0x567c6b(0x12b))/0xb);if(_0xbf1c78===_0x30d866)break;else _0x2d9739['push'](_0x2d9739['shift']());}catch(_0x518f5d){_0x2d9739['push'](_0x2d9739['shift']());}}}(a1_0x48d0,0x28e99));var __decorate=this&&this[a1_0x16fa9a(0x14f)]||function(_0x104e6b,_0x31c5bb,_0x4eb7bd,_0x553430){const _0x5f0883=a1_0x16fa9a;var _0x374016=arguments[_0x5f0883(0x140)],_0x2fc192=_0x374016<0x3?_0x31c5bb:_0x553430===null?_0x553430=Object[_0x5f0883(0x159)](_0x31c5bb,_0x4eb7bd):_0x553430,_0x2106fd;if(typeof Reflect===_0x5f0883(0x153)&&typeof Reflect[_0x5f0883(0x124)]==='function')_0x2fc192=Reflect['decorate'](_0x104e6b,_0x31c5bb,_0x4eb7bd,_0x553430);else{for(var _0xed5bfe=_0x104e6b[_0x5f0883(0x140)]-0x1;_0xed5bfe>=0x0;_0xed5bfe--)if(_0x2106fd=_0x104e6b[_0xed5bfe])_0x2fc192=(_0x374016<0x3?_0x2106fd(_0x2fc192):_0x374016>0x3?_0x2106fd(_0x31c5bb,_0x4eb7bd,_0x2fc192):_0x2106fd(_0x31c5bb,_0x4eb7bd))||_0x2fc192;}return _0x374016>0x3&&_0x2fc192&&Object[_0x5f0883(0x145)](_0x31c5bb,_0x4eb7bd,_0x2fc192),_0x2fc192;},__metadata=this&&this[a1_0x16fa9a(0x138)]||function(_0x55ca8e,_0x321c08){const _0x5d8b59=a1_0x16fa9a;if(typeof Reflect===_0x5d8b59(0x153)&&typeof Reflect[_0x5d8b59(0x13f)]===_0x5d8b59(0x129))return Reflect['metadata'](_0x55ca8e,_0x321c08);};Object[a1_0x16fa9a(0x145)](exports,a1_0x16fa9a(0x131),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const i18n_1=require(a1_0x16fa9a(0x128)),core_1=require(a1_0x16fa9a(0x126)),core_2=require(a1_0x16fa9a(0x126)),interface_1=require(a1_0x16fa9a(0x13e)),ValidatorService_1=require(a1_0x16fa9a(0x144)),i18n=require('@midwayjs/i18n'),anncic=require('@anncic-api/core'),ConfigDefault=require(a1_0x16fa9a(0x14c));function a1_0x32f2(_0x5f0805,_0x8c892f){const _0x48d0cd=a1_0x48d0();return a1_0x32f2=function(_0x32f240,_0x1fc2b9){_0x32f240=_0x32f240-0x122;let _0x3e2e6a=_0x48d0cd[_0x32f240];return _0x3e2e6a;},a1_0x32f2(_0x5f0805,_0x8c892f);}let CustomConfiguration=class CustomConfiguration{async[a1_0x16fa9a(0x122)](){const _0x598743=a1_0x16fa9a;this[_0x598743(0x147)][_0x598743(0x135)](interface_1[_0x598743(0x149)],_0x5b667e=>{const _0x232994=_0x598743,_0x3dec22=_0x5b667e[_0x232994(0x13f)],_0x165145=(0x0,core_2[_0x232994(0x130)])(_0x5b667e[_0x232994(0x142)],_0x5b667e[_0x232994(0x13a)]);return{'before':_0x23583b=>{const _0x3f4edb=_0x232994;var _0x1d41bc,_0x13a5ee,_0x4bf7bb,_0x59567d,_0x37e105,_0x3c61e7,_0x4634de,_0x447316,_0x12a05c,_0x268579,_0x21a829,_0x568483,_0x25d3b8;const _0x91999b=_0x23583b[_0x3f4edb(0x142)][core_1[_0x3f4edb(0x156)]],_0x4ec2ad=Object[_0x3f4edb(0x127)]({},((_0x1d41bc=_0x91999b===null||_0x91999b===void 0x0?void 0x0:_0x91999b[_0x3f4edb(0x12a)])===null||_0x1d41bc===void 0x0?void 0x0:_0x1d41bc[_0x3f4edb(0x14d)])||{},((_0x13a5ee=_0x91999b===null||_0x91999b===void 0x0?void 0x0:_0x91999b[_0x3f4edb(0x12a)])===null||_0x13a5ee===void 0x0?void 0x0:_0x13a5ee['body'])||{}),_0xe90090=((0x0,core_2['getClassMetadata'])(interface_1[_0x3f4edb(0x149)],_0x23583b['target'])||[])['find'](_0x163ea4=>_0x163ea4[_0x3f4edb(0x150)]==_0x23583b[_0x3f4edb(0x157)]);!(_0x3dec22===null||_0x3dec22===void 0x0?void 0x0:_0x3dec22[_0x3f4edb(0x146)])&&_0x91999b&&_0x91999b[_0x3f4edb(0x13b)]&&(_0x3dec22[_0x3f4edb(0x146)]=_0x91999b['getAttr'](i18n_1[_0x3f4edb(0x14b)]));for(let _0x242a2c=0x0;_0x242a2c<_0x165145[_0x3f4edb(0x140)];_0x242a2c++){const _0x1d4311=_0x165145[_0x242a2c],_0x578900=this[_0x3f4edb(0x12d)][_0x3f4edb(0x136)](_0x1d4311);if(_0x578900){if(typeof _0x23583b[_0x3f4edb(0x13d)][_0x242a2c]=='undefined'||((_0x4bf7bb=_0x23583b[_0x3f4edb(0x13d)][_0x242a2c])===null||_0x4bf7bb===void 0x0?void 0x0:_0x4bf7bb[_0x3f4edb(0x12a)])&&((_0x59567d=_0x23583b[_0x3f4edb(0x13d)][_0x242a2c])===null||_0x59567d===void 0x0?void 0x0:_0x59567d[_0x3f4edb(0x123)])&&((_0x37e105=_0x23583b[_0x3f4edb(0x13d)][_0x242a2c])===null||_0x37e105===void 0x0?void 0x0:_0x37e105['req']))_0x23583b['args'][_0x242a2c]=_0x4ec2ad;else((_0x3c61e7=_0x23583b[_0x3f4edb(0x13d)][_0x242a2c])===null||_0x3c61e7===void 0x0?void 0x0:_0x3c61e7[_0x3f4edb(0x134)])==_0x3f4edb(0x154)&&_0x23583b['args'][_0x3f4edb(0x152)](_0x242a2c,0x0,_0x4ec2ad);const _0x54331f=this['ValidatorService'][_0x3f4edb(0x151)](_0x578900,_0x23583b['args'][_0x242a2c],_0x3dec22);_0x54331f&&(_0x23583b[_0x3f4edb(0x13d)][_0x242a2c]=_0x54331f);}else{if((_0xe90090===null||_0xe90090===void 0x0?void 0x0:_0xe90090[_0x3f4edb(0x12c)][_0x242a2c])&&((_0x4634de=_0x23583b[_0x3f4edb(0x13d)][_0x242a2c])===null||_0x4634de===void 0x0?void 0x0:_0x4634de['params'])&&typeof _0x23583b[_0x3f4edb(0x13d)][_0x242a2c]['param']==_0x3f4edb(0x129)&&((_0x447316=_0x91999b===null||_0x91999b===void 0x0?void 0x0:_0x91999b[_0x3f4edb(0x148)])===null||_0x447316===void 0x0?void 0x0:_0x447316[_0xe90090['methodArgs'][_0x242a2c]]))_0x23583b[_0x3f4edb(0x13d)][_0x242a2c]=_0x1d4311((_0x12a05c=_0x91999b===null||_0x91999b===void 0x0?void 0x0:_0x91999b[_0x3f4edb(0x148)])===null||_0x12a05c===void 0x0?void 0x0:_0x12a05c[_0xe90090['methodArgs'][_0x242a2c]]);else(_0xe90090===null||_0xe90090===void 0x0?void 0x0:_0xe90090['methodArgs'][_0x242a2c])&&((_0x21a829=(_0x268579=_0x23583b[_0x3f4edb(0x13d)][_0x242a2c])===null||_0x268579===void 0x0?void 0x0:_0x268579['params'])===null||_0x21a829===void 0x0?void 0x0:_0x21a829[_0xe90090[_0x3f4edb(0x12c)][_0x242a2c]])&&(_0x23583b[_0x3f4edb(0x13d)][_0x242a2c]=(_0x25d3b8=(_0x568483=_0x23583b[_0x3f4edb(0x13d)][_0x242a2c])===null||_0x568483===void 0x0?void 0x0:_0x568483[_0x3f4edb(0x148)])===null||_0x25d3b8===void 0x0?void 0x0:_0x25d3b8[_0xe90090[_0x3f4edb(0x12c)][_0x242a2c]]);}}},'afterThrow':(_0x2af916,_0x4e5b59)=>{throw _0x4e5b59;}};});}};__decorate([(0x0,core_2[a1_0x16fa9a(0x155)])(),__metadata(a1_0x16fa9a(0x125),core_1[a1_0x16fa9a(0x13c)])],CustomConfiguration[a1_0x16fa9a(0x14a)],a1_0x16fa9a(0x147),void 0x0),__decorate([(0x0,core_2[a1_0x16fa9a(0x155)])(),__metadata(a1_0x16fa9a(0x125),ValidatorService_1[a1_0x16fa9a(0x12d)])],CustomConfiguration[a1_0x16fa9a(0x14a)],a1_0x16fa9a(0x12d),void 0x0),CustomConfiguration=__decorate([(0x0,core_2['Configuration'])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':a1_0x16fa9a(0x139),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
package/dist/decorator/Rule.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a2_0x3c57(_0x5c8626,_0x20888a){const _0x2a2b5f=a2_0x2a2b();return a2_0x3c57=function(_0x3c57af,_0x527008){_0x3c57af=_0x3c57af-0xb1;let _0x56317a=_0x2a2b5f[_0x3c57af];return _0x56317a;},a2_0x3c57(_0x5c8626,_0x20888a);}const a2_0x1e7179=a2_0x3c57;function a2_0x2a2b(){const _0x272d9c=['1513912CHlHUO','RULES_KEY','name','array','meta','5269812XxVGHS','keys','label','items','__esModule','function','8365cFDTVM','5846454ptiioj','405478CWLbvD','5ErvEtB','map','75252KvbuKF','isSchema','762830egnHfc','defineProperty','getPropertyType','object','extend','Rule','22mZZfIr','2oIETuX','@midwayjs/core','description','default','RuleType','getClassMetadata','4040xpRlFq','joi','@joi/date','9dggDTv'];a2_0x2a2b=function(){return _0x272d9c;};return a2_0x2a2b();}(function(_0x41b1dd,_0x3e6a4c){const _0x5bb0d5=a2_0x3c57,_0x4eed12=_0x41b1dd();while(!![]){try{const _0x52b4bc=-parseInt(_0x5bb0d5(0xbd))/0x1+parseInt(_0x5bb0d5(0xc9))/0x2*(parseInt(_0x5bb0d5(0xc0))/0x3)+-parseInt(_0x5bb0d5(0xd3))/0x4*(parseInt(_0x5bb0d5(0xbe))/0x5)+parseInt(_0x5bb0d5(0xbc))/0x6+parseInt(_0x5bb0d5(0xbb))/0x7*(-parseInt(_0x5bb0d5(0xcf))/0x8)+parseInt(_0x5bb0d5(0xd2))/0x9*(parseInt(_0x5bb0d5(0xc2))/0xa)+-parseInt(_0x5bb0d5(0xc8))/0xb*(-parseInt(_0x5bb0d5(0xb5))/0xc);if(_0x52b4bc===_0x3e6a4c)break;else _0x4eed12['push'](_0x4eed12['shift']());}catch(_0x1b2637){_0x4eed12['push'](_0x4eed12['shift']());}}}(a2_0x2a2b,0x8a577));Object[a2_0x1e7179(0xc3)](exports,a2_0x1e7179(0xb9),{'value':!![]}),exports[a2_0x1e7179(0xc7)]=exports[a2_0x1e7179(0xcd)]=void 0x0;const joi=require(a2_0x1e7179(0xd0)),date_1=require(a2_0x1e7179(0xd1)),core_1=require(a2_0x1e7179(0xca)),interface_1=require('../interface');exports[a2_0x1e7179(0xcd)]=joi[a2_0x1e7179(0xc6)](date_1[a2_0x1e7179(0xcc)]);function Rule(_0x475b55,_0x7e28e9,_0x2194c1=''){return(_0x575dd4,_0x45042f)=>{const _0x8b195f=a2_0x3c57;var _0x4be099;if(_0x45042f)!joi[_0x8b195f(0xc1)](_0x7e28e9)&&(_0x7e28e9===null||_0x7e28e9===void 0x0?void 0x0:_0x7e28e9[_0x8b195f(0xb2)])&&(_0x7e28e9=joi[_0x8b195f(0xc5)]((0x0,core_1[_0x8b195f(0xce)])(interface_1['RULES_KEY'],_0x7e28e9))[_0x8b195f(0xb4)]({'id':_0x7e28e9['name']}),(0x0,core_1[_0x8b195f(0xc4)])(_0x575dd4,_0x45042f)[_0x8b195f(0xb2)]==='Array'&&(_0x7e28e9=joi[_0x8b195f(0xb3)]()[_0x8b195f(0xb8)](_0x7e28e9))),joi[_0x8b195f(0xc1)](_0x7e28e9)&&(_0x475b55&&typeof(_0x7e28e9===null||_0x7e28e9===void 0x0?void 0x0:_0x7e28e9[_0x8b195f(0xb7)])==_0x8b195f(0xba)&&(_0x7e28e9=_0x7e28e9['label'](_0x475b55)),_0x2194c1&&typeof(_0x7e28e9===null||_0x7e28e9===void 0x0?void 0x0:_0x7e28e9[_0x8b195f(0xcb)])==_0x8b195f(0xba)&&(_0x7e28e9=_0x7e28e9[_0x8b195f(0xcb)](_0x2194c1)),(0x0,core_1['attachClassMetadata'])(interface_1[_0x8b195f(0xb1)],_0x7e28e9,_0x575dd4,_0x45042f));else{const _0x1f2a6a=(0x0,core_1[_0x8b195f(0xce)])(interface_1[_0x8b195f(0xb1)],_0x7e28e9);if(_0x1f2a6a){let _0x90007b=(_0x4be099=(0x0,core_1[_0x8b195f(0xce)])(interface_1[_0x8b195f(0xb1)],_0x575dd4))!==null&&_0x4be099!==void 0x0?_0x4be099:{};Object[_0x8b195f(0xb6)](_0x1f2a6a)[_0x8b195f(0xbf)](_0x16334c=>{!_0x90007b[_0x16334c]&&(_0x90007b[_0x16334c]=_0x1f2a6a[_0x16334c]);}),(0x0,core_1['saveClassMetadata'])(interface_1[_0x8b195f(0xb1)],_0x90007b,_0x575dd4);}}};}exports[a2_0x1e7179(0xc7)]=Rule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a3_0x170bce=a3_0x5a7c;function a3_0x5a7c(_0x243a04,_0x55644b){const _0x1b35b1=a3_0x1b35();return a3_0x5a7c=function(_0x5a7c83,_0x297301){_0x5a7c83=_0x5a7c83-0x100;let _0x280ae2=_0x1b35b1[_0x5a7c83];return _0x280ae2;},a3_0x5a7c(_0x243a04,_0x55644b);}(function(_0x28a06d,_0x11a9f8){const _0xb712fa=a3_0x5a7c,_0x2d41f7=_0x28a06d();while(!![]){try{const _0x2c264f=-parseInt(_0xb712fa(0x10a))/0x1+-parseInt(_0xb712fa(0x112))/0x2*(-parseInt(_0xb712fa(0x111))/0x3)+parseInt(_0xb712fa(0x10c))/0x4*(parseInt(_0xb712fa(0x106))/0x5)+parseInt(_0xb712fa(0x110))/0x6+-parseInt(_0xb712fa(0x115))/0x7+-parseInt(_0xb712fa(0x103))/0x8+parseInt(_0xb712fa(0x105))/0x9*(parseInt(_0xb712fa(0x100))/0xa);if(_0x2c264f===_0x11a9f8)break;else _0x2d41f7['push'](_0x2d41f7['shift']());}catch(_0x5b07f3){_0x2d41f7['push'](_0x2d41f7['shift']());}}}(a3_0x1b35,0x9f1a7));function a3_0x1b35(){const _0x3d8d50=['117ollgLG','110TlZBDH','replace','__esModule','prototype','789305RSXbIT','Validator','53136pPmPjR','VALIDATOR_KEY','defineProperty','getFuncArgs','5761608UsktRP','1808385fpYEuo','2jbrgiu','@midwayjs/core','indexOf','6619438OIiEPU','767290BZvOhS','function','constructor','3729296fryFAr','toString'];a3_0x1b35=function(){return _0x3d8d50;};return a3_0x1b35();}Object[a3_0x170bce(0x10e)](exports,a3_0x170bce(0x108),{'value':!![]}),exports['getFuncArgs']=exports[a3_0x170bce(0x10b)]=void 0x0;const core_1=require(a3_0x170bce(0x113)),interface_1=require('../interface');function Validator(_0xb9ce68={}){return(_0xd47023,_0x209440,_0x384d79)=>{const _0xb0b067=a3_0x5a7c,_0x12c6f6=getFuncArgs(_0xd47023[_0x209440]);(0x0,core_1['attachClassMetadata'])(interface_1['VALIDATOR_KEY'],{'method':_0x209440,'methodArgs':_0x12c6f6},_0xd47023),(0x0,core_1['createCustomMethodDecorator'])(interface_1[_0xb0b067(0x10d)],_0xb9ce68)(_0xd47023,_0x209440,_0x384d79);};}exports['Validator']=Validator;function getFuncArgs(_0x26ec1b){const _0x24909f=a3_0x170bce;if(typeof _0x26ec1b==_0x24909f(0x101)){const _0x20cbe0=/=>.*$/mg,_0x418f8a=/=[^,)]+/mg,_0x196e69=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x1ba793=(_0x26ec1b[_0x24909f(0x109)]?_0x26ec1b[_0x24909f(0x109)][_0x24909f(0x102)][_0x24909f(0x104)]():_0x26ec1b[_0x24909f(0x104)]())[_0x24909f(0x107)](_0x196e69,'')[_0x24909f(0x107)](_0x20cbe0,'')[_0x24909f(0x107)](_0x418f8a,''),_0xedbb88=_0x1ba793['slice'](_0x1ba793[_0x24909f(0x114)]('(')+0x1,_0x1ba793['indexOf'](')'))['match'](/([^\s,]+)/g)||[];return _0xedbb88;}}exports[a3_0x170bce(0x10f)]=getFuncArgs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a4_0x4d55(_0x5059a9,_0x34ffdf){var _0x58c6eb=a4_0x58c6();return a4_0x4d55=function(_0x4d5524,_0x22e4f6){_0x4d5524=_0x4d5524-0x11a;var _0x23b5ff=_0x58c6eb[_0x4d5524];return _0x23b5ff;},a4_0x4d55(_0x5059a9,_0x34ffdf);}var a4_0x3eefac=a4_0x4d55;(function(_0x2c1899,_0x38abf6){var _0xd63e78=a4_0x4d55,_0x326a18=_0x2c1899();while(!![]){try{var _0x203d0e=parseInt(_0xd63e78(0x11f))/0x1+-parseInt(_0xd63e78(0x12e))/0x2*(parseInt(_0xd63e78(0x12a))/0x3)+parseInt(_0xd63e78(0x12c))/0x4+parseInt(_0xd63e78(0x129))/0x5*(-parseInt(_0xd63e78(0x121))/0x6)+parseInt(_0xd63e78(0x12b))/0x7+-parseInt(_0xd63e78(0x11e))/0x8*(parseInt(_0xd63e78(0x126))/0x9)+parseInt(_0xd63e78(0x12f))/0xa;if(_0x203d0e===_0x38abf6)break;else _0x326a18['push'](_0x326a18['shift']());}catch(_0x21791d){_0x326a18['push'](_0x326a18['shift']());}}}(a4_0x58c6,0x59934));var __decorate=this&&this[a4_0x3eefac(0x11b)]||function(_0x3da41e,_0x1ccf6f,_0xc5b86e,_0x2c4f0a){var _0x38837a=a4_0x3eefac,_0x32e275=arguments[_0x38837a(0x122)],_0x46fee2=_0x32e275<0x3?_0x1ccf6f:_0x2c4f0a===null?_0x2c4f0a=Object['getOwnPropertyDescriptor'](_0x1ccf6f,_0xc5b86e):_0x2c4f0a,_0x32915d;if(typeof Reflect===_0x38837a(0x11d)&&typeof Reflect[_0x38837a(0x120)]==='function')_0x46fee2=Reflect[_0x38837a(0x120)](_0x3da41e,_0x1ccf6f,_0xc5b86e,_0x2c4f0a);else{for(var _0x464b59=_0x3da41e['length']-0x1;_0x464b59>=0x0;_0x464b59--)if(_0x32915d=_0x3da41e[_0x464b59])_0x46fee2=(_0x32e275<0x3?_0x32915d(_0x46fee2):_0x32e275>0x3?_0x32915d(_0x1ccf6f,_0xc5b86e,_0x46fee2):_0x32915d(_0x1ccf6f,_0xc5b86e))||_0x46fee2;}return _0x32e275>0x3&&_0x46fee2&&Object[_0x38837a(0x11a)](_0x1ccf6f,_0xc5b86e,_0x46fee2),_0x46fee2;},__metadata=this&&this[a4_0x3eefac(0x125)]||function(_0x34995a,_0x41c8e2){var _0x48f861=a4_0x3eefac;if(typeof Reflect===_0x48f861(0x11d)&&typeof Reflect['metadata']==='function')return Reflect[_0x48f861(0x127)](_0x34995a,_0x41c8e2);};function a4_0x58c6(){var _0x1b2ca1=['PARAMS','__metadata','3258153iuiDsv','metadata','design:type','4190ZcONyY','3tOyvUf','2099426AvwORl','2023892anzlqU','ValidatorError','1057682DVQixs','9427160HPqLYI','@anncic-api/core','defineProperty','__decorate','AnnErrorMsg','object','16VeeOla','29550qtTFKE','decorate','1134HPCGuV','length','参数验证失败'];a4_0x58c6=function(){return _0x1b2ca1;};return a4_0x58c6();}Object[a4_0x3eefac(0x11a)](exports,'__esModule',{'value':!![]}),exports[a4_0x3eefac(0x12d)]=void 0x0;const core_1=require(a4_0x3eefac(0x130));class ValidatorError{}ValidatorError[a4_0x3eefac(0x124)]=0x3df374,ValidatorError['NOFIND_SCHEMA']=0x3df36a,__decorate([(0x0,core_1[a4_0x3eefac(0x11c)])(a4_0x3eefac(0x123)),__metadata('design:type',Object)],ValidatorError,a4_0x3eefac(0x124),void 0x0),__decorate([(0x0,core_1[a4_0x3eefac(0x11c)])(a4_0x3eefac(0x123)),__metadata(a4_0x3eefac(0x128),Object)],ValidatorError,'NOFIND_SCHEMA',void 0x0),exports[a4_0x3eefac(0x12d)]=ValidatorError;
|
package/dist/helper/dtoHelper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0x3cebc4=a5_0x88ea;function a5_0x5695(){const _0x46b931=['@midwayjs/core','assign','690879AFqyLW','getClassExtendedMetadata','1391859LnEcFi','148695OvqYsu','prototype','6uuysKk','__esModule','OmitDto','PickDto','12RbdYHs','RULES_KEY','2339037wCQIrK','736712zySoHW','defineProperty','../interface','145572edmpLn','204644cgFnJf'];a5_0x5695=function(){return _0x46b931;};return a5_0x5695();}(function(_0x772ae6,_0x1f2998){const _0x4777f5=a5_0x88ea,_0x1c6ce6=_0x772ae6();while(!![]){try{const _0x4940b2=-parseInt(_0x4777f5(0x162))/0x1+parseInt(_0x4777f5(0x163))/0x2+parseInt(_0x4777f5(0x166))/0x3+-parseInt(_0x4777f5(0x15c))/0x4*(-parseInt(_0x4777f5(0x169))/0x5)+parseInt(_0x4777f5(0x158))/0x6*(parseInt(_0x4777f5(0x168))/0x7)+-parseInt(_0x4777f5(0x15f))/0x8+-parseInt(_0x4777f5(0x15e))/0x9;if(_0x4940b2===_0x1f2998)break;else _0x1c6ce6['push'](_0x1c6ce6['shift']());}catch(_0x18be73){_0x1c6ce6['push'](_0x1c6ce6['shift']());}}}(a5_0x5695,0x1e0eb));Object[a5_0x3cebc4(0x160)](exports,a5_0x3cebc4(0x159),{'value':!![]}),exports[a5_0x3cebc4(0x15a)]=exports['PickDto']=void 0x0;const core_1=require(a5_0x3cebc4(0x164)),interface_1=require(a5_0x3cebc4(0x161));function PickDto(_0x1c7bb3,_0x456041){const _0x3eaed8=a5_0x3cebc4,_0x8ebe45=function(){};_0x8ebe45[_0x3eaed8(0x16a)]=_0x1c7bb3['prototype'];const _0x14382b=(0x0,core_1[_0x3eaed8(0x167)])(interface_1[_0x3eaed8(0x15d)],_0x1c7bb3),_0x3068d9={};for(const _0x15e960 of _0x456041){_0x14382b[_0x15e960]&&(_0x3068d9[_0x15e960]=_0x14382b[_0x15e960]);}return(0x0,core_1['saveClassMetadata'])(interface_1[_0x3eaed8(0x15d)],_0x3068d9,_0x8ebe45),_0x8ebe45;}exports[a5_0x3cebc4(0x15b)]=PickDto;function a5_0x88ea(_0x4c96c8,_0x162620){const _0x56951c=a5_0x5695();return a5_0x88ea=function(_0x88ea8e,_0xe702fe){_0x88ea8e=_0x88ea8e-0x158;let _0x128012=_0x56951c[_0x88ea8e];return _0x128012;},a5_0x88ea(_0x4c96c8,_0x162620);}function OmitDto(_0x104866,_0x2f28f5){const _0x34e3e2=a5_0x3cebc4,_0x92f564=function(){};_0x92f564[_0x34e3e2(0x16a)]=_0x104866[_0x34e3e2(0x16a)];const _0x2336ea=(0x0,core_1[_0x34e3e2(0x167)])(interface_1[_0x34e3e2(0x15d)],_0x104866),_0x696b74=Object[_0x34e3e2(0x165)]({},_0x2336ea);for(const _0x25e887 of _0x2f28f5){delete _0x696b74[_0x25e887];}return(0x0,core_1['saveClassMetadata'])(interface_1['RULES_KEY'],_0x696b74,_0x92f564),_0x92f564;}exports[a5_0x3cebc4(0x15a)]=OmitDto;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a6_0x4f0b96=a6_0x4800;(function(_0x3f6b9e,_0x50f0cd){var _0x2c264e=a6_0x4800,_0xccde99=_0x3f6b9e();while(!![]){try{var _0x43b8c1=-parseInt(_0x2c264e(0x145))/0x1+-parseInt(_0x2c264e(0x155))/0x2+-parseInt(_0x2c264e(0x146))/0x3*(-parseInt(_0x2c264e(0x15b))/0x4)+-parseInt(_0x2c264e(0x144))/0x5*(-parseInt(_0x2c264e(0x14b))/0x6)+parseInt(_0x2c264e(0x14d))/0x7*(parseInt(_0x2c264e(0x157))/0x8)+-parseInt(_0x2c264e(0x15d))/0x9*(parseInt(_0x2c264e(0x156))/0xa)+parseInt(_0x2c264e(0x15c))/0xb;if(_0x43b8c1===_0x50f0cd)break;else _0xccde99['push'](_0xccde99['shift']());}catch(_0x1a9fe8){_0xccde99['push'](_0xccde99['shift']());}}}(a6_0x35cd,0xae036));var __createBinding=this&&this[a6_0x4f0b96(0x15a)]||(Object['create']?function(_0x398e4c,_0x308fab,_0x42f122,_0x129759){var _0xf95f25=a6_0x4f0b96;if(_0x129759===undefined)_0x129759=_0x42f122;var _0x33bf63=Object[_0xf95f25(0x162)](_0x308fab,_0x42f122);(!_0x33bf63||(_0xf95f25(0x158)in _0x33bf63?!_0x308fab[_0xf95f25(0x165)]:_0x33bf63[_0xf95f25(0x15f)]||_0x33bf63['configurable']))&&(_0x33bf63={'enumerable':!![],'get':function(){return _0x308fab[_0x42f122];}}),Object[_0xf95f25(0x160)](_0x398e4c,_0x129759,_0x33bf63);}:function(_0x12db66,_0x5d4dfd,_0x32cdc9,_0x5f4e80){if(_0x5f4e80===undefined)_0x5f4e80=_0x32cdc9;_0x12db66[_0x5f4e80]=_0x5d4dfd[_0x32cdc9];}),__exportStar=this&&this[a6_0x4f0b96(0x14e)]||function(_0x1cf509,_0x41d985){var _0x47a943=a6_0x4f0b96;for(var _0x310a49 in _0x1cf509)if(_0x310a49!==_0x47a943(0x14c)&&!Object[_0x47a943(0x151)][_0x47a943(0x150)][_0x47a943(0x152)](_0x41d985,_0x310a49))__createBinding(_0x41d985,_0x1cf509,_0x310a49);};Object[a6_0x4f0b96(0x160)](exports,a6_0x4f0b96(0x165),{'value':!![]}),exports[a6_0x4f0b96(0x159)]=exports['ValidatorService']=exports[a6_0x4f0b96(0x147)]=exports['RuleType']=exports[a6_0x4f0b96(0x14a)]=exports[a6_0x4f0b96(0x15e)]=void 0x0,__exportStar(require(a6_0x4f0b96(0x153)),exports),__exportStar(require(a6_0x4f0b96(0x14f)),exports);var Validator_1=require('./decorator/Validator');Object['defineProperty'](exports,a6_0x4f0b96(0x15e),{'enumerable':!![],'get':function(){var _0x4e7941=a6_0x4f0b96;return Validator_1[_0x4e7941(0x15e)];}});function a6_0x4800(_0x160363,_0x19a860){var _0x35cd20=a6_0x35cd();return a6_0x4800=function(_0x480032,_0x5c5916){_0x480032=_0x480032-0x144;var _0x518c3b=_0x35cd20[_0x480032];return _0x518c3b;},a6_0x4800(_0x160363,_0x19a860);}function a6_0x35cd(){var _0x267373=['386185ppeCKn','745550jWZIJT','14931YtjMom','ValidatorError','./exception/ValidatorError','./configuration','Rule','66RtRpjT','default','7QQfEHX','__exportStar','./helper/dtoHelper','hasOwnProperty','prototype','call','./interface','ValidatorService','32540SdwFTK','13220UbInTq','560344NfUJmF','get','Configuration','__createBinding','96UpJZtS','14489794wemftw','6003GNoqMf','Validator','writable','defineProperty','RuleType','getOwnPropertyDescriptor','CustomConfiguration','./service/ValidatorService','__esModule'];a6_0x35cd=function(){return _0x267373;};return a6_0x35cd();}var Rule_1=require('./decorator/Rule');Object[a6_0x4f0b96(0x160)](exports,a6_0x4f0b96(0x14a),{'enumerable':!![],'get':function(){var _0x223ce6=a6_0x4f0b96;return Rule_1[_0x223ce6(0x14a)];}}),Object[a6_0x4f0b96(0x160)](exports,'RuleType',{'enumerable':!![],'get':function(){var _0x56542f=a6_0x4f0b96;return Rule_1[_0x56542f(0x161)];}});var ValidatorError_1=require(a6_0x4f0b96(0x148));Object[a6_0x4f0b96(0x160)](exports,a6_0x4f0b96(0x147),{'enumerable':!![],'get':function(){var _0x3951da=a6_0x4f0b96;return ValidatorError_1[_0x3951da(0x147)];}});var ValidatorService_1=require(a6_0x4f0b96(0x164));Object[a6_0x4f0b96(0x160)](exports,a6_0x4f0b96(0x154),{'enumerable':!![],'get':function(){var _0x514f96=a6_0x4f0b96;return ValidatorService_1[_0x514f96(0x154)];}});var configuration_1=require(a6_0x4f0b96(0x149));Object[a6_0x4f0b96(0x160)](exports,a6_0x4f0b96(0x159),{'enumerable':!![],'get':function(){var _0x738819=a6_0x4f0b96;return configuration_1[_0x738819(0x163)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a7_0x17e4(_0xe30ed1,_0x3596a7){var _0x31c95d=a7_0x31c9();return a7_0x17e4=function(_0x17e477,_0x5e4f48){_0x17e477=_0x17e477-0xeb;var _0x373e1b=_0x31c95d[_0x17e477];return _0x373e1b;},a7_0x17e4(_0xe30ed1,_0x3596a7);}var a7_0x8073e0=a7_0x17e4;(function(_0x2cb438,_0x1eb5a4){var _0x3ce37c=a7_0x17e4,_0x972ebf=_0x2cb438();while(!![]){try{var _0x780f9c=-parseInt(_0x3ce37c(0xee))/0x1+-parseInt(_0x3ce37c(0xed))/0x2+-parseInt(_0x3ce37c(0xf1))/0x3+parseInt(_0x3ce37c(0xf5))/0x4*(-parseInt(_0x3ce37c(0xf0))/0x5)+parseInt(_0x3ce37c(0xf4))/0x6+parseInt(_0x3ce37c(0xeb))/0x7+parseInt(_0x3ce37c(0xec))/0x8;if(_0x780f9c===_0x1eb5a4)break;else _0x972ebf['push'](_0x972ebf['shift']());}catch(_0x279e05){_0x972ebf['push'](_0x972ebf['shift']());}}}(a7_0x31c9,0x23a7b));function a7_0x31c9(){var _0x29466f=['259742YkEMHT','3906616wyBoDv','401162kfadKA','130946GWotAo','RULES_KEY','45vmNbTN','518439RRnWgr','anncic-api:validator:rules','__esModule','1304820CZFniJ','41120BGRxxE','VALIDATOR_KEY'];a7_0x31c9=function(){return _0x29466f;};return a7_0x31c9();}Object['defineProperty'](exports,a7_0x8073e0(0xf3),{'value':!![]}),exports['VALIDATOR_KEY']=exports[a7_0x8073e0(0xef)]=void 0x0,exports[a7_0x8073e0(0xef)]=a7_0x8073e0(0xf2),exports[a7_0x8073e0(0xf6)]='anncic-api:validator:validator';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a8_0x4ce8ff=a8_0x72c0;(function(_0x42e54b,_0x4f8ae8){const _0x402562=a8_0x72c0,_0xd92bc2=_0x42e54b();while(!![]){try{const _0x1080ef=parseInt(_0x402562(0x20f))/0x1*(-parseInt(_0x402562(0x1e3))/0x2)+parseInt(_0x402562(0x1f6))/0x3*(-parseInt(_0x402562(0x20e))/0x4)+-parseInt(_0x402562(0x1d2))/0x5+parseInt(_0x402562(0x1f8))/0x6*(parseInt(_0x402562(0x1f3))/0x7)+parseInt(_0x402562(0x1e7))/0x8+parseInt(_0x402562(0x1f4))/0x9*(parseInt(_0x402562(0x1de))/0xa)+parseInt(_0x402562(0x1e5))/0xb;if(_0x1080ef===_0x4f8ae8)break;else _0xd92bc2['push'](_0xd92bc2['shift']());}catch(_0xb20d62){_0xd92bc2['push'](_0xd92bc2['shift']());}}}(a8_0x5b4f,0x6cb1e));function a8_0x72c0(_0x422d1a,_0x3bc927){const _0x5b4f0e=a8_0x5b4f();return a8_0x72c0=function(_0x72c066,_0x5d4b9c){_0x72c066=_0x72c066-0x1cd;let _0x1db3e1=_0x5b4f0e[_0x72c066];return _0x1db3e1;},a8_0x72c0(_0x422d1a,_0x3bc927);}function a8_0x5b4f(){const _0x181452=['messages','validator','formatLocale','defaultLocale','_flags','869625YrhEJG','defineProperty','@midwayjs/core','ValidatorService','__metadata','validate','Config','language','function','errors','schema','NOFIND_SCHEMA','4330vylstV','joi','key','$_terms','getLocaleMapping','12658MccAtu','localeTable','9646879ARmNRC','getOwnPropertyDescriptor','4451752PMGxEX','value','getSchema','length','PARAMS','init','prototype','validatorConfig','ValidatorError','Init','参数验证失败','ScopeEnum','7MBcHYr','1017tnLTPD','i18n','1743387mLGAJM','i18nService','3623646UqLHMa','type','i18nConfig','keys','metadata','decorate','__esModule','Singleton','Scope','isSchema','YYYY-MM-DD\x20HH:mm:ss','error','getClassExtendedMetadata','object','design:type','date','format','design:returntype','__decorate','details','validationOptions','fromEntries','4CUfSoO','140BBENKf','@midwayjs/i18n','design:paramtypes'];a8_0x5b4f=function(){return _0x181452;};return a8_0x5b4f();}var __decorate=this&&this[a8_0x4ce8ff(0x20a)]||function(_0x2d3885,_0x16cb2a,_0x417d51,_0x14ed0d){const _0x2640d8=a8_0x4ce8ff;var _0xb3d1fc=arguments[_0x2640d8(0x1ea)],_0x4978fa=_0xb3d1fc<0x3?_0x16cb2a:_0x14ed0d===null?_0x14ed0d=Object[_0x2640d8(0x1e6)](_0x16cb2a,_0x417d51):_0x14ed0d,_0x330a6a;if(typeof Reflect==='object'&&typeof Reflect[_0x2640d8(0x1fd)]==='function')_0x4978fa=Reflect[_0x2640d8(0x1fd)](_0x2d3885,_0x16cb2a,_0x417d51,_0x14ed0d);else{for(var _0x234137=_0x2d3885[_0x2640d8(0x1ea)]-0x1;_0x234137>=0x0;_0x234137--)if(_0x330a6a=_0x2d3885[_0x234137])_0x4978fa=(_0xb3d1fc<0x3?_0x330a6a(_0x4978fa):_0xb3d1fc>0x3?_0x330a6a(_0x16cb2a,_0x417d51,_0x4978fa):_0x330a6a(_0x16cb2a,_0x417d51))||_0x4978fa;}return _0xb3d1fc>0x3&&_0x4978fa&&Object['defineProperty'](_0x16cb2a,_0x417d51,_0x4978fa),_0x4978fa;},__metadata=this&&this[a8_0x4ce8ff(0x1d6)]||function(_0x537a62,_0x136cdb){const _0x3a1b89=a8_0x4ce8ff;if(typeof Reflect===_0x3a1b89(0x205)&&typeof Reflect[_0x3a1b89(0x1fc)]===_0x3a1b89(0x1da))return Reflect[_0x3a1b89(0x1fc)](_0x537a62,_0x136cdb);};Object[a8_0x4ce8ff(0x1d3)](exports,a8_0x4ce8ff(0x1fe),{'value':!![]}),exports[a8_0x4ce8ff(0x1d5)]=void 0x0;const Joi=require(a8_0x4ce8ff(0x1df)),i18n_1=require(a8_0x4ce8ff(0x210)),core_1=require(a8_0x4ce8ff(0x1d4)),interface_1=require('../interface'),ValidatorError_1=require('../exception/ValidatorError');let ValidatorService=class ValidatorService{constructor(){this['messages']={};}async[a8_0x4ce8ff(0x1ec)](){const _0x64e39c=a8_0x4ce8ff,_0x547106=Object[_0x64e39c(0x1fb)](this['i18nConfig'][_0x64e39c(0x1e4)]);_0x547106['forEach'](_0x5b6020=>{const _0x36f3cc=_0x64e39c;this['messages'][(0x0,i18n_1[_0x36f3cc(0x1cf)])(_0x5b6020)]=Object[_0x36f3cc(0x20d)](this[_0x36f3cc(0x1f7)][_0x36f3cc(0x1e2)](_0x5b6020,'validator'));});}[a8_0x4ce8ff(0x1e9)](_0x170664){const _0x2a8d8f=a8_0x4ce8ff,_0x5bca13=(0x0,core_1[_0x2a8d8f(0x204)])(interface_1['RULES_KEY'],_0x170664);return _0x5bca13?Joi[_0x2a8d8f(0x205)](_0x5bca13):undefined;}[a8_0x4ce8ff(0x1ce)](_0x3a401a,_0x310d6d,_0x3f387a={}){const _0x34d34b=a8_0x4ce8ff;var _0x61e75f,_0x78d074,_0x28aa6c,_0x17f251,_0x54995b;const _0xe14a87=Joi[_0x34d34b(0x201)](_0x3a401a)?_0x3a401a:this[_0x34d34b(0x1e9)](_0x3a401a);if(!_0xe14a87)throw new AnnError(ValidatorError_1[_0x34d34b(0x1ef)][_0x34d34b(0x1dd)]);_0x3f387a[_0x34d34b(0x20c)]=Object['assign']((_0x61e75f=this['validatorConfig'][_0x34d34b(0x20c)])!==null&&_0x61e75f!==void 0x0?_0x61e75f:{},{'messages':this[_0x34d34b(0x1cd)]},_0x3f387a[_0x34d34b(0x20c)]||{}),_0x3f387a['validationOptions'][_0x34d34b(0x1db)]=_0x3f387a[_0x34d34b(0x20c)]['errors']||{},_0x3f387a[_0x34d34b(0x20c)][_0x34d34b(0x1db)][_0x34d34b(0x1d9)]=(0x0,i18n_1[_0x34d34b(0x1cf)])(this['i18nService']['getAvailableLocale'](_0x3f387a[_0x34d34b(0x20c)][_0x34d34b(0x1db)]['language']||_0x3f387a['locale']||this[_0x34d34b(0x1fa)][_0x34d34b(0x1d0)],'validator'));const _0x4c70b1=_0xe14a87[_0x34d34b(0x1d7)](_0x310d6d,_0x3f387a['validationOptions']);if(_0x4c70b1===null||_0x4c70b1===void 0x0?void 0x0:_0x4c70b1['error'])throw new AnnError(ValidatorError_1[_0x34d34b(0x1ef)]['PARAMS'],{'message':((_0x17f251=(_0x28aa6c=(_0x78d074=_0x4c70b1[_0x34d34b(0x203)])===null||_0x78d074===void 0x0?void 0x0:_0x78d074[_0x34d34b(0x20b)])===null||_0x28aa6c===void 0x0?void 0x0:_0x28aa6c[0x0])===null||_0x17f251===void 0x0?void 0x0:_0x17f251['message'])||_0x34d34b(0x1f1)});if(_0x4c70b1===null||_0x4c70b1===void 0x0?void 0x0:_0x4c70b1[_0x34d34b(0x1e8)]){const _0x115fa0=(_0x54995b=_0xe14a87===null||_0xe14a87===void 0x0?void 0x0:_0xe14a87[_0x34d34b(0x1e1)])===null||_0x54995b===void 0x0?void 0x0:_0x54995b[_0x34d34b(0x1fb)],_0x51c8f9=function(_0x2c67ee,_0x425922){const _0x5ed4b3=_0x34d34b;var _0x5dd6b7,_0x1024a8,_0x25b209,_0x497cc2,_0xfe00a1,_0x1adc2e,_0x3b31ec,_0x3e22fa,_0x5b2408,_0x5882ac,_0x19193c;for(let _0x112c69 in _0x2c67ee){if(_0x425922[(_0x5dd6b7=_0x2c67ee[_0x112c69])===null||_0x5dd6b7===void 0x0?void 0x0:_0x5dd6b7[_0x5ed4b3(0x1e0)]]&&((_0x25b209=(_0x1024a8=_0x2c67ee[_0x112c69])===null||_0x1024a8===void 0x0?void 0x0:_0x1024a8['schema'])===null||_0x25b209===void 0x0?void 0x0:_0x25b209['type'])){if(((_0xfe00a1=(_0x497cc2=_0x2c67ee[_0x112c69])===null||_0x497cc2===void 0x0?void 0x0:_0x497cc2[_0x5ed4b3(0x1dc)])===null||_0xfe00a1===void 0x0?void 0x0:_0xfe00a1[_0x5ed4b3(0x1f9)])==_0x5ed4b3(0x205))_0x425922[_0x2c67ee[_0x112c69]['key']]=_0x51c8f9((_0x3b31ec=(_0x1adc2e=_0x2c67ee[_0x112c69])===null||_0x1adc2e===void 0x0?void 0x0:_0x1adc2e['schema']['$_terms'])===null||_0x3b31ec===void 0x0?void 0x0:_0x3b31ec[_0x5ed4b3(0x1fb)],_0x425922[_0x2c67ee[_0x112c69][_0x5ed4b3(0x1e0)]]);else{if(_0x2c67ee[_0x112c69][_0x5ed4b3(0x1dc)][_0x5ed4b3(0x1f9)]==_0x5ed4b3(0x207)&&_0x4c70b1[_0x5ed4b3(0x1e8)][(_0x3e22fa=_0x2c67ee[_0x112c69])===null||_0x3e22fa===void 0x0?void 0x0:_0x3e22fa['key']]){const _0x592097=((_0x19193c=(_0x5882ac=(_0x5b2408=_0x2c67ee[_0x112c69])===null||_0x5b2408===void 0x0?void 0x0:_0x5b2408['schema'])===null||_0x5882ac===void 0x0?void 0x0:_0x5882ac[_0x5ed4b3(0x1d1)])===null||_0x19193c===void 0x0?void 0x0:_0x19193c[_0x5ed4b3(0x208)])||_0x5ed4b3(0x202);_0x425922[_0x2c67ee[_0x112c69][_0x5ed4b3(0x1e0)]]=dayjs(_0x4c70b1['value'][_0x2c67ee[_0x112c69][_0x5ed4b3(0x1e0)]])[_0x5ed4b3(0x208)](_0x592097);}}}}return _0x425922;};return _0x51c8f9(_0x115fa0,_0x4c70b1[_0x34d34b(0x1e8)]);}throw new AnnError(ValidatorError_1[_0x34d34b(0x1ef)][_0x34d34b(0x1eb)]);}};__decorate([(0x0,core_1[a8_0x4ce8ff(0x1d8)])(a8_0x4ce8ff(0x1f5)),__metadata(a8_0x4ce8ff(0x206),Object)],ValidatorService[a8_0x4ce8ff(0x1ed)],'i18nConfig',void 0x0),__decorate([(0x0,core_1[a8_0x4ce8ff(0x1d8)])('validator'),__metadata(a8_0x4ce8ff(0x206),Object)],ValidatorService[a8_0x4ce8ff(0x1ed)],a8_0x4ce8ff(0x1ee),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',i18n_1['MidwayI18nServiceSingleton'])],ValidatorService[a8_0x4ce8ff(0x1ed)],a8_0x4ce8ff(0x1f7),void 0x0),__decorate([(0x0,core_1[a8_0x4ce8ff(0x1f0)])(),__metadata('design:type',Function),__metadata(a8_0x4ce8ff(0x211),[]),__metadata(a8_0x4ce8ff(0x209),Promise)],ValidatorService[a8_0x4ce8ff(0x1ed)],a8_0x4ce8ff(0x1ec),null),ValidatorService=__decorate([(0x0,core_1['Provide'])(a8_0x4ce8ff(0x1ce)),(0x0,core_1[a8_0x4ce8ff(0x200)])(core_1[a8_0x4ce8ff(0x1f2)][a8_0x4ce8ff(0x1ff)])],ValidatorService),exports['ValidatorService']=ValidatorService;
|
package/index.d.ts
ADDED
package/package.json
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/validator",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.17",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
|
+
"typings": "index.d.ts",
|
|
5
6
|
"license": "MIT",
|
|
6
7
|
"files": [
|
|
7
8
|
"dist",
|
|
8
|
-
"locales"
|
|
9
|
+
"locales",
|
|
10
|
+
"index.d.ts"
|
|
9
11
|
],
|
|
10
12
|
"publishConfig": {
|
|
11
13
|
"access": "public"
|
|
@@ -15,7 +17,7 @@
|
|
|
15
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
16
18
|
},
|
|
17
19
|
"dependencies": {
|
|
18
|
-
"@anncic-api/core": "^1.3.
|
|
20
|
+
"@anncic-api/core": "^1.3.17",
|
|
19
21
|
"@joi/date": "^2.1.0",
|
|
20
22
|
"joi": "^17.7.0"
|
|
21
23
|
},
|
|
@@ -24,5 +26,5 @@
|
|
|
24
26
|
"javascript-obfuscator": "2.19.0",
|
|
25
27
|
"typescript": "^4.7.4"
|
|
26
28
|
},
|
|
27
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "cff2571b58a1fc0b074b1bdd54dedb8311b1bfa6"
|
|
28
30
|
}
|