wishthis/node_modules/@octokit/request/dist-src/index.js

10 lines
327 B
JavaScript
Raw Normal View History

2022-01-21 08:28:41 +00:00
import { endpoint } from "@octokit/endpoint";
import { getUserAgent } from "universal-user-agent";
import { VERSION } from "./version";
import withDefaults from "./with-defaults";
export const request = withDefaults(endpoint, {
headers: {
"user-agent": `octokit-request.js/${VERSION} ${getUserAgent()}`,
},
});