From 84ad1bfd90f4f1c0b270d9814f64986d15b2ee8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Wed, 22 Jul 2020 15:37:56 -0300 Subject: [PATCH] Update jquery-validation to 1.19.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maurício Meneghini Fauth --- js/vendor/jquery/additional-methods.js | 4 ++-- js/vendor/jquery/jquery.validate.js | 15 +++++++++++---- package.json | 2 +- yarn.lock | 8 ++++---- 4 files changed, 18 insertions(+), 11 deletions(-) diff --git a/js/vendor/jquery/additional-methods.js b/js/vendor/jquery/additional-methods.js index c9e051d606..fc1fd0ff8c 100644 --- a/js/vendor/jquery/additional-methods.js +++ b/js/vendor/jquery/additional-methods.js @@ -1,9 +1,9 @@ /*! - * jQuery Validation Plugin v1.19.1 + * jQuery Validation Plugin v1.19.2 * * https://jqueryvalidation.org/ * - * Copyright (c) 2019 Jörn Zaefferer + * Copyright (c) 2020 Jörn Zaefferer * Released under the MIT license */ (function( factory ) { diff --git a/js/vendor/jquery/jquery.validate.js b/js/vendor/jquery/jquery.validate.js index 70297bd5c1..d2f753dca0 100644 --- a/js/vendor/jquery/jquery.validate.js +++ b/js/vendor/jquery/jquery.validate.js @@ -1,9 +1,9 @@ /*! - * jQuery Validation Plugin v1.19.1 + * jQuery Validation Plugin v1.19.2 * * https://jqueryvalidation.org/ * - * Copyright (c) 2019 Jörn Zaefferer + * Copyright (c) 2020 Jörn Zaefferer * Released under the MIT license */ (function( factory ) { @@ -216,18 +216,25 @@ $.extend( $.fn, { } } ); +// JQuery trim is deprecated, provide a trim method based on String.prototype.trim +var trim = function( str ) { + + // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trim#Polyfill + return str.replace( /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "" ); +}; + // Custom selectors $.extend( $.expr.pseudos || $.expr[ ":" ], { // '|| $.expr[ ":" ]' here enables backwards compatibility to jQuery 1.7. Can be removed when dropping jQ 1.7.x support // https://jqueryvalidation.org/blank-selector/ blank: function( a ) { - return !$.trim( "" + $( a ).val() ); + return !trim( "" + $( a ).val() ); }, // https://jqueryvalidation.org/filled-selector/ filled: function( a ) { var val = $( a ).val(); - return val !== null && !!$.trim( "" + val ); + return val !== null && !!trim( "" + val ); }, // https://jqueryvalidation.org/unchecked-selector/ diff --git a/package.json b/package.json index 82973113b2..8634a46b1e 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "jquery-ui": "1.12.1", "jquery-ui-timepicker-addon": "1.6.3", "jquery-uitablefilter": "^1.0.0", - "jquery-validation": "1.19.1", + "jquery-validation": "1.19.2", "jquery.event.drag": "2.2.2", "js-cookie": "2.2.1", "popper.js": "^1.16.1", diff --git a/yarn.lock b/yarn.lock index fee9ea3e24..fb33543a94 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1279,10 +1279,10 @@ jquery-uitablefilter@^1.0.0: resolved "https://registry.yarnpkg.com/jquery-uitablefilter/-/jquery-uitablefilter-1.0.0.tgz#ba90c5345826b2fd1fe90ec127826f9e9e7bad39" integrity sha512-iH3k0iiNXKtf6z9qV5htz0iGhSb+Hs9Za6V9GIAOeHdij77U96S2UT7j7FwMEyNZQmgrsKKzjfnLJq7lMGaANw== -jquery-validation@1.19.1: - version "1.19.1" - resolved "https://registry.yarnpkg.com/jquery-validation/-/jquery-validation-1.19.1.tgz#a85043467dc2b70d9fff05778646d150e747742f" - integrity sha512-QNnrZBqSltWUEJx+shOY5WtfrIb0gWmDjFfQP8rZKqMMSfpRSwEkSqhfHPvDfkObD8Hnv5KHSYI8yg73sVFdqA== +jquery-validation@1.19.2: + version "1.19.2" + resolved "https://registry.yarnpkg.com/jquery-validation/-/jquery-validation-1.19.2.tgz#c602831b0d8c5881400af424e872757ce241eff9" + integrity sha512-yHaAqOGaAB7+p2u5lpzhhQVt3CBMUw3fHcuCJ7nXmXz0LWLHPN7yOhwnocp5nrn2SmnXR1jpV+whx2j1kLz1tQ== jquery.event.drag@2.2.2: version "2.2.2"