Rollup support

This commit is contained in:
2025-02-05 12:34:07 -07:00
parent baebe7d5aa
commit b997e531b5
6 changed files with 495 additions and 6 deletions

View File

@@ -1,6 +1,9 @@
import Path from "path"
import { createSource, createSourceOptions, downloadImages, fetchChannel, getPostIdFromPathname, isUnset } from "../lib.js"
// TODO:
// Pulling images from cache fails because their images were never added to the annotations
class BlueskyError extends Error {}
let bluesky = {}
@@ -57,7 +60,7 @@ bluesky.login = async (handle, password, domain = 'bsky.social') => {
}
const getPostUriChunks = channel => {
let guids = channel.querySelectorAll('guid')
let guids = channel.querySelectorAll('item > guid')
let storedUris = new Set()
let chunks = []
let uris = []