backend v4 half
This commit is contained in:
1 parent
aba7a506ad
commit
725516ad6c
4183 files changed
+217684
-75056
No files matched your search
+14928
File diff suppressed because it is too large.
Load diff
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"class-validator.umd.js","sources":["../esm5/metadata/ValidationMetadata.js","../esm5/validation-schema/ValidationSchemaToMetadataTransformer.js","../esm5/utils/convert-to-array.util.js","../esm5/utils/get-global.util.js","../esm5/utils/is-promise.util.js","../esm5/metadata/MetadataStorage.js","../esm5/validation/ValidationError.js","../esm5/validation/ValidationTypes.js","../esm5/validation/ValidationUtils.js","../esm5/validation/ValidationExecutor.js","../esm5/validation/Validator.js","../esm5/container.js","../esm5/decorator/common/Allow.js","../esm5/metadata/ConstraintMetadata.js","../esm5/register-decorator.js","../esm5/decorator/common/ValidateBy.js","../esm5/decorator/common/IsDefined.js","../esm5/decorator/common/IsOptional.js","../esm5/decorator/common/Validate.js","../esm5/decorator/common/ValidateIf.js","../esm5/decorator/common/ValidateNested.js","../esm5/decorator/common/ValidatePromise.js","../../node_modules/validator/lib/util/assertString.js","../../node_modules/validator/lib/util/merge.js","../../node_modules/validator/lib/isLatLong.js","../esm5/decorator/common/IsLatLong.js","../esm5/decorator/common/IsLatitude.js","../esm5/decorator/common/IsLongitude.js","../esm5/decorator/common/Equals.js","../esm5/decorator/common/NotEquals.js","../esm5/decorator/common/IsEmpty.js","../esm5/decorator/common/IsNotEmpty.js","../esm5/decorator/common/IsIn.js","../esm5/decorator/common/IsNotIn.js","../../node_modules/validator/lib/alpha.js","../../node_modules/validator/lib/isFloat.js","../../node_modules/validator/lib/toFloat.js","../../node_modules/validator/lib/isDivisibleBy.js","../esm5/decorator/number/IsDivisibleBy.js","../esm5/decorator/number/IsPositive.js","../esm5/decorator/number/IsNegative.js","../esm5/decorator/number/Max.js","../esm5/decorator/number/Min.js","../esm5/decorator/date/MinDate.js","../esm5/decorator/date/MaxDate.js","../../node_modules/validator/lib/util/toString.js","../../node_modules/validator/lib/contains.js","../esm5/decorator/string/Contains.js","../esm5/decorator/string/NotContains.js","../../node_modules/validator/lib/isAlpha.js","../esm5/decorator/string/IsAlpha.js","../../node_modules/validator/lib/isAlphanumeric.js","../esm5/decorator/string/IsAlphanumeric.js","../../node_modules/validator/lib/util/includes.js","../../node_modules/validator/lib/isDecimal.js","../esm5/decorator/string/IsDecimal.js","../../node_modules/validator/lib/isAscii.js","../esm5/decorator/string/IsAscii.js","../../node_modules/validator/lib/isBase64.js","../esm5/decorator/string/IsBase64.js","../../node_modules/validator/lib/isByteLength.js","../esm5/decorator/string/IsByteLength.js","../../node_modules/validator/lib/isLuhnNumber.js","../../node_modules/validator/lib/isCreditCard.js","../esm5/decorator/string/IsCreditCard.js","../../node_modules/validator/lib/isCurrency.js","../esm5/decorator/string/IsCurrency.js","../../node_modules/validator/lib/isFQDN.js","../../node_modules/validator/lib/isIP.js","../../node_modules/validator/lib/isEmail.js","../esm5/decorator/string/IsEmail.js","../esm5/decorator/string/IsFQDN.js","../../node_modules/validator/lib/isFullWidth.js","../esm5/decorator/string/IsFullWidth.js","../../node_modules/validator/lib/isHalfWidth.js","../esm5/decorator/string/IsHalfWidth.js","../../node_modules/validator/lib/isVariableWidth.js","../esm5/decorator/string/IsVariableWidth.js","../../node_modules/validator/lib/isHexColor.js","../esm5/decorator/string/IsHexColor.js","../../node_modules/validator/lib/isHexadecimal.js","../esm5/decorator/string/IsHexadecimal.js","../esm5/decorator/ValidationOptions.js","../../node_modules/validator/lib/isMACAddress.js","../esm5/decorator/string/IsMacAddress.js","../esm5/decorator/string/IsIP.js","../../node_modules/validator/lib/isInt.js","../../node_modules/validator/lib/isPort.js","../esm5/decorator/string/IsPort.js","../../node_modules/validator/lib/isISBN.js","../esm5/decorator/string/IsISBN.js","../../node_modules/validator/lib/isISIN.js","../esm5/decorator/string/IsISIN.js","../../node_modules/validator/lib/isISO8601.js","../esm5/decorator/string/IsISO8601.js","../../node_modules/validator/lib/isJSON.js","../esm5/decorator/string/IsJSON.js","../../node_modules/validator/lib/isJWT.js","../esm5/decorator/string/IsJWT.js","../../node_modules/validator/lib/isLowercase.js","../esm5/decorator/string/IsLowercase.js","../../node_modules/validator/lib/isMobilePhone.js","../esm5/decorator/string/IsMobilePhone.js","../../node_modules/validator/lib/isISO31661Alpha2.js","../esm5/decorator/string/IsISO31661Alpha2.js","../../node_modules/validator/lib/isISO31661Alpha3.js","../esm5/decorator/string/IsISO31661Alpha3.js","../../node_modules/validator/lib/isMongoId.js","../esm5/decorator/string/IsMongoId.js","../../node_modules/validator/lib/isMultibyte.js","../esm5/decorator/string/IsMultibyte.js","../../node_modules/validator/lib/isSurrogatePair.js","../esm5/decorator/string/IsSurrogatePair.js","../../node_modules/validator/lib/isURL.jLine truncated
|
||||
Generated
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).ClassValidator={})}(this,(function(t){"use strict";var e=function(t){this.groups=[],this.each=!1,this.context=void 0,this.type=t.type,this.name=t.name,this.target=t.target,this.propertyName=t.propertyName,this.constraints=null==t?void 0:t.constraints,this.constraintCls=t.constraintCls,this.validationTypeOptions=t.validationTypeOptions,t.validationOptions&&(this.message=t.validationOptions.message,this.groups=t.validationOptions.groups,this.always=t.validationOptions.always,this.each=t.validationOptions.each,this.context=t.validationOptions.context)},d=function(){function t(){}return t.prototype.transform=function(t){var d=[];return Object.keys(t.properties).forEach((function(r){t.properties[r].forEach((function(n){var a={message:n.message,groups:n.groups,always:n.always,each:n.each},o={type:n.type,name:n.name,target:t.name,propertyName:r,constraints:n.constraints,validationTypeOptions:n.options,validationOptions:a};d.push(new e(o))}))})),d},t}();function r(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0}function n(t){return null!==t&&"object"==typeof t&&"function"==typeof t.then}var a=function(t){var e="function"==typeof Symbol&&Symbol.iterator,d=e&&t[e],r=0;if(d)return d.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},o=function(t,e){var d="function"==typeof Symbol&&t[Symbol.iterator];if(!d)return t;var r,n,a=d.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(d=a.return)&&d.call(a)}finally{if(n)throw n.error}}return o},i=function(t,e,d){if(d||2===arguments.length)for(var r,n=0,a=e.length;n<a;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))},u=function(){function t(){this.validationMetadatas=new Map,this.constraintMetadatas=new Map}return Object.defineProperty(t.prototype,"hasValidationMetaData",{get:function(){return!!this.validationMetadatas.size},enumerable:!1,configurable:!0}),t.prototype.addValidationSchema=function(t){var e=this;(new d).transform(t).forEach((function(t){return e.addValidationMetadata(t)}))},t.prototype.addValidationMetadata=function(t){var e=this.validationMetadatas.get(t.target);e?e.push(t):this.validationMetadatas.set(t.target,[t])},t.prototype.addConstraintMetadata=function(t){var e=this.constraintMetadatas.get(t.target);e?e.push(t):this.constraintMetadatas.set(t.target,[t])},t.prototype.groupByPropertyName=function(t){var e={};return t.forEach((function(t){e[t.propertyName]||(e[t.propertyName]=[]),e[t.propertyName].push(t)})),e},t.prototype.getTargetValidationMetadatas=function(t,e,d,r,n){var u,s,l=function(t){return void 0!==t.always?t.always:(!t.groups||!t.groups.length)&&d},c=function(t){return!(!r||n&&n.length||!t.groups||!t.groups.length)},f=(this.validationMetadatas.get(t)||[]).filter((function(d){return(d.target===t||d.target===e)&&(!!l(d)||!c(d)&&(!(n&&n.length>0)||d.groups&&!!d.groups.find((function(t){return-1!==n.indexOf(t)}))))})),$=[];try{for(var p=a(this.validationMetadatas.entries()),v=p.next();!v.done;v=p.next()){var y=o(v.value,2),m=y[0],g=y[1];t.prototype instanceof m&&$.push.apply($,i([],o(g),!1))}}catch(t){u={error:t}}finally{try{v&&!v.done&&(s=p.return)&&s.call(p)}finally{if(u)throw u.error}}var h=$.filter((function(e){return"string"!=typeof e.target&&(e.target!==t&&((!(e.target instanceof Function)||t.prototype instanceof e.target)&&(!!l(e)||!c(e)&&(!(n&&n.length>0)||e.groups&&!!e.groups.find((function(t){return-1!==n.indexOf(t)}))))))})),A=h.filter((function(t){return!f.find((function(e){return e.propertyName===t.propertyName&&e.type===t.type}))}));return f.concat(A)},t.prototype.getTargetValidatorConstraints=function(t){return this.constraintMetadatas.get(t)||[]},t}();function s(){var t=r();return t.classValidatorMetadataStorage||(t.classValidatorMetadataStorage=new u),t.classValidatorMetadataStorage}var l=function(){function t(){}return t.prototype.toString=function(t,e,d,r){var n=this;void 0===t&&(t=!1),void 0===e&&(e=!1),void 0===d&&(d=""),void 0===r&&(r=!1);var a=t?"[1m":"",o=t?"[22m":"",i=function(t){return" - property ".concat(a).concat(d).concat(t).concat(o," has failed the following constraints: ").concat(a).concat((r?Object.values:Object.keys)(null!==(e=n.constraints)&&void 0!==e?e:{}).join(", ")).concat(o," \n");var e};if(e){var u=Number.isInteger(+this.property)?"[".concat(this.property,"]"):"".concat(d?".":"").concat(this.property);return this.constraints?i(u):this.children?this.children.map((function(e){return e.toString(t,!0,"".concat(d).concLine truncated
|
||||
//# sourceMappingURL=class-validator.umd.min.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"class-validator.umd.min.js","sources":["../esm5/metadata/ValidationMetadata.js","../esm5/validation-schema/ValidationSchemaToMetadataTransformer.js","../esm5/utils/get-global.util.js","../esm5/utils/is-promise.util.js","../esm5/metadata/MetadataStorage.js","../esm5/validation/ValidationError.js","../esm5/validation/ValidationTypes.js","../esm5/validation/ValidationUtils.js","../esm5/container.js","../esm5/validation/ValidationExecutor.js","../esm5/utils/convert-to-array.util.js","../esm5/validation/Validator.js","../esm5/metadata/ConstraintMetadata.js","../esm5/register-decorator.js","../esm5/decorator/common/ValidateBy.js","../esm5/decorator/common/IsDefined.js","../esm5/decorator/common/IsOptional.js","../esm5/decorator/common/ValidateNested.js","../../node_modules/validator/lib/util/assertString.js","../../node_modules/validator/lib/util/merge.js","../../node_modules/validator/lib/isLatLong.js","../esm5/decorator/common/IsLatLong.js","../esm5/decorator/common/IsLatitude.js","../esm5/decorator/common/IsLongitude.js","../esm5/decorator/common/Equals.js","../esm5/decorator/common/NotEquals.js","../esm5/decorator/common/IsEmpty.js","../esm5/decorator/common/IsNotEmpty.js","../esm5/decorator/common/IsIn.js","../esm5/decorator/common/IsNotIn.js","../../node_modules/validator/lib/alpha.js","../../node_modules/validator/lib/isFloat.js","../../node_modules/validator/lib/toFloat.js","../../node_modules/validator/lib/isDivisibleBy.js","../esm5/decorator/number/IsDivisibleBy.js","../esm5/decorator/number/IsPositive.js","../esm5/decorator/number/IsNegative.js","../esm5/decorator/number/Max.js","../esm5/decorator/number/Min.js","../esm5/decorator/date/MinDate.js","../esm5/decorator/date/MaxDate.js","../../node_modules/validator/lib/util/toString.js","../../node_modules/validator/lib/contains.js","../esm5/decorator/string/Contains.js","../esm5/decorator/string/NotContains.js","../../node_modules/validator/lib/isAlpha.js","../esm5/decorator/string/IsAlpha.js","../../node_modules/validator/lib/isAlphanumeric.js","../esm5/decorator/string/IsAlphanumeric.js","../../node_modules/validator/lib/util/includes.js","../../node_modules/validator/lib/isDecimal.js","../esm5/decorator/string/IsDecimal.js","../../node_modules/validator/lib/isAscii.js","../esm5/decorator/string/IsAscii.js","../../node_modules/validator/lib/isBase64.js","../esm5/decorator/string/IsBase64.js","../../node_modules/validator/lib/isByteLength.js","../esm5/decorator/string/IsByteLength.js","../../node_modules/validator/lib/isLuhnNumber.js","../../node_modules/validator/lib/isCreditCard.js","../esm5/decorator/string/IsCreditCard.js","../../node_modules/validator/lib/isCurrency.js","../esm5/decorator/string/IsCurrency.js","../../node_modules/validator/lib/isFQDN.js","../../node_modules/validator/lib/isIP.js","../../node_modules/validator/lib/isEmail.js","../esm5/decorator/string/IsEmail.js","../esm5/decorator/string/IsFQDN.js","../../node_modules/validator/lib/isFullWidth.js","../esm5/decorator/string/IsFullWidth.js","../../node_modules/validator/lib/isHalfWidth.js","../esm5/decorator/string/IsHalfWidth.js","../../node_modules/validator/lib/isVariableWidth.js","../esm5/decorator/string/IsVariableWidth.js","../../node_modules/validator/lib/isHexColor.js","../esm5/decorator/string/IsHexColor.js","../../node_modules/validator/lib/isHexadecimal.js","../esm5/decorator/string/IsHexadecimal.js","../esm5/decorator/ValidationOptions.js","../../node_modules/validator/lib/isMACAddress.js","../esm5/decorator/string/IsMacAddress.js","../esm5/decorator/string/IsIP.js","../../node_modules/validator/lib/isInt.js","../../node_modules/validator/lib/isPort.js","../esm5/decorator/string/IsPort.js","../../node_modules/validator/lib/isISBN.js","../esm5/decorator/string/IsISBN.js","../../node_modules/validator/lib/isISIN.js","../esm5/decorator/string/IsISIN.js","../../node_modules/validator/lib/isISO8601.js","../esm5/decorator/string/IsISO8601.js","../../node_modules/validator/lib/isJSON.js","../esm5/decorator/string/IsJSON.js","../../node_modules/validator/lib/isJWT.js","../esm5/decorator/string/IsJWT.js","../../node_modules/validator/lib/isLowercase.js","../esm5/decorator/string/IsLowercase.js","../../node_modules/validator/lib/isMobilePhone.js","../esm5/decorator/string/IsMobilePhone.js","../../node_modules/validator/lib/isISO31661Alpha2.js","../esm5/decorator/string/IsISO31661Alpha2.js","../../node_modules/validator/lib/isISO31661Alpha3.js","../esm5/decorator/string/IsISO31661Alpha3.js","../../node_modules/validator/lib/isMongoId.js","../esm5/decorator/string/IsMongoId.js","../../node_modules/validator/lib/isMultibyte.js","../esm5/decorator/string/IsMultibyte.js","../../node_modules/validator/lib/isSurrogatePair.js","../esm5/decorator/string/IsSurrogatePair.js","../../node_modules/validator/lib/isURL.js","../esm5/decorator/string/IsUrl.js","../../node_modules/validator/lib/isUUID.js","../esm5/decorator/string/IsUUID.js","../esm5/decorator/string/IsFirebasePLine truncated
|
||||
Reference in new issue
Block a user