mirror of
https://github.com/diligencia/semantic-branch-version.git
synced 2024-11-24 09:53:52 +08:00
18 lines
570 B
JavaScript
18 lines
570 B
JavaScript
|
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",
|
||
|
"user-agent": userAgent,
|
||
|
},
|
||
|
mediaType: {
|
||
|
format: "",
|
||
|
previews: [],
|
||
|
},
|
||
|
};
|