This commit is contained in:
Mirco Wittrien 2021-08-11 21:28:21 +02:00
parent 330e5fcaef
commit 7dbceea5c8
2 changed files with 4 additions and 22 deletions

View File

@ -276,12 +276,6 @@ module.exports = (_ => {
BDFDB.ObjectUtils.is = function (obj) {
return obj && !Array.isArray(obj) && !Set.prototype.isPrototypeOf(obj) && (typeof obj == "function" || typeof obj == "object");
};
BDFDB.ObjectUtils.isProxy = function (obj) {
if (!obj && typeof obj !== "object") return false;
const testValue = obj.oASdiAShDhSAIDHSAIODHSAIDHSIOADHISADHIOSAHDISAHDIOSHADISAHasdiadISAodHiOAdasih;
if (typeof testValue == "string" && !testValue) return true;
return false;
};
BDFDB.ObjectUtils.get = function (nodeOrObj, valuePath) {
if (!nodeOrObj || !valuePath) return null;
let obj = Node.prototype.isPrototypeOf(nodeOrObj) ? BDFDB.ReactUtils.getInstance(nodeOrObj) : nodeOrObj;
@ -1205,18 +1199,6 @@ module.exports = (_ => {
else BDFDB.LogUtils.warn(`${cacheString} [${type}] not found in WebModules`);
}
};
const proxyStates = {};
InternalBDFDB.isSearchableModule = function (m, path) {
if (m && (typeof m == "object" || typeof m == "function")) {
path = [path].flat(10).join(" ");
if (proxyStates[path] !== undefined) return !proxyStates[path];
else {
proxyStates[path] = BDFDB.ObjectUtils.isProxy(m);
return !proxyStates[path];
}
}
return false;
};
BDFDB.ModuleUtils = {};
BDFDB.ModuleUtils.find = function (filter, getExport) {

View File

@ -2,7 +2,7 @@
* @name CompleteTimestamps
* @author DevilBro
* @authorId 278543574059057154
* @version 1.5.8
* @version 1.5.9
* @description Replaces Timestamps with your own custom Timestamps
* @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien
@ -17,12 +17,12 @@ module.exports = (_ => {
"info": {
"name": "CompleteTimestamps",
"author": "DevilBro",
"version": "1.5.8",
"version": "1.5.9",
"description": "Replaces Timestamps with your own custom Timestamps"
},
"changeLog": {
"added": {
"Markup Timestamps": "Now also targets message markup timestamps"
"fixed": {
"Markup Timestamps": "Now also targets message markup timestamps completely"
}
}
};