diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e3aa8819..497e42aa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,7 +25,8 @@ jobs: with: context: ./ file: Dockerfile - platforms: linux/amd64,linux/arm64 + # platforms: linux/amd64,linux/arm64 + platforms: linux/amd64 push: true tags: ghcr.io/ivanjx/transmissionic:latest cache-from: type=registry,ref=ghcr.io/ivanjx/transmissionic:latest diff --git a/Dockerfile b/Dockerfile index 57c65f0f..ba6d98a2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:16 as builder +FROM node:20 as builder WORKDIR /transmissionic COPY . . RUN npm install --loglevel verbose diff --git a/package-lock.json b/package-lock.json index e613a7fa..1f3d1c42 100644 --- a/package-lock.json +++ b/package-lock.json @@ -37,7 +37,7 @@ "mitt": "^3.0.0", "moment": "^2.29.4", "node-polyfill-webpack-plugin": "^2.0.1", - "parse-torrent": "^11.0.7", + "parse-torrent": "^11.0.16", "rxjs": "^7.5.7", "swiper": "^8.4.7", "vue": "^3.2.41", @@ -2610,6 +2610,17 @@ "npm": ">=6.0.0" } }, + "node_modules/@thaunknown/thirty-two": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@thaunknown/thirty-two/-/thirty-two-1.0.3.tgz", + "integrity": "sha512-bD6PvWbaf53JC04O7WnGDjqZBDgja/KT2Jd/6I2vJBIy+DLmQfQJZZ/G+16nAkVq1yGTIkO4rfc4RlH0DmEEqA==", + "dependencies": { + "uint8-util": "^2.1.9" + }, + "engines": { + "node": ">=0.2.6" + } + }, "node_modules/@trysound/sax": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/@trysound/sax/-/sax-0.2.0.tgz", @@ -4507,11 +4518,11 @@ "dev": true }, "node_modules/bencode": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/bencode/-/bencode-3.0.3.tgz", - "integrity": "sha512-aP282ducX2oSLiopRaPxvO6GMOsn0teN122hvlQQXlIr0fJC+Iirea6tmOWSLWPd+GtJf2YF6+YlbF7Wz90rIA==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/bencode/-/bencode-4.0.0.tgz", + "integrity": "sha512-AERXw18df0pF3ziGOCyUjqKZBVNH8HV3lBxnx5w0qtgMIk4a1wb9BkcCQbkp9Zstfrn/dzRwl7MmUHHocX3sRQ==", "dependencies": { - "uint8-util": "^2.1.6" + "uint8-util": "^2.2.2" }, "engines": { "node": ">=12.20.0" @@ -8768,9 +8779,9 @@ } }, "node_modules/magnet-uri": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/magnet-uri/-/magnet-uri-7.0.2.tgz", - "integrity": "sha512-qDqRs5fjwoTCmdhuDEKaaeBPetF1ayFUBo77b2Y0h1+J7z5xTiulve1osysZg7D+h73SJSXsSp9XM5W2asGTGQ==", + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/magnet-uri/-/magnet-uri-7.0.5.tgz", + "integrity": "sha512-Ke+dDiYHK1Rq/ZyGUAgk7NIkoypivxolTj/A0qr60ypP0FjeP+NTUNEhr965HsRan0zGxKEBK73+SsjRyJWkXg==", "funding": [ { "type": "github", @@ -8786,9 +8797,9 @@ } ], "dependencies": { + "@thaunknown/thirty-two": "^1.0.3", "bep53-range": "^2.0.0", - "thirty-two": "^1.0.2", - "uint8-util": "^2.1.7" + "uint8-util": "^2.1.9" }, "engines": { "node": ">=12.20.0" @@ -9730,9 +9741,9 @@ } }, "node_modules/parse-torrent": { - "version": "11.0.7", - "resolved": "https://registry.npmjs.org/parse-torrent/-/parse-torrent-11.0.7.tgz", - "integrity": "sha512-ZolvE7Xjs5qk9oxBQEZSaV69ZYTTKIKCjJeqZJkugkhcZPwuQmFAiaCF8Rd9R4ep2R1Mvg2L1VEIn7IEYRAiuQ==", + "version": "11.0.16", + "resolved": "https://registry.npmjs.org/parse-torrent/-/parse-torrent-11.0.16.tgz", + "integrity": "sha512-5GoOdmW0HpiB78aQpBz8/5V3V1LjBRDNiL7DOs33pKeCLOzFnfMrsRD6CYmaUBT5Vi/dXE0hfePsjDGJSMF48w==", "funding": [ { "type": "github", @@ -9748,12 +9759,12 @@ } ], "dependencies": { - "bencode": "^3.0.3", + "bencode": "^4.0.0", "cross-fetch-ponyfill": "^1.0.3", "get-stdin": "^9.0.0", - "magnet-uri": "^7.0.2", + "magnet-uri": "^7.0.5", "queue-microtask": "^1.2.3", - "uint8-util": "^2.1.7" + "uint8-util": "^2.2.4" }, "bin": { "parse-torrent": "bin/cmd.js" @@ -12143,14 +12154,6 @@ "node": ">=0.8" } }, - "node_modules/thirty-two": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/thirty-two/-/thirty-two-1.0.2.tgz", - "integrity": "sha512-OEI0IWCe+Dw46019YLl6V10Us5bi574EvlJEOcAkB29IzQ/mYD1A6RyNHLjZPiHCmuodxvgF6U+vZO1L15lxVA==", - "engines": { - "node": ">=0.2.6" - } - }, "node_modules/thread-loader": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/thread-loader/-/thread-loader-3.0.4.tgz", @@ -12400,9 +12403,9 @@ } }, "node_modules/uint8-util": { - "version": "2.1.9", - "resolved": "https://registry.npmjs.org/uint8-util/-/uint8-util-2.1.9.tgz", - "integrity": "sha512-twtktH1wpZwM8ivYXs2HL3nqHRosKGOxrPnfLxqYnzOR0RrIKbn/GrUZinXJ9n8tWzW8VIW++IpES4LYtGHSDQ==", + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/uint8-util/-/uint8-util-2.2.4.tgz", + "integrity": "sha512-uEI5lLozmKQPYEevfEhP9LY3Je5ZmrQhaWXrzTVqrLNQl36xsRh8NiAxYwB9J+2BAt99TRbmCkROQB2ZKhx4UA==", "dependencies": { "base64-arraybuffer": "^1.0.2" } diff --git a/package.json b/package.json index 25c99bbc..091a43a5 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "mitt": "^3.0.0", "moment": "^2.29.4", "node-polyfill-webpack-plugin": "^2.0.1", - "parse-torrent": "^11.0.7", + "parse-torrent": "^11.0.16", "rxjs": "^7.5.7", "swiper": "^8.4.7", "vue": "^3.2.41",