Fix missing module and bump version
This commit is contained in:
parent
c71f9339de
commit
7bdf2b630f
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "betterdiscord",
|
"name": "betterdiscord",
|
||||||
"version": "1.5.1",
|
"version": "1.5.2",
|
||||||
"description": "Enhances Discord by adding functionality and themes.",
|
"description": "Enhances Discord by adding functionality and themes.",
|
||||||
"main": "src/index.js",
|
"main": "src/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -1,27 +1,11 @@
|
||||||
export default {
|
export default {
|
||||||
description: "Just some minor updates to keep things running smoothly!",
|
description: "Improvements coming soon!",
|
||||||
changes: [
|
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",
|
title: "Fixes",
|
||||||
type: "fixed",
|
type: "fixed",
|
||||||
items: [
|
items: [
|
||||||
"All those `GuildComponent` errors should now be gone!",
|
"BD loads again, thanks to Strencher for this late night fix while I was away"
|
||||||
"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.",
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
* @module WebpackModules
|
* @module WebpackModules
|
||||||
* @version 0.0.2
|
* @version 0.0.2
|
||||||
*/
|
*/
|
||||||
|
import Logger from "../../../common/logger";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if a given module matches a set of parameters.
|
* Checks if a given module matches a set of parameters.
|
||||||
|
@ -128,8 +129,6 @@ const protect = theModule => {
|
||||||
};
|
};
|
||||||
|
|
||||||
export default class WebpackModules {
|
export default class WebpackModules {
|
||||||
static get chunkName() {return "webpackChunkdiscord_app";}
|
|
||||||
|
|
||||||
static find(filter, first = true) {return this.getModule(filter, first);}
|
static find(filter, first = true) {return this.getModule(filter, first);}
|
||||||
static findAll(filter) {return this.getModule(filter, false);}
|
static findAll(filter) {return this.getModule(filter, false);}
|
||||||
static findByUniqueProperties(props, first = true) {return first ? this.getByProps(...props) : this.getAllByProps(...props);}
|
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);
|
if (fromCache) return Promise.resolve(fromCache);
|
||||||
|
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
const cancel = () => {this.removeListener(listener)};
|
const cancel = () => {this.removeListener(listener);};
|
||||||
const listener = function (m) {
|
const listener = function (m) {
|
||||||
const directMatch = filter(m);
|
const directMatch = filter(m);
|
||||||
|
|
||||||
|
@ -360,11 +359,12 @@ export default class WebpackModules {
|
||||||
for (let i = 0; i < listeners.length; i++) {
|
for (let i = 0; i < listeners.length; i++) {
|
||||||
try {listeners[i](exports);}
|
try {listeners[i](exports);}
|
||||||
catch (error) {
|
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