all repos — stealth-developers @ 55e75f334ae0c5ba6067a5fd2c5ac161e526e2e7

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