3
0
Fork 0
mirror of https://gitea.com/actions/setup-node.git synced 2024-11-24 19:19:32 +01:00
setup-node/node_modules/@octokit/request/dist-src/index.js

10 lines
321 B
JavaScript
Raw Normal View History

2019-08-05 21:18:52 +02: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()}`
}
});