Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 35 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"devDependencies": {
"@babel/preset-env": "^7.29.0",
"@eslint/compat": "^2.0.2",
"@eslint/js": "^9.39.2",
"@eslint/js": "^10.0.1",
"@rollup/plugin-babel": "^6.1.0",
"@rollup/plugin-inject": "^5.0.5",
"@vitest/eslint-plugin": "^1.6.9",
Expand Down
4 changes: 2 additions & 2 deletions static/js/common/upload-addon.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ $.fn.addonUploader = function (options) {
function (e, file, xhr, aborted) {
let errors = [],
$form = $upload_field.closest('form'),
json = {},
json,
errOb;
if (
xhr.readyState == 4 &&
Expand Down Expand Up @@ -561,7 +561,7 @@ $.fn.addonUploader = function (options) {
format(gettext('Finished validating {0}'), [escape_(file.name)]),
);

let message = '';
let message;
let messageCount = v.warnings + v.notices;

if (timeout) {
Expand Down
2 changes: 1 addition & 1 deletion static/js/common/upload-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ $.fn.imageUploader = function () {
formData.xhr.responseText &&
(formData.xhr.status == 200 || formData.xhr.status == 304)
) {
let json = {};
let json;
try {
json = JSON.parse(formData.xhr.responseText);
} catch (err) {
Expand Down
2 changes: 1 addition & 1 deletion tests/make/make.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function getConfig(env = {}) {
};
} catch (error) {
throw new Error(
JSON.stringify({ error, rawConfig, rawError, rawEnv }, null, 2),
JSON.stringify({ error, rawConfig, rawError, rawEnv }, null, 2), { cause: error }
);
}
}
Expand Down
Loading