Skip to content

Commit

Permalink
fix(storage): properly create sub-proxy storage
Browse files Browse the repository at this point in the history
  • Loading branch information
pylixonly committed Jul 23, 2024
1 parent d88fa5f commit c4371ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/lib/api/storage/new.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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!);
}
}
Expand Down
7 changes: 4 additions & 3 deletions src/lib/plugins/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
}
Expand All @@ -17,7 +16,9 @@ export interface PluginRepoStorage {
}

export interface PluginSettingsStorage {
[pluginId: string]: any;
[pluginId: string]: {
enabled: boolean;
};
}

export interface BunnyPluginManifest {
Expand Down

0 comments on commit c4371ed

Please sign in to comment.