diff --git a/package-lock.json b/package-lock.json index 943bcdd..675cad2 100755 --- a/package-lock.json +++ b/package-lock.json @@ -17,34 +17,28 @@ "@tycrek/express-postcss": "^0.4.1", "@tycrek/joint": "^1.0.0-1", "@tycrek/log": "^0.7.5", - "@tycrek/papito": "^0.3.4", "@xoi/gps-metadata-remover": "^1.1.2", "any-shell-escape": "^0.1.1", "autoprefixer": "^10.4.16", - "axios": "^1.6.0", "bcrypt": "^5.1.1", - "chalk": "^4.1.2", "crypto-random-string": "3.3.1", "cssnano": "^6.0.1", "express": "^4.18.2", "express-busboy": "^10.1.0", - "express-rate-limit": "^7.1.2", + "express-rate-limit": "^7.1.3", "express-session": "^1.17.3", "ffmpeg-static": "^5.2.0", "fs-extra": "^11.1.1", "luxon": "^3.4.3", "memorystore": "^1.6.7", "mysql2": "^3.6.2", - "node-fetch": "^2.7.0", "node-vibrant": "^3.1.6", "pug": "^3.0.2", - "sanitize-filename": "^1.6.3", "sharp": "^0.32.6", "shoelace-fontawesome-pug": "^6.4.3", "shoelace-pug-loader": "^2.11.0", "tailwindcss": "^3.3.5", - "typescript": "^5.2.2", - "uuid": "^8.3.2" + "typescript": "^5.2.2" }, "devDependencies": { "@types/bcrypt": "^5.0.1", @@ -52,17 +46,14 @@ "@types/express-busboy": "^8.0.2", "@types/express-session": "^1.17.9", "@types/ffmpeg-static": "^3.0.2", - "@types/fs-extra": "^9.0.13", + "@types/fs-extra": "^11.0.3", "@types/luxon": "^3.3.3", "@types/node": "^20.8.9", - "@types/node-fetch": "^2.6.7", - "@types/sharp": "^0.32.0", - "@types/tailwindcss": "^3.1.0", - "@types/uuid": "^8.3.4" + "@types/tailwindcss": "^3.1.0" }, "engines": { - "node": ">=20.9.0", - "npm": ">=10.2.1" + "node": "^20", + "npm": "^10" } }, "node_modules/@alloc/quick-lru": { @@ -2432,15 +2423,6 @@ "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-16.1.1.tgz", "integrity": "sha512-+pio93ejHN4nINX4pXqfnR/fPLRtJBaT4ORaa5RH0Oc1zoYmo2B2koG+M328CQhHKn1Wj6FcOxCDFXAot9NhvA==" }, - "node_modules/@tycrek/express-postcss/node_modules/@types/fs-extra": { - "version": "11.0.3", - "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-11.0.3.tgz", - "integrity": "sha512-sF59BlXtUdzEAL1u0MSvuzWd7PdZvZEtnaVkzX5mjpdWTJ8brG0jUqve3jPCzSzvAKKMHTG8F8o/WMQLtleZdQ==", - "dependencies": { - "@types/jsonfile": "*", - "@types/node": "*" - } - }, "node_modules/@tycrek/joint": { "version": "1.0.0-1", "resolved": "https://registry.npmjs.org/@tycrek/joint/-/joint-1.0.0-1.tgz", @@ -2462,35 +2444,6 @@ "node": ">=18.0.0" } }, - "node_modules/@tycrek/papito": { - "version": "0.3.4", - "resolved": "https://registry.npmjs.org/@tycrek/papito/-/papito-0.3.4.tgz", - "integrity": "sha512-P5sQAJQOeirCzpphU6tXqjiCUmJf+A8T/1iJkpWu/uLq30lHyKjIoOeCXnW92b3hdDDxO1ruanxX2muJZTPQdA==", - "dependencies": { - "fs-extra": "^10.0.0" - }, - "engines": { - "node": ">=14.x.x", - "npm": ">=7.x.x" - }, - "funding": { - "type": "patreon", - "url": "https://patreon.com/tycrek" - } - }, - "node_modules/@tycrek/papito/node_modules/fs-extra": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", - "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=12" - } - }, "node_modules/@types/bcrypt": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/@types/bcrypt/-/bcrypt-5.0.1.tgz", @@ -2585,11 +2538,11 @@ "dev": true }, "node_modules/@types/fs-extra": { - "version": "9.0.13", - "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-9.0.13.tgz", - "integrity": "sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==", - "dev": true, + "version": "11.0.3", + "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-11.0.3.tgz", + "integrity": "sha512-sF59BlXtUdzEAL1u0MSvuzWd7PdZvZEtnaVkzX5mjpdWTJ8brG0jUqve3jPCzSzvAKKMHTG8F8o/WMQLtleZdQ==", "dependencies": { + "@types/jsonfile": "*", "@types/node": "*" } }, @@ -2630,16 +2583,6 @@ "undici-types": "~5.26.4" } }, - "node_modules/@types/node-fetch": { - "version": "2.6.7", - "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.7.tgz", - "integrity": "sha512-lX17GZVpJ/fuCjguZ5b3TjEbSENxmEk1B2z02yoXSK9WMEWRivhdSY73wWMn6bpcCDAOh6qAdktpKHIlkDk2lg==", - "dev": true, - "dependencies": { - "@types/node": "*", - "form-data": "^4.0.0" - } - }, "node_modules/@types/prop-types": { "version": "15.7.9", "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.9.tgz", @@ -2692,16 +2635,6 @@ "@types/node": "*" } }, - "node_modules/@types/sharp": { - "version": "0.32.0", - "resolved": "https://registry.npmjs.org/@types/sharp/-/sharp-0.32.0.tgz", - "integrity": "sha512-OOi3kL+FZDnPhVzsfD37J88FNeZh6gQsGcLc95NbeURRGvmSjeXiDcyWzF2o3yh/gQAUn2uhh/e+CPCa5nwAxw==", - "deprecated": "This is a stub types definition. sharp provides its own type definitions, so you do not need this installed.", - "dev": true, - "dependencies": { - "sharp": "*" - } - }, "node_modules/@types/tailwindcss": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/@types/tailwindcss/-/tailwindcss-3.1.0.tgz", @@ -2717,12 +2650,6 @@ "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.5.tgz", "integrity": "sha512-I3pkr8j/6tmQtKV/ZzHtuaqYSQvyjGRKH4go60Rr0IDLlFxuRT5V32uvB1mecM5G1EVAUyF/4r4QZ1GHgz+mxA==" }, - "node_modules/@types/uuid": { - "version": "8.3.4", - "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-8.3.4.tgz", - "integrity": "sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==", - "dev": true - }, "node_modules/@xoi/gps-metadata-remover": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@xoi/gps-metadata-remover/-/gps-metadata-remover-1.1.2.tgz", @@ -3840,9 +3767,9 @@ "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" }, "node_modules/electron-to-chromium": { - "version": "1.4.568", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.568.tgz", - "integrity": "sha512-3TCOv8+BY6Ltpt1/CmGBMups2IdKOyfEmz4J8yIS4xLSeMm0Rf+psSaxLuswG9qMKt+XbNbmADybtXGpTFlbDg==" + "version": "1.4.569", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.569.tgz", + "integrity": "sha512-LsrJjZ0IbVy12ApW3gpYpcmHS3iRxH4bkKOW98y1/D+3cvDUWGcbzbsFinfUS8knpcZk/PG/2p/RnkMCYN7PVg==" }, "node_modules/emoji-regex": { "version": "8.0.0", @@ -3988,14 +3915,14 @@ } }, "node_modules/express-rate-limit": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-7.1.2.tgz", - "integrity": "sha512-uvkFt5JooXDhUhrfgqXLyIsAMRCtU1o8W/p0Q2p5U2ude7fEOfFaP0kSYbHOHmPbA9ZEm1JqrRne3vL9pVCBXA==", + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-7.1.3.tgz", + "integrity": "sha512-BDes6WeNYSGRRGQU8QDNwUnwqaBro28HN/TTweM3RlxXRHDld8RLoH7tbfCxAc0hamQyn6aL0KrfR45+ZxknYg==", "engines": { "node": ">= 16" }, "peerDependencies": { - "express": "^4 || ^5" + "express": "4 || 5 || ^5.0.0-beta.1" } }, "node_modules/express-session": { @@ -6578,14 +6505,6 @@ "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" }, - "node_modules/sanitize-filename": { - "version": "1.6.3", - "resolved": "https://registry.npmjs.org/sanitize-filename/-/sanitize-filename-1.6.3.tgz", - "integrity": "sha512-y/52Mcy7aw3gRm7IrcGDFx/bCk4AhRh2eI9luHOQM86nZsqwiRkkq2GekHXBBD+SmPidc8i2PqtYZl+pWJ8Oeg==", - "dependencies": { - "truncate-utf8-bytes": "^1.0.0" - } - }, "node_modules/sax": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/sax/-/sax-1.3.0.tgz", @@ -7208,14 +7127,6 @@ "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" }, - "node_modules/truncate-utf8-bytes": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/truncate-utf8-bytes/-/truncate-utf8-bytes-1.0.2.tgz", - "integrity": "sha512-95Pu1QXQvruGEhv62XCMO3Mm90GscOCClvrIUwCM0PYOXK3kaF3l3sIHxx71ThJfcbM2O5Au6SO3AWCSEfW4mQ==", - "dependencies": { - "utf8-byte-length": "^1.0.1" - } - }, "node_modules/ts-interface-checker": { "version": "0.1.13", "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz", @@ -7279,6 +7190,11 @@ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" + }, "node_modules/universalify": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", @@ -7347,11 +7263,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/utf8-byte-length": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/utf8-byte-length/-/utf8-byte-length-1.0.4.tgz", - "integrity": "sha512-4+wkEYLBbWxqTahEsWrhxepcoVOJ+1z5PGIjPZxRkytcdSUaNjIjBM7Xn8E+pdSuV7SzvWovBFA54FO0JSoqhA==" - }, "node_modules/utif": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/utif/-/utif-2.0.1.tgz", diff --git a/package.json b/package.json index 8558bea..330883e 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,8 @@ "description": "The simple self-hosted ShareX server", "main": "dist-backend/app.js", "engines": { - "node": ">=20.9.0", - "npm": ">=10.2.1" + "node": "^20", + "npm": "^10" }, "scripts": { "dev": "npm run build && npm start", @@ -37,34 +37,28 @@ "@tycrek/express-postcss": "^0.4.1", "@tycrek/joint": "^1.0.0-1", "@tycrek/log": "^0.7.5", - "@tycrek/papito": "^0.3.4", "@xoi/gps-metadata-remover": "^1.1.2", "any-shell-escape": "^0.1.1", "autoprefixer": "^10.4.16", - "axios": "^1.6.0", "bcrypt": "^5.1.1", - "chalk": "^4.1.2", "crypto-random-string": "3.3.1", "cssnano": "^6.0.1", "express": "^4.18.2", "express-busboy": "^10.1.0", - "express-rate-limit": "^7.1.2", + "express-rate-limit": "^7.1.3", "express-session": "^1.17.3", "ffmpeg-static": "^5.2.0", "fs-extra": "^11.1.1", "luxon": "^3.4.3", "memorystore": "^1.6.7", "mysql2": "^3.6.2", - "node-fetch": "^2.7.0", "node-vibrant": "^3.1.6", "pug": "^3.0.2", - "sanitize-filename": "^1.6.3", "sharp": "^0.32.6", "shoelace-fontawesome-pug": "^6.4.3", "shoelace-pug-loader": "^2.11.0", "tailwindcss": "^3.3.5", - "typescript": "^5.2.2", - "uuid": "^8.3.2" + "typescript": "^5.2.2" }, "devDependencies": { "@types/bcrypt": "^5.0.1", @@ -72,12 +66,9 @@ "@types/express-busboy": "^8.0.2", "@types/express-session": "^1.17.9", "@types/ffmpeg-static": "^3.0.2", - "@types/fs-extra": "^9.0.13", + "@types/fs-extra": "^11.0.3", "@types/luxon": "^3.3.3", "@types/node": "^20.8.9", - "@types/node-fetch": "^2.6.7", - "@types/sharp": "^0.32.0", - "@types/tailwindcss": "^3.1.0", - "@types/uuid": "^8.3.4" + "@types/tailwindcss": "^3.1.0" } }