1 | import { getUserAgent } from "universal-user-agent";
|
2 | import { VERSION } from "./version.js";
|
3 | const userAgent = `octokit-endpoint.js/${VERSION} ${getUserAgent()}`;
|
4 | const DEFAULTS = {
|
5 | method: "GET",
|
6 | baseUrl: "https://api.github.com",
|
7 | headers: {
|
8 | accept: "application/vnd.github.v3+json",
|
9 | "user-agent": userAgent
|
10 | },
|
11 | mediaType: {
|
12 | format: ""
|
13 | }
|
14 | };
|
15 | export {
|
16 | DEFAULTS
|
17 | };
|