Files
labeler/node_modules/@octokit/endpoint/dist-src/defaults.js
T

18 lines
570 B
JavaScript
Raw Normal View History

import { getUserAgent } from "universal-user-agent";
2019-08-08 10:10:17 -04:00
import { VERSION } from "./version";
const userAgent = `octokit-endpoint.js/${VERSION} ${getUserAgent()}`;
// DEFAULTS has all properties set that EndpointOptions has, except url.
// So we use RequestParameters and add method as additional required property.
2019-08-08 10:10:17 -04:00
export const DEFAULTS = {
method: "GET",
baseUrl: "https://api.github.com",
headers: {
accept: "application/vnd.github.v3+json",
"user-agent": userAgent,
2019-08-08 10:10:17 -04:00
},
mediaType: {
format: "",
previews: [],
},
2019-08-08 10:10:17 -04:00
};