diff --git a/package-lock.json b/package-lock.json index 7ada075..fdd7dbb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "amrpc", - "version": "4.3.0", + "version": "4.4.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "amrpc", - "version": "4.3.0", + "version": "4.4.0", "license": "GPL-3.0", "dependencies": { "@crowdin/ota-client": "^0.7.0", @@ -16,7 +16,7 @@ "cheerio": "^1.0.0-rc.12", "child-process-promise": "^2.2.1", "decompress": "^4.2.1", - "discord-rpc": "^4.0.1", + "discord-rpc": "git://github.com/sKiLdUsT/RPC", "electron-autotheme": "^1.3.2", "electron-log": "^4.4.4", "electron-store": "^8.0.1", @@ -30,16 +30,15 @@ "ws": "^8.6.0" }, "devDependencies": { - "@types/auto-launch": "^5.0.2", + "@types/auto-launch": "^5.0.5", "@types/cron": "^1.7.3", "@types/decompress": "^4.2.4", - "@types/discord-rpc": "^4.0.2", "@types/ws": "^8.5.3", "copyfiles": "^2.4.1", "electron": "^22.3.5", "electron-builder": "^23.6.0", "maketypes": "^1.1.2", - "typescript": "^4.6.3" + "typescript": "^5.5.4" } }, "node_modules/@crowdin/ota-client": { @@ -395,9 +394,9 @@ } }, "node_modules/@types/auto-launch": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/@types/auto-launch/-/auto-launch-5.0.2.tgz", - "integrity": "sha512-b03X09+GCM9t6AUECpwA2gUPYs8s5tJHFJw92sK8EiJ7G4QNbsHmXV7nfCfP6G6ivtm230vi4oNfe8AzRgzxMQ==", + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/@types/auto-launch/-/auto-launch-5.0.5.tgz", + "integrity": "sha512-/nGvQZSzM/pvCMCh4Gt2kIeiUmOP/cKGJbjlInI+A+5MoV/7XmT56DJ6EU8bqc3+ItxEe4UC2GVspmPzcCc8cg==", "dev": true }, "node_modules/@types/cacheable-request": { @@ -440,12 +439,6 @@ "@types/node": "*" } }, - "node_modules/@types/discord-rpc": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/@types/discord-rpc/-/discord-rpc-4.0.3.tgz", - "integrity": "sha512-4Kh+8u1+OXRHD5OHET3zbBInDkx3cMLaj8Qif8JQbgHZjiru2IYf/WHhuYdzjgtJ/J0CuImOpvt98+Bhe/lr1g==", - "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", @@ -1717,8 +1710,7 @@ }, "node_modules/discord-rpc": { "version": "4.0.1", - "resolved": "https://registry.npmjs.org/discord-rpc/-/discord-rpc-4.0.1.tgz", - "integrity": "sha512-HOvHpbq5STRZJjQIBzwoKnQ0jHplbEWFWlPDwXXKm/bILh4nzjcg7mNqll0UY7RsjFoaXA7e/oYb/4lvpda2zA==", + "resolved": "git+ssh://git@github.com/sKiLdUsT/RPC.git#1c5b6842fa586a1b7b339a50fa5ec1c4cf6c8867", "dependencies": { "node-fetch": "^2.6.1", "ws": "^7.3.1" @@ -4455,16 +4447,16 @@ } }, "node_modules/typescript": { - "version": "4.8.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", - "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", + "version": "5.5.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.4.tgz", + "integrity": "sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==", "dev": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" }, "engines": { - "node": ">=4.2.0" + "node": ">=14.17" } }, "node_modules/typpy": { @@ -5004,9 +4996,9 @@ "dev": true }, "@types/auto-launch": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/@types/auto-launch/-/auto-launch-5.0.2.tgz", - "integrity": "sha512-b03X09+GCM9t6AUECpwA2gUPYs8s5tJHFJw92sK8EiJ7G4QNbsHmXV7nfCfP6G6ivtm230vi4oNfe8AzRgzxMQ==", + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/@types/auto-launch/-/auto-launch-5.0.5.tgz", + "integrity": "sha512-/nGvQZSzM/pvCMCh4Gt2kIeiUmOP/cKGJbjlInI+A+5MoV/7XmT56DJ6EU8bqc3+ItxEe4UC2GVspmPzcCc8cg==", "dev": true }, "@types/cacheable-request": { @@ -5049,12 +5041,6 @@ "@types/node": "*" } }, - "@types/discord-rpc": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/@types/discord-rpc/-/discord-rpc-4.0.3.tgz", - "integrity": "sha512-4Kh+8u1+OXRHD5OHET3zbBInDkx3cMLaj8Qif8JQbgHZjiru2IYf/WHhuYdzjgtJ/J0CuImOpvt98+Bhe/lr1g==", - "dev": true - }, "@types/fs-extra": { "version": "9.0.13", "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-9.0.13.tgz", @@ -6068,9 +6054,8 @@ } }, "discord-rpc": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/discord-rpc/-/discord-rpc-4.0.1.tgz", - "integrity": "sha512-HOvHpbq5STRZJjQIBzwoKnQ0jHplbEWFWlPDwXXKm/bILh4nzjcg7mNqll0UY7RsjFoaXA7e/oYb/4lvpda2zA==", + "version": "git+ssh://git@github.com/sKiLdUsT/RPC.git#1c5b6842fa586a1b7b339a50fa5ec1c4cf6c8867", + "from": "discord-rpc@git://github.com/sKiLdUsT/RPC", "requires": { "node-fetch": "^2.6.1", "register-scheme": "github:devsnek/node-register-scheme", @@ -8221,9 +8206,9 @@ } }, "typescript": { - "version": "4.8.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", - "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", + "version": "5.5.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.4.tgz", + "integrity": "sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==", "dev": true }, "typpy": { diff --git a/package.json b/package.json index b51694e..37d7403 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "cheerio": "^1.0.0-rc.12", "child-process-promise": "^2.2.1", "decompress": "^4.2.1", - "discord-rpc": "^4.0.1", + "discord-rpc": "git://github.com/sKiLdUsT/RPC", "electron-autotheme": "^1.3.2", "electron-log": "^4.4.4", "electron-store": "^8.0.1", @@ -51,16 +51,15 @@ "ws": "^8.6.0" }, "devDependencies": { - "@types/auto-launch": "^5.0.2", + "@types/auto-launch": "^5.0.5", "@types/cron": "^1.7.3", "@types/decompress": "^4.2.4", - "@types/discord-rpc": "^4.0.2", "@types/ws": "^8.5.3", "copyfiles": "^2.4.1", "electron": "^22.3.5", "electron-builder": "^23.6.0", "maketypes": "^1.1.2", - "typescript": "^4.6.3" + "typescript": "^5.5.4" }, "overrides": { "minimatch": ">=3.0.5" diff --git a/src/managers/discord.ts b/src/managers/discord.ts index 7bdcae5..45b8494 100644 --- a/src/managers/discord.ts +++ b/src/managers/discord.ts @@ -184,7 +184,7 @@ export class Discord { setActivity(activity: Presence) { if (!this.isSupporter) activity.largeImageText = this.defaultLIT; if (!config.get("showTimestamps")) delete activity.endTimestamp; - + activity.type = 2; // Display "Listening to Apple Music", instead of "Playing Apple Music" this.activity = activity; if (this.isReady) {