Compare commits
No commits in common. "91fe0edfcd2e6c9974eed353f74650bcb5143df5" and "f9a5d5cdac6db302e7325086b9f0149d1919daf4" have entirely different histories.
91fe0edfcd
...
f9a5d5cdac
12
index.ts
12
index.ts
|
@ -12,12 +12,11 @@ async function getPatchHrefs() {
|
|||
}
|
||||
}
|
||||
|
||||
return (
|
||||
await Promise.all(
|
||||
let patchHrefs: string[] = [];
|
||||
|
||||
[...Array(7).keys()]
|
||||
.map((val) => ++val)
|
||||
.map((page) => {
|
||||
return (async () => {
|
||||
.map(async (page) => {
|
||||
const req = await fetch(getGalleryPageHref(page));
|
||||
const data = parse(await req.text());
|
||||
|
||||
|
@ -30,10 +29,7 @@ async function getPatchHrefs() {
|
|||
?.getElementsByTagName("a")
|
||||
.map((el) => el.getAttribute("href"))
|
||||
.filter((el) => el) as string[];
|
||||
})();
|
||||
}),
|
||||
)
|
||||
).flat();
|
||||
});
|
||||
}
|
||||
|
||||
const allPatches = await getPatchHrefs();
|
||||
|
|
Loading…
Reference in New Issue