Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grandjs

Package Overview
Dependencies
Maintainers
1
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grandjs - npm Package Compare versions

Comparing version 1.2.19 to 1.2.20

24

lib/helpers/validator.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc