Comparing version 1.2.19 to 1.2.20
@@ -10,13 +10,15 @@ /** | ||
class Validator { | ||
validation = helpers.validation; | ||
imagMimeTypes = { | ||
"image/png": ".png", | ||
"image/jpeg": ".jpeg", | ||
"image/jpg": ".jpg", | ||
"image/webp": ".webp", | ||
"image/tiff": ".tif", | ||
"image/bmp": ".bnp", | ||
"image/gif": ".gif" | ||
}; | ||
// method to validate all types of inputs | ||
constructor() { | ||
this.validation = helpers.validation; | ||
this.imagMimeTypes = { | ||
"image/png": ".png", | ||
"image/jpeg": ".jpeg", | ||
"image/jpg": ".jpg", | ||
"image/webp": ".webp", | ||
"image/tiff": ".tif", | ||
"image/bmp": ".bnp", | ||
"image/gif": ".gif" | ||
}; | ||
} | ||
// method to validate all types of inputs | ||
validateRequired(inputs) { | ||
@@ -23,0 +25,0 @@ // define validation result |
{ | ||
"name": "grandjs", | ||
"version": "1.2.19", | ||
"version": "1.2.20", | ||
"description": "A backend framework for solid web apps based on node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
111684
1559