setup-node/node_modules/@octokit/request/dist-src/index.js
Danny McCormick 5273d0df9c Add auth
2019-08-06 18:29:44 -04:00

9 lines
321 B
JavaScript

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()}`
}
});