2019-08-08 10:10:17 -04:00
|
|
|
import { endpoint } from "@octokit/endpoint";
|
2020-05-15 09:52:23 -04:00
|
|
|
import { getUserAgent } from "universal-user-agent";
|
2019-08-08 10:10:17 -04:00
|
|
|
import { VERSION } from "./version";
|
|
|
|
|
import withDefaults from "./with-defaults";
|
|
|
|
|
export const request = withDefaults(endpoint, {
|
|
|
|
|
headers: {
|
2020-05-15 09:52:23 -04:00
|
|
|
"user-agent": `octokit-request.js/${VERSION} ${getUserAgent()}`,
|
|
|
|
|
},
|
2019-08-08 10:10:17 -04:00
|
|
|
});
|