From 094ff7c87953d86c6e6947fbfb013af90939d2ce Mon Sep 17 00:00:00 2001 From: PalmDevs Date: Fri, 9 Feb 2024 02:04:56 +0700 Subject: [PATCH] chore!: rename `__vendettaVersion` constant to `__revengeVersion` --- build.mjs | 3 +-- src/def.d.ts | 2 +- src/entry.ts | 2 +- src/lib/debug.ts | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/build.mjs b/build.mjs index 170570e..9e123b6 100644 --- a/build.mjs +++ b/build.mjs @@ -44,8 +44,7 @@ try { alias(aliases), ], define: { - // TODO: Rename this property - __vendettaVersion: `"${commit}"`, + __revengeVersion: `"${commit}"`, }, footer: { js: "//# sourceURL=Revenge", diff --git a/src/def.d.ts b/src/def.d.ts index e9fb06e..12c6152 100644 --- a/src/def.d.ts +++ b/src/def.d.ts @@ -511,7 +511,7 @@ interface VendettaPluginObject { declare global { type React = typeof _React; - const __vendettaVersion: string; + const __revengeVersion: string; interface Window { [key: Exclude]: any; diff --git a/src/entry.ts b/src/entry.ts index a8fc18f..c5ffe2b 100644 --- a/src/entry.ts +++ b/src/entry.ts @@ -13,7 +13,7 @@ import(".").then((m) => m.default()).catch((e) => { "Failed to load Revenge!\n", `Build Number: ${ClientInfoManager.Build}`, // TODO: Rename this - `Revenge: ${__vendettaVersion}`, + `Revenge: ${__revengeVersion}`, e?.stack || e.toString(), ].join("\n")); }); diff --git a/src/lib/debug.ts b/src/lib/debug.ts index 1bb6521..31e021c 100644 --- a/src/lib/debug.ts +++ b/src/lib/debug.ts @@ -59,7 +59,7 @@ export function patchLogHook() { } } -export const versionHash: string = __vendettaVersion; +export const versionHash: string = __revengeVersion; export function getDebugInfo() { // Hermes