@anncic-api/validator 1.0.7 → 1.0.12
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.d.ts +3 -3
- 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.d.ts +2 -2
- package/dist/decorator/Validator.js +1 -1
- package/dist/exception/ValidatorError.d.ts +2 -1
- package/dist/exception/ValidatorError.js +1 -1
- package/dist/helper/dtoHelper.js +1 -1
- package/dist/helpers/dtoHelper.js +1 -1
- package/dist/index.js +1 -1
- package/dist/interface.d.ts +3 -3
- package/dist/interface.js +1 -1
- package/dist/service/ValidateService.js +1 -1
- package/dist/service/ValidatorService.d.ts +4 -9
- package/dist/service/ValidatorService.js +1 -1
- package/dist/services/ValidateService.js +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a7_0x523a29=a7_0x2313;(function(_0x2b3833,_0x17efb7){var _0xfb4c2a=a7_0x2313,_0x49e31d=_0x2b3833();while(!![]){try{var _0xeac161=parseInt(_0xfb4c2a(0xce))/0x1*(parseInt(_0xfb4c2a(0xca))/0x2)+parseInt(_0xfb4c2a(0xbb))/0x3+-parseInt(_0xfb4c2a(0xd0))/0x4+-parseInt(_0xfb4c2a(0xc6))/0x5+-parseInt(_0xfb4c2a(0xc7))/0x6+-parseInt(_0xfb4c2a(0xbd))/0x7+parseInt(_0xfb4c2a(0xd3))/0x8*(parseInt(_0xfb4c2a(0xc1))/0x9);if(_0xeac161===_0x17efb7)break;else _0x49e31d['push'](_0x49e31d['shift']());}catch(_0x22559b){_0x49e31d['push'](_0x49e31d['shift']());}}}(a7_0x5df4,0xe3ccc));var __createBinding=this&&this[a7_0x523a29(0xcd)]||(Object['create']?function(_0x20d74c,_0x28eb4f,_0x2abb67,_0x45dd29){var _0x4b0fe4=a7_0x523a29;if(_0x45dd29===undefined)_0x45dd29=_0x2abb67;var _0x57f35e=Object['getOwnPropertyDescriptor'](_0x28eb4f,_0x2abb67);(!_0x57f35e||(_0x4b0fe4(0xc0)in _0x57f35e?!_0x28eb4f[_0x4b0fe4(0xbe)]:_0x57f35e[_0x4b0fe4(0xc8)]||_0x57f35e[_0x4b0fe4(0xd1)]))&&(_0x57f35e={'enumerable':!![],'get':function(){return _0x28eb4f[_0x2abb67];}}),Object[_0x4b0fe4(0xd4)](_0x20d74c,_0x45dd29,_0x57f35e);}:function(_0x306856,_0x1c32da,_0x4fc59e,_0x38f7a3){if(_0x38f7a3===undefined)_0x38f7a3=_0x4fc59e;_0x306856[_0x38f7a3]=_0x1c32da[_0x4fc59e];}),__exportStar=this&&this[a7_0x523a29(0xbc)]||function(_0xb6b895,_0x267a81){var _0xd6c8d2=a7_0x523a29;for(var _0x4e3689 in _0xb6b895)if(_0x4e3689!==_0xd6c8d2(0xd2)&&!Object[_0xd6c8d2(0xcb)]['hasOwnProperty']['call'](_0x267a81,_0x4e3689))__createBinding(_0x267a81,_0xb6b895,_0x4e3689);};Object['defineProperty'](exports,a7_0x523a29(0xbe),{'value':!![]}),exports[a7_0x523a29(0xc4)]=exports[a7_0x523a29(0xc3)]=exports[a7_0x523a29(0xc5)]=exports[a7_0x523a29(0xbf)]=exports['Rule']=exports['Validator']=void 0x0,__exportStar(require(a7_0x523a29(0xba)),exports),__exportStar(require('./helper/dtoHelper'),exports);var Validator_1=require(a7_0x523a29(0xb9));Object[a7_0x523a29(0xd4)](exports,'Validator',{'enumerable':!![],'get':function(){var _0x1cff98=a7_0x523a29;return Validator_1[_0x1cff98(0xcc)];}});var Rule_1=require('./decorator/Rule');Object[a7_0x523a29(0xd4)](exports,a7_0x523a29(0xc9),{'enumerable':!![],'get':function(){return Rule_1['Rule'];}}),Object[a7_0x523a29(0xd4)](exports,a7_0x523a29(0xbf),{'enumerable':!![],'get':function(){var _0x3b7561=a7_0x523a29;return Rule_1[_0x3b7561(0xbf)];}});function a7_0x2313(_0x4a38bf,_0x551ff1){var _0x5df4ca=a7_0x5df4();return a7_0x2313=function(_0x2313ec,_0x3e35cf){_0x2313ec=_0x2313ec-0xb9;var _0x22bb7f=_0x5df4ca[_0x2313ec];return _0x22bb7f;},a7_0x2313(_0x4a38bf,_0x551ff1);}function a7_0x5df4(){var _0x2366e7=['__createBinding','77FHcndc','./service/ValidatorService','1501720AOdqua','configurable','default','12670960BRHByf','defineProperty','./decorator/Validator','./interface','3620358NfIYkc','__exportStar','5783085ocKgry','__esModule','RuleType','get','18xXlEIV','./configuration','ValidatorService','Configuration','ValidatorError','9316175IzjPhu','3062784xoVqyO','writable','Rule','3476mXQxsu','prototype','Validator'];a7_0x5df4=function(){return _0x2366e7;};return a7_0x5df4();}var ValidatorError_1=require('./exception/ValidatorError');Object[a7_0x523a29(0xd4)](exports,a7_0x523a29(0xc5),{'enumerable':!![],'get':function(){var _0x54120d=a7_0x523a29;return ValidatorError_1[_0x54120d(0xc5)];}});var ValidatorService_1=require(a7_0x523a29(0xcf));Object[a7_0x523a29(0xd4)](exports,a7_0x523a29(0xc3),{'enumerable':!![],'get':function(){var _0x297682=a7_0x523a29;return ValidatorService_1[_0x297682(0xc3)];}});var configuration_1=require(a7_0x523a29(0xc2));Object[a7_0x523a29(0xd4)](exports,'Configuration',{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});
|
package/dist/interface.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Joi from 'joi';
|
|
2
|
-
export declare const RULES_KEY = "anncic-api:
|
|
3
|
-
export declare const
|
|
4
|
-
export interface
|
|
2
|
+
export declare const RULES_KEY = "anncic-api:validator:rules";
|
|
3
|
+
export declare const VALIDATOR_KEY = "anncic-api:validator:validator";
|
|
4
|
+
export interface ValidatorOptions {
|
|
5
5
|
locale?: string;
|
|
6
6
|
description?: string;
|
|
7
7
|
errorStatus?: number;
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a8_0x24e13a=a8_0x1b13;(function(_0xa0c1dd,_0x33b73f){var _0x689095=a8_0x1b13,_0x37889e=_0xa0c1dd();while(!![]){try{var _0x288d95=-parseInt(_0x689095(0x176))/0x1+-parseInt(_0x689095(0x174))/0x2+parseInt(_0x689095(0x178))/0x3*(-parseInt(_0x689095(0x16b))/0x4)+parseInt(_0x689095(0x171))/0x5+-parseInt(_0x689095(0x173))/0x6+parseInt(_0x689095(0x179))/0x7*(parseInt(_0x689095(0x16d))/0x8)+parseInt(_0x689095(0x175))/0x9*(parseInt(_0x689095(0x177))/0xa);if(_0x288d95===_0x33b73f)break;else _0x37889e['push'](_0x37889e['shift']());}catch(_0x1218d0){_0x37889e['push'](_0x37889e['shift']());}}}(a8_0x5294,0x1c057));function a8_0x5294(){var _0x566dc4=['anncic-api:validator:rules','1663624WlGYwe','__esModule','VALIDATOR_KEY','anncic-api:validator:validator','796245TDkrcJ','RULES_KEY','1220916ZSPGVJ','382782DtreqD','18BZQmYO','74987cnFkIB','1835810LksVuA','89835CZjcZJ','7Twdtie','20Khfemq'];a8_0x5294=function(){return _0x566dc4;};return a8_0x5294();}function a8_0x1b13(_0x3dd7ec,_0x587e56){var _0x52944c=a8_0x5294();return a8_0x1b13=function(_0x1b1310,_0x4d507e){_0x1b1310=_0x1b1310-0x16b;var _0x308616=_0x52944c[_0x1b1310];return _0x308616;},a8_0x1b13(_0x3dd7ec,_0x587e56);}Object['defineProperty'](exports,a8_0x24e13a(0x16e),{'value':!![]}),exports[a8_0x24e13a(0x16f)]=exports['RULES_KEY']=void 0x0,exports[a8_0x24e13a(0x172)]=a8_0x24e13a(0x16c),exports[a8_0x24e13a(0x16f)]=a8_0x24e13a(0x170);
|