chore: update public repo

This commit is contained in:
desu-bot 2025-03-08 08:19:53 +00:00
parent f02ccb6029
commit 655e5a8e15
No known key found for this signature in database
3 changed files with 32 additions and 26 deletions

View file

@ -12,28 +12,4 @@ export const ffetchShiki = ffetchBase.extend({
...(rateLimitBypass as any),
})
export function counterIter(start = 0, end = Infinity) {
let i = start
let ended = false
const iter: IterableIterator<number> = {
[Symbol.iterator]: () => iter,
next() {
if (ended) {
return { value: undefined, done: true }
}
if (i > end) {
return { value: undefined, done: true }
}
return { value: i++, done: false }
},
}
return {
iter,
end: () => {
ended = true
},
}
}
export { counterIter } from '../../../utils/counter.ts'