setup-node/node_modules/@octokit/endpoint/dist-src/defaults.js

16 lines
411 B
JavaScript
Raw Permalink Normal View History

2019-08-06 18:29:44 -04:00
import getUserAgent from "universal-user-agent";
import { VERSION } from "./version";
const userAgent = `octokit-endpoint.js/${VERSION} ${getUserAgent()}`;
export const DEFAULTS = {
method: "GET",
baseUrl: "https://api.github.com",
headers: {
accept: "application/vnd.github.v3+json",
"user-agent": userAgent
},
mediaType: {
format: "",
previews: []
}
};