UNPKG

@octokit/endpoint

Version:

Turns REST API endpoints into generic request options

18 lines (17 loc) 388 B
import { getUserAgent } from "universal-user-agent"; import { VERSION } from "./version.js"; const userAgent = `octokit-endpoint.js/${VERSION} ${getUserAgent()}`; const DEFAULTS = { method: "GET", baseUrl: "https://api.github.com", headers: { accept: "application/vnd.github.v3+json", "user-agent": userAgent }, mediaType: { format: "" } }; export { DEFAULTS };