github-pages-deploy-action/node_modules/@octokit/endpoint/dist-src/defaults.js

18 lines
570 B
JavaScript
Raw Normal View History

2020-01-28 13:08:03 +08:00
import { getUserAgent } from "universal-user-agent";
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.
export const DEFAULTS = {
method: "GET",
baseUrl: "https://api.github.com",
headers: {
accept: "application/vnd.github.v3+json",
2020-06-06 22:11:37 +08:00
"user-agent": userAgent,
2020-01-28 13:08:03 +08:00
},
mediaType: {
format: "",
2020-06-06 22:11:37 +08:00
previews: [],
},
2020-01-28 13:08:03 +08:00
};