setup-node/node_modules/@octokit/request/dist-src/index.js

10 lines
321 B
JavaScript
Raw Permalink Normal View History

2019-08-07 06:29:44 +08: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()}`
}
});