diff --git a/Dockerfile b/Dockerfile index 469212c..04ba720 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:18-alpine +FROM node:22-alpine WORKDIR /usr/src/app RUN chown -R node:node /usr/src/app USER node diff --git a/package-lock.json b/package-lock.json index 4717fbb..f6e177c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,34 +1,39 @@ { "name": "extralife-twitch-bridge", - "version": "1.1.0", - "lockfileVersion": 2, + "version": "2.0.0", + "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "extralife-twitch-bridge", - "version": "1.1.0", + "version": "2.0.0", "license": "Apache-2.0", "dependencies": { - "dotenv": "^16.0.2", - "extra-life-api": "^7.1.0", + "dotenv": "^16.4.5", + "extra-life-api": "^8.0.0", "log-timestamp": "^0.3.0", "tmi.js": "^1.8.5" } }, "node_modules/dotenv": { - "version": "16.0.2", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.0.2.tgz", - "integrity": "sha512-JvpYKUmzQhYoIFgK2MOnF3bciIZoItIIoryihy0rIA+H4Jy0FmgyKYAHCTN98P5ybGSJcIFbh6QKeJdtZd1qhA==", + "version": "16.4.5", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz", + "integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==", + "license": "BSD-2-Clause", "engines": { "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" } }, "node_modules/extra-life-api": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/extra-life-api/-/extra-life-api-7.1.0.tgz", - "integrity": "sha512-TYqZPSs3KOJDlIkWsNEim8H933mF90IyWsYencYZ/NWZV9OpObHNVJlPb3ex30KmfL6y/sDEKZDSUVx6t3cKAA==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/extra-life-api/-/extra-life-api-8.0.0.tgz", + "integrity": "sha512-5TlQK2kYE5cSCo56/o8H7lV020ugPoKgrj9epmghQBKZ8jM0U1zj++FRCW4QzwM/mDWiYrL6OBZwcH5FvxQcTQ==", + "license": "MIT", "dependencies": { - "node-fetch": "^2.6.0" + "node-fetch": "^2.6.7" }, "engines": { "node": ">=4.0.0" @@ -54,9 +59,10 @@ } }, "node_modules/node-fetch": { - "version": "2.6.7", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", - "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "license": "MIT", "dependencies": { "whatwg-url": "^5.0.0" }, @@ -76,6 +82,7 @@ "version": "1.8.5", "resolved": "https://registry.npmjs.org/tmi.js/-/tmi.js-1.8.5.tgz", "integrity": "sha512-A9qrydfe1e0VWM9MViVhhxVgvLpnk7pFShVUWePsSTtoi+A1X+Zjdoa7OJd7/YsgHXGj3GkNEvnWop/1WwZuew==", + "license": "MIT", "dependencies": { "node-fetch": "^2.6.1", "ws": "^8.2.0" @@ -87,32 +94,36 @@ "node_modules/tr46": { "version": "0.0.3", "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", + "license": "MIT" }, "node_modules/webidl-conversions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", + "license": "BSD-2-Clause" }, "node_modules/whatwg-url": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "license": "MIT", "dependencies": { "tr46": "~0.0.3", "webidl-conversions": "^3.0.0" } }, "node_modules/ws": { - "version": "8.9.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.9.0.tgz", - "integrity": "sha512-Ja7nszREasGaYUYCI2k4lCKIRTt+y7XuqVoHR44YpI49TtryyqbqvDMn5eqfW7e6HzTukDRIsXqzVHScqRcafg==", + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz", + "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==", + "license": "MIT", "engines": { "node": ">=10.0.0" }, "peerDependencies": { "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" + "utf-8-validate": ">=5.0.2" }, "peerDependenciesMeta": { "bufferutil": { @@ -123,75 +134,5 @@ } } } - }, - "dependencies": { - "dotenv": { - "version": "16.0.2", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.0.2.tgz", - "integrity": "sha512-JvpYKUmzQhYoIFgK2MOnF3bciIZoItIIoryihy0rIA+H4Jy0FmgyKYAHCTN98P5ybGSJcIFbh6QKeJdtZd1qhA==" - }, - "extra-life-api": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/extra-life-api/-/extra-life-api-7.1.0.tgz", - "integrity": "sha512-TYqZPSs3KOJDlIkWsNEim8H933mF90IyWsYencYZ/NWZV9OpObHNVJlPb3ex30KmfL6y/sDEKZDSUVx6t3cKAA==", - "requires": { - "node-fetch": "^2.6.0" - } - }, - "log-prefix": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/log-prefix/-/log-prefix-0.1.1.tgz", - "integrity": "sha512-aP1Lst8OCdZKATqzXDN0JBissNVZuiKLyo6hOXDBxaQ1jHDsaxh2J1i5Pp0zMy6ayTKDWfUlLMXyLaQe1PJ48g==" - }, - "log-timestamp": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/log-timestamp/-/log-timestamp-0.3.0.tgz", - "integrity": "sha512-luRz6soxijd1aJh0GkLXFjKABihxthvTfWTzu3XhCgg5EivG2bsTpSd63QFbUgS+/KmFtL+0RfSpeaD2QvOV8Q==", - "requires": { - "log-prefix": "0.1.1" - } - }, - "node-fetch": { - "version": "2.6.7", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", - "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", - "requires": { - "whatwg-url": "^5.0.0" - } - }, - "tmi.js": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/tmi.js/-/tmi.js-1.8.5.tgz", - "integrity": "sha512-A9qrydfe1e0VWM9MViVhhxVgvLpnk7pFShVUWePsSTtoi+A1X+Zjdoa7OJd7/YsgHXGj3GkNEvnWop/1WwZuew==", - "requires": { - "node-fetch": "^2.6.1", - "ws": "^8.2.0" - } - }, - "tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" - }, - "webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" - }, - "whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "requires": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, - "ws": { - "version": "8.9.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.9.0.tgz", - "integrity": "sha512-Ja7nszREasGaYUYCI2k4lCKIRTt+y7XuqVoHR44YpI49TtryyqbqvDMn5eqfW7e6HzTukDRIsXqzVHScqRcafg==", - "requires": {} - } } } diff --git a/package.json b/package.json index 6008c6d..554af27 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,13 @@ { "dependencies": { - "dotenv": "^16.0.2", - "extra-life-api": "^7.1.0", + "dotenv": "^16.4.5", + "extra-life-api": "^8.0.0", "log-timestamp": "^0.3.0", "tmi.js": "^1.8.5" }, "name": "extralife-twitch-bridge", "description": "Add extra features to your Twitch chat from Extra Life", - "version": "1.1.1", + "version": "2.0.0", "main": "main.js", "type": "module", "scripts": {