this repo has no description
1import { Store } from "@moonlight-mod/wp/discord/packages/flux"; 2 3module.exports = new Proxy( 4 {}, 5 { 6 get: function (target, key, receiver) { 7 const allStores = Store.getAll(); 8 9 let targetStore; 10 for (const store of allStores) { 11 const name = store.getName(); 12 if (name.length === 1) continue; // filter out unnamed stores 13 14 if (name === key) { 15 targetStore = store; 16 break; 17 } 18 } 19 20 return targetStore; 21 } 22 } 23);