Compare commits

..

1 Commits

Author SHA1 Message Date
renovate[bot]
becf68784c
⬆️ Update dependency got to v12.5.2 2022-10-24 21:00:27 +00:00
5 changed files with 21 additions and 22 deletions

View File

@ -9,14 +9,14 @@
"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",
"ejs": "3.1.8", "ejs": "3.1.8",
"express": "4.18.1", "express": "4.18.1",
"form-data": "4.0.0", "form-data": "4.0.0",
"got": "12.5.3", "got": "12.5.2",
"http-errors": "2.0.0", "http-errors": "2.0.0",
"jquery": "3.6.0", "jquery": "3.6.0",
"luxon": "3.0.1", "luxon": "3.0.1",

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

@ -153,12 +153,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
@ -644,9 +644,9 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"got@npm:12.5.3": "got@npm:12.5.2":
version: 12.5.3 version: 12.5.2
resolution: "got@npm:12.5.3" resolution: "got@npm:12.5.2"
dependencies: dependencies:
"@sindresorhus/is": ^5.2.0 "@sindresorhus/is": ^5.2.0
"@szmarczak/http-timer": ^5.0.1 "@szmarczak/http-timer": ^5.0.1
@ -659,7 +659,7 @@ __metadata:
lowercase-keys: ^3.0.0 lowercase-keys: ^3.0.0
p-cancelable: ^3.0.0 p-cancelable: ^3.0.0
responselike: ^3.0.0 responselike: ^3.0.0
checksum: e35ea3ccdb5f2c36d0bb9648a6a87300d017900ce2e647ad95f54a6fb674a82fe7d53b2c838542d15a9fa25290cc5361d6f82cadac3e94b2e91d93b5670cf304 checksum: f84b704ca8edb5af17b4df32d21729a0a837a680d197c9d5a922090024ffc15d71a2c5a470de57ca2bb3e3e55aa7e996767d9106df7c57eb99d8de84ce56691f
languageName: node languageName: node
linkType: hard linkType: hard
@ -805,11 +805,11 @@ __metadata:
linkType: hard linkType: hard
"keyv@npm:^4.5.0": "keyv@npm:^4.5.0":
version: 4.5.2 version: 4.5.0
resolution: "keyv@npm:4.5.2" resolution: "keyv@npm:4.5.0"
dependencies: dependencies:
json-buffer: 3.0.1 json-buffer: 3.0.1
checksum: 13ad58303acd2261c0d4831b4658451603fd159e61daea2121fcb15feb623e75ee328cded0572da9ca76b7b3ceaf8e614f1806c6b3af5db73c9c35a345259651 checksum: d294873cf88ec8f691e5edeb7b4b884f886c5f021a01902a0e243c362449db2b55419d7fb7187d059add747b7398321e39e44d391b65f94935174ce13452714d
languageName: node languageName: node
linkType: hard linkType: hard
@ -1004,14 +1004,14 @@ __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
ejs: 3.1.8 ejs: 3.1.8
express: 4.18.1 express: 4.18.1
form-data: 4.0.0 form-data: 4.0.0
got: 12.5.3 got: 12.5.2
http-errors: 2.0.0 http-errors: 2.0.0
jquery: 3.6.0 jquery: 3.6.0
luxon: 3.0.1 luxon: 3.0.1