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

jquery-validation

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jquery-validation - npm Package Compare versions

Comparing version 1.15.0 to 1.15.1

dist/localization/messages_az

49

changelog.md

@@ -0,1 +1,50 @@

1.15.0 / 2016-02-24
==================
## All
* Fixed code style issues
## Core
* `resetForm` should also remove `valid` class from elements.
* Unhighlighting field if already highlighted when using remote rule.
* Bind the `blur` event just once in `equalTo` rule
* Fixed error when calling .rules() on empty jquery set.
* Fix handling of error messages with input groups.
* Fix TypeError in `showLabel` when using `groups` settings
* Adding a way to pass method name to remote
* Validation fails to trigger when next field is already filled out (Fixes #1508)
* Required rule take precedence over number & digits rules
* Error hidden but input error class not removed
* Remote validation uses wrong error messages
* Fixed field highlighting with remote validation.
* Fixed `:filled` selector for multiple select elements.
* Added doc reference to jQuery.validator.methods
* Move message processing from `formatAndAdd` to `defaultMessage`
* ErrorList should contain only the errors that it should
* Extract the file name without including "C:\fakepath\"
* HTML5 step attribute support. Fixes #1295
* Added support for "pending" class on outstanding requests
* Added normalizer (#1602)
* Split out `creditcard` method
* Escape errorID for use in the regex, not to build aria-describedby
* Escape single quotes in names avoiding a Sizzle Error being thrown
* Instead of using validating field's value to skip api call, use the serialized data object of the request
* Add support for contentEditable tags
## Additional
* BIC: allow digits 1-9 in second place of location
* Accept method regex should be escaped properly.
* Case-insensitive check for BIC
* Correct postalCodeCA to exclude invalid combinations
* Make postalCodeCA method more lenient
## Localization
* Added Macedonian localization.
* Added missing pattern message in Polish (adamwojtkiewicz)
* Fixed Persian translation of min/max message.
* Updated messages_sk.js
* Update Malay translation
* Included messages from additional methods
* Improving pt_BR translation and fixing a typo on the 'cifES' key.
1.14.0 / 2015-06-30

@@ -2,0 +51,0 @@ ==================

23

dist/additional-methods.js
/*!
* jQuery Validation Plugin v1.15.0
* jQuery Validation Plugin v1.15.1
*

@@ -51,4 +51,4 @@ * http://jqueryvalidation.org/

var typeParam = typeof param === "string" ? param.replace( /\s/g, "" ) : "image/*",
optionalValue = this.optional( element ),
i, file, regex;
optionalValue = this.optional( element ),
i, file, regex;

@@ -65,3 +65,6 @@ // Element is optional

// Escape also "/*" as "/.*" as a wildcard
typeParam = typeParam.replace( /[\-\[\]\/\{\}\(\)\+\?\.\\\^\$\|]/g, "\\$&" ).replace( /,/g, "|" ).replace( "\/*", "/.*" );
typeParam = typeParam
.replace( /[\-\[\]\/\{\}\(\)\+\?\.\\\^\$\|]/g, "\\$&" )
.replace( /,/g, "|" )
.replace( /\/\*/g, "/.*" );

@@ -501,2 +504,12 @@ // Check if the element has a FileList before checking each file

// Check for IBAN code length.
// It contains:
// country code ISO 3166-1 - two letters,
// two check digits,
// Basic Bank Account Number (BBAN) - up to 30 chars
var minimalIBANlength = 5;
if ( iban.length < minimalIBANlength ) {
return false;
}
// Check the country code and find the country specific format

@@ -708,3 +721,3 @@ countrycode = iban.substring( 0, 2 );

jQuery.validator.addMethod( "notEqualTo", function( value, element, param ) {
$.validator.addMethod( "notEqualTo", function( value, element, param ) {
return this.optional( element ) || !$.validator.methods.equalTo.call( this, value, element, param );

@@ -711,0 +724,0 @@ }, "Please enter a different value, values must not be the same." );

/*!
* jQuery Validation Plugin v1.15.0
* jQuery Validation Plugin v1.15.1
*

@@ -138,11 +138,10 @@ * http://jqueryvalidation.org/

rules: function( command, argument ) {
var element = this[ 0 ],
settings, staticRules, existingRules, data, param, filtered;
// If nothing is selected, return nothing; can't chain anyway
if ( !this.length ) {
// If nothing is selected, return empty object; can't chain anyway
if ( element == null || element.form == null ) {
return;
}
var element = this[ 0 ],
settings, staticRules, existingRules, data, param, filtered;
if ( command ) {

@@ -359,3 +358,3 @@ settings = $.data( element.form, "validator" ).settings;

date: "Please enter a valid date.",
dateISO: "Please enter a valid date ( ISO ).",
dateISO: "Please enter a valid date (ISO).",
number: "Please enter a valid number.",

@@ -404,2 +403,8 @@ digits: "Please enter only digits.",

function delegate( event ) {
// Set form expando on contenteditable
if ( !this.form && this.hasAttribute( "contenteditable" ) ) {
this.form = $( this ).closest( "form" )[ 0 ];
}
var validator = $.data( this.form, "validator" ),

@@ -476,3 +481,3 @@ eventType = "on" + event.type.replace( /^validate/, "" ),

v.currentElements.push( cleanElement );
result = result && v.check( cleanElement );
result = v.check( cleanElement ) && result;
}

@@ -821,3 +826,16 @@ }

// The second parameter 'rule' used to be a string, and extended to an object literal
// of the following form:
// rule = {
// method: "method name",
// parameters: "the given method parameters"
// }
//
// The old behavior still supported, kept to maintain backward compatibility with
// old code, and will be removed in the next major release.
defaultMessage: function( element, rule ) {
if ( typeof rule === "string" ) {
rule = { method: rule };
}
var message = this.findDefined(

@@ -931,3 +949,3 @@ this.customMessage( element.name, rule.method ),

} else if ( this.settings.errorPlacement ) {
this.settings.errorPlacement( place, $( element ) );
this.settings.errorPlacement.call( this, place, $( element ) );
} else {

@@ -1088,2 +1106,4 @@ place.insertAfter( element );

previousValue: function( element, method ) {
method = typeof method === "string" && method || "remote";
return $.data( element, "previousValue" ) || $.data( element, "previousValue", {

@@ -1416,4 +1436,18 @@ old: null,

re = new RegExp( "\\b" + type + "\\b" ),
notSupported = type && !re.test( supportedTypes.join() );
notSupported = type && !re.test( supportedTypes.join() ),
decimalPlaces = function( num ) {
var match = ( "" + num ).match( /(?:\.(\d+))?$/ );
if ( !match ) {
return 0;
}
// Number of digits right of decimal point.
return match[ 1 ] ? match[ 1 ].length : 0;
},
toInt = function( num ) {
return Math.round( num * Math.pow( 10, decimals ) );
},
valid = true,
decimals;
// Works only for text, number and range input types

@@ -1424,3 +1458,11 @@ // TODO find a way to support input types date, datetime, datetime-local, month, time and week

}
return this.optional( element ) || ( value % param === 0 );
decimals = decimalPlaces( param );
// Value can't have too many decimals
if ( decimalPlaces( value ) > decimals || toInt( value ) % toInt( param ) !== 0 ) {
valid = false;
}
return this.optional( element ) || valid;
},

@@ -1427,0 +1469,0 @@

@@ -22,3 +22,3 @@ (function( factory ) {

date: "გთხოვთ შეიყვანოთ სწორი თარიღი.",
dateISO: "გთხოვთ შეიყვანოთ სწორი ფორმატით ( ISO ).",
dateISO: "გთხოვთ შეიყვანოთ სწორი ფორმატით (ISO).",
number: "გთხოვთ შეიყვანოთ რიცხვი.",

@@ -25,0 +25,0 @@ digits: "დაშვებულია მხოლოდ ციფრები.",

@@ -5,3 +5,3 @@ {

"description": "Client-side form validation made easy",
"version": "1.15.0",
"version": "1.15.1",
"homepage": "http://jqueryvalidation.org/",

@@ -37,3 +37,5 @@ "license": "MIT",

"main": "dist/jquery.validate.js",
"dependencies": {},
"dependencies": {
"jquery": "^1.7 || ^2.0"
},
"devDependencies": {

@@ -40,0 +42,0 @@ "commitplease": "^2.2.3",

@@ -10,7 +10,2 @@ [jQuery Validation Plugin](http://jqueryvalidation.org/) - Form validation made easy

## [⚠️ Looking for maintainers ⚠️](https://github.com/jzaefferer/jquery-validation/issues/1569)
This project is looking for one or more maintainers. This mostly involves triaging issues, reviewing pull requests, and occasionally fixing bugs or finishing a feature implementation. If you're interested, [please get in touch](https://github.com/jzaefferer/jquery-validation/issues/1569).
## Getting Started

@@ -17,0 +12,0 @@

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