fix(storage): properly create sub-proxy storage
This commit is contained in:
parent
d88fa5f1c0
commit
c4371ed566
2 changed files with 5 additions and 4 deletions
|
|
@ -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!);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue