all repos — stealth-developers @ 352a8a67bc5f7191c41f3b64d02c75b0aaba3846

apps/migration/src/lib/rest.ts (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
import { RateLimitManager } from "@purrkit/ratelimit";
import { RESTClient } from "@purrkit/rest";

import { TOKEN } from "../constants";

const limiter = new RateLimitManager({});

export const rest = RESTClient({
	token: TOKEN,
	fetch: limiter.fetch,
});