diff --git a/README.md b/README.md index b831bea..b6ad162 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Direct Download Link: [dev.tharki.Address.asar](https://github.com/Tharki-God/Ad Install Link: -[![Install in Replugged](https://img.shields.io/badge/-Install%20in%20Replugged-blue?style=for-the-badge&logo=none)](https://replugged.dev/install?identifier=Tharki-God/Address&source=github) +[![Install in Replugged](https://img.shields.io/badge/-Install%20in%20Replugged-blue?style=for-the-badge&logo=none)](https://replugged.dev/install?identifier=dev.tharki.Address) ![image](https://tharki-god.github.io/files-random-host/bdpluginsassets/address.png) diff --git a/manifest.json b/manifest.json index 9f89f46..97a7486 100644 --- a/manifest.json +++ b/manifest.json @@ -7,10 +7,10 @@ "discordID": "1025214794766221384", "github": "Tharki-God" }, - "version": "0.9.2", + "version": "0.9.3", "updater": { - "type": "github", - "id": "Tharki-God/Address" + "type": "store", + "id": "dev.tharki.Address" }, "license": "MIT", "type": "replugged-plugin", diff --git a/package.json b/package.json index a798c24..da46920 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "address", - "version": "0.9.2", + "version": "0.9.3", "description": "Get an option to copy the current web address by right clicking on the home button.", "engines": { "node": ">=14.0.0" @@ -30,7 +30,7 @@ "eslint-plugin-node": "^11.1.0", "eslint-plugin-react": "^7.31.10", "prettier": "^2.8.1", - "replugged": "^4.2.6", + "replugged": "^4.3.0", "typescript": "^4.8.4" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4ed6e90..397bd9b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -29,8 +29,8 @@ devDependencies: specifier: ^2.8.1 version: 2.8.4 replugged: - specifier: ^4.2.6 - version: 4.2.6(@codemirror/view@6.9.1)(@lezer/common@1.0.2) + specifier: ^4.3.0 + version: 4.3.0(@codemirror/view@6.9.1)(@lezer/common@1.0.2) typescript: specifier: ^4.8.4 version: 4.9.5 @@ -3692,8 +3692,8 @@ packages: rc: 1.2.8 dev: true - /replugged@4.2.6(@codemirror/view@6.9.1)(@lezer/common@1.0.2): - resolution: {integrity: sha512-qMJJ/mcu5y84w2a7gRZff0iANuysH5fHqLHbaCbqn4jX4ElXAv34BgQyZGzxXOiMWmuEhZKHSI44R+mIwiWt+g==} + /replugged@4.3.0(@codemirror/view@6.9.1)(@lezer/common@1.0.2): + resolution: {integrity: sha512-Sa9O+hA5N2J7Cez2qegqW+HV8ekXxpXK1lZDCSXrp4slqHvBfUBVgySXrCvTXh2JQfl4JR6FfOf9SqfKabnb/Q==} engines: {node: '>=18.0.0', pnpm: '>=8.0.0'} hasBin: true dependencies: @@ -3713,11 +3713,13 @@ packages: node-fetch: 3.3.0 standalone-electron-types: 1.0.0 update-notifier: 6.0.2 + ws: 8.13.0 yargs: 17.7.1 zod: 3.20.6 transitivePeerDependencies: - '@codemirror/view' - '@lezer/common' + - bufferutil - cssnano - encoding - postcss @@ -3726,6 +3728,7 @@ packages: - srcset - terser - uncss + - utf-8-validate dev: true /require-directory@2.1.1: @@ -4251,6 +4254,19 @@ packages: typedarray-to-buffer: 3.1.5 dev: true + /ws@8.13.0: + resolution: {integrity: sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==} + engines: {node: '>=10.0.0'} + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: '>=5.0.2' + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + dev: true + /xdg-basedir@5.1.0: resolution: {integrity: sha512-GCPAHLvrIH13+c0SuacwvRYj2SxJXQ4kaVTT5xgL3kPrz56XxkF21IGhjSE1+W0aw7gpBWRGXLCPnPby6lSpmQ==} engines: {node: '>=12'} diff --git a/src/lib/requiredModules.ts b/src/lib/requiredModules.ts index 93347a3..4438e12 100644 --- a/src/lib/requiredModules.ts +++ b/src/lib/requiredModules.ts @@ -1,7 +1,4 @@ import { webpack } from "replugged"; import * as Types from "../types"; -export const DiscordNative = webpack.getByProps( - "clipboard", - "process", -) as unknown as Types.DiscordNative; +export const DiscordNative = webpack.getByProps("clipboard", "process"); diff --git a/src/plaintextPatches.ts b/src/plaintextPatches.ts index bc76e08..4c76796 100644 --- a/src/plaintextPatches.ts +++ b/src/plaintextPatches.ts @@ -4,7 +4,7 @@ export default [ find: "Messages.DISCODO_DISABLED", replacements: [ { - match: /(className:.*\.[\w]+),(children.*"friends-list")/, + match: /(className:[\w$_]+\(\)\.[\w]+),(children.+?"friends-list")/, replace: `$1,onContextMenu: HomeButtonContextMenuApi?.openContextMenu,$2`, }, ],