Compare commits

..

1 Commits

Author SHA1 Message Date
renovate[bot]
75ceeffa37
⬆️ Update dependency jquery to v3.6.1 2022-08-26 21:15:55 +00:00
5 changed files with 18 additions and 19 deletions

View File

@ -9,7 +9,7 @@
"dependencies": { "dependencies": {
"@fortawesome/fontawesome-free": "6.1.2", "@fortawesome/fontawesome-free": "6.1.2",
"app-root-path": "3.0.0", "app-root-path": "3.0.0",
"bootstrap": "5.1.3", "bootstrap": "5.2.0",
"cookie-parser": "1.4.6", "cookie-parser": "1.4.6",
"cron": "2.1.0", "cron": "2.1.0",
"debug": "4.3.4", "debug": "4.3.4",
@ -18,7 +18,7 @@
"form-data": "4.0.0", "form-data": "4.0.0",
"got": "12.3.0", "got": "12.3.0",
"http-errors": "2.0.0", "http-errors": "2.0.0",
"jquery": "3.6.2", "jquery": "3.6.1",
"luxon": "3.0.1", "luxon": "3.0.1",
"morgan": "1.10.0", "morgan": "1.10.0",
"webdav": "4.10.0", "webdav": "4.10.0",

View File

@ -21,7 +21,7 @@ router.get("/formated-local-snap", function (req, res, next) {
hassioApiTools.getSnapshots() hassioApiTools.getSnapshots()
.then((snaps) => { .then((snaps) => {
snaps.sort((a, b) => { snaps.sort((a, b) => {
return Date.parse(b.date) - Date.parse(a.date); return a.date < b.date ? 1 : -1
}); });
res.render("localSnaps", { snaps: snaps, DateTime: DateTime }); res.render("localSnaps", { snaps: snaps, DateTime: DateTime });
@ -43,7 +43,7 @@ router.get("/formated-backup-manual", function (req, res, next) {
.getFolderContent(webdav.getConf().back_dir + pathTools.manual) .getFolderContent(webdav.getConf().back_dir + pathTools.manual)
.then((contents) => { .then((contents) => {
contents.sort((a, b) => { contents.sort((a, b) => {
return Date.parse(b.lastmod) - Date.parse(a.lastmod) return a.date < b.date ? 1 : -1
}); });
//TODO Remove this when bug is fixed, etag contain '&quot;' at start and end ? //TODO Remove this when bug is fixed, etag contain '&quot;' at start and end ?
for (let backup of contents) { for (let backup of contents) {
@ -67,7 +67,7 @@ router.get("/formated-backup-auto", function (req, res, next) {
.getFolderContent(url) .getFolderContent(url)
.then((contents) => { .then((contents) => {
contents.sort((a, b) => { contents.sort((a, b) => {
return Date.parse(b.lastmod) - Date.parse(a.lastmod) return a.date < b.date ? 1 : -1
}); });
//TODO Remove this when bug is fixed, etag contain '&quot;' at start and end ? //TODO Remove this when bug is fixed, etag contain '&quot;' at start and end ?
for (let backup of contents) { for (let backup of contents) {

View File

@ -295,7 +295,7 @@ function clean() {
return; return;
} }
snaps.sort((a, b) => { snaps.sort((a, b) => {
return Date.parse(b.date) - Date.parse(a.date); return a.date < b.date ? 1 : -1
}); });
let toDel = snaps.slice(limit); let toDel = snaps.slice(limit);
for (let i of toDel) { for (let i of toDel) {

View File

@ -380,13 +380,12 @@ class WebdavTools {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.getFolderContent(this.getConf().back_dir + pathTools.auto) this.getFolderContent(this.getConf().back_dir + pathTools.auto)
.then(async (contents) => { .then(async (contents) => {
if (contents.length < limit) { if (contents.length < limit) {
resolve(); resolve();
return; return;
} }
contents.sort((a, b) => { contents.sort((a, b) => {
return Date.parse(b.lastmod) - Date.parse(a.lastmod) return a.date < b.date ? 1 : -1
}); });
let toDel = contents.slice(limit); let toDel = contents.slice(limit);

View File

@ -197,12 +197,12 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"bootstrap@npm:5.1.3": "bootstrap@npm:5.2.0":
version: 5.1.3 version: 5.2.0
resolution: "bootstrap@npm:5.1.3" resolution: "bootstrap@npm:5.2.0"
peerDependencies: peerDependencies:
"@popperjs/core": ^2.10.2 "@popperjs/core": ^2.11.5
checksum: 301b5ed872efba061104cf22ac93568e3837867fb5527ab9326a51510fb752bd4883e1d488225c8be72f86d9d3a55ef5b166aa7fa62c2fdd077c3f05b65752f8 checksum: 9dbfb5d26bbdac3e27a6b46cb7456cd4dd75ae3b48644737809885b8ea9c265d3359c4cdbf25a55bb7e5046f51e441557033ba21eeaf24ef8316bfbb3d420084
languageName: node languageName: node
linkType: hard linkType: hard
@ -873,10 +873,10 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"jquery@npm:3.6.2": "jquery@npm:3.6.1":
version: 3.6.2 version: 3.6.1
resolution: "jquery@npm:3.6.2" resolution: "jquery@npm:3.6.1"
checksum: b8ca408b9447e67e614204dbc4b2e71c6ea76eff281942d233769d969eed97fe28ffa34976e9ad9d3faad9b0a0d947d7e326ed272243679a9f5812a586c84168 checksum: 6177d866a74f1137cad800f142c7cdbd5ab19cd4282546f8bdb4890c9f933b1d542ab96f2aa15d007e43c98de7315b0513e849ec5359d3ac5640f720892fe547
languageName: node languageName: node
linkType: hard linkType: hard
@ -1095,7 +1095,7 @@ __metadata:
dependencies: dependencies:
"@fortawesome/fontawesome-free": 6.1.2 "@fortawesome/fontawesome-free": 6.1.2
app-root-path: 3.0.0 app-root-path: 3.0.0
bootstrap: 5.1.3 bootstrap: 5.2.0
cookie-parser: 1.4.6 cookie-parser: 1.4.6
cron: 2.1.0 cron: 2.1.0
debug: 4.3.4 debug: 4.3.4
@ -1104,7 +1104,7 @@ __metadata:
form-data: 4.0.0 form-data: 4.0.0
got: 12.3.0 got: 12.3.0
http-errors: 2.0.0 http-errors: 2.0.0
jquery: 3.6.2 jquery: 3.6.1
luxon: 3.0.1 luxon: 3.0.1
morgan: 1.10.0 morgan: 1.10.0
webdav: 4.10.0 webdav: 4.10.0