···22 import { onMount } from 'svelte';
33 import { Client, simpleFetchHandler } from '@atcute/client';
44 import type {} from '@atcute/atproto';
55- import { repoEntryTransform } from '@atcute/repo';
55+ import { fromStream } from '@atcute/repo';
6677 const { did, handle, pdsUrl, slowPokeMode } = $props();
88···6565 if (!result.ok) {
6666 throw new Error(`HTTP error! status: ${result.status}`);
6767 }
6868-6969- const { readable, writable } = repoEntryTransform();
7070- //Don't want to await so we can read as it streams
7171- result.data.pipeTo(writable);
6868+ const repo = fromStream(result.data);
72697370 try {
7471 //This reads the repo as it is downloaded. which was very cool and I didn't know it would do that
7575- for await (const entry of readable) {
7272+ for await (const entry of repo) {
7673 // record here is the content of the atproto record
7774 // console.log(entry.record);
7875 let checkForCollection = collections.find(c => c.collection === entry.collection);
···9087 loading = false;
9188 } catch (err) {
9289 stopTimer();
9090+ console.log(err);
9391 console.error('Error fetching repo stats:', err);
9492 if (err instanceof Error) {
9593 error = err.message;