all repos — stealth-developers @ 3420181c4dcd5388990032bbfd2808fdaec0516d

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