Fix missing module and bump version
This commit is contained in:
parent
c71f9339de
commit
7bdf2b630f
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "betterdiscord",
|
||||
"version": "1.5.1",
|
||||
"version": "1.5.2",
|
||||
"description": "Enhances Discord by adding functionality and themes.",
|
||||
"main": "src/index.js",
|
||||
"scripts": {
|
||||
|
|
|
@ -1,27 +1,11 @@
|
|||
export default {
|
||||
description: "Just some minor updates to keep things running smoothly!",
|
||||
description: "Improvements coming soon!",
|
||||
changes: [
|
||||
{
|
||||
title: "What's new?",
|
||||
type: "added",
|
||||
description: "Some basic preferences for the addon editor have been added including:",
|
||||
items: [
|
||||
"Font size adjustment",
|
||||
"Line numbers toggle",
|
||||
"Minimap toggle",
|
||||
"Whitespace preference",
|
||||
"Reference tooltips",
|
||||
"Quick suggestions"
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "Fixes",
|
||||
type: "fixed",
|
||||
items: [
|
||||
"All those `GuildComponent` errors should now be gone!",
|
||||
"Public servers button shows up again if things get reloaded.",
|
||||
"Plugin compilation errors point to console for more info.",
|
||||
"Plugins with no `@name` property will now properly error.",
|
||||
"BD loads again, thanks to Strencher for this late night fix while I was away"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
* @module WebpackModules
|
||||
* @version 0.0.2
|
||||
*/
|
||||
import Logger from "../../../common/logger";
|
||||
|
||||
/**
|
||||
* Checks if a given module matches a set of parameters.
|
||||
|
@ -128,8 +129,6 @@ const protect = theModule => {
|
|||
};
|
||||
|
||||
export default class WebpackModules {
|
||||
static get chunkName() {return "webpackChunkdiscord_app";}
|
||||
|
||||
static find(filter, first = true) {return this.getModule(filter, first);}
|
||||
static findAll(filter) {return this.getModule(filter, false);}
|
||||
static findByUniqueProperties(props, first = true) {return first ? this.getByProps(...props) : this.getAllByProps(...props);}
|
||||
|
@ -254,7 +253,7 @@ export default class WebpackModules {
|
|||
if (fromCache) return Promise.resolve(fromCache);
|
||||
|
||||
return new Promise((resolve) => {
|
||||
const cancel = () => {this.removeListener(listener)};
|
||||
const cancel = () => {this.removeListener(listener);};
|
||||
const listener = function (m) {
|
||||
const directMatch = filter(m);
|
||||
|
||||
|
@ -360,11 +359,12 @@ export default class WebpackModules {
|
|||
for (let i = 0; i < listeners.length; i++) {
|
||||
try {listeners[i](exports);}
|
||||
catch (error) {
|
||||
Logger.err("WebpackModules", "Could not fire callback listener:", error);
|
||||
Logger.stacktrace("WebpackModules", "Could not fire callback listener:", error);
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
}
|
||||
catch (error) {
|
||||
Logger.stacktrace("WebpackModules", "Could not patch pushed module", error);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue