all repos — stealth-developers @ a19b9c8aa54b7c47b8677c31a7d567bd24c632ee

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,
});