setup-maven/node_modules/@octokit/request/dist-src/index.js
2019-12-07 16:09:23 +03:00

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