diff --git a/package-lock.json b/package-lock.json index f60a662947..daae2dea7a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -50,7 +50,7 @@ "moment": "^2.26.0", "mousetrap": "^1.6.5", "papaparse": "^5.2.0", - "parsleyjs": "^2.8.1", + "parsleyjs": "^2.9.2", "prop-types": "^15.7.2", "react": "^16.13.1", "react-beautiful-dnd": "^13.0.0", @@ -22194,9 +22194,9 @@ } }, "node_modules/parsleyjs": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/parsleyjs/-/parsleyjs-2.8.1.tgz", - "integrity": "sha1-oEq/kcIUZHXm1NVAS0WUCtb7uKQ=", + "version": "2.9.2", + "resolved": "https://registry.npmjs.org/parsleyjs/-/parsleyjs-2.9.2.tgz", + "integrity": "sha512-DKS2XXTjEUZ1BJWUzgXAr+550kFBZrom2WYweubqdV7WzdNC1hjOajZDfeBPoAZMkXumJPlB3v37IKatbiW8zQ==", "dependencies": { "jquery": ">=1.8.0" } @@ -52484,9 +52484,9 @@ "dev": true }, "parsleyjs": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/parsleyjs/-/parsleyjs-2.8.1.tgz", - "integrity": "sha1-oEq/kcIUZHXm1NVAS0WUCtb7uKQ=", + "version": "2.9.2", + "resolved": "https://registry.npmjs.org/parsleyjs/-/parsleyjs-2.9.2.tgz", + "integrity": "sha512-DKS2XXTjEUZ1BJWUzgXAr+550kFBZrom2WYweubqdV7WzdNC1hjOajZDfeBPoAZMkXumJPlB3v37IKatbiW8zQ==", "requires": { "jquery": ">=1.8.0" } diff --git a/package.json b/package.json index 9dc64d0f87..912940e274 100644 --- a/package.json +++ b/package.json @@ -83,7 +83,7 @@ "moment": "^2.26.0", "mousetrap": "^1.6.5", "papaparse": "^5.2.0", - "parsleyjs": "^2.8.1", + "parsleyjs": "^2.9.2", "prop-types": "^15.7.2", "react": "^16.13.1", "react-beautiful-dnd": "^13.0.0", diff --git a/tasks/npm_post_install.sh b/tasks/npm_post_install.sh index 22c59f9a66..073e234144 100755 --- a/tasks/npm_post_install.sh +++ b/tasks/npm_post_install.sh @@ -11,3 +11,8 @@ cat $INIT_CWD/node_modules/tinymce/icons/default/icons.min.js >> $INIT_CWD/asset # Replace deprecated jQuery methods in the spectrum-colorpicker dependency # Remove this when a patch is included in a package update git apply $INIT_CWD/tasks/patches/spectrum-replace-jquery-deprecated.patch || true + +# Replace deprecated jQuery methods in the parsley dependency +# Remove this when a patch is included in a package update. +# Note: deferred.pipe() fix is not implemented yet, see https://github.com/guillaumepotier/Parsley.js/pull/1347 +sed -i -- "s/_focusedField\.focus()/_focusedField\.trigger('focus')/g" node_modules/parsleyjs/dist/parsley*.js