UNPKG

@upstart.gg/sdk

Version:

You can test the CLI without recompiling by running:

12 lines (11 loc) 554 B
//#region src/shared/datasources/external/mastodon/account/fetcher.ts const fetchMastodonAccount = async ({ options }) => { const url = `https://mastodon.social/api/v1/accounts/lookup?${new URLSearchParams({ acct: options.username }).toString()}`; const response = await fetch(url); if (!response.ok) throw new Error(`fetchMastodonAccount Error: Response status: ${response.status}`); return await response.json(); }; var fetcher_default = fetchMastodonAccount; //#endregion export { fetcher_default as default }; //# sourceMappingURL=fetcher.js.map