formatting
This commit is contained in:
parent
91fe0edfcd
commit
3f374303a4
1 changed files with 20 additions and 20 deletions
12
index.ts
12
index.ts
|
@ -12,9 +12,7 @@ async function getPatchHrefs() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
const hrefRequests = [...Array(7).keys()]
|
||||||
await Promise.all(
|
|
||||||
[...Array(7).keys()]
|
|
||||||
.map((val) => ++val)
|
.map((val) => ++val)
|
||||||
.map((page) => {
|
.map((page) => {
|
||||||
return (async () => {
|
return (async () => {
|
||||||
|
@ -31,9 +29,11 @@ async function getPatchHrefs() {
|
||||||
.map((el) => el.getAttribute("href"))
|
.map((el) => el.getAttribute("href"))
|
||||||
.filter((el) => el) as string[];
|
.filter((el) => el) as string[];
|
||||||
})();
|
})();
|
||||||
}),
|
});
|
||||||
)
|
|
||||||
).flat();
|
const hrefLists = await Promise.all(hrefRequests);
|
||||||
|
|
||||||
|
return hrefLists.flat();
|
||||||
}
|
}
|
||||||
|
|
||||||
const allPatches = await getPatchHrefs();
|
const allPatches = await getPatchHrefs();
|
||||||
|
|
Loading…
Reference in a new issue