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

mongoose-auto-api.validation

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongoose-auto-api.validation - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

6

js/tests/test.js

@@ -64,3 +64,3 @@ var assert, should, v;

var val;
val = v.confirmPassVal('test', 'test1', 'confirmPassword');
val = v.confirmPassVal('', 'test1', 'confirmPassword');
it('Returns object', function() {

@@ -72,3 +72,7 @@ return val.should.be.a('object');

});
it('Required Check', function() {
return assert(val.codes.includes('CONFIRM_PASSWORD_REQUIRED'));
});
it('Match Check', function() {
val = v.confirmPassVal('test', 'test1', 'confirmPassword');
return assert(val.codes.includes('CONFIRM_PASSWORD_INVALID_CONFIRMATION'));

@@ -75,0 +79,0 @@ });

@@ -53,2 +53,5 @@ var camelCase, confirmPassVal, confirmValidation, joinValidations, lenValidation, mailValidation, multiValidations, passVal, passValidation, reqValidation, snakeCase, startCase, titleCase, upperSnakeCase, userVal, validationObject;

{
func: reqValidation
},
{
func: confirmValidation,

@@ -55,0 +58,0 @@ args: {

2

package.json
{
"name": "mongoose-auto-api.validation",
"version": "0.0.2",
"version": "0.0.3",
"description": "Automatic Mongoose REST API - Validations module",

@@ -5,0 +5,0 @@ "main": "./js/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