Issue #3118741 by dww, lauriii, xjm, nod_, tedbow, longwave, catch: [Security] Update yarn dependencies to fix security issues

merge-requests/64/head
Alex Pott 2020-06-03 00:19:55 +01:00
parent 2a5cd8c8ad
commit 0aea9b99f8
No known key found for this signature in database
GPG Key ID: 31905460D4A69276
7 changed files with 1287 additions and 997 deletions

View File

@ -102,7 +102,9 @@
if (xmlhttp.status) {
statusCode = `\n${Drupal.t('An AJAX HTTP error occurred.')}\n${Drupal.t(
'HTTP Result Code: !status',
{ '!status': xmlhttp.status },
{
'!status': xmlhttp.status,
},
)}`;
} else {
statusCode = `\n${Drupal.t(
@ -1131,12 +1133,14 @@
(response.effect || ajax.effect) !== 'none' &&
$newContent.filter(
i =>
!// We can not consider HTML comments or whitespace text as separate
// roots, since they do not cause visual regression with effect.
(
$newContent[i].nodeName === '#comment' ||
($newContent[i].nodeName === '#text' &&
/^(\s|\n|\r)*$/.test($newContent[i].textContent))
!(
// We can not consider HTML comments or whitespace text as separate
// roots, since they do not cause visual regression with effect.
(
$newContent[i].nodeName === '#comment' ||
($newContent[i].nodeName === '#text' &&
/^(\s|\n|\r)*$/.test($newContent[i].textContent))
)
),
).length > 1
? Drupal.theme('ajaxWrapperMultipleRootElements', $newContent)

View File

@ -57,7 +57,9 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
var statusText = void 0;
var responseText = void 0;
if (xmlhttp.status) {
statusCode = '\n' + Drupal.t('An AJAX HTTP error occurred.') + '\n' + Drupal.t('HTTP Result Code: !status', { '!status': xmlhttp.status });
statusCode = '\n' + Drupal.t('An AJAX HTTP error occurred.') + '\n' + Drupal.t('HTTP Result Code: !status', {
'!status': xmlhttp.status
});
} else {
statusCode = '\n' + Drupal.t('An AJAX HTTP request terminated abnormally.');
}

View File

@ -65,18 +65,14 @@
colorStart = farb.unpack(
form
.find(
`.color-palette input[name="palette[${
settings.gradients[i].colors[0]
}]"]`,
`.color-palette input[name="palette[${settings.gradients[i].colors[0]}]"]`,
)
.val(),
);
colorEnd = farb.unpack(
form
.find(
`.color-palette input[name="palette[${
settings.gradients[i].colors[1]
}]"]`,
`.color-palette input[name="palette[${settings.gradients[i].colors[1]}]"]`,
)
.val(),
);

View File

@ -74,7 +74,7 @@
// Open/close the description details by toggling a tr class.
$tbodies.on('click keydown', '.description', function(e) {
if (e.keyCode && (e.keyCode !== 13 && e.keyCode !== 32)) {
if (e.keyCode && e.keyCode !== 13 && e.keyCode !== 32) {
return;
}
e.preventDefault();

View File

@ -243,7 +243,8 @@
// proceed to set the fields to candidate state.
if (
(changedFields.length || this.get('fieldsInTempStore').length) &&
(!options.saved && !options.confirmed)
!options.saved &&
!options.confirmed
) {
// Cancel deactivation until the user confirms save or discard.
this.set('state', 'opened', { confirming: true });

View File

@ -58,10 +58,6 @@
color: #8e929c;
}
::-ms-input-placeholder {
color: #8e929c;
}
::placeholder {
color: #8e929c;
}

File diff suppressed because it is too large Load Diff