Skip to content

Commit

Permalink
chore!: rename __vendettaVersion constant to __revengeVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
PalmDevs authored and PalmDevs committed Feb 8, 2024
1 parent e5d834f commit 094ff7c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ try {
alias(aliases),
],
define: {
// TODO: Rename this property
__vendettaVersion: `"${commit}"`,
__revengeVersion: `"${commit}"`,
},
footer: {
js: "//# sourceURL=Revenge",
Expand Down
2 changes: 1 addition & 1 deletion src/def.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ interface VendettaPluginObject {

declare global {
type React = typeof _React;
const __vendettaVersion: string;
const __revengeVersion: string;

interface Window {
[key: Exclude<PropertyKey, number>]: any;
Expand Down
2 changes: 1 addition & 1 deletion src/entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
});
2 changes: 1 addition & 1 deletion src/lib/debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export function patchLogHook() {
}
}

export const versionHash: string = __vendettaVersion;
export const versionHash: string = __revengeVersion;

export function getDebugInfo() {
// Hermes
Expand Down

0 comments on commit 094ff7c

Please sign in to comment.