Files
hello-world-javascript-action/node_modules/@octokit/endpoint/dist-src/defaults.js

18 lines
570 B
JavaScript
Raw Normal View History

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