all repos — stealth-developers @ 6c1094cd3d39e42163fcd5e1ca3a8522231057ed

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