···3737 <figcaption>bsky pfp</figcaption>
3838 </figure>
3939 <p>
4040- Hi! I'm Kai/Nico/Alex/Jen [she/it] (non binary) and I make silly websites! I'm a big fan
4141- of progressive enhancement, open source, and linux. (I use arch btw)
4040+ Hi! I'm Kai/Nico/Alex/Jen [she/it] (non binary) and I make silly websites!
4141+ I'm a big fan of progressive enhancement, open source, and linux. (I use
4242+ arch btw)
4243 </p>
4344 <p>
4445 My preferred tools are vanilla html/css, typescript, vite, astro, svelte,
+2-6
src/components/playing/spotify/api.ts
···3737 type success = nowPlaying;
3838 let res: (v: success) => void, rej: (v: unknown) => void;
3939 const output = new Promise<success>((_res, _rej) => {
4040- (res = _res), (rej = _rej);
4040+ ((res = _res), (rej = _rej));
4141 });
4242 const nowPlaying = getSpotifyApi("/me/player/currently-playing");
4343···162162 res(json);
163163 } catch (e) {
164164 rej(
165165- new SpotifyError(
166166- "MALFORMED_SPOTIFY_RES",
167167- e,
168168- "Could not parse JSON.",
169169- ),
165165+ new SpotifyError("MALFORMED_SPOTIFY_RES", e, "Could not parse JSON."),
170166 );
171167 }
172168 });
+1-1
src/components/playing/spotify/client.ts
···11export * from "./types";
22-export * from "./errors"22+export * from "./errors";
+1-2
src/components/playing/spotify/errors.ts
···1010] as const;
11111212export class SpotifyError {
1313- code: typeof spotErrs[number];
1313+ code: (typeof spotErrs)[number];
1414 details: unknown;
1515 human: string;
1616···4949 spotErrs.reduce((acc, cur) => acc || cur === err.code, false) &&
5050 "details" in err &&
5151 ("human" in err ? typeof err.human === "string" : true);
5252-
+1-1
src/components/playing/spotify/index.ts
···22export { getAccessCode };
33export * from "./errors";
44export * from "./api";
55-export * from "./types"
55+export * from "./types";
···11---
22import Base from "/components/Base.astro";
33import Landing from "/components/home/Landing.astro";
44-import NowPlaying from "/components/playing/NowPlaying.astro"
44+import NowPlaying from "/components/playing/NowPlaying.astro";
55---
6677<Base>