fix(storage): properly create sub-proxy storage

This commit is contained in:
amsyarasyiq 2024-07-23 19:24:10 +08:00
parent d88fa5f1c0
commit c4371ed566
2 changed files with 5 additions and 4 deletions

View file

@ -49,7 +49,7 @@ function _createProxy(target: any, path: string[], emitter: Emitter): any {
const origValue = value;
value = objChildrens.get(origValue);
if (!value) {
value = _createProxy(value, newPath, emitter);
value = _createProxy(origValue, newPath, emitter);
objChildrens.set(origValue, value!);
}
}

View file

@ -4,10 +4,9 @@ import { Author } from "@lib/utils/types";
export interface PluginRepo {
[id: string]: {
name: string;
version: string;
// For plugin developing convenience, plugins with this on will always gets fetched
// For plugin developing convenience, plugins with this on will always get fetched
alwaysFetch?: boolean;
};
}
@ -17,7 +16,9 @@ export interface PluginRepoStorage {
}
export interface PluginSettingsStorage {
[pluginId: string]: any;
[pluginId: string]: {
enabled: boolean;
};
}
export interface BunnyPluginManifest {